From ac905302d9427ef9803e590518af984f4f13b266 Mon Sep 17 00:00:00 2001 From: Vytautas Date: Thu, 21 Jan 2021 16:23:08 +0200 Subject: [PATCH] Switch to protoc-gen-go (#3905) --- .gen/proto/admin/v1/service.pb.go | 13121 ++----- .gen/proto/admin/v1/service_grpc.pb.go | 778 + .gen/proto/api/v1/common.pb.go | 4462 +-- .gen/proto/api/v1/decision.pb.go | 9004 +---- .gen/proto/api/v1/domain.pb.go | 3023 +- .gen/proto/api/v1/error.pb.go | 3875 +- .gen/proto/api/v1/history.pb.go | 28944 +++----------- .gen/proto/api/v1/query.pb.go | 1384 +- .gen/proto/api/v1/service_domain.pb.go | 5633 +-- .gen/proto/api/v1/service_domain_grpc.pb.go | 288 + .gen/proto/api/v1/service_meta.pb.go | 819 +- .gen/proto/api/v1/service_meta_grpc.pb.go | 124 + .gen/proto/api/v1/service_visibility.pb.go | 6285 +--- .../api/v1/service_visibility_grpc.pb.go | 354 + .gen/proto/api/v1/service_worker.pb.go | 13117 ++----- .gen/proto/api/v1/service_worker_grpc.pb.go | 730 + .gen/proto/api/v1/service_workflow.pb.go | 10598 +----- .gen/proto/api/v1/service_workflow_grpc.pb.go | 578 + .gen/proto/api/v1/tasklist.pb.go | 2664 +- .gen/proto/api/v1/visibility.pb.go | 1489 +- .gen/proto/api/v1/workflow.pb.go | 6125 +-- .gen/proto/dependencies/gogoproto.pb.go | 4 +- .gen/proto/history/v1/service.pb.go | 31294 +++------------- .gen/proto/history/v1/service_grpc.pb.go | 1680 + .gen/proto/indexer/v1/messages.pb.go | 1606 +- .gen/proto/matching/v1/service.pb.go | 9471 +---- .gen/proto/matching/v1/service_grpc.pb.go | 452 + .gen/proto/shared/v1/cluster.pb.go | 1560 +- .gen/proto/shared/v1/history.pb.go | 1511 +- .gen/proto/shared/v1/queue.pb.go | 190 +- .gen/proto/shared/v1/replication.pb.go | 6577 +--- .gen/proto/shared/v1/tasklist.pb.go | 183 +- .gen/proto/shared/v1/workflow.pb.go | 762 +- .gitignore | 1 + Makefile | 59 +- cmd/tools/copyright/licensegen.go | 7 +- go.mod | 19 +- go.sum | 270 +- proto/buf.yaml | 2 - .../uber/cadence/admin/v1/service.proto | 5 +- .../uber/cadence/history/v1/service.proto | 29 +- .../uber/cadence/indexer/v1/messages.proto | 2 +- .../uber/cadence/matching/v1/service.proto | 23 +- .../uber/cadence/shared/v1/cluster.proto | 2 +- .../uber/cadence/shared/v1/history.proto | 2 +- .../uber/cadence/shared/v1/queue.proto | 2 +- .../uber/cadence/shared/v1/replication.proto | 17 +- .../uber/cadence/shared/v1/tasklist.proto | 2 +- .../uber/cadence/shared/v1/workflow.proto | 2 +- proto/public/dependencies/gogoproto.proto | 144 - proto/public/uber/cadence/api/v1/common.proto | 9 +- .../public/uber/cadence/api/v1/decision.proto | 23 +- proto/public/uber/cadence/api/v1/domain.proto | 7 +- proto/public/uber/cadence/api/v1/error.proto | 2 +- .../public/uber/cadence/api/v1/history.proto | 35 +- proto/public/uber/cadence/api/v1/query.proto | 2 +- .../uber/cadence/api/v1/service_domain.proto | 7 +- .../uber/cadence/api/v1/service_meta.proto | 2 +- .../cadence/api/v1/service_visibility.proto | 2 +- .../uber/cadence/api/v1/service_worker.proto | 19 +- .../cadence/api/v1/service_workflow.proto | 7 +- .../public/uber/cadence/api/v1/tasklist.proto | 7 +- .../uber/cadence/api/v1/visibility.proto | 7 +- .../public/uber/cadence/api/v1/workflow.proto | 37 +- 64 files changed, 35643 insertions(+), 133796 deletions(-) create mode 100644 .gen/proto/admin/v1/service_grpc.pb.go create mode 100644 .gen/proto/api/v1/service_domain_grpc.pb.go create mode 100644 .gen/proto/api/v1/service_meta_grpc.pb.go create mode 100644 .gen/proto/api/v1/service_visibility_grpc.pb.go create mode 100644 .gen/proto/api/v1/service_worker_grpc.pb.go create mode 100644 .gen/proto/api/v1/service_workflow_grpc.pb.go create mode 100644 .gen/proto/history/v1/service_grpc.pb.go create mode 100644 .gen/proto/matching/v1/service_grpc.pb.go delete mode 100644 proto/public/dependencies/gogoproto.proto diff --git a/.gen/proto/admin/v1/service.pb.go b/.gen/proto/admin/v1/service.pb.go index bb7806bec7a..9aa4d68e8ce 100644 --- a/.gen/proto/admin/v1/service.pb.go +++ b/.gen/proto/admin/v1/service.pb.go @@ -1,243 +1,248 @@ -// The MIT License (MIT) - -// Copyright (c) 2017-2020 Uber Technologies Inc. - +// 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 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. +// 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. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.14.0 // source: uber/cadence/admin/v1/service.proto package adminv1 import ( - bytes "bytes" - context "context" - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" reflect "reflect" - strings "strings" - time "time" - - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" - github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" - _ "github.com/golang/protobuf/ptypes/timestamp" + sync "sync" + + proto "github.com/golang/protobuf/proto" v1 "github.com/uber/cadence/.gen/proto/api/v1" v11 "github.com/uber/cadence/.gen/proto/shared/v1" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf -var _ = time.Kitchen +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// 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 +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type DescribeWorkflowExecutionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` } -func (m *DescribeWorkflowExecutionRequest) Reset() { *m = DescribeWorkflowExecutionRequest{} } -func (*DescribeWorkflowExecutionRequest) ProtoMessage() {} -func (*DescribeWorkflowExecutionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c6fc96d64a8b67fd, []int{0} -} -func (m *DescribeWorkflowExecutionRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DescribeWorkflowExecutionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DescribeWorkflowExecutionRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *DescribeWorkflowExecutionRequest) Reset() { + *x = DescribeWorkflowExecutionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *DescribeWorkflowExecutionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescribeWorkflowExecutionRequest.Merge(m, src) -} -func (m *DescribeWorkflowExecutionRequest) XXX_Size() int { - return m.Size() + +func (x *DescribeWorkflowExecutionRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DescribeWorkflowExecutionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DescribeWorkflowExecutionRequest.DiscardUnknown(m) + +func (*DescribeWorkflowExecutionRequest) ProtoMessage() {} + +func (x *DescribeWorkflowExecutionRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DescribeWorkflowExecutionRequest proto.InternalMessageInfo +// Deprecated: Use DescribeWorkflowExecutionRequest.ProtoReflect.Descriptor instead. +func (*DescribeWorkflowExecutionRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_admin_v1_service_proto_rawDescGZIP(), []int{0} +} -func (m *DescribeWorkflowExecutionRequest) GetDomain() string { - if m != nil { - return m.Domain +func (x *DescribeWorkflowExecutionRequest) GetDomain() string { + if x != nil { + return x.Domain } return "" } -func (m *DescribeWorkflowExecutionRequest) GetWorkflowExecution() *v1.WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *DescribeWorkflowExecutionRequest) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } type DescribeWorkflowExecutionResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + ShardId int32 `protobuf:"varint,1,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"` HistoryAddr string `protobuf:"bytes,2,opt,name=history_addr,json=historyAddr,proto3" json:"history_addr,omitempty"` MutableStateInCache string `protobuf:"bytes,3,opt,name=mutable_state_in_cache,json=mutableStateInCache,proto3" json:"mutable_state_in_cache,omitempty"` MutableStateInDatabase string `protobuf:"bytes,4,opt,name=mutable_state_in_database,json=mutableStateInDatabase,proto3" json:"mutable_state_in_database,omitempty"` } -func (m *DescribeWorkflowExecutionResponse) Reset() { *m = DescribeWorkflowExecutionResponse{} } -func (*DescribeWorkflowExecutionResponse) ProtoMessage() {} -func (*DescribeWorkflowExecutionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c6fc96d64a8b67fd, []int{1} -} -func (m *DescribeWorkflowExecutionResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DescribeWorkflowExecutionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DescribeWorkflowExecutionResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *DescribeWorkflowExecutionResponse) Reset() { + *x = DescribeWorkflowExecutionResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *DescribeWorkflowExecutionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescribeWorkflowExecutionResponse.Merge(m, src) -} -func (m *DescribeWorkflowExecutionResponse) XXX_Size() int { - return m.Size() + +func (x *DescribeWorkflowExecutionResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DescribeWorkflowExecutionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DescribeWorkflowExecutionResponse.DiscardUnknown(m) + +func (*DescribeWorkflowExecutionResponse) ProtoMessage() {} + +func (x *DescribeWorkflowExecutionResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DescribeWorkflowExecutionResponse proto.InternalMessageInfo +// Deprecated: Use DescribeWorkflowExecutionResponse.ProtoReflect.Descriptor instead. +func (*DescribeWorkflowExecutionResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_admin_v1_service_proto_rawDescGZIP(), []int{1} +} -func (m *DescribeWorkflowExecutionResponse) GetShardId() int32 { - if m != nil { - return m.ShardId +func (x *DescribeWorkflowExecutionResponse) GetShardId() int32 { + if x != nil { + return x.ShardId } return 0 } -func (m *DescribeWorkflowExecutionResponse) GetHistoryAddr() string { - if m != nil { - return m.HistoryAddr +func (x *DescribeWorkflowExecutionResponse) GetHistoryAddr() string { + if x != nil { + return x.HistoryAddr } return "" } -func (m *DescribeWorkflowExecutionResponse) GetMutableStateInCache() string { - if m != nil { - return m.MutableStateInCache +func (x *DescribeWorkflowExecutionResponse) GetMutableStateInCache() string { + if x != nil { + return x.MutableStateInCache } return "" } -func (m *DescribeWorkflowExecutionResponse) GetMutableStateInDatabase() string { - if m != nil { - return m.MutableStateInDatabase +func (x *DescribeWorkflowExecutionResponse) GetMutableStateInDatabase() string { + if x != nil { + return x.MutableStateInDatabase } return "" } type DescribeHistoryHostRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + HostAddress string `protobuf:"bytes,1,opt,name=host_address,json=hostAddress,proto3" json:"host_address,omitempty"` ShardId int32 `protobuf:"varint,2,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"` WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` } -func (m *DescribeHistoryHostRequest) Reset() { *m = DescribeHistoryHostRequest{} } -func (*DescribeHistoryHostRequest) ProtoMessage() {} -func (*DescribeHistoryHostRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c6fc96d64a8b67fd, []int{2} -} -func (m *DescribeHistoryHostRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DescribeHistoryHostRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DescribeHistoryHostRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *DescribeHistoryHostRequest) Reset() { + *x = DescribeHistoryHostRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *DescribeHistoryHostRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescribeHistoryHostRequest.Merge(m, src) -} -func (m *DescribeHistoryHostRequest) XXX_Size() int { - return m.Size() + +func (x *DescribeHistoryHostRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DescribeHistoryHostRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DescribeHistoryHostRequest.DiscardUnknown(m) + +func (*DescribeHistoryHostRequest) ProtoMessage() {} + +func (x *DescribeHistoryHostRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DescribeHistoryHostRequest proto.InternalMessageInfo +// Deprecated: Use DescribeHistoryHostRequest.ProtoReflect.Descriptor instead. +func (*DescribeHistoryHostRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_admin_v1_service_proto_rawDescGZIP(), []int{2} +} -func (m *DescribeHistoryHostRequest) GetHostAddress() string { - if m != nil { - return m.HostAddress +func (x *DescribeHistoryHostRequest) GetHostAddress() string { + if x != nil { + return x.HostAddress } return "" } -func (m *DescribeHistoryHostRequest) GetShardId() int32 { - if m != nil { - return m.ShardId +func (x *DescribeHistoryHostRequest) GetShardId() int32 { + if x != nil { + return x.ShardId } return 0 } -func (m *DescribeHistoryHostRequest) GetWorkflowExecution() *v1.WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *DescribeHistoryHostRequest) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } type DescribeHistoryHostResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + NumberOfShards int32 `protobuf:"varint,1,opt,name=number_of_shards,json=numberOfShards,proto3" json:"number_of_shards,omitempty"` ShardIds []int32 `protobuf:"varint,2,rep,packed,name=shard_ids,json=shardIds,proto3" json:"shard_ids,omitempty"` DomainCache *v11.DomainCacheInfo `protobuf:"bytes,3,opt,name=domain_cache,json=domainCache,proto3" json:"domain_cache,omitempty"` @@ -245,450 +250,483 @@ type DescribeHistoryHostResponse struct { Address string `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"` } -func (m *DescribeHistoryHostResponse) Reset() { *m = DescribeHistoryHostResponse{} } -func (*DescribeHistoryHostResponse) ProtoMessage() {} -func (*DescribeHistoryHostResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c6fc96d64a8b67fd, []int{3} -} -func (m *DescribeHistoryHostResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DescribeHistoryHostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DescribeHistoryHostResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *DescribeHistoryHostResponse) Reset() { + *x = DescribeHistoryHostResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *DescribeHistoryHostResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescribeHistoryHostResponse.Merge(m, src) -} -func (m *DescribeHistoryHostResponse) XXX_Size() int { - return m.Size() + +func (x *DescribeHistoryHostResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DescribeHistoryHostResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DescribeHistoryHostResponse.DiscardUnknown(m) + +func (*DescribeHistoryHostResponse) ProtoMessage() {} + +func (x *DescribeHistoryHostResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DescribeHistoryHostResponse proto.InternalMessageInfo +// Deprecated: Use DescribeHistoryHostResponse.ProtoReflect.Descriptor instead. +func (*DescribeHistoryHostResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_admin_v1_service_proto_rawDescGZIP(), []int{3} +} -func (m *DescribeHistoryHostResponse) GetNumberOfShards() int32 { - if m != nil { - return m.NumberOfShards +func (x *DescribeHistoryHostResponse) GetNumberOfShards() int32 { + if x != nil { + return x.NumberOfShards } return 0 } -func (m *DescribeHistoryHostResponse) GetShardIds() []int32 { - if m != nil { - return m.ShardIds +func (x *DescribeHistoryHostResponse) GetShardIds() []int32 { + if x != nil { + return x.ShardIds } return nil } -func (m *DescribeHistoryHostResponse) GetDomainCache() *v11.DomainCacheInfo { - if m != nil { - return m.DomainCache +func (x *DescribeHistoryHostResponse) GetDomainCache() *v11.DomainCacheInfo { + if x != nil { + return x.DomainCache } return nil } -func (m *DescribeHistoryHostResponse) GetShardControllerStatus() string { - if m != nil { - return m.ShardControllerStatus +func (x *DescribeHistoryHostResponse) GetShardControllerStatus() string { + if x != nil { + return x.ShardControllerStatus } return "" } -func (m *DescribeHistoryHostResponse) GetAddress() string { - if m != nil { - return m.Address +func (x *DescribeHistoryHostResponse) GetAddress() string { + if x != nil { + return x.Address } return "" } type CloseShardRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + ShardId int32 `protobuf:"varint,1,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"` } -func (m *CloseShardRequest) Reset() { *m = CloseShardRequest{} } -func (*CloseShardRequest) ProtoMessage() {} -func (*CloseShardRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c6fc96d64a8b67fd, []int{4} -} -func (m *CloseShardRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CloseShardRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CloseShardRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *CloseShardRequest) Reset() { + *x = CloseShardRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *CloseShardRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CloseShardRequest.Merge(m, src) -} -func (m *CloseShardRequest) XXX_Size() int { - return m.Size() + +func (x *CloseShardRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CloseShardRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CloseShardRequest.DiscardUnknown(m) + +func (*CloseShardRequest) ProtoMessage() {} + +func (x *CloseShardRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CloseShardRequest proto.InternalMessageInfo +// Deprecated: Use CloseShardRequest.ProtoReflect.Descriptor instead. +func (*CloseShardRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_admin_v1_service_proto_rawDescGZIP(), []int{4} +} -func (m *CloseShardRequest) GetShardId() int32 { - if m != nil { - return m.ShardId +func (x *CloseShardRequest) GetShardId() int32 { + if x != nil { + return x.ShardId } return 0 } type CloseShardResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *CloseShardResponse) Reset() { + *x = CloseShardResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CloseShardResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CloseShardResponse) Reset() { *m = CloseShardResponse{} } func (*CloseShardResponse) ProtoMessage() {} -func (*CloseShardResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c6fc96d64a8b67fd, []int{5} -} -func (m *CloseShardResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CloseShardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CloseShardResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *CloseShardResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *CloseShardResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CloseShardResponse.Merge(m, src) -} -func (m *CloseShardResponse) XXX_Size() int { - return m.Size() + +// Deprecated: Use CloseShardResponse.ProtoReflect.Descriptor instead. +func (*CloseShardResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_admin_v1_service_proto_rawDescGZIP(), []int{5} } -func (m *CloseShardResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CloseShardResponse.DiscardUnknown(m) + +type RemoveTaskRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ShardId int32 `protobuf:"varint,1,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"` + TaskType v11.TaskType `protobuf:"varint,2,opt,name=task_type,json=taskType,proto3,enum=uber.cadence.shared.v1.TaskType" json:"task_type,omitempty"` + TaskId int64 `protobuf:"varint,3,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` + VisibilityTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=visibility_time,json=visibilityTime,proto3" json:"visibility_time,omitempty"` } -var xxx_messageInfo_CloseShardResponse proto.InternalMessageInfo +func (x *RemoveTaskRequest) Reset() { + *x = RemoveTaskRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} -type RemoveTaskRequest struct { - ShardId int32 `protobuf:"varint,1,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"` - TaskType v11.TaskType `protobuf:"varint,2,opt,name=task_type,json=taskType,proto3,enum=uber.cadence.shared.v1.TaskType" json:"task_type,omitempty"` - TaskId int64 `protobuf:"varint,3,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` - VisibilityTime *time.Time `protobuf:"bytes,4,opt,name=visibility_time,json=visibilityTime,proto3,stdtime" json:"visibility_time,omitempty"` +func (x *RemoveTaskRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RemoveTaskRequest) Reset() { *m = RemoveTaskRequest{} } func (*RemoveTaskRequest) ProtoMessage() {} -func (*RemoveTaskRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c6fc96d64a8b67fd, []int{6} -} -func (m *RemoveTaskRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RemoveTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RemoveTaskRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *RemoveTaskRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *RemoveTaskRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemoveTaskRequest.Merge(m, src) -} -func (m *RemoveTaskRequest) XXX_Size() int { - return m.Size() -} -func (m *RemoveTaskRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RemoveTaskRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_RemoveTaskRequest proto.InternalMessageInfo +// Deprecated: Use RemoveTaskRequest.ProtoReflect.Descriptor instead. +func (*RemoveTaskRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_admin_v1_service_proto_rawDescGZIP(), []int{6} +} -func (m *RemoveTaskRequest) GetShardId() int32 { - if m != nil { - return m.ShardId +func (x *RemoveTaskRequest) GetShardId() int32 { + if x != nil { + return x.ShardId } return 0 } -func (m *RemoveTaskRequest) GetTaskType() v11.TaskType { - if m != nil { - return m.TaskType +func (x *RemoveTaskRequest) GetTaskType() v11.TaskType { + if x != nil { + return x.TaskType } - return v11.TASK_TYPE_INVALID + return v11.TaskType_TASK_TYPE_INVALID } -func (m *RemoveTaskRequest) GetTaskId() int64 { - if m != nil { - return m.TaskId +func (x *RemoveTaskRequest) GetTaskId() int64 { + if x != nil { + return x.TaskId } return 0 } -func (m *RemoveTaskRequest) GetVisibilityTime() *time.Time { - if m != nil { - return m.VisibilityTime +func (x *RemoveTaskRequest) GetVisibilityTime() *timestamppb.Timestamp { + if x != nil { + return x.VisibilityTime } return nil } type RemoveTaskResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *RemoveTaskResponse) Reset() { *m = RemoveTaskResponse{} } -func (*RemoveTaskResponse) ProtoMessage() {} -func (*RemoveTaskResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c6fc96d64a8b67fd, []int{7} -} -func (m *RemoveTaskResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RemoveTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RemoveTaskResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RemoveTaskResponse) Reset() { + *x = RemoveTaskResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RemoveTaskResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemoveTaskResponse.Merge(m, src) -} -func (m *RemoveTaskResponse) XXX_Size() int { - return m.Size() + +func (x *RemoveTaskResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RemoveTaskResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RemoveTaskResponse.DiscardUnknown(m) + +func (*RemoveTaskResponse) ProtoMessage() {} + +func (x *RemoveTaskResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RemoveTaskResponse proto.InternalMessageInfo +// Deprecated: Use RemoveTaskResponse.ProtoReflect.Descriptor instead. +func (*RemoveTaskResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_admin_v1_service_proto_rawDescGZIP(), []int{7} +} type ResetQueueRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + ShardId int32 `protobuf:"varint,1,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"` ClusterName string `protobuf:"bytes,2,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"` TaskType v11.TaskType `protobuf:"varint,3,opt,name=task_type,json=taskType,proto3,enum=uber.cadence.shared.v1.TaskType" json:"task_type,omitempty"` } -func (m *ResetQueueRequest) Reset() { *m = ResetQueueRequest{} } -func (*ResetQueueRequest) ProtoMessage() {} -func (*ResetQueueRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c6fc96d64a8b67fd, []int{8} -} -func (m *ResetQueueRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResetQueueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ResetQueueRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ResetQueueRequest) Reset() { + *x = ResetQueueRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ResetQueueRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResetQueueRequest.Merge(m, src) -} -func (m *ResetQueueRequest) XXX_Size() int { - return m.Size() + +func (x *ResetQueueRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ResetQueueRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ResetQueueRequest.DiscardUnknown(m) + +func (*ResetQueueRequest) ProtoMessage() {} + +func (x *ResetQueueRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ResetQueueRequest proto.InternalMessageInfo +// Deprecated: Use ResetQueueRequest.ProtoReflect.Descriptor instead. +func (*ResetQueueRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_admin_v1_service_proto_rawDescGZIP(), []int{8} +} -func (m *ResetQueueRequest) GetShardId() int32 { - if m != nil { - return m.ShardId +func (x *ResetQueueRequest) GetShardId() int32 { + if x != nil { + return x.ShardId } return 0 } -func (m *ResetQueueRequest) GetClusterName() string { - if m != nil { - return m.ClusterName +func (x *ResetQueueRequest) GetClusterName() string { + if x != nil { + return x.ClusterName } return "" } -func (m *ResetQueueRequest) GetTaskType() v11.TaskType { - if m != nil { - return m.TaskType +func (x *ResetQueueRequest) GetTaskType() v11.TaskType { + if x != nil { + return x.TaskType } - return v11.TASK_TYPE_INVALID + return v11.TaskType_TASK_TYPE_INVALID } type ResetQueueResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ResetQueueResponse) Reset() { *m = ResetQueueResponse{} } -func (*ResetQueueResponse) ProtoMessage() {} -func (*ResetQueueResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c6fc96d64a8b67fd, []int{9} -} -func (m *ResetQueueResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResetQueueResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ResetQueueResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ResetQueueResponse) Reset() { + *x = ResetQueueResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ResetQueueResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResetQueueResponse.Merge(m, src) -} -func (m *ResetQueueResponse) XXX_Size() int { - return m.Size() + +func (x *ResetQueueResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ResetQueueResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ResetQueueResponse.DiscardUnknown(m) + +func (*ResetQueueResponse) ProtoMessage() {} + +func (x *ResetQueueResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ResetQueueResponse proto.InternalMessageInfo +// Deprecated: Use ResetQueueResponse.ProtoReflect.Descriptor instead. +func (*ResetQueueResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_admin_v1_service_proto_rawDescGZIP(), []int{9} +} type DescribeQueueRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + ShardId int32 `protobuf:"varint,1,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"` ClusterName string `protobuf:"bytes,2,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"` TaskType v11.TaskType `protobuf:"varint,3,opt,name=task_type,json=taskType,proto3,enum=uber.cadence.shared.v1.TaskType" json:"task_type,omitempty"` } -func (m *DescribeQueueRequest) Reset() { *m = DescribeQueueRequest{} } -func (*DescribeQueueRequest) ProtoMessage() {} -func (*DescribeQueueRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c6fc96d64a8b67fd, []int{10} -} -func (m *DescribeQueueRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DescribeQueueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DescribeQueueRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *DescribeQueueRequest) Reset() { + *x = DescribeQueueRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *DescribeQueueRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescribeQueueRequest.Merge(m, src) -} -func (m *DescribeQueueRequest) XXX_Size() int { - return m.Size() + +func (x *DescribeQueueRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DescribeQueueRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DescribeQueueRequest.DiscardUnknown(m) + +func (*DescribeQueueRequest) ProtoMessage() {} + +func (x *DescribeQueueRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DescribeQueueRequest proto.InternalMessageInfo +// Deprecated: Use DescribeQueueRequest.ProtoReflect.Descriptor instead. +func (*DescribeQueueRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_admin_v1_service_proto_rawDescGZIP(), []int{10} +} -func (m *DescribeQueueRequest) GetShardId() int32 { - if m != nil { - return m.ShardId +func (x *DescribeQueueRequest) GetShardId() int32 { + if x != nil { + return x.ShardId } return 0 } -func (m *DescribeQueueRequest) GetClusterName() string { - if m != nil { - return m.ClusterName +func (x *DescribeQueueRequest) GetClusterName() string { + if x != nil { + return x.ClusterName } return "" } -func (m *DescribeQueueRequest) GetTaskType() v11.TaskType { - if m != nil { - return m.TaskType +func (x *DescribeQueueRequest) GetTaskType() v11.TaskType { + if x != nil { + return x.TaskType } - return v11.TASK_TYPE_INVALID + return v11.TaskType_TASK_TYPE_INVALID } type DescribeQueueResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + ProcessingQueueStates []string `protobuf:"bytes,1,rep,name=processing_queue_states,json=processingQueueStates,proto3" json:"processing_queue_states,omitempty"` } -func (m *DescribeQueueResponse) Reset() { *m = DescribeQueueResponse{} } -func (*DescribeQueueResponse) ProtoMessage() {} -func (*DescribeQueueResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c6fc96d64a8b67fd, []int{11} -} -func (m *DescribeQueueResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DescribeQueueResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DescribeQueueResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *DescribeQueueResponse) Reset() { + *x = DescribeQueueResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *DescribeQueueResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescribeQueueResponse.Merge(m, src) -} -func (m *DescribeQueueResponse) XXX_Size() int { - return m.Size() + +func (x *DescribeQueueResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DescribeQueueResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DescribeQueueResponse.DiscardUnknown(m) + +func (*DescribeQueueResponse) ProtoMessage() {} + +func (x *DescribeQueueResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DescribeQueueResponse proto.InternalMessageInfo +// Deprecated: Use DescribeQueueResponse.ProtoReflect.Descriptor instead. +func (*DescribeQueueResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_admin_v1_service_proto_rawDescGZIP(), []int{11} +} -func (m *DescribeQueueResponse) GetProcessingQueueStates() []string { - if m != nil { - return m.ProcessingQueueStates +func (x *DescribeQueueResponse) GetProcessingQueueStates() []string { + if x != nil { + return x.ProcessingQueueStates } return nil } type GetWorkflowExecutionRawHistoryV2Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` StartEvent *v11.VersionHistoryItem `protobuf:"bytes,3,opt,name=start_event,json=startEvent,proto3" json:"start_event,omitempty"` @@ -697,324 +735,344 @@ type GetWorkflowExecutionRawHistoryV2Request struct { NextPageToken []byte `protobuf:"bytes,6,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } -func (m *GetWorkflowExecutionRawHistoryV2Request) Reset() { - *m = GetWorkflowExecutionRawHistoryV2Request{} +func (x *GetWorkflowExecutionRawHistoryV2Request) Reset() { + *x = GetWorkflowExecutionRawHistoryV2Request{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetWorkflowExecutionRawHistoryV2Request) String() string { + return protoimpl.X.MessageStringOf(x) } + func (*GetWorkflowExecutionRawHistoryV2Request) ProtoMessage() {} -func (*GetWorkflowExecutionRawHistoryV2Request) Descriptor() ([]byte, []int) { - return fileDescriptor_c6fc96d64a8b67fd, []int{12} -} -func (m *GetWorkflowExecutionRawHistoryV2Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetWorkflowExecutionRawHistoryV2Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetWorkflowExecutionRawHistoryV2Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *GetWorkflowExecutionRawHistoryV2Request) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *GetWorkflowExecutionRawHistoryV2Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetWorkflowExecutionRawHistoryV2Request.Merge(m, src) -} -func (m *GetWorkflowExecutionRawHistoryV2Request) XXX_Size() int { - return m.Size() -} -func (m *GetWorkflowExecutionRawHistoryV2Request) XXX_DiscardUnknown() { - xxx_messageInfo_GetWorkflowExecutionRawHistoryV2Request.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_GetWorkflowExecutionRawHistoryV2Request proto.InternalMessageInfo +// Deprecated: Use GetWorkflowExecutionRawHistoryV2Request.ProtoReflect.Descriptor instead. +func (*GetWorkflowExecutionRawHistoryV2Request) Descriptor() ([]byte, []int) { + return file_uber_cadence_admin_v1_service_proto_rawDescGZIP(), []int{12} +} -func (m *GetWorkflowExecutionRawHistoryV2Request) GetDomain() string { - if m != nil { - return m.Domain +func (x *GetWorkflowExecutionRawHistoryV2Request) GetDomain() string { + if x != nil { + return x.Domain } return "" } -func (m *GetWorkflowExecutionRawHistoryV2Request) GetWorkflowExecution() *v1.WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *GetWorkflowExecutionRawHistoryV2Request) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *GetWorkflowExecutionRawHistoryV2Request) GetStartEvent() *v11.VersionHistoryItem { - if m != nil { - return m.StartEvent +func (x *GetWorkflowExecutionRawHistoryV2Request) GetStartEvent() *v11.VersionHistoryItem { + if x != nil { + return x.StartEvent } return nil } -func (m *GetWorkflowExecutionRawHistoryV2Request) GetEndEvent() *v11.VersionHistoryItem { - if m != nil { - return m.EndEvent +func (x *GetWorkflowExecutionRawHistoryV2Request) GetEndEvent() *v11.VersionHistoryItem { + if x != nil { + return x.EndEvent } return nil } -func (m *GetWorkflowExecutionRawHistoryV2Request) GetPageSize() int32 { - if m != nil { - return m.PageSize +func (x *GetWorkflowExecutionRawHistoryV2Request) GetPageSize() int32 { + if x != nil { + return x.PageSize } return 0 } -func (m *GetWorkflowExecutionRawHistoryV2Request) GetNextPageToken() []byte { - if m != nil { - return m.NextPageToken +func (x *GetWorkflowExecutionRawHistoryV2Request) GetNextPageToken() []byte { + if x != nil { + return x.NextPageToken } return nil } type GetWorkflowExecutionRawHistoryV2Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + NextPageToken []byte `protobuf:"bytes,1,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` HistoryBatches []*v1.DataBlob `protobuf:"bytes,2,rep,name=history_batches,json=historyBatches,proto3" json:"history_batches,omitempty"` VersionHistory *v11.VersionHistory `protobuf:"bytes,3,opt,name=version_history,json=versionHistory,proto3" json:"version_history,omitempty"` } -func (m *GetWorkflowExecutionRawHistoryV2Response) Reset() { - *m = GetWorkflowExecutionRawHistoryV2Response{} +func (x *GetWorkflowExecutionRawHistoryV2Response) Reset() { + *x = GetWorkflowExecutionRawHistoryV2Response{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetWorkflowExecutionRawHistoryV2Response) String() string { + return protoimpl.X.MessageStringOf(x) } + func (*GetWorkflowExecutionRawHistoryV2Response) ProtoMessage() {} -func (*GetWorkflowExecutionRawHistoryV2Response) Descriptor() ([]byte, []int) { - return fileDescriptor_c6fc96d64a8b67fd, []int{13} -} -func (m *GetWorkflowExecutionRawHistoryV2Response) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetWorkflowExecutionRawHistoryV2Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetWorkflowExecutionRawHistoryV2Response.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *GetWorkflowExecutionRawHistoryV2Response) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *GetWorkflowExecutionRawHistoryV2Response) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetWorkflowExecutionRawHistoryV2Response.Merge(m, src) -} -func (m *GetWorkflowExecutionRawHistoryV2Response) XXX_Size() int { - return m.Size() -} -func (m *GetWorkflowExecutionRawHistoryV2Response) XXX_DiscardUnknown() { - xxx_messageInfo_GetWorkflowExecutionRawHistoryV2Response.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_GetWorkflowExecutionRawHistoryV2Response proto.InternalMessageInfo +// Deprecated: Use GetWorkflowExecutionRawHistoryV2Response.ProtoReflect.Descriptor instead. +func (*GetWorkflowExecutionRawHistoryV2Response) Descriptor() ([]byte, []int) { + return file_uber_cadence_admin_v1_service_proto_rawDescGZIP(), []int{13} +} -func (m *GetWorkflowExecutionRawHistoryV2Response) GetNextPageToken() []byte { - if m != nil { - return m.NextPageToken +func (x *GetWorkflowExecutionRawHistoryV2Response) GetNextPageToken() []byte { + if x != nil { + return x.NextPageToken } return nil } -func (m *GetWorkflowExecutionRawHistoryV2Response) GetHistoryBatches() []*v1.DataBlob { - if m != nil { - return m.HistoryBatches +func (x *GetWorkflowExecutionRawHistoryV2Response) GetHistoryBatches() []*v1.DataBlob { + if x != nil { + return x.HistoryBatches } return nil } -func (m *GetWorkflowExecutionRawHistoryV2Response) GetVersionHistory() *v11.VersionHistory { - if m != nil { - return m.VersionHistory +func (x *GetWorkflowExecutionRawHistoryV2Response) GetVersionHistory() *v11.VersionHistory { + if x != nil { + return x.VersionHistory } return nil } type GetReplicationMessagesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Tokens []*v11.ReplicationToken `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"` ClusterName string `protobuf:"bytes,2,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"` } -func (m *GetReplicationMessagesRequest) Reset() { *m = GetReplicationMessagesRequest{} } -func (*GetReplicationMessagesRequest) ProtoMessage() {} -func (*GetReplicationMessagesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c6fc96d64a8b67fd, []int{14} -} -func (m *GetReplicationMessagesRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetReplicationMessagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetReplicationMessagesRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *GetReplicationMessagesRequest) Reset() { + *x = GetReplicationMessagesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *GetReplicationMessagesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetReplicationMessagesRequest.Merge(m, src) -} -func (m *GetReplicationMessagesRequest) XXX_Size() int { - return m.Size() + +func (x *GetReplicationMessagesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetReplicationMessagesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetReplicationMessagesRequest.DiscardUnknown(m) + +func (*GetReplicationMessagesRequest) ProtoMessage() {} + +func (x *GetReplicationMessagesRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetReplicationMessagesRequest proto.InternalMessageInfo +// Deprecated: Use GetReplicationMessagesRequest.ProtoReflect.Descriptor instead. +func (*GetReplicationMessagesRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_admin_v1_service_proto_rawDescGZIP(), []int{14} +} -func (m *GetReplicationMessagesRequest) GetTokens() []*v11.ReplicationToken { - if m != nil { - return m.Tokens +func (x *GetReplicationMessagesRequest) GetTokens() []*v11.ReplicationToken { + if x != nil { + return x.Tokens } return nil } -func (m *GetReplicationMessagesRequest) GetClusterName() string { - if m != nil { - return m.ClusterName +func (x *GetReplicationMessagesRequest) GetClusterName() string { + if x != nil { + return x.ClusterName } return "" } type GetReplicationMessagesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + ShardMessages map[int32]*v11.ReplicationMessages `protobuf:"bytes,1,rep,name=shard_messages,json=shardMessages,proto3" json:"shard_messages,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func (m *GetReplicationMessagesResponse) Reset() { *m = GetReplicationMessagesResponse{} } -func (*GetReplicationMessagesResponse) ProtoMessage() {} -func (*GetReplicationMessagesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c6fc96d64a8b67fd, []int{15} -} -func (m *GetReplicationMessagesResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetReplicationMessagesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetReplicationMessagesResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *GetReplicationMessagesResponse) Reset() { + *x = GetReplicationMessagesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *GetReplicationMessagesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetReplicationMessagesResponse.Merge(m, src) -} -func (m *GetReplicationMessagesResponse) XXX_Size() int { - return m.Size() + +func (x *GetReplicationMessagesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetReplicationMessagesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetReplicationMessagesResponse.DiscardUnknown(m) + +func (*GetReplicationMessagesResponse) ProtoMessage() {} + +func (x *GetReplicationMessagesResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetReplicationMessagesResponse proto.InternalMessageInfo +// Deprecated: Use GetReplicationMessagesResponse.ProtoReflect.Descriptor instead. +func (*GetReplicationMessagesResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_admin_v1_service_proto_rawDescGZIP(), []int{15} +} -func (m *GetReplicationMessagesResponse) GetShardMessages() map[int32]*v11.ReplicationMessages { - if m != nil { - return m.ShardMessages +func (x *GetReplicationMessagesResponse) GetShardMessages() map[int32]*v11.ReplicationMessages { + if x != nil { + return x.ShardMessages } return nil } type GetDLQReplicationMessagesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + TaskInfos []*v11.ReplicationTaskInfo `protobuf:"bytes,1,rep,name=task_infos,json=taskInfos,proto3" json:"task_infos,omitempty"` } -func (m *GetDLQReplicationMessagesRequest) Reset() { *m = GetDLQReplicationMessagesRequest{} } -func (*GetDLQReplicationMessagesRequest) ProtoMessage() {} -func (*GetDLQReplicationMessagesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c6fc96d64a8b67fd, []int{16} -} -func (m *GetDLQReplicationMessagesRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetDLQReplicationMessagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetDLQReplicationMessagesRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *GetDLQReplicationMessagesRequest) Reset() { + *x = GetDLQReplicationMessagesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *GetDLQReplicationMessagesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDLQReplicationMessagesRequest.Merge(m, src) -} -func (m *GetDLQReplicationMessagesRequest) XXX_Size() int { - return m.Size() + +func (x *GetDLQReplicationMessagesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDLQReplicationMessagesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetDLQReplicationMessagesRequest.DiscardUnknown(m) + +func (*GetDLQReplicationMessagesRequest) ProtoMessage() {} + +func (x *GetDLQReplicationMessagesRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetDLQReplicationMessagesRequest proto.InternalMessageInfo +// Deprecated: Use GetDLQReplicationMessagesRequest.ProtoReflect.Descriptor instead. +func (*GetDLQReplicationMessagesRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_admin_v1_service_proto_rawDescGZIP(), []int{16} +} -func (m *GetDLQReplicationMessagesRequest) GetTaskInfos() []*v11.ReplicationTaskInfo { - if m != nil { - return m.TaskInfos +func (x *GetDLQReplicationMessagesRequest) GetTaskInfos() []*v11.ReplicationTaskInfo { + if x != nil { + return x.TaskInfos } return nil } type GetDLQReplicationMessagesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + ReplicationTasks []*v11.ReplicationTask `protobuf:"bytes,1,rep,name=replication_tasks,json=replicationTasks,proto3" json:"replication_tasks,omitempty"` } -func (m *GetDLQReplicationMessagesResponse) Reset() { *m = GetDLQReplicationMessagesResponse{} } -func (*GetDLQReplicationMessagesResponse) ProtoMessage() {} -func (*GetDLQReplicationMessagesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c6fc96d64a8b67fd, []int{17} -} -func (m *GetDLQReplicationMessagesResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetDLQReplicationMessagesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetDLQReplicationMessagesResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *GetDLQReplicationMessagesResponse) Reset() { + *x = GetDLQReplicationMessagesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *GetDLQReplicationMessagesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDLQReplicationMessagesResponse.Merge(m, src) -} -func (m *GetDLQReplicationMessagesResponse) XXX_Size() int { - return m.Size() + +func (x *GetDLQReplicationMessagesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDLQReplicationMessagesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetDLQReplicationMessagesResponse.DiscardUnknown(m) + +func (*GetDLQReplicationMessagesResponse) ProtoMessage() {} + +func (x *GetDLQReplicationMessagesResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetDLQReplicationMessagesResponse proto.InternalMessageInfo +// Deprecated: Use GetDLQReplicationMessagesResponse.ProtoReflect.Descriptor instead. +func (*GetDLQReplicationMessagesResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_admin_v1_service_proto_rawDescGZIP(), []int{17} +} -func (m *GetDLQReplicationMessagesResponse) GetReplicationTasks() []*v11.ReplicationTask { - if m != nil { - return m.ReplicationTasks +func (x *GetDLQReplicationMessagesResponse) GetReplicationTasks() []*v11.ReplicationTask { + if x != nil { + return x.ReplicationTasks } return nil } type GetDomainReplicationMessagesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // last_retrieved_message_id is where the next fetch should begin with. LastRetrievedMessageId int64 `protobuf:"varint,1,opt,name=last_retrieved_message_id,json=lastRetrievedMessageId,proto3" json:"last_retrieved_message_id,omitempty"` // last_processed_message_id is the last messageId that is processed on the passive side. @@ -1024,370 +1082,399 @@ type GetDomainReplicationMessagesRequest struct { ClusterName string `protobuf:"bytes,3,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"` } -func (m *GetDomainReplicationMessagesRequest) Reset() { *m = GetDomainReplicationMessagesRequest{} } -func (*GetDomainReplicationMessagesRequest) ProtoMessage() {} -func (*GetDomainReplicationMessagesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c6fc96d64a8b67fd, []int{18} -} -func (m *GetDomainReplicationMessagesRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetDomainReplicationMessagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetDomainReplicationMessagesRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *GetDomainReplicationMessagesRequest) Reset() { + *x = GetDomainReplicationMessagesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *GetDomainReplicationMessagesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDomainReplicationMessagesRequest.Merge(m, src) -} -func (m *GetDomainReplicationMessagesRequest) XXX_Size() int { - return m.Size() + +func (x *GetDomainReplicationMessagesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDomainReplicationMessagesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetDomainReplicationMessagesRequest.DiscardUnknown(m) + +func (*GetDomainReplicationMessagesRequest) ProtoMessage() {} + +func (x *GetDomainReplicationMessagesRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetDomainReplicationMessagesRequest proto.InternalMessageInfo +// Deprecated: Use GetDomainReplicationMessagesRequest.ProtoReflect.Descriptor instead. +func (*GetDomainReplicationMessagesRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_admin_v1_service_proto_rawDescGZIP(), []int{18} +} -func (m *GetDomainReplicationMessagesRequest) GetLastRetrievedMessageId() int64 { - if m != nil { - return m.LastRetrievedMessageId +func (x *GetDomainReplicationMessagesRequest) GetLastRetrievedMessageId() int64 { + if x != nil { + return x.LastRetrievedMessageId } return 0 } -func (m *GetDomainReplicationMessagesRequest) GetLastProcessedMessageId() int64 { - if m != nil { - return m.LastProcessedMessageId +func (x *GetDomainReplicationMessagesRequest) GetLastProcessedMessageId() int64 { + if x != nil { + return x.LastProcessedMessageId } return 0 } -func (m *GetDomainReplicationMessagesRequest) GetClusterName() string { - if m != nil { - return m.ClusterName +func (x *GetDomainReplicationMessagesRequest) GetClusterName() string { + if x != nil { + return x.ClusterName } return "" } type GetDomainReplicationMessagesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Messages *v11.ReplicationMessages `protobuf:"bytes,1,opt,name=messages,proto3" json:"messages,omitempty"` } -func (m *GetDomainReplicationMessagesResponse) Reset() { *m = GetDomainReplicationMessagesResponse{} } -func (*GetDomainReplicationMessagesResponse) ProtoMessage() {} -func (*GetDomainReplicationMessagesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c6fc96d64a8b67fd, []int{19} -} -func (m *GetDomainReplicationMessagesResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetDomainReplicationMessagesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetDomainReplicationMessagesResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *GetDomainReplicationMessagesResponse) Reset() { + *x = GetDomainReplicationMessagesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *GetDomainReplicationMessagesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDomainReplicationMessagesResponse.Merge(m, src) -} -func (m *GetDomainReplicationMessagesResponse) XXX_Size() int { - return m.Size() -} -func (m *GetDomainReplicationMessagesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetDomainReplicationMessagesResponse.DiscardUnknown(m) + +func (x *GetDomainReplicationMessagesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_GetDomainReplicationMessagesResponse proto.InternalMessageInfo +func (*GetDomainReplicationMessagesResponse) ProtoMessage() {} -func (m *GetDomainReplicationMessagesResponse) GetMessages() *v11.ReplicationMessages { - if m != nil { - return m.Messages +func (x *GetDomainReplicationMessagesResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetDomainReplicationMessagesResponse.ProtoReflect.Descriptor instead. +func (*GetDomainReplicationMessagesResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_admin_v1_service_proto_rawDescGZIP(), []int{19} +} + +func (x *GetDomainReplicationMessagesResponse) GetMessages() *v11.ReplicationMessages { + if x != nil { + return x.Messages } return nil } // ReapplyEventsRequest is the request for reapply events API. type ReapplyEventsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` Events *v1.DataBlob `protobuf:"bytes,3,opt,name=events,proto3" json:"events,omitempty"` } -func (m *ReapplyEventsRequest) Reset() { *m = ReapplyEventsRequest{} } -func (*ReapplyEventsRequest) ProtoMessage() {} -func (*ReapplyEventsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c6fc96d64a8b67fd, []int{20} -} -func (m *ReapplyEventsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReapplyEventsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReapplyEventsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ReapplyEventsRequest) Reset() { + *x = ReapplyEventsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ReapplyEventsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReapplyEventsRequest.Merge(m, src) -} -func (m *ReapplyEventsRequest) XXX_Size() int { - return m.Size() + +func (x *ReapplyEventsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ReapplyEventsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ReapplyEventsRequest.DiscardUnknown(m) + +func (*ReapplyEventsRequest) ProtoMessage() {} + +func (x *ReapplyEventsRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ReapplyEventsRequest proto.InternalMessageInfo +// Deprecated: Use ReapplyEventsRequest.ProtoReflect.Descriptor instead. +func (*ReapplyEventsRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_admin_v1_service_proto_rawDescGZIP(), []int{20} +} -func (m *ReapplyEventsRequest) GetDomain() string { - if m != nil { - return m.Domain +func (x *ReapplyEventsRequest) GetDomain() string { + if x != nil { + return x.Domain } return "" } -func (m *ReapplyEventsRequest) GetWorkflowExecution() *v1.WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *ReapplyEventsRequest) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *ReapplyEventsRequest) GetEvents() *v1.DataBlob { - if m != nil { - return m.Events +func (x *ReapplyEventsRequest) GetEvents() *v1.DataBlob { + if x != nil { + return x.Events } return nil } type ReapplyEventsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ReapplyEventsResponse) Reset() { *m = ReapplyEventsResponse{} } -func (*ReapplyEventsResponse) ProtoMessage() {} -func (*ReapplyEventsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c6fc96d64a8b67fd, []int{21} -} -func (m *ReapplyEventsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReapplyEventsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReapplyEventsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ReapplyEventsResponse) Reset() { + *x = ReapplyEventsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ReapplyEventsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReapplyEventsResponse.Merge(m, src) -} -func (m *ReapplyEventsResponse) XXX_Size() int { - return m.Size() + +func (x *ReapplyEventsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ReapplyEventsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ReapplyEventsResponse.DiscardUnknown(m) + +func (*ReapplyEventsResponse) ProtoMessage() {} + +func (x *ReapplyEventsResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ReapplyEventsResponse proto.InternalMessageInfo +// Deprecated: Use ReapplyEventsResponse.ProtoReflect.Descriptor instead. +func (*ReapplyEventsResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_admin_v1_service_proto_rawDescGZIP(), []int{21} +} type AddSearchAttributeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + SearchAttribute map[string]v1.IndexedValueType `protobuf:"bytes,1,rep,name=search_attribute,json=searchAttribute,proto3" json:"search_attribute,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=uber.cadence.api.v1.IndexedValueType"` SecurityToken string `protobuf:"bytes,2,opt,name=security_token,json=securityToken,proto3" json:"security_token,omitempty"` } -func (m *AddSearchAttributeRequest) Reset() { *m = AddSearchAttributeRequest{} } -func (*AddSearchAttributeRequest) ProtoMessage() {} -func (*AddSearchAttributeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c6fc96d64a8b67fd, []int{22} -} -func (m *AddSearchAttributeRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AddSearchAttributeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AddSearchAttributeRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *AddSearchAttributeRequest) Reset() { + *x = AddSearchAttributeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *AddSearchAttributeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_AddSearchAttributeRequest.Merge(m, src) -} -func (m *AddSearchAttributeRequest) XXX_Size() int { - return m.Size() + +func (x *AddSearchAttributeRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AddSearchAttributeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_AddSearchAttributeRequest.DiscardUnknown(m) + +func (*AddSearchAttributeRequest) ProtoMessage() {} + +func (x *AddSearchAttributeRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_AddSearchAttributeRequest proto.InternalMessageInfo +// Deprecated: Use AddSearchAttributeRequest.ProtoReflect.Descriptor instead. +func (*AddSearchAttributeRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_admin_v1_service_proto_rawDescGZIP(), []int{22} +} -func (m *AddSearchAttributeRequest) GetSearchAttribute() map[string]v1.IndexedValueType { - if m != nil { - return m.SearchAttribute +func (x *AddSearchAttributeRequest) GetSearchAttribute() map[string]v1.IndexedValueType { + if x != nil { + return x.SearchAttribute } return nil } -func (m *AddSearchAttributeRequest) GetSecurityToken() string { - if m != nil { - return m.SecurityToken +func (x *AddSearchAttributeRequest) GetSecurityToken() string { + if x != nil { + return x.SecurityToken } return "" } type AddSearchAttributeResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *AddSearchAttributeResponse) Reset() { + *x = AddSearchAttributeResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AddSearchAttributeResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AddSearchAttributeResponse) Reset() { *m = AddSearchAttributeResponse{} } func (*AddSearchAttributeResponse) ProtoMessage() {} -func (*AddSearchAttributeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c6fc96d64a8b67fd, []int{23} -} -func (m *AddSearchAttributeResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AddSearchAttributeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AddSearchAttributeResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *AddSearchAttributeResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *AddSearchAttributeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_AddSearchAttributeResponse.Merge(m, src) -} -func (m *AddSearchAttributeResponse) XXX_Size() int { - return m.Size() + +// Deprecated: Use AddSearchAttributeResponse.ProtoReflect.Descriptor instead. +func (*AddSearchAttributeResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_admin_v1_service_proto_rawDescGZIP(), []int{23} } -func (m *AddSearchAttributeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_AddSearchAttributeResponse.DiscardUnknown(m) + +type DescribeClusterRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -var xxx_messageInfo_AddSearchAttributeResponse proto.InternalMessageInfo +func (x *DescribeClusterRequest) Reset() { + *x = DescribeClusterRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} -type DescribeClusterRequest struct { +func (x *DescribeClusterRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DescribeClusterRequest) Reset() { *m = DescribeClusterRequest{} } func (*DescribeClusterRequest) ProtoMessage() {} -func (*DescribeClusterRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c6fc96d64a8b67fd, []int{24} -} -func (m *DescribeClusterRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DescribeClusterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DescribeClusterRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *DescribeClusterRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *DescribeClusterRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescribeClusterRequest.Merge(m, src) -} -func (m *DescribeClusterRequest) XXX_Size() int { - return m.Size() -} -func (m *DescribeClusterRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DescribeClusterRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_DescribeClusterRequest proto.InternalMessageInfo +// Deprecated: Use DescribeClusterRequest.ProtoReflect.Descriptor instead. +func (*DescribeClusterRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_admin_v1_service_proto_rawDescGZIP(), []int{24} +} type DescribeClusterResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + SupportedClientVersions *v1.SupportedClientVersions `protobuf:"bytes,1,opt,name=supported_client_versions,json=supportedClientVersions,proto3" json:"supported_client_versions,omitempty"` MembershipInfo *v11.MembershipInfo `protobuf:"bytes,2,opt,name=membership_info,json=membershipInfo,proto3" json:"membership_info,omitempty"` } -func (m *DescribeClusterResponse) Reset() { *m = DescribeClusterResponse{} } -func (*DescribeClusterResponse) ProtoMessage() {} -func (*DescribeClusterResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c6fc96d64a8b67fd, []int{25} -} -func (m *DescribeClusterResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DescribeClusterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DescribeClusterResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *DescribeClusterResponse) Reset() { + *x = DescribeClusterResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *DescribeClusterResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescribeClusterResponse.Merge(m, src) -} -func (m *DescribeClusterResponse) XXX_Size() int { - return m.Size() + +func (x *DescribeClusterResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DescribeClusterResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DescribeClusterResponse.DiscardUnknown(m) + +func (*DescribeClusterResponse) ProtoMessage() {} + +func (x *DescribeClusterResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DescribeClusterResponse proto.InternalMessageInfo +// Deprecated: Use DescribeClusterResponse.ProtoReflect.Descriptor instead. +func (*DescribeClusterResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_admin_v1_service_proto_rawDescGZIP(), []int{25} +} -func (m *DescribeClusterResponse) GetSupportedClientVersions() *v1.SupportedClientVersions { - if m != nil { - return m.SupportedClientVersions +func (x *DescribeClusterResponse) GetSupportedClientVersions() *v1.SupportedClientVersions { + if x != nil { + return x.SupportedClientVersions } return nil } -func (m *DescribeClusterResponse) GetMembershipInfo() *v11.MembershipInfo { - if m != nil { - return m.MembershipInfo +func (x *DescribeClusterResponse) GetMembershipInfo() *v11.MembershipInfo { + if x != nil { + return x.MembershipInfo } return nil } type ReadDLQMessagesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Type v11.DLQType `protobuf:"varint,1,opt,name=type,proto3,enum=uber.cadence.shared.v1.DLQType" json:"type,omitempty"` ShardId int32 `protobuf:"varint,2,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"` SourceCluster string `protobuf:"bytes,3,opt,name=source_cluster,json=sourceCluster,proto3" json:"source_cluster,omitempty"` @@ -1396,242 +1483,257 @@ type ReadDLQMessagesRequest struct { NextPageToken []byte `protobuf:"bytes,6,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } -func (m *ReadDLQMessagesRequest) Reset() { *m = ReadDLQMessagesRequest{} } -func (*ReadDLQMessagesRequest) ProtoMessage() {} -func (*ReadDLQMessagesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c6fc96d64a8b67fd, []int{26} -} -func (m *ReadDLQMessagesRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReadDLQMessagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReadDLQMessagesRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ReadDLQMessagesRequest) Reset() { + *x = ReadDLQMessagesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ReadDLQMessagesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReadDLQMessagesRequest.Merge(m, src) -} -func (m *ReadDLQMessagesRequest) XXX_Size() int { - return m.Size() + +func (x *ReadDLQMessagesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ReadDLQMessagesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ReadDLQMessagesRequest.DiscardUnknown(m) + +func (*ReadDLQMessagesRequest) ProtoMessage() {} + +func (x *ReadDLQMessagesRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ReadDLQMessagesRequest proto.InternalMessageInfo +// Deprecated: Use ReadDLQMessagesRequest.ProtoReflect.Descriptor instead. +func (*ReadDLQMessagesRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_admin_v1_service_proto_rawDescGZIP(), []int{26} +} -func (m *ReadDLQMessagesRequest) GetType() v11.DLQType { - if m != nil { - return m.Type +func (x *ReadDLQMessagesRequest) GetType() v11.DLQType { + if x != nil { + return x.Type } - return v11.DLQ_TYPE_INVALID + return v11.DLQType_DLQ_TYPE_INVALID } -func (m *ReadDLQMessagesRequest) GetShardId() int32 { - if m != nil { - return m.ShardId +func (x *ReadDLQMessagesRequest) GetShardId() int32 { + if x != nil { + return x.ShardId } return 0 } -func (m *ReadDLQMessagesRequest) GetSourceCluster() string { - if m != nil { - return m.SourceCluster +func (x *ReadDLQMessagesRequest) GetSourceCluster() string { + if x != nil { + return x.SourceCluster } return "" } -func (m *ReadDLQMessagesRequest) GetInclusiveEndMessageId() int64 { - if m != nil { - return m.InclusiveEndMessageId +func (x *ReadDLQMessagesRequest) GetInclusiveEndMessageId() int64 { + if x != nil { + return x.InclusiveEndMessageId } return 0 } -func (m *ReadDLQMessagesRequest) GetPageSize() int32 { - if m != nil { - return m.PageSize +func (x *ReadDLQMessagesRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize } return 0 } -func (m *ReadDLQMessagesRequest) GetNextPageToken() []byte { - if m != nil { - return m.NextPageToken +func (x *ReadDLQMessagesRequest) GetNextPageToken() []byte { + if x != nil { + return x.NextPageToken } return nil } type ReadDLQMessagesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Type v11.DLQType `protobuf:"varint,1,opt,name=type,proto3,enum=uber.cadence.shared.v1.DLQType" json:"type,omitempty"` ReplicationTasks []*v11.ReplicationTask `protobuf:"bytes,2,rep,name=replication_tasks,json=replicationTasks,proto3" json:"replication_tasks,omitempty"` NextPageToken []byte `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } -func (m *ReadDLQMessagesResponse) Reset() { *m = ReadDLQMessagesResponse{} } -func (*ReadDLQMessagesResponse) ProtoMessage() {} -func (*ReadDLQMessagesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c6fc96d64a8b67fd, []int{27} -} -func (m *ReadDLQMessagesResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReadDLQMessagesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReadDLQMessagesResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ReadDLQMessagesResponse) Reset() { + *x = ReadDLQMessagesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ReadDLQMessagesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReadDLQMessagesResponse.Merge(m, src) -} -func (m *ReadDLQMessagesResponse) XXX_Size() int { - return m.Size() + +func (x *ReadDLQMessagesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ReadDLQMessagesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ReadDLQMessagesResponse.DiscardUnknown(m) + +func (*ReadDLQMessagesResponse) ProtoMessage() {} + +func (x *ReadDLQMessagesResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ReadDLQMessagesResponse proto.InternalMessageInfo +// Deprecated: Use ReadDLQMessagesResponse.ProtoReflect.Descriptor instead. +func (*ReadDLQMessagesResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_admin_v1_service_proto_rawDescGZIP(), []int{27} +} -func (m *ReadDLQMessagesResponse) GetType() v11.DLQType { - if m != nil { - return m.Type +func (x *ReadDLQMessagesResponse) GetType() v11.DLQType { + if x != nil { + return x.Type } - return v11.DLQ_TYPE_INVALID + return v11.DLQType_DLQ_TYPE_INVALID } -func (m *ReadDLQMessagesResponse) GetReplicationTasks() []*v11.ReplicationTask { - if m != nil { - return m.ReplicationTasks +func (x *ReadDLQMessagesResponse) GetReplicationTasks() []*v11.ReplicationTask { + if x != nil { + return x.ReplicationTasks } return nil } -func (m *ReadDLQMessagesResponse) GetNextPageToken() []byte { - if m != nil { - return m.NextPageToken +func (x *ReadDLQMessagesResponse) GetNextPageToken() []byte { + if x != nil { + return x.NextPageToken } return nil } type PurgeDLQMessagesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Type v11.DLQType `protobuf:"varint,1,opt,name=type,proto3,enum=uber.cadence.shared.v1.DLQType" json:"type,omitempty"` ShardId int32 `protobuf:"varint,2,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"` SourceCluster string `protobuf:"bytes,3,opt,name=source_cluster,json=sourceCluster,proto3" json:"source_cluster,omitempty"` InclusiveEndMessageId int64 `protobuf:"varint,4,opt,name=inclusive_end_message_id,json=inclusiveEndMessageId,proto3" json:"inclusive_end_message_id,omitempty"` } -func (m *PurgeDLQMessagesRequest) Reset() { *m = PurgeDLQMessagesRequest{} } -func (*PurgeDLQMessagesRequest) ProtoMessage() {} -func (*PurgeDLQMessagesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c6fc96d64a8b67fd, []int{28} -} -func (m *PurgeDLQMessagesRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PurgeDLQMessagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PurgeDLQMessagesRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *PurgeDLQMessagesRequest) Reset() { + *x = PurgeDLQMessagesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *PurgeDLQMessagesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PurgeDLQMessagesRequest.Merge(m, src) -} -func (m *PurgeDLQMessagesRequest) XXX_Size() int { - return m.Size() + +func (x *PurgeDLQMessagesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PurgeDLQMessagesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PurgeDLQMessagesRequest.DiscardUnknown(m) + +func (*PurgeDLQMessagesRequest) ProtoMessage() {} + +func (x *PurgeDLQMessagesRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[28] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PurgeDLQMessagesRequest proto.InternalMessageInfo +// Deprecated: Use PurgeDLQMessagesRequest.ProtoReflect.Descriptor instead. +func (*PurgeDLQMessagesRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_admin_v1_service_proto_rawDescGZIP(), []int{28} +} -func (m *PurgeDLQMessagesRequest) GetType() v11.DLQType { - if m != nil { - return m.Type +func (x *PurgeDLQMessagesRequest) GetType() v11.DLQType { + if x != nil { + return x.Type } - return v11.DLQ_TYPE_INVALID + return v11.DLQType_DLQ_TYPE_INVALID } -func (m *PurgeDLQMessagesRequest) GetShardId() int32 { - if m != nil { - return m.ShardId +func (x *PurgeDLQMessagesRequest) GetShardId() int32 { + if x != nil { + return x.ShardId } return 0 } -func (m *PurgeDLQMessagesRequest) GetSourceCluster() string { - if m != nil { - return m.SourceCluster +func (x *PurgeDLQMessagesRequest) GetSourceCluster() string { + if x != nil { + return x.SourceCluster } return "" } -func (m *PurgeDLQMessagesRequest) GetInclusiveEndMessageId() int64 { - if m != nil { - return m.InclusiveEndMessageId +func (x *PurgeDLQMessagesRequest) GetInclusiveEndMessageId() int64 { + if x != nil { + return x.InclusiveEndMessageId } return 0 } type PurgeDLQMessagesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *PurgeDLQMessagesResponse) Reset() { *m = PurgeDLQMessagesResponse{} } -func (*PurgeDLQMessagesResponse) ProtoMessage() {} -func (*PurgeDLQMessagesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c6fc96d64a8b67fd, []int{29} -} -func (m *PurgeDLQMessagesResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PurgeDLQMessagesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PurgeDLQMessagesResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *PurgeDLQMessagesResponse) Reset() { + *x = PurgeDLQMessagesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *PurgeDLQMessagesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PurgeDLQMessagesResponse.Merge(m, src) -} -func (m *PurgeDLQMessagesResponse) XXX_Size() int { - return m.Size() + +func (x *PurgeDLQMessagesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PurgeDLQMessagesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PurgeDLQMessagesResponse.DiscardUnknown(m) + +func (*PurgeDLQMessagesResponse) ProtoMessage() {} + +func (x *PurgeDLQMessagesResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[29] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PurgeDLQMessagesResponse proto.InternalMessageInfo +// Deprecated: Use PurgeDLQMessagesResponse.ProtoReflect.Descriptor instead. +func (*PurgeDLQMessagesResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_admin_v1_service_proto_rawDescGZIP(), []int{29} +} type MergeDLQMessagesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Type v11.DLQType `protobuf:"varint,1,opt,name=type,proto3,enum=uber.cadence.shared.v1.DLQType" json:"type,omitempty"` ShardId int32 `protobuf:"varint,2,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"` SourceCluster string `protobuf:"bytes,3,opt,name=source_cluster,json=sourceCluster,proto3" json:"source_cluster,omitempty"` @@ -1640,210 +1742,225 @@ type MergeDLQMessagesRequest struct { NextPageToken []byte `protobuf:"bytes,6,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } -func (m *MergeDLQMessagesRequest) Reset() { *m = MergeDLQMessagesRequest{} } -func (*MergeDLQMessagesRequest) ProtoMessage() {} -func (*MergeDLQMessagesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c6fc96d64a8b67fd, []int{30} -} -func (m *MergeDLQMessagesRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MergeDLQMessagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MergeDLQMessagesRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *MergeDLQMessagesRequest) Reset() { + *x = MergeDLQMessagesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *MergeDLQMessagesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_MergeDLQMessagesRequest.Merge(m, src) -} -func (m *MergeDLQMessagesRequest) XXX_Size() int { - return m.Size() + +func (x *MergeDLQMessagesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MergeDLQMessagesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_MergeDLQMessagesRequest.DiscardUnknown(m) + +func (*MergeDLQMessagesRequest) ProtoMessage() {} + +func (x *MergeDLQMessagesRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[30] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_MergeDLQMessagesRequest proto.InternalMessageInfo +// Deprecated: Use MergeDLQMessagesRequest.ProtoReflect.Descriptor instead. +func (*MergeDLQMessagesRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_admin_v1_service_proto_rawDescGZIP(), []int{30} +} -func (m *MergeDLQMessagesRequest) GetType() v11.DLQType { - if m != nil { - return m.Type +func (x *MergeDLQMessagesRequest) GetType() v11.DLQType { + if x != nil { + return x.Type } - return v11.DLQ_TYPE_INVALID + return v11.DLQType_DLQ_TYPE_INVALID } -func (m *MergeDLQMessagesRequest) GetShardId() int32 { - if m != nil { - return m.ShardId +func (x *MergeDLQMessagesRequest) GetShardId() int32 { + if x != nil { + return x.ShardId } return 0 } -func (m *MergeDLQMessagesRequest) GetSourceCluster() string { - if m != nil { - return m.SourceCluster +func (x *MergeDLQMessagesRequest) GetSourceCluster() string { + if x != nil { + return x.SourceCluster } return "" } -func (m *MergeDLQMessagesRequest) GetInclusiveEndMessageId() int64 { - if m != nil { - return m.InclusiveEndMessageId +func (x *MergeDLQMessagesRequest) GetInclusiveEndMessageId() int64 { + if x != nil { + return x.InclusiveEndMessageId } return 0 } -func (m *MergeDLQMessagesRequest) GetPageSize() int32 { - if m != nil { - return m.PageSize +func (x *MergeDLQMessagesRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize } return 0 } -func (m *MergeDLQMessagesRequest) GetNextPageToken() []byte { - if m != nil { - return m.NextPageToken +func (x *MergeDLQMessagesRequest) GetNextPageToken() []byte { + if x != nil { + return x.NextPageToken } return nil } type MergeDLQMessagesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + NextPageToken []byte `protobuf:"bytes,1,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } -func (m *MergeDLQMessagesResponse) Reset() { *m = MergeDLQMessagesResponse{} } -func (*MergeDLQMessagesResponse) ProtoMessage() {} -func (*MergeDLQMessagesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c6fc96d64a8b67fd, []int{31} -} -func (m *MergeDLQMessagesResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MergeDLQMessagesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MergeDLQMessagesResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *MergeDLQMessagesResponse) Reset() { + *x = MergeDLQMessagesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *MergeDLQMessagesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MergeDLQMessagesResponse.Merge(m, src) -} -func (m *MergeDLQMessagesResponse) XXX_Size() int { - return m.Size() + +func (x *MergeDLQMessagesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MergeDLQMessagesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MergeDLQMessagesResponse.DiscardUnknown(m) + +func (*MergeDLQMessagesResponse) ProtoMessage() {} + +func (x *MergeDLQMessagesResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[31] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_MergeDLQMessagesResponse proto.InternalMessageInfo +// Deprecated: Use MergeDLQMessagesResponse.ProtoReflect.Descriptor instead. +func (*MergeDLQMessagesResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_admin_v1_service_proto_rawDescGZIP(), []int{31} +} -func (m *MergeDLQMessagesResponse) GetNextPageToken() []byte { - if m != nil { - return m.NextPageToken +func (x *MergeDLQMessagesResponse) GetNextPageToken() []byte { + if x != nil { + return x.NextPageToken } return nil } type RefreshWorkflowTasksRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` } -func (m *RefreshWorkflowTasksRequest) Reset() { *m = RefreshWorkflowTasksRequest{} } -func (*RefreshWorkflowTasksRequest) ProtoMessage() {} -func (*RefreshWorkflowTasksRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c6fc96d64a8b67fd, []int{32} -} -func (m *RefreshWorkflowTasksRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RefreshWorkflowTasksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RefreshWorkflowTasksRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RefreshWorkflowTasksRequest) Reset() { + *x = RefreshWorkflowTasksRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RefreshWorkflowTasksRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RefreshWorkflowTasksRequest.Merge(m, src) -} -func (m *RefreshWorkflowTasksRequest) XXX_Size() int { - return m.Size() + +func (x *RefreshWorkflowTasksRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RefreshWorkflowTasksRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RefreshWorkflowTasksRequest.DiscardUnknown(m) + +func (*RefreshWorkflowTasksRequest) ProtoMessage() {} + +func (x *RefreshWorkflowTasksRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[32] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RefreshWorkflowTasksRequest proto.InternalMessageInfo +// Deprecated: Use RefreshWorkflowTasksRequest.ProtoReflect.Descriptor instead. +func (*RefreshWorkflowTasksRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_admin_v1_service_proto_rawDescGZIP(), []int{32} +} -func (m *RefreshWorkflowTasksRequest) GetDomain() string { - if m != nil { - return m.Domain +func (x *RefreshWorkflowTasksRequest) GetDomain() string { + if x != nil { + return x.Domain } return "" } -func (m *RefreshWorkflowTasksRequest) GetWorkflowExecution() *v1.WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *RefreshWorkflowTasksRequest) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } type RefreshWorkflowTasksResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *RefreshWorkflowTasksResponse) Reset() { *m = RefreshWorkflowTasksResponse{} } -func (*RefreshWorkflowTasksResponse) ProtoMessage() {} -func (*RefreshWorkflowTasksResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c6fc96d64a8b67fd, []int{33} -} -func (m *RefreshWorkflowTasksResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RefreshWorkflowTasksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RefreshWorkflowTasksResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RefreshWorkflowTasksResponse) Reset() { + *x = RefreshWorkflowTasksResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RefreshWorkflowTasksResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RefreshWorkflowTasksResponse.Merge(m, src) -} -func (m *RefreshWorkflowTasksResponse) XXX_Size() int { - return m.Size() + +func (x *RefreshWorkflowTasksResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RefreshWorkflowTasksResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RefreshWorkflowTasksResponse.DiscardUnknown(m) + +func (*RefreshWorkflowTasksResponse) ProtoMessage() {} + +func (x *RefreshWorkflowTasksResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[33] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RefreshWorkflowTasksResponse proto.InternalMessageInfo +// Deprecated: Use RefreshWorkflowTasksResponse.ProtoReflect.Descriptor instead. +func (*RefreshWorkflowTasksResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_admin_v1_service_proto_rawDescGZIP(), []int{33} +} type ResendReplicationTasksRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + DomainId string `protobuf:"bytes,1,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` RemoteCluster string `protobuf:"bytes,3,opt,name=remote_cluster,json=remoteCluster,proto3" json:"remote_cluster,omitempty"` @@ -1851,9570 +1968,1220 @@ type ResendReplicationTasksRequest struct { EndEvent *v11.VersionHistoryItem `protobuf:"bytes,5,opt,name=end_event,json=endEvent,proto3" json:"end_event,omitempty"` } -func (m *ResendReplicationTasksRequest) Reset() { *m = ResendReplicationTasksRequest{} } -func (*ResendReplicationTasksRequest) ProtoMessage() {} -func (*ResendReplicationTasksRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c6fc96d64a8b67fd, []int{34} -} -func (m *ResendReplicationTasksRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResendReplicationTasksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ResendReplicationTasksRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ResendReplicationTasksRequest) Reset() { + *x = ResendReplicationTasksRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ResendReplicationTasksRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResendReplicationTasksRequest.Merge(m, src) -} -func (m *ResendReplicationTasksRequest) XXX_Size() int { - return m.Size() + +func (x *ResendReplicationTasksRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ResendReplicationTasksRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ResendReplicationTasksRequest.DiscardUnknown(m) + +func (*ResendReplicationTasksRequest) ProtoMessage() {} + +func (x *ResendReplicationTasksRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[34] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ResendReplicationTasksRequest proto.InternalMessageInfo +// Deprecated: Use ResendReplicationTasksRequest.ProtoReflect.Descriptor instead. +func (*ResendReplicationTasksRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_admin_v1_service_proto_rawDescGZIP(), []int{34} +} -func (m *ResendReplicationTasksRequest) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *ResendReplicationTasksRequest) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } -func (m *ResendReplicationTasksRequest) GetWorkflowExecution() *v1.WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *ResendReplicationTasksRequest) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *ResendReplicationTasksRequest) GetRemoteCluster() string { - if m != nil { - return m.RemoteCluster +func (x *ResendReplicationTasksRequest) GetRemoteCluster() string { + if x != nil { + return x.RemoteCluster } return "" } -func (m *ResendReplicationTasksRequest) GetStartEvent() *v11.VersionHistoryItem { - if m != nil { - return m.StartEvent +func (x *ResendReplicationTasksRequest) GetStartEvent() *v11.VersionHistoryItem { + if x != nil { + return x.StartEvent } return nil } -func (m *ResendReplicationTasksRequest) GetEndEvent() *v11.VersionHistoryItem { - if m != nil { - return m.EndEvent +func (x *ResendReplicationTasksRequest) GetEndEvent() *v11.VersionHistoryItem { + if x != nil { + return x.EndEvent } return nil } type ResendReplicationTasksResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ResendReplicationTasksResponse) Reset() { *m = ResendReplicationTasksResponse{} } -func (*ResendReplicationTasksResponse) ProtoMessage() {} -func (*ResendReplicationTasksResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c6fc96d64a8b67fd, []int{35} -} -func (m *ResendReplicationTasksResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResendReplicationTasksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ResendReplicationTasksResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ResendReplicationTasksResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResendReplicationTasksResponse.Merge(m, src) -} -func (m *ResendReplicationTasksResponse) XXX_Size() int { - return m.Size() -} -func (m *ResendReplicationTasksResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ResendReplicationTasksResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ResendReplicationTasksResponse proto.InternalMessageInfo - -func init() { - proto.RegisterType((*DescribeWorkflowExecutionRequest)(nil), "uber.cadence.admin.v1.DescribeWorkflowExecutionRequest") - proto.RegisterType((*DescribeWorkflowExecutionResponse)(nil), "uber.cadence.admin.v1.DescribeWorkflowExecutionResponse") - proto.RegisterType((*DescribeHistoryHostRequest)(nil), "uber.cadence.admin.v1.DescribeHistoryHostRequest") - proto.RegisterType((*DescribeHistoryHostResponse)(nil), "uber.cadence.admin.v1.DescribeHistoryHostResponse") - proto.RegisterType((*CloseShardRequest)(nil), "uber.cadence.admin.v1.CloseShardRequest") - proto.RegisterType((*CloseShardResponse)(nil), "uber.cadence.admin.v1.CloseShardResponse") - proto.RegisterType((*RemoveTaskRequest)(nil), "uber.cadence.admin.v1.RemoveTaskRequest") - proto.RegisterType((*RemoveTaskResponse)(nil), "uber.cadence.admin.v1.RemoveTaskResponse") - proto.RegisterType((*ResetQueueRequest)(nil), "uber.cadence.admin.v1.ResetQueueRequest") - proto.RegisterType((*ResetQueueResponse)(nil), "uber.cadence.admin.v1.ResetQueueResponse") - proto.RegisterType((*DescribeQueueRequest)(nil), "uber.cadence.admin.v1.DescribeQueueRequest") - proto.RegisterType((*DescribeQueueResponse)(nil), "uber.cadence.admin.v1.DescribeQueueResponse") - proto.RegisterType((*GetWorkflowExecutionRawHistoryV2Request)(nil), "uber.cadence.admin.v1.GetWorkflowExecutionRawHistoryV2Request") - proto.RegisterType((*GetWorkflowExecutionRawHistoryV2Response)(nil), "uber.cadence.admin.v1.GetWorkflowExecutionRawHistoryV2Response") - proto.RegisterType((*GetReplicationMessagesRequest)(nil), "uber.cadence.admin.v1.GetReplicationMessagesRequest") - proto.RegisterType((*GetReplicationMessagesResponse)(nil), "uber.cadence.admin.v1.GetReplicationMessagesResponse") - proto.RegisterMapType((map[int32]*v11.ReplicationMessages)(nil), "uber.cadence.admin.v1.GetReplicationMessagesResponse.ShardMessagesEntry") - proto.RegisterType((*GetDLQReplicationMessagesRequest)(nil), "uber.cadence.admin.v1.GetDLQReplicationMessagesRequest") - proto.RegisterType((*GetDLQReplicationMessagesResponse)(nil), "uber.cadence.admin.v1.GetDLQReplicationMessagesResponse") - proto.RegisterType((*GetDomainReplicationMessagesRequest)(nil), "uber.cadence.admin.v1.GetDomainReplicationMessagesRequest") - proto.RegisterType((*GetDomainReplicationMessagesResponse)(nil), "uber.cadence.admin.v1.GetDomainReplicationMessagesResponse") - proto.RegisterType((*ReapplyEventsRequest)(nil), "uber.cadence.admin.v1.ReapplyEventsRequest") - proto.RegisterType((*ReapplyEventsResponse)(nil), "uber.cadence.admin.v1.ReapplyEventsResponse") - proto.RegisterType((*AddSearchAttributeRequest)(nil), "uber.cadence.admin.v1.AddSearchAttributeRequest") - proto.RegisterMapType((map[string]v1.IndexedValueType)(nil), "uber.cadence.admin.v1.AddSearchAttributeRequest.SearchAttributeEntry") - proto.RegisterType((*AddSearchAttributeResponse)(nil), "uber.cadence.admin.v1.AddSearchAttributeResponse") - proto.RegisterType((*DescribeClusterRequest)(nil), "uber.cadence.admin.v1.DescribeClusterRequest") - proto.RegisterType((*DescribeClusterResponse)(nil), "uber.cadence.admin.v1.DescribeClusterResponse") - proto.RegisterType((*ReadDLQMessagesRequest)(nil), "uber.cadence.admin.v1.ReadDLQMessagesRequest") - proto.RegisterType((*ReadDLQMessagesResponse)(nil), "uber.cadence.admin.v1.ReadDLQMessagesResponse") - proto.RegisterType((*PurgeDLQMessagesRequest)(nil), "uber.cadence.admin.v1.PurgeDLQMessagesRequest") - proto.RegisterType((*PurgeDLQMessagesResponse)(nil), "uber.cadence.admin.v1.PurgeDLQMessagesResponse") - proto.RegisterType((*MergeDLQMessagesRequest)(nil), "uber.cadence.admin.v1.MergeDLQMessagesRequest") - proto.RegisterType((*MergeDLQMessagesResponse)(nil), "uber.cadence.admin.v1.MergeDLQMessagesResponse") - proto.RegisterType((*RefreshWorkflowTasksRequest)(nil), "uber.cadence.admin.v1.RefreshWorkflowTasksRequest") - proto.RegisterType((*RefreshWorkflowTasksResponse)(nil), "uber.cadence.admin.v1.RefreshWorkflowTasksResponse") - proto.RegisterType((*ResendReplicationTasksRequest)(nil), "uber.cadence.admin.v1.ResendReplicationTasksRequest") - proto.RegisterType((*ResendReplicationTasksResponse)(nil), "uber.cadence.admin.v1.ResendReplicationTasksResponse") -} - -func init() { - proto.RegisterFile("github.com/uber/cadence/.gen/proto/admin/v1/service.proto", fileDescriptor_c6fc96d64a8b67fd) -} - -var fileDescriptor_c6fc96d64a8b67fd = []byte{ - // 2030 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x59, 0xcd, 0x6f, 0x1c, 0x49, - 0x15, 0x77, 0xcf, 0xd8, 0x8e, 0xfd, 0x9c, 0x8c, 0xed, 0x5a, 0x7f, 0x8c, 0xdb, 0xc9, 0xc4, 0xe9, - 0xdd, 0x6c, 0x0c, 0xbb, 0x8c, 0xf1, 0x84, 0xfd, 0xd6, 0x02, 0xfe, 0xc2, 0x99, 0x25, 0x21, 0x49, - 0xdb, 0x04, 0x89, 0x4b, 0xab, 0x67, 0xfa, 0x79, 0xdc, 0x78, 0xa6, 0xbb, 0xb7, 0xab, 0x66, 0x12, - 0xaf, 0x90, 0x58, 0x21, 0xb8, 0xc1, 0x2a, 0x88, 0x03, 0x47, 0x0e, 0x5c, 0xb8, 0x72, 0x47, 0xdc, - 0x90, 0x40, 0xe2, 0x10, 0x24, 0x0e, 0x7b, 0x83, 0x38, 0x17, 0x24, 0x2e, 0x2b, 0xf1, 0x0f, 0xa0, - 0xaa, 0xae, 0x9e, 0xcf, 0xae, 0xf9, 0x70, 0x22, 0x05, 0xb8, 0x4d, 0xbf, 0x7a, 0xaf, 0xde, 0x47, - 0xbd, 0xf7, 0xab, 0xf7, 0x6a, 0xe0, 0xd5, 0x7a, 0x09, 0xc3, 0x8d, 0xb2, 0xed, 0xa0, 0x57, 0xc6, - 0x0d, 0xdb, 0xa9, 0xb9, 0xde, 0x46, 0x63, 0x73, 0x83, 0x62, 0xd8, 0x70, 0xcb, 0x98, 0x0f, 0x42, - 0x9f, 0xf9, 0x64, 0x91, 0x33, 0xe5, 0x25, 0x53, 0x5e, 0x30, 0xe5, 0x1b, 0x9b, 0xfa, 0xd5, 0x8a, - 0xef, 0x57, 0xaa, 0xb8, 0x21, 0x98, 0x4a, 0xf5, 0xa3, 0x0d, 0xe6, 0xd6, 0x90, 0x32, 0xbb, 0x16, - 0x44, 0x72, 0xfa, 0x65, 0x07, 0x03, 0xf4, 0xb8, 0x94, 0x8b, 0x74, 0xa3, 0xe2, 0x57, 0x7c, 0x41, - 0x97, 0xab, 0x6b, 0x9d, 0xaa, 0x03, 0x97, 0x2b, 0x2e, 0xfb, 0xb5, 0x9a, 0xef, 0x49, 0x8e, 0xd7, - 0x92, 0x38, 0x1a, 0x2e, 0x75, 0x4b, 0x6e, 0xd5, 0x65, 0xa7, 0x89, 0x5c, 0xf4, 0xd8, 0x0e, 0xd1, - 0x11, 0x5b, 0x55, 0xeb, 0x94, 0x61, 0x38, 0x80, 0xeb, 0xd8, 0xa5, 0xcc, 0x0f, 0xe3, 0xbd, 0x0c, - 0x05, 0xd7, 0xc7, 0x75, 0xac, 0xcb, 0x68, 0xe8, 0xeb, 0x0a, 0x9e, 0x10, 0x83, 0xaa, 0x5b, 0xb6, - 0x99, 0x1b, 0xdb, 0x6f, 0xfc, 0x42, 0x83, 0xb5, 0x5d, 0xa4, 0xe5, 0xd0, 0x2d, 0xe1, 0xf7, 0xfc, - 0xf0, 0xe4, 0xa8, 0xea, 0x3f, 0xdc, 0x7b, 0x84, 0xe5, 0x3a, 0xe7, 0x31, 0xf1, 0xe3, 0x3a, 0x52, - 0x46, 0x96, 0x60, 0xd2, 0xf1, 0x6b, 0xb6, 0xeb, 0x65, 0xb5, 0x35, 0x6d, 0x7d, 0xda, 0x94, 0x5f, - 0xe4, 0xbb, 0x40, 0x1e, 0x4a, 0x19, 0x0b, 0x63, 0xa1, 0x6c, 0x6a, 0x4d, 0x5b, 0x9f, 0x29, 0xbc, - 0x9e, 0xef, 0x3c, 0x91, 0xc0, 0xcd, 0x37, 0x36, 0xf3, 0xbd, 0x2a, 0xe6, 0x1f, 0x76, 0x93, 0x8c, - 0xbf, 0x6a, 0x70, 0xad, 0x8f, 0x4d, 0x34, 0xf0, 0x3d, 0x8a, 0x64, 0x05, 0xa6, 0xb8, 0x63, 0x8e, - 0xe5, 0x3a, 0xc2, 0xac, 0x09, 0xf3, 0x82, 0xf8, 0x2e, 0x3a, 0xe4, 0x1a, 0x5c, 0x94, 0x31, 0xb3, - 0x6c, 0xc7, 0x09, 0x85, 0x45, 0xd3, 0xe6, 0x8c, 0xa4, 0x6d, 0x39, 0x4e, 0x48, 0x6e, 0xc2, 0x52, - 0xad, 0xce, 0xec, 0x52, 0x15, 0x2d, 0xca, 0x6c, 0x86, 0x96, 0xeb, 0x59, 0x65, 0xbb, 0x7c, 0x8c, - 0xd9, 0xb4, 0x60, 0x7e, 0x45, 0xae, 0x1e, 0xf0, 0xc5, 0xa2, 0xb7, 0xc3, 0x97, 0xc8, 0x7b, 0xb0, - 0xd2, 0x23, 0xe4, 0xd8, 0xcc, 0x2e, 0xd9, 0x14, 0xb3, 0xe3, 0x42, 0x6e, 0xa9, 0x53, 0x6e, 0x57, - 0xae, 0x1a, 0xbf, 0xd3, 0x40, 0x8f, 0x7d, 0xba, 0x15, 0xd9, 0x71, 0xcb, 0xa7, 0x2c, 0x8e, 0x30, - 0xb7, 0xd8, 0xa7, 0x4c, 0x98, 0x8b, 0x94, 0xca, 0x38, 0xcf, 0x70, 0xda, 0x56, 0x44, 0xea, 0xf0, - 0x37, 0xd5, 0xe9, 0x6f, 0xf2, 0x39, 0xa4, 0x9f, 0xf7, 0x1c, 0x7e, 0x9c, 0x82, 0xd5, 0x44, 0x9b, - 0xe5, 0x09, 0xac, 0xc3, 0x9c, 0x57, 0xaf, 0x95, 0x30, 0xb4, 0xfc, 0x23, 0x4b, 0xd8, 0x42, 0xe5, - 0x49, 0x64, 0x22, 0xfa, 0xdd, 0xa3, 0x03, 0x41, 0x25, 0xab, 0x30, 0x1d, 0xdb, 0x4e, 0xb3, 0xa9, - 0xb5, 0xf4, 0xfa, 0x84, 0x39, 0x25, 0x8d, 0xa7, 0xe4, 0x23, 0xb8, 0x18, 0xe5, 0x53, 0xdb, 0x01, - 0xcc, 0x14, 0x6e, 0x74, 0xda, 0x1d, 0xe5, 0x30, 0x37, 0x7d, 0x57, 0xf0, 0x8a, 0x03, 0x29, 0x7a, - 0x47, 0xbe, 0x39, 0xe3, 0xb4, 0x08, 0xe4, 0x6d, 0x58, 0x8e, 0x14, 0x95, 0x7d, 0x8f, 0x85, 0x7e, - 0xb5, 0x8a, 0xa1, 0x38, 0xaa, 0x3a, 0x95, 0xe7, 0xb3, 0x28, 0x96, 0x77, 0x9a, 0xab, 0x07, 0x62, - 0x91, 0x64, 0xe1, 0x42, 0x1c, 0xfa, 0x09, 0xc1, 0x17, 0x7f, 0x1a, 0x79, 0x98, 0xdf, 0xa9, 0xfa, - 0x14, 0x85, 0x27, 0xf1, 0x71, 0xa9, 0x73, 0xcf, 0x58, 0x00, 0xd2, 0xce, 0x1f, 0x85, 0x8a, 0xa7, - 0xf4, 0xbc, 0x89, 0x35, 0xbf, 0x81, 0x87, 0x36, 0x3d, 0x19, 0xbc, 0x0d, 0xf9, 0x10, 0xa6, 0x99, - 0x4d, 0x4f, 0x2c, 0x76, 0x1a, 0xa0, 0x38, 0xee, 0x4c, 0x61, 0x4d, 0x15, 0x11, 0xbe, 0xe5, 0xe1, - 0x69, 0x80, 0xe6, 0x14, 0x93, 0xbf, 0xc8, 0x32, 0x5c, 0x10, 0xe2, 0xae, 0x23, 0xc2, 0x99, 0x36, - 0x27, 0xf9, 0x67, 0xd1, 0x21, 0x45, 0x98, 0x6d, 0xa1, 0x93, 0xc5, 0xd1, 0x50, 0x04, 0x66, 0xa6, - 0xa0, 0xe7, 0x23, 0xa8, 0xcc, 0xc7, 0x50, 0x99, 0x3f, 0x8c, 0xa1, 0x72, 0x7b, 0xfc, 0xf1, 0xdf, - 0xaf, 0x6a, 0x66, 0xa6, 0x25, 0xc8, 0x97, 0xb8, 0xa7, 0xed, 0x2e, 0x49, 0x4f, 0x1f, 0x0b, 0x4f, - 0x29, 0xb2, 0xfb, 0x1c, 0x8f, 0x86, 0xf0, 0xf4, 0x1a, 0x5c, 0x94, 0x30, 0x68, 0x79, 0x76, 0x0d, - 0xe3, 0x62, 0x95, 0xb4, 0xef, 0xd8, 0x35, 0xec, 0x0c, 0x46, 0x7a, 0xd4, 0x60, 0x44, 0x86, 0xb6, - 0x2c, 0x92, 0x86, 0xfe, 0x52, 0x83, 0x85, 0x38, 0xbb, 0xff, 0x7b, 0x6c, 0xbd, 0x0b, 0x8b, 0x5d, - 0x46, 0xc9, 0x62, 0x7b, 0x1b, 0x96, 0x83, 0xd0, 0x2f, 0x23, 0xa5, 0xae, 0x57, 0xb1, 0x04, 0xd8, - 0x47, 0x20, 0xc4, 0x6b, 0x2e, 0xcd, 0x33, 0xbb, 0xb5, 0x2c, 0x24, 0x05, 0x02, 0x51, 0xe3, 0xdf, - 0x29, 0xb8, 0xb1, 0x8f, 0xac, 0xb7, 0xe0, 0xed, 0x87, 0xb2, 0xa6, 0x1f, 0x14, 0x5e, 0x0e, 0xce, - 0x93, 0x6f, 0xc3, 0x0c, 0x65, 0x76, 0xc8, 0x2c, 0x6c, 0xa0, 0xc7, 0x64, 0xdd, 0x7f, 0x59, 0x15, - 0xac, 0x07, 0x18, 0x52, 0xd7, 0xf7, 0xa4, 0xd1, 0x45, 0x86, 0x35, 0x13, 0x84, 0xf8, 0x1e, 0x97, - 0x26, 0xfb, 0x30, 0x8d, 0x9e, 0x23, 0xb7, 0x1a, 0x1f, 0x79, 0xab, 0x29, 0xf4, 0x9c, 0x68, 0xa3, - 0x55, 0x98, 0x0e, 0xec, 0x0a, 0x5a, 0xd4, 0xfd, 0x04, 0x05, 0x18, 0x4c, 0x98, 0x53, 0x9c, 0x70, - 0xe0, 0x7e, 0x82, 0xe4, 0x75, 0x98, 0xf5, 0xf0, 0x11, 0xb3, 0x04, 0x07, 0xf3, 0x4f, 0xd0, 0xcb, - 0x4e, 0xae, 0x69, 0xeb, 0x17, 0xcd, 0x4b, 0x9c, 0x7c, 0xcf, 0xae, 0xe0, 0x21, 0x27, 0x1a, 0xff, - 0xd2, 0x60, 0x7d, 0x70, 0xd4, 0xe5, 0xd1, 0x26, 0x6c, 0xaa, 0x25, 0x6c, 0x4a, 0xbe, 0x05, 0xb3, - 0xf1, 0xb5, 0x56, 0xb2, 0x59, 0xf9, 0x18, 0x23, 0x2c, 0x9d, 0x29, 0x5c, 0x49, 0x3c, 0x03, 0x7e, - 0xf7, 0x6c, 0x57, 0xfd, 0x92, 0x99, 0x91, 0x52, 0xdb, 0x91, 0x10, 0xb9, 0x0b, 0xb3, 0x8d, 0x28, - 0x02, 0x96, 0x5c, 0x49, 0xbe, 0x2b, 0x54, 0x01, 0x33, 0x33, 0x8d, 0x8e, 0x6f, 0xe3, 0x27, 0x1a, - 0x5c, 0xd9, 0x47, 0x66, 0xb6, 0xba, 0x8b, 0x3b, 0x48, 0xa9, 0x5d, 0x41, 0x1a, 0x67, 0xd6, 0x37, - 0x61, 0x52, 0x38, 0x16, 0x25, 0xeb, 0x4c, 0x61, 0x5d, 0xa5, 0xa9, 0x6d, 0x0f, 0xe1, 0xb4, 0x29, - 0xe5, 0x86, 0x28, 0x3d, 0xe3, 0xd3, 0x14, 0xe4, 0x54, 0x66, 0xc8, 0x50, 0xfb, 0x90, 0x89, 0x6a, - 0xbb, 0x26, 0x57, 0xa4, 0x3d, 0xb7, 0xf2, 0x89, 0xfd, 0x63, 0xbe, 0xff, 0x76, 0x79, 0x01, 0xf2, - 0x31, 0x75, 0xcf, 0x63, 0xe1, 0xa9, 0x79, 0x89, 0xb6, 0xd3, 0xf4, 0x1a, 0x90, 0x5e, 0x26, 0x32, - 0x07, 0xe9, 0x13, 0x3c, 0x95, 0xe8, 0xc2, 0x7f, 0x92, 0x2d, 0x98, 0x68, 0xd8, 0xd5, 0x3a, 0xca, - 0xaa, 0x7a, 0x63, 0x88, 0xf8, 0x34, 0xad, 0x89, 0x24, 0xdf, 0x4f, 0xbd, 0xab, 0x19, 0x1e, 0xac, - 0xed, 0x23, 0xdb, 0xbd, 0x7d, 0xbf, 0xcf, 0x59, 0x7c, 0x04, 0x10, 0xdd, 0x0d, 0xde, 0x91, 0x1f, - 0xfb, 0x3f, 0x8c, 0x3e, 0x8e, 0x56, 0xe2, 0xc6, 0x15, 0x00, 0xc7, 0x7f, 0x51, 0xe3, 0x14, 0xae, - 0xf5, 0xd1, 0x27, 0x83, 0x7e, 0x08, 0xf3, 0x6d, 0x8d, 0xa7, 0xc5, 0xa5, 0x63, 0xbd, 0x37, 0x86, - 0xd4, 0x6b, 0xce, 0x85, 0x9d, 0x04, 0x6a, 0xfc, 0x41, 0x83, 0x57, 0xb9, 0x6e, 0x01, 0x51, 0x7d, - 0xdc, 0x7d, 0x0f, 0x56, 0xaa, 0x36, 0x65, 0x56, 0x88, 0x2c, 0x74, 0xb1, 0x81, 0xcd, 0xb3, 0x8f, - 0xf1, 0x3d, 0x6d, 0x2e, 0x71, 0x06, 0x33, 0x5e, 0x97, 0x1b, 0x14, 0x9d, 0xa6, 0xa8, 0x44, 0xd6, - 0x4e, 0xd1, 0x54, 0x4b, 0xf4, 0x5e, 0xbc, 0xde, 0x12, 0xed, 0x4e, 0xd7, 0x74, 0x6f, 0xba, 0xfa, - 0xf0, 0x5a, 0x7f, 0xfb, 0x65, 0xf8, 0xf6, 0x61, 0xaa, 0x2d, 0x5b, 0x47, 0xce, 0x8e, 0xa6, 0xb0, - 0xf1, 0x7b, 0x0d, 0x16, 0x4c, 0xb4, 0x83, 0xa0, 0x7a, 0x2a, 0xa0, 0x8e, 0xbe, 0x24, 0xdc, 0x7f, - 0x0b, 0x26, 0x05, 0x4c, 0x53, 0x09, 0x3b, 0x03, 0xe0, 0x4b, 0x32, 0x1b, 0xcb, 0xb0, 0xd8, 0x65, - 0xbd, 0xbc, 0xc9, 0x7f, 0x9d, 0x82, 0x95, 0x2d, 0xc7, 0x39, 0x40, 0x3b, 0x2c, 0x1f, 0x6f, 0x31, - 0x16, 0xba, 0xa5, 0x3a, 0x6b, 0x5e, 0xe7, 0x01, 0xcc, 0x51, 0xb1, 0x62, 0xd9, 0xf1, 0x92, 0x4c, - 0xbe, 0x3d, 0x45, 0xd1, 0x2b, 0xf7, 0xca, 0x77, 0x91, 0xa3, 0x8a, 0x9f, 0xa5, 0x9d, 0x54, 0x72, - 0x1d, 0x32, 0x14, 0xcb, 0xf5, 0x50, 0x74, 0x58, 0x02, 0xce, 0x23, 0xb0, 0xba, 0x14, 0x53, 0x05, - 0xb2, 0xe9, 0x2e, 0x2c, 0x24, 0xed, 0xd7, 0x0e, 0x0e, 0xd3, 0x11, 0x38, 0x7c, 0xd0, 0x0e, 0x0e, - 0x99, 0xc2, 0xf5, 0xc4, 0x78, 0x15, 0x3d, 0x07, 0x1f, 0xa1, 0xf3, 0x80, 0x33, 0x8a, 0xa6, 0xa2, - 0x0d, 0x16, 0x2e, 0x83, 0x9e, 0xe4, 0x94, 0x8c, 0x5f, 0x16, 0x96, 0xe2, 0x9e, 0x63, 0x27, 0xca, - 0x4f, 0xe9, 0xaf, 0xf1, 0x37, 0x0d, 0x96, 0x7b, 0x96, 0x64, 0x5a, 0x1e, 0xc3, 0x0a, 0xad, 0x07, - 0x81, 0x1f, 0x32, 0x74, 0xac, 0x72, 0xd5, 0x45, 0x8f, 0x59, 0xf2, 0x5e, 0x88, 0xf3, 0xf4, 0xcd, - 0x44, 0x43, 0x0f, 0x62, 0xa9, 0x1d, 0x21, 0x24, 0xef, 0x16, 0x6a, 0x2e, 0xd3, 0xe4, 0x05, 0x7e, - 0x5f, 0xd5, 0x90, 0xcf, 0x13, 0xf4, 0xd8, 0x0d, 0x04, 0x6c, 0x25, 0xe7, 0x60, 0xab, 0x0e, 0xee, - 0x34, 0xd9, 0x05, 0x60, 0x65, 0x6a, 0x1d, 0xdf, 0xc6, 0xcf, 0x53, 0xb0, 0x64, 0xa2, 0xed, 0xec, - 0xde, 0xbe, 0xdf, 0x8d, 0x16, 0x37, 0x61, 0x5c, 0x74, 0x6e, 0x9a, 0x88, 0xf4, 0x55, 0xe5, 0x10, - 0x72, 0xfb, 0xbe, 0x88, 0xb1, 0x60, 0xee, 0x37, 0x9a, 0xf1, 0x5c, 0xf0, 0xeb, 0x61, 0x19, 0x2d, - 0x59, 0xfa, 0x12, 0x09, 0x2e, 0x45, 0x54, 0x19, 0x54, 0xf2, 0x0e, 0x64, 0x5d, 0x8f, 0x73, 0xb8, - 0x0d, 0xb4, 0x78, 0x1f, 0xd3, 0x06, 0x34, 0xe3, 0x02, 0x68, 0x16, 0x9b, 0xeb, 0x7b, 0x5e, 0x1b, - 0xce, 0xbc, 0x90, 0x6e, 0xe5, 0x2f, 0x1a, 0x2c, 0xf7, 0xc4, 0x43, 0x1e, 0xf3, 0xb9, 0x02, 0x92, - 0x88, 0xf8, 0xa9, 0xe7, 0x44, 0xfc, 0x24, 0x77, 0xd2, 0x49, 0xee, 0xfc, 0x59, 0x83, 0xe5, 0x7b, - 0xf5, 0xb0, 0x82, 0xff, 0xfb, 0xe7, 0x6b, 0xe8, 0x90, 0xed, 0x75, 0x45, 0xd6, 0xed, 0x67, 0x29, - 0x58, 0xbe, 0x83, 0xff, 0x17, 0x7e, 0xbe, 0x98, 0x3c, 0xde, 0x86, 0x6c, 0x6f, 0x3c, 0x46, 0x6b, - 0xb2, 0x8d, 0x9f, 0x69, 0xb0, 0x6a, 0xe2, 0x51, 0x88, 0xf4, 0x38, 0xbe, 0xcc, 0x44, 0xf6, 0xbd, - 0xa4, 0xb7, 0xb0, 0x1c, 0x5c, 0x4e, 0xb6, 0x46, 0xe6, 0xc0, 0x93, 0x14, 0x5c, 0xe1, 0xc3, 0xad, - 0xe7, 0x74, 0xd5, 0x4f, 0xd3, 0xe0, 0x55, 0x98, 0x96, 0xcf, 0x2b, 0xb2, 0xdf, 0x99, 0x36, 0xa7, - 0x22, 0x82, 0xf2, 0xe5, 0xe8, 0xb9, 0x6f, 0xf8, 0xeb, 0x90, 0x09, 0xb1, 0xe6, 0xb3, 0x9e, 0x6c, - 0x89, 0xa8, 0x71, 0xb6, 0x74, 0x0d, 0x80, 0xe3, 0x2f, 0x6e, 0x00, 0x9c, 0x38, 0xff, 0x00, 0x68, - 0xac, 0x41, 0x4e, 0x15, 0xd1, 0x28, 0xe8, 0x85, 0x3f, 0xce, 0xc3, 0xd4, 0x16, 0xef, 0x16, 0xb6, - 0xee, 0x15, 0xc9, 0x67, 0x1a, 0xac, 0x28, 0x5f, 0x2b, 0xc9, 0x3b, 0x8a, 0x1e, 0x63, 0xd0, 0x9b, - 0xab, 0xfe, 0xee, 0xe8, 0x82, 0x32, 0xd3, 0x7f, 0x08, 0xaf, 0x24, 0xbc, 0xda, 0x91, 0xcd, 0x01, - 0x1b, 0xf6, 0xbe, 0x4a, 0xea, 0x85, 0x51, 0x44, 0xa4, 0x76, 0x1b, 0xa0, 0xf5, 0xfe, 0x45, 0xd6, - 0x15, 0x3b, 0xf4, 0x3c, 0xa9, 0xe9, 0x5f, 0x1a, 0x82, 0xb3, 0xa5, 0xa2, 0xf5, 0xf0, 0xa4, 0x54, - 0xd1, 0xf3, 0xdc, 0xa6, 0x54, 0xd1, 0xfb, 0x8a, 0x15, 0xa9, 0x88, 0x9f, 0x8c, 0xfa, 0xa8, 0xe8, - 0x7a, 0xe7, 0xea, 0xa3, 0xa2, 0xfb, 0xfd, 0x89, 0xfc, 0x00, 0x2e, 0x75, 0xbc, 0xf4, 0x90, 0x37, - 0x06, 0x44, 0xbb, 0x43, 0xd1, 0x9b, 0xc3, 0x31, 0x4b, 0x5d, 0xbf, 0xd1, 0xc4, 0x5c, 0xd8, 0xf7, - 0x39, 0x82, 0x7c, 0x5d, 0x3d, 0x03, 0x0f, 0xf3, 0x7a, 0xa4, 0x7f, 0xe3, 0xdc, 0xf2, 0xd2, 0xca, - 0x9f, 0x6a, 0xb0, 0x94, 0x3c, 0x70, 0x93, 0xaf, 0x8d, 0x38, 0x9f, 0x47, 0x16, 0xbd, 0x75, 0xae, - 0xa9, 0x5e, 0x54, 0xb4, 0x72, 0xaa, 0x55, 0x56, 0xf4, 0xa0, 0xb9, 0x5b, 0x59, 0xd1, 0x83, 0x07, - 0xe8, 0x5f, 0x69, 0x70, 0xb9, 0xdf, 0xa8, 0x48, 0xde, 0xef, 0xb3, 0xf5, 0x80, 0xf9, 0x58, 0xff, - 0xe0, 0x5c, 0xb2, 0xad, 0x24, 0xee, 0x98, 0xc9, 0x94, 0x49, 0x9c, 0x34, 0x77, 0x2a, 0x93, 0x38, - 0x71, 0xcc, 0x23, 0xa7, 0x40, 0x7a, 0x87, 0x18, 0xf2, 0xd5, 0x51, 0x87, 0x38, 0x7d, 0x73, 0x04, - 0x09, 0xa9, 0x3a, 0x80, 0xd9, 0xae, 0x31, 0x88, 0x7c, 0x65, 0x40, 0x01, 0x76, 0x4e, 0x52, 0x7a, - 0x7e, 0x58, 0xf6, 0x96, 0xc6, 0xae, 0x8e, 0x5c, 0xa9, 0x31, 0x79, 0x92, 0x51, 0x6a, 0x54, 0x35, - 0xfa, 0x14, 0xe6, 0xba, 0x3b, 0x4d, 0xa2, 0xda, 0x43, 0xd1, 0x5d, 0xeb, 0x1b, 0x43, 0xf3, 0xb7, - 0x94, 0x76, 0x77, 0x6c, 0x4a, 0xa5, 0x8a, 0x56, 0x57, 0xa9, 0x54, 0xd9, 0x0a, 0xfe, 0x08, 0x16, - 0x92, 0x7a, 0x2a, 0x52, 0x50, 0x46, 0x4c, 0xd9, 0x0e, 0xea, 0x37, 0x47, 0x92, 0x69, 0x03, 0xba, - 0xe4, 0x16, 0x43, 0x09, 0x74, 0x7d, 0x7b, 0x3c, 0x25, 0xd0, 0xf5, 0xef, 0x63, 0xb6, 0x3f, 0x7c, - 0xf2, 0x34, 0x37, 0xf6, 0xf9, 0xd3, 0xdc, 0xd8, 0x17, 0x4f, 0x73, 0xda, 0xa7, 0x67, 0x39, 0xed, - 0xb7, 0x67, 0x39, 0xed, 0x4f, 0x67, 0x39, 0xed, 0xc9, 0x59, 0x4e, 0xfb, 0xc7, 0x59, 0x4e, 0xfb, - 0xe7, 0x59, 0x6e, 0xec, 0x8b, 0xb3, 0x9c, 0xf6, 0xf8, 0x59, 0x6e, 0xec, 0xc9, 0xb3, 0xdc, 0xd8, - 0xe7, 0xcf, 0x72, 0x63, 0xdf, 0xbf, 0x20, 0xb6, 0x6f, 0x6c, 0x96, 0x26, 0xc5, 0x5f, 0x45, 0x37, - 0xff, 0x13, 0x00, 0x00, 0xff, 0xff, 0xf8, 0x1d, 0x5e, 0xf8, 0xa1, 0x1f, 0x00, 0x00, -} - -func (this *DescribeWorkflowExecutionRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*DescribeWorkflowExecutionRequest) - if !ok { - that2, ok := that.(DescribeWorkflowExecutionRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - return true -} -func (this *DescribeWorkflowExecutionResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*DescribeWorkflowExecutionResponse) - if !ok { - that2, ok := that.(DescribeWorkflowExecutionResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.ShardId != that1.ShardId { - return false +func (x *ResendReplicationTasksResponse) Reset() { + *x = ResendReplicationTasksResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if this.HistoryAddr != that1.HistoryAddr { - return false - } - if this.MutableStateInCache != that1.MutableStateInCache { - return false - } - if this.MutableStateInDatabase != that1.MutableStateInDatabase { - return false - } - return true } -func (this *DescribeHistoryHostRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*DescribeHistoryHostRequest) - if !ok { - that2, ok := that.(DescribeHistoryHostRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.HostAddress != that1.HostAddress { - return false - } - if this.ShardId != that1.ShardId { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - return true +func (x *ResendReplicationTasksResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (this *DescribeHistoryHostResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*DescribeHistoryHostResponse) - if !ok { - that2, ok := that.(DescribeHistoryHostResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.NumberOfShards != that1.NumberOfShards { - return false - } - if len(this.ShardIds) != len(that1.ShardIds) { - return false - } - for i := range this.ShardIds { - if this.ShardIds[i] != that1.ShardIds[i] { - return false - } - } - if !this.DomainCache.Equal(that1.DomainCache) { - return false - } - if this.ShardControllerStatus != that1.ShardControllerStatus { - return false - } - if this.Address != that1.Address { - return false - } - return true -} -func (this *CloseShardRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } +func (*ResendReplicationTasksResponse) ProtoMessage() {} - that1, ok := that.(*CloseShardRequest) - if !ok { - that2, ok := that.(CloseShardRequest) - if ok { - that1 = &that2 - } else { - return false +func (x *ResendReplicationTasksResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_admin_v1_service_proto_msgTypes[35] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.ShardId != that1.ShardId { - return false - } - return true + return mi.MessageOf(x) } -func (this *CloseShardResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*CloseShardResponse) - if !ok { - that2, ok := that.(CloseShardResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true +// Deprecated: Use ResendReplicationTasksResponse.ProtoReflect.Descriptor instead. +func (*ResendReplicationTasksResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_admin_v1_service_proto_rawDescGZIP(), []int{35} +} + +var File_uber_cadence_admin_v1_service_proto protoreflect.FileDescriptor + +var file_uber_cadence_admin_v1_service_proto_rawDesc = []byte{ + 0x0a, 0x23, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x75, + 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x24, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x75, 0x62, 0x65, + 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, + 0x2f, 0x76, 0x31, 0x2f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x22, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, + 0x91, 0x01, 0x0a, 0x20, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x55, 0x0a, 0x12, + 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0xd1, 0x01, 0x0a, 0x21, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, + 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x68, 0x61, + 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x73, 0x68, 0x61, + 0x72, 0x64, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x5f, + 0x61, 0x64, 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x68, 0x69, 0x73, 0x74, + 0x6f, 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, 0x12, 0x33, 0x0a, 0x16, 0x6d, 0x75, 0x74, 0x61, 0x62, + 0x6c, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x6e, 0x5f, 0x63, 0x61, 0x63, 0x68, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x6d, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x12, 0x39, 0x0a, 0x19, + 0x6d, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x6e, + 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x16, 0x6d, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x44, + 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x22, 0xb1, 0x01, 0x0a, 0x1a, 0x44, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x62, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x48, 0x6f, 0x73, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x68, 0x6f, + 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x68, 0x61, + 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x73, 0x68, 0x61, + 0x72, 0x64, 0x49, 0x64, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x82, 0x02, 0x0a, 0x1b, + 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x48, + 0x6f, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x6e, + 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x6f, 0x66, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x64, 0x73, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x4f, 0x66, 0x53, + 0x68, 0x61, 0x72, 0x64, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, 0x69, + 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x05, 0x52, 0x08, 0x73, 0x68, 0x61, 0x72, 0x64, 0x49, + 0x64, 0x73, 0x12, 0x4a, 0x0a, 0x0c, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x63, 0x61, 0x63, + 0x68, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, + 0x31, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x49, 0x6e, 0x66, + 0x6f, 0x52, 0x0b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x12, 0x36, + 0x0a, 0x17, 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, + 0x65, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x15, 0x73, 0x68, 0x61, 0x72, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x22, 0x2e, 0x0a, 0x11, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x73, 0x68, 0x61, 0x72, 0x64, 0x49, 0x64, + 0x22, 0x14, 0x0a, 0x12, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xcb, 0x01, 0x0a, 0x11, 0x52, 0x65, 0x6d, 0x6f, 0x76, + 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, + 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, + 0x73, 0x68, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x3d, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, + 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x74, 0x61, + 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x69, + 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x12, + 0x43, 0x0a, 0x0f, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x69, + 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0e, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, + 0x54, 0x69, 0x6d, 0x65, 0x22, 0x14, 0x0a, 0x12, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x54, 0x61, + 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x90, 0x01, 0x0a, 0x11, 0x52, + 0x65, 0x73, 0x65, 0x74, 0x51, 0x75, 0x65, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x19, 0x0a, 0x08, 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x07, 0x73, 0x68, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x63, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3d, + 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x20, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x22, 0x14, 0x0a, + 0x12, 0x52, 0x65, 0x73, 0x65, 0x74, 0x51, 0x75, 0x65, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x93, 0x01, 0x0a, 0x14, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, + 0x51, 0x75, 0x65, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, + 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, + 0x73, 0x68, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3d, 0x0a, 0x09, 0x74, 0x61, + 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, + 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x22, 0x4f, 0x0a, 0x15, 0x44, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x62, 0x65, 0x51, 0x75, 0x65, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x36, 0x0a, 0x17, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x69, 0x6e, 0x67, + 0x5f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x15, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x51, + 0x75, 0x65, 0x75, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x73, 0x22, 0xf3, 0x02, 0x0a, 0x27, 0x47, + 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x61, 0x77, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x56, 0x32, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x55, + 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4b, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, + 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x69, 0x73, 0x74, 0x6f, + 0x72, 0x79, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x12, 0x47, 0x0a, 0x09, 0x65, 0x6e, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x56, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x74, 0x65, + 0x6d, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, + 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, + 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, + 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x22, 0xeb, 0x01, 0x0a, 0x28, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x61, 0x77, 0x48, 0x69, 0x73, 0x74, + 0x6f, 0x72, 0x79, 0x56, 0x32, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, + 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x46, 0x0a, 0x0f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, + 0x5f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x42, 0x6c, 0x6f, 0x62, 0x52, 0x0e, 0x68, + 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x12, 0x4f, 0x0a, + 0x0f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, + 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x0e, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x22, 0x84, + 0x01, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x40, 0x0a, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x28, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x06, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x80, 0x02, 0x0a, 0x1e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6f, 0x0a, 0x0e, 0x73, 0x68, 0x61, 0x72, + 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x48, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x73, 0x68, 0x61, 0x72, + 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x1a, 0x6d, 0x0a, 0x12, 0x53, 0x68, 0x61, + 0x72, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x41, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x2b, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x6e, 0x0a, 0x20, 0x47, 0x65, 0x74, 0x44, + 0x4c, 0x51, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4a, 0x0a, 0x0a, + 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x2b, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x74, + 0x61, 0x73, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x22, 0x79, 0x0a, 0x21, 0x47, 0x65, 0x74, 0x44, + 0x4c, 0x51, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, 0x0a, + 0x11, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x73, + 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, + 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, + 0x6b, 0x52, 0x10, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x61, + 0x73, 0x6b, 0x73, 0x22, 0xbe, 0x01, 0x0a, 0x23, 0x47, 0x65, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x39, 0x0a, 0x19, 0x6c, + 0x61, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x64, 0x5f, 0x6d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x16, + 0x6c, 0x61, 0x73, 0x74, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x64, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x19, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x70, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x16, 0x6c, 0x61, 0x73, 0x74, 0x50, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, + 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x6f, 0x0a, 0x24, 0x47, 0x65, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x08, + 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x08, 0x6d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x73, 0x22, 0xbc, 0x01, 0x0a, 0x14, 0x52, 0x65, 0x61, 0x70, 0x70, 0x6c, + 0x79, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, + 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x0a, + 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x42, 0x6c, 0x6f, 0x62, 0x52, 0x06, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x73, 0x22, 0x17, 0x0a, 0x15, 0x52, 0x65, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9f, 0x02, + 0x0a, 0x19, 0x41, 0x64, 0x64, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x70, 0x0a, 0x10, 0x73, + 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, + 0x64, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0f, 0x73, 0x65, + 0x61, 0x72, 0x63, 0x68, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x25, 0x0a, + 0x0e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x54, + 0x6f, 0x6b, 0x65, 0x6e, 0x1a, 0x69, 0x0a, 0x14, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x3b, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, + 0x1c, 0x0a, 0x1a, 0x41, 0x64, 0x64, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x18, 0x0a, + 0x16, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xd4, 0x01, 0x0a, 0x17, 0x44, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x62, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x19, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, + 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x70, + 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x56, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x17, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x43, + 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x4f, 0x0a, + 0x0f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x5f, 0x69, 0x6e, 0x66, 0x6f, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0e, + 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x8d, + 0x02, 0x0a, 0x16, 0x52, 0x65, 0x61, 0x64, 0x44, 0x4c, 0x51, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x33, 0x0a, 0x04, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, + 0x2e, 0x44, 0x4c, 0x51, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x19, + 0x0a, 0x08, 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x07, 0x73, 0x68, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x12, 0x37, 0x0a, 0x18, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x73, 0x69, 0x76, 0x65, 0x5f, 0x65, 0x6e, + 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x15, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x73, 0x69, 0x76, 0x65, 0x45, 0x6e, 0x64, + 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, + 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, + 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, + 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xcc, + 0x01, 0x0a, 0x17, 0x52, 0x65, 0x61, 0x64, 0x44, 0x4c, 0x51, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x04, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, + 0x31, 0x2e, 0x44, 0x4c, 0x51, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, + 0x54, 0x0a, 0x11, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, + 0x61, 0x73, 0x6b, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, + 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, + 0x61, 0x73, 0x6b, 0x52, 0x10, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, + 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, + 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xc9, 0x01, + 0x0a, 0x17, 0x50, 0x75, 0x72, 0x67, 0x65, 0x44, 0x4c, 0x51, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x33, 0x0a, 0x04, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, + 0x2e, 0x44, 0x4c, 0x51, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x19, + 0x0a, 0x08, 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x07, 0x73, 0x68, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x12, 0x37, 0x0a, 0x18, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x73, 0x69, 0x76, 0x65, 0x5f, 0x65, 0x6e, + 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x15, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x73, 0x69, 0x76, 0x65, 0x45, 0x6e, 0x64, + 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x22, 0x1a, 0x0a, 0x18, 0x50, 0x75, 0x72, + 0x67, 0x65, 0x44, 0x4c, 0x51, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x8e, 0x02, 0x0a, 0x17, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x44, + 0x4c, 0x51, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x33, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x1f, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x4c, 0x51, 0x54, 0x79, 0x70, 0x65, + 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x73, 0x68, 0x61, 0x72, 0x64, 0x49, + 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x37, 0x0a, 0x18, 0x69, 0x6e, 0x63, 0x6c, + 0x75, 0x73, 0x69, 0x76, 0x65, 0x5f, 0x65, 0x6e, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x15, 0x69, 0x6e, 0x63, 0x6c, + 0x75, 0x73, 0x69, 0x76, 0x65, 0x45, 0x6e, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, + 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x26, + 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, + 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x42, 0x0a, 0x18, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x44, + 0x4c, 0x51, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x6e, 0x65, 0x78, + 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x8c, 0x01, 0x0a, 0x1b, 0x52, + 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x61, + 0x73, 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x1e, 0x0a, 0x1c, 0x52, 0x65, 0x66, + 0x72, 0x65, 0x73, 0x68, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xd0, 0x02, 0x0a, 0x1d, 0x52, 0x65, + 0x73, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, + 0x61, 0x73, 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x64, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x43, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x4b, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x69, 0x73, 0x74, + 0x6f, 0x72, 0x79, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x12, 0x47, 0x0a, 0x09, 0x65, 0x6e, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, + 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x74, + 0x65, 0x6d, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x20, 0x0a, 0x1e, + 0x52, 0x65, 0x73, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xc5, + 0x11, 0x0a, 0x08, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x41, 0x50, 0x49, 0x12, 0x8e, 0x01, 0x0a, 0x19, + 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x37, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x62, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7c, 0x0a, 0x13, + 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x48, + 0x6f, 0x73, 0x74, 0x12, 0x31, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x62, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x48, 0x6f, 0x73, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x48, 0x6f, + 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x61, 0x0a, 0x0a, 0x43, 0x6c, + 0x6f, 0x73, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x12, 0x28, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, + 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65, + 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x61, 0x0a, + 0x0a, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x28, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, + 0x6d, 0x6f, 0x76, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x61, 0x0a, 0x0a, 0x52, 0x65, 0x73, 0x65, 0x74, 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, 0x28, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x74, 0x51, 0x75, 0x65, 0x75, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, + 0x2e, 0x52, 0x65, 0x73, 0x65, 0x74, 0x51, 0x75, 0x65, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x6a, 0x0a, 0x0d, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x51, + 0x75, 0x65, 0x75, 0x65, 0x12, 0x2b, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x62, 0x65, 0x51, 0x75, 0x65, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x62, 0x65, 0x51, 0x75, 0x65, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0xa3, 0x01, 0x0a, 0x20, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x61, 0x77, 0x48, 0x69, 0x73, 0x74, 0x6f, + 0x72, 0x79, 0x56, 0x32, 0x12, 0x3e, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x61, 0x77, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x56, 0x32, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3f, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x61, 0x77, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x56, 0x32, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x85, 0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, + 0x12, 0x34, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, + 0x65, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x8e, 0x01, + 0x0a, 0x19, 0x47, 0x65, 0x74, 0x44, 0x4c, 0x51, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x37, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x4c, 0x51, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x44, 0x4c, 0x51, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x97, + 0x01, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, + 0x3a, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3b, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6a, 0x0a, 0x0d, 0x52, 0x65, 0x61, 0x70, + 0x70, 0x6c, 0x79, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2b, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x52, 0x65, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, + 0x65, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x79, 0x0a, 0x12, 0x41, 0x64, 0x64, 0x53, 0x65, 0x61, 0x72, 0x63, + 0x68, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x30, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x70, 0x0a, 0x0f, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x12, 0x2d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x62, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2e, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x62, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x70, 0x0a, 0x0f, 0x52, 0x65, 0x61, 0x64, 0x44, 0x4c, 0x51, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x73, 0x12, 0x2d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x61, + 0x64, 0x44, 0x4c, 0x51, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x61, 0x64, + 0x44, 0x4c, 0x51, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x73, 0x0a, 0x10, 0x50, 0x75, 0x72, 0x67, 0x65, 0x44, 0x4c, 0x51, 0x4d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x2e, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, + 0x50, 0x75, 0x72, 0x67, 0x65, 0x44, 0x4c, 0x51, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, + 0x50, 0x75, 0x72, 0x67, 0x65, 0x44, 0x4c, 0x51, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x73, 0x0a, 0x10, 0x4d, 0x65, 0x72, 0x67, + 0x65, 0x44, 0x4c, 0x51, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x2e, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x44, 0x4c, 0x51, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x44, 0x4c, 0x51, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7f, 0x0a, + 0x14, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x32, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, + 0x66, 0x72, 0x65, 0x73, 0x68, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, + 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x85, + 0x01, 0x0a, 0x16, 0x52, 0x65, 0x73, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x34, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x35, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x6e, 0x64, 0x52, 0x65, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x35, 0x5a, 0x33, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2f, 0x2e, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x76, 0x31, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func (this *RemoveTaskRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*RemoveTaskRequest) - if !ok { - that2, ok := that.(RemoveTaskRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.ShardId != that1.ShardId { - return false - } - if this.TaskType != that1.TaskType { - return false - } - if this.TaskId != that1.TaskId { - return false - } - if that1.VisibilityTime == nil { - if this.VisibilityTime != nil { - return false - } - } else if !this.VisibilityTime.Equal(*that1.VisibilityTime) { - return false - } - return true -} -func (this *RemoveTaskResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } +var ( + file_uber_cadence_admin_v1_service_proto_rawDescOnce sync.Once + file_uber_cadence_admin_v1_service_proto_rawDescData = file_uber_cadence_admin_v1_service_proto_rawDesc +) - that1, ok := that.(*RemoveTaskResponse) - if !ok { - that2, ok := that.(RemoveTaskResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true +func file_uber_cadence_admin_v1_service_proto_rawDescGZIP() []byte { + file_uber_cadence_admin_v1_service_proto_rawDescOnce.Do(func() { + file_uber_cadence_admin_v1_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_uber_cadence_admin_v1_service_proto_rawDescData) + }) + return file_uber_cadence_admin_v1_service_proto_rawDescData +} + +var file_uber_cadence_admin_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 38) +var file_uber_cadence_admin_v1_service_proto_goTypes = []interface{}{ + (*DescribeWorkflowExecutionRequest)(nil), // 0: uber.cadence.admin.v1.DescribeWorkflowExecutionRequest + (*DescribeWorkflowExecutionResponse)(nil), // 1: uber.cadence.admin.v1.DescribeWorkflowExecutionResponse + (*DescribeHistoryHostRequest)(nil), // 2: uber.cadence.admin.v1.DescribeHistoryHostRequest + (*DescribeHistoryHostResponse)(nil), // 3: uber.cadence.admin.v1.DescribeHistoryHostResponse + (*CloseShardRequest)(nil), // 4: uber.cadence.admin.v1.CloseShardRequest + (*CloseShardResponse)(nil), // 5: uber.cadence.admin.v1.CloseShardResponse + (*RemoveTaskRequest)(nil), // 6: uber.cadence.admin.v1.RemoveTaskRequest + (*RemoveTaskResponse)(nil), // 7: uber.cadence.admin.v1.RemoveTaskResponse + (*ResetQueueRequest)(nil), // 8: uber.cadence.admin.v1.ResetQueueRequest + (*ResetQueueResponse)(nil), // 9: uber.cadence.admin.v1.ResetQueueResponse + (*DescribeQueueRequest)(nil), // 10: uber.cadence.admin.v1.DescribeQueueRequest + (*DescribeQueueResponse)(nil), // 11: uber.cadence.admin.v1.DescribeQueueResponse + (*GetWorkflowExecutionRawHistoryV2Request)(nil), // 12: uber.cadence.admin.v1.GetWorkflowExecutionRawHistoryV2Request + (*GetWorkflowExecutionRawHistoryV2Response)(nil), // 13: uber.cadence.admin.v1.GetWorkflowExecutionRawHistoryV2Response + (*GetReplicationMessagesRequest)(nil), // 14: uber.cadence.admin.v1.GetReplicationMessagesRequest + (*GetReplicationMessagesResponse)(nil), // 15: uber.cadence.admin.v1.GetReplicationMessagesResponse + (*GetDLQReplicationMessagesRequest)(nil), // 16: uber.cadence.admin.v1.GetDLQReplicationMessagesRequest + (*GetDLQReplicationMessagesResponse)(nil), // 17: uber.cadence.admin.v1.GetDLQReplicationMessagesResponse + (*GetDomainReplicationMessagesRequest)(nil), // 18: uber.cadence.admin.v1.GetDomainReplicationMessagesRequest + (*GetDomainReplicationMessagesResponse)(nil), // 19: uber.cadence.admin.v1.GetDomainReplicationMessagesResponse + (*ReapplyEventsRequest)(nil), // 20: uber.cadence.admin.v1.ReapplyEventsRequest + (*ReapplyEventsResponse)(nil), // 21: uber.cadence.admin.v1.ReapplyEventsResponse + (*AddSearchAttributeRequest)(nil), // 22: uber.cadence.admin.v1.AddSearchAttributeRequest + (*AddSearchAttributeResponse)(nil), // 23: uber.cadence.admin.v1.AddSearchAttributeResponse + (*DescribeClusterRequest)(nil), // 24: uber.cadence.admin.v1.DescribeClusterRequest + (*DescribeClusterResponse)(nil), // 25: uber.cadence.admin.v1.DescribeClusterResponse + (*ReadDLQMessagesRequest)(nil), // 26: uber.cadence.admin.v1.ReadDLQMessagesRequest + (*ReadDLQMessagesResponse)(nil), // 27: uber.cadence.admin.v1.ReadDLQMessagesResponse + (*PurgeDLQMessagesRequest)(nil), // 28: uber.cadence.admin.v1.PurgeDLQMessagesRequest + (*PurgeDLQMessagesResponse)(nil), // 29: uber.cadence.admin.v1.PurgeDLQMessagesResponse + (*MergeDLQMessagesRequest)(nil), // 30: uber.cadence.admin.v1.MergeDLQMessagesRequest + (*MergeDLQMessagesResponse)(nil), // 31: uber.cadence.admin.v1.MergeDLQMessagesResponse + (*RefreshWorkflowTasksRequest)(nil), // 32: uber.cadence.admin.v1.RefreshWorkflowTasksRequest + (*RefreshWorkflowTasksResponse)(nil), // 33: uber.cadence.admin.v1.RefreshWorkflowTasksResponse + (*ResendReplicationTasksRequest)(nil), // 34: uber.cadence.admin.v1.ResendReplicationTasksRequest + (*ResendReplicationTasksResponse)(nil), // 35: uber.cadence.admin.v1.ResendReplicationTasksResponse + nil, // 36: uber.cadence.admin.v1.GetReplicationMessagesResponse.ShardMessagesEntry + nil, // 37: uber.cadence.admin.v1.AddSearchAttributeRequest.SearchAttributeEntry + (*v1.WorkflowExecution)(nil), // 38: uber.cadence.api.v1.WorkflowExecution + (*v11.DomainCacheInfo)(nil), // 39: uber.cadence.shared.v1.DomainCacheInfo + (v11.TaskType)(0), // 40: uber.cadence.shared.v1.TaskType + (*timestamppb.Timestamp)(nil), // 41: google.protobuf.Timestamp + (*v11.VersionHistoryItem)(nil), // 42: uber.cadence.shared.v1.VersionHistoryItem + (*v1.DataBlob)(nil), // 43: uber.cadence.api.v1.DataBlob + (*v11.VersionHistory)(nil), // 44: uber.cadence.shared.v1.VersionHistory + (*v11.ReplicationToken)(nil), // 45: uber.cadence.shared.v1.ReplicationToken + (*v11.ReplicationTaskInfo)(nil), // 46: uber.cadence.shared.v1.ReplicationTaskInfo + (*v11.ReplicationTask)(nil), // 47: uber.cadence.shared.v1.ReplicationTask + (*v11.ReplicationMessages)(nil), // 48: uber.cadence.shared.v1.ReplicationMessages + (*v1.SupportedClientVersions)(nil), // 49: uber.cadence.api.v1.SupportedClientVersions + (*v11.MembershipInfo)(nil), // 50: uber.cadence.shared.v1.MembershipInfo + (v11.DLQType)(0), // 51: uber.cadence.shared.v1.DLQType + (v1.IndexedValueType)(0), // 52: uber.cadence.api.v1.IndexedValueType +} +var file_uber_cadence_admin_v1_service_proto_depIdxs = []int32{ + 38, // 0: uber.cadence.admin.v1.DescribeWorkflowExecutionRequest.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 38, // 1: uber.cadence.admin.v1.DescribeHistoryHostRequest.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 39, // 2: uber.cadence.admin.v1.DescribeHistoryHostResponse.domain_cache:type_name -> uber.cadence.shared.v1.DomainCacheInfo + 40, // 3: uber.cadence.admin.v1.RemoveTaskRequest.task_type:type_name -> uber.cadence.shared.v1.TaskType + 41, // 4: uber.cadence.admin.v1.RemoveTaskRequest.visibility_time:type_name -> google.protobuf.Timestamp + 40, // 5: uber.cadence.admin.v1.ResetQueueRequest.task_type:type_name -> uber.cadence.shared.v1.TaskType + 40, // 6: uber.cadence.admin.v1.DescribeQueueRequest.task_type:type_name -> uber.cadence.shared.v1.TaskType + 38, // 7: uber.cadence.admin.v1.GetWorkflowExecutionRawHistoryV2Request.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 42, // 8: uber.cadence.admin.v1.GetWorkflowExecutionRawHistoryV2Request.start_event:type_name -> uber.cadence.shared.v1.VersionHistoryItem + 42, // 9: uber.cadence.admin.v1.GetWorkflowExecutionRawHistoryV2Request.end_event:type_name -> uber.cadence.shared.v1.VersionHistoryItem + 43, // 10: uber.cadence.admin.v1.GetWorkflowExecutionRawHistoryV2Response.history_batches:type_name -> uber.cadence.api.v1.DataBlob + 44, // 11: uber.cadence.admin.v1.GetWorkflowExecutionRawHistoryV2Response.version_history:type_name -> uber.cadence.shared.v1.VersionHistory + 45, // 12: uber.cadence.admin.v1.GetReplicationMessagesRequest.tokens:type_name -> uber.cadence.shared.v1.ReplicationToken + 36, // 13: uber.cadence.admin.v1.GetReplicationMessagesResponse.shard_messages:type_name -> uber.cadence.admin.v1.GetReplicationMessagesResponse.ShardMessagesEntry + 46, // 14: uber.cadence.admin.v1.GetDLQReplicationMessagesRequest.task_infos:type_name -> uber.cadence.shared.v1.ReplicationTaskInfo + 47, // 15: uber.cadence.admin.v1.GetDLQReplicationMessagesResponse.replication_tasks:type_name -> uber.cadence.shared.v1.ReplicationTask + 48, // 16: uber.cadence.admin.v1.GetDomainReplicationMessagesResponse.messages:type_name -> uber.cadence.shared.v1.ReplicationMessages + 38, // 17: uber.cadence.admin.v1.ReapplyEventsRequest.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 43, // 18: uber.cadence.admin.v1.ReapplyEventsRequest.events:type_name -> uber.cadence.api.v1.DataBlob + 37, // 19: uber.cadence.admin.v1.AddSearchAttributeRequest.search_attribute:type_name -> uber.cadence.admin.v1.AddSearchAttributeRequest.SearchAttributeEntry + 49, // 20: uber.cadence.admin.v1.DescribeClusterResponse.supported_client_versions:type_name -> uber.cadence.api.v1.SupportedClientVersions + 50, // 21: uber.cadence.admin.v1.DescribeClusterResponse.membership_info:type_name -> uber.cadence.shared.v1.MembershipInfo + 51, // 22: uber.cadence.admin.v1.ReadDLQMessagesRequest.type:type_name -> uber.cadence.shared.v1.DLQType + 51, // 23: uber.cadence.admin.v1.ReadDLQMessagesResponse.type:type_name -> uber.cadence.shared.v1.DLQType + 47, // 24: uber.cadence.admin.v1.ReadDLQMessagesResponse.replication_tasks:type_name -> uber.cadence.shared.v1.ReplicationTask + 51, // 25: uber.cadence.admin.v1.PurgeDLQMessagesRequest.type:type_name -> uber.cadence.shared.v1.DLQType + 51, // 26: uber.cadence.admin.v1.MergeDLQMessagesRequest.type:type_name -> uber.cadence.shared.v1.DLQType + 38, // 27: uber.cadence.admin.v1.RefreshWorkflowTasksRequest.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 38, // 28: uber.cadence.admin.v1.ResendReplicationTasksRequest.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 42, // 29: uber.cadence.admin.v1.ResendReplicationTasksRequest.start_event:type_name -> uber.cadence.shared.v1.VersionHistoryItem + 42, // 30: uber.cadence.admin.v1.ResendReplicationTasksRequest.end_event:type_name -> uber.cadence.shared.v1.VersionHistoryItem + 48, // 31: uber.cadence.admin.v1.GetReplicationMessagesResponse.ShardMessagesEntry.value:type_name -> uber.cadence.shared.v1.ReplicationMessages + 52, // 32: uber.cadence.admin.v1.AddSearchAttributeRequest.SearchAttributeEntry.value:type_name -> uber.cadence.api.v1.IndexedValueType + 0, // 33: uber.cadence.admin.v1.AdminAPI.DescribeWorkflowExecution:input_type -> uber.cadence.admin.v1.DescribeWorkflowExecutionRequest + 2, // 34: uber.cadence.admin.v1.AdminAPI.DescribeHistoryHost:input_type -> uber.cadence.admin.v1.DescribeHistoryHostRequest + 4, // 35: uber.cadence.admin.v1.AdminAPI.CloseShard:input_type -> uber.cadence.admin.v1.CloseShardRequest + 6, // 36: uber.cadence.admin.v1.AdminAPI.RemoveTask:input_type -> uber.cadence.admin.v1.RemoveTaskRequest + 8, // 37: uber.cadence.admin.v1.AdminAPI.ResetQueue:input_type -> uber.cadence.admin.v1.ResetQueueRequest + 10, // 38: uber.cadence.admin.v1.AdminAPI.DescribeQueue:input_type -> uber.cadence.admin.v1.DescribeQueueRequest + 12, // 39: uber.cadence.admin.v1.AdminAPI.GetWorkflowExecutionRawHistoryV2:input_type -> uber.cadence.admin.v1.GetWorkflowExecutionRawHistoryV2Request + 14, // 40: uber.cadence.admin.v1.AdminAPI.GetReplicationMessages:input_type -> uber.cadence.admin.v1.GetReplicationMessagesRequest + 16, // 41: uber.cadence.admin.v1.AdminAPI.GetDLQReplicationMessages:input_type -> uber.cadence.admin.v1.GetDLQReplicationMessagesRequest + 18, // 42: uber.cadence.admin.v1.AdminAPI.GetDomainReplicationMessages:input_type -> uber.cadence.admin.v1.GetDomainReplicationMessagesRequest + 20, // 43: uber.cadence.admin.v1.AdminAPI.ReapplyEvents:input_type -> uber.cadence.admin.v1.ReapplyEventsRequest + 22, // 44: uber.cadence.admin.v1.AdminAPI.AddSearchAttribute:input_type -> uber.cadence.admin.v1.AddSearchAttributeRequest + 24, // 45: uber.cadence.admin.v1.AdminAPI.DescribeCluster:input_type -> uber.cadence.admin.v1.DescribeClusterRequest + 26, // 46: uber.cadence.admin.v1.AdminAPI.ReadDLQMessages:input_type -> uber.cadence.admin.v1.ReadDLQMessagesRequest + 28, // 47: uber.cadence.admin.v1.AdminAPI.PurgeDLQMessages:input_type -> uber.cadence.admin.v1.PurgeDLQMessagesRequest + 30, // 48: uber.cadence.admin.v1.AdminAPI.MergeDLQMessages:input_type -> uber.cadence.admin.v1.MergeDLQMessagesRequest + 32, // 49: uber.cadence.admin.v1.AdminAPI.RefreshWorkflowTasks:input_type -> uber.cadence.admin.v1.RefreshWorkflowTasksRequest + 34, // 50: uber.cadence.admin.v1.AdminAPI.ResendReplicationTasks:input_type -> uber.cadence.admin.v1.ResendReplicationTasksRequest + 1, // 51: uber.cadence.admin.v1.AdminAPI.DescribeWorkflowExecution:output_type -> uber.cadence.admin.v1.DescribeWorkflowExecutionResponse + 3, // 52: uber.cadence.admin.v1.AdminAPI.DescribeHistoryHost:output_type -> uber.cadence.admin.v1.DescribeHistoryHostResponse + 5, // 53: uber.cadence.admin.v1.AdminAPI.CloseShard:output_type -> uber.cadence.admin.v1.CloseShardResponse + 7, // 54: uber.cadence.admin.v1.AdminAPI.RemoveTask:output_type -> uber.cadence.admin.v1.RemoveTaskResponse + 9, // 55: uber.cadence.admin.v1.AdminAPI.ResetQueue:output_type -> uber.cadence.admin.v1.ResetQueueResponse + 11, // 56: uber.cadence.admin.v1.AdminAPI.DescribeQueue:output_type -> uber.cadence.admin.v1.DescribeQueueResponse + 13, // 57: uber.cadence.admin.v1.AdminAPI.GetWorkflowExecutionRawHistoryV2:output_type -> uber.cadence.admin.v1.GetWorkflowExecutionRawHistoryV2Response + 15, // 58: uber.cadence.admin.v1.AdminAPI.GetReplicationMessages:output_type -> uber.cadence.admin.v1.GetReplicationMessagesResponse + 17, // 59: uber.cadence.admin.v1.AdminAPI.GetDLQReplicationMessages:output_type -> uber.cadence.admin.v1.GetDLQReplicationMessagesResponse + 19, // 60: uber.cadence.admin.v1.AdminAPI.GetDomainReplicationMessages:output_type -> uber.cadence.admin.v1.GetDomainReplicationMessagesResponse + 21, // 61: uber.cadence.admin.v1.AdminAPI.ReapplyEvents:output_type -> uber.cadence.admin.v1.ReapplyEventsResponse + 23, // 62: uber.cadence.admin.v1.AdminAPI.AddSearchAttribute:output_type -> uber.cadence.admin.v1.AddSearchAttributeResponse + 25, // 63: uber.cadence.admin.v1.AdminAPI.DescribeCluster:output_type -> uber.cadence.admin.v1.DescribeClusterResponse + 27, // 64: uber.cadence.admin.v1.AdminAPI.ReadDLQMessages:output_type -> uber.cadence.admin.v1.ReadDLQMessagesResponse + 29, // 65: uber.cadence.admin.v1.AdminAPI.PurgeDLQMessages:output_type -> uber.cadence.admin.v1.PurgeDLQMessagesResponse + 31, // 66: uber.cadence.admin.v1.AdminAPI.MergeDLQMessages:output_type -> uber.cadence.admin.v1.MergeDLQMessagesResponse + 33, // 67: uber.cadence.admin.v1.AdminAPI.RefreshWorkflowTasks:output_type -> uber.cadence.admin.v1.RefreshWorkflowTasksResponse + 35, // 68: uber.cadence.admin.v1.AdminAPI.ResendReplicationTasks:output_type -> uber.cadence.admin.v1.ResendReplicationTasksResponse + 51, // [51:69] is the sub-list for method output_type + 33, // [33:51] is the sub-list for method input_type + 33, // [33:33] is the sub-list for extension type_name + 33, // [33:33] is the sub-list for extension extendee + 0, // [0:33] is the sub-list for field type_name +} + +func init() { file_uber_cadence_admin_v1_service_proto_init() } +func file_uber_cadence_admin_v1_service_proto_init() { + if File_uber_cadence_admin_v1_service_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_uber_cadence_admin_v1_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DescribeWorkflowExecutionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_admin_v1_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DescribeWorkflowExecutionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_admin_v1_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DescribeHistoryHostRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_admin_v1_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DescribeHistoryHostResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_admin_v1_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CloseShardRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_admin_v1_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CloseShardResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_admin_v1_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemoveTaskRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_admin_v1_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemoveTaskResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_admin_v1_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResetQueueRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_admin_v1_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResetQueueResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_admin_v1_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DescribeQueueRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_admin_v1_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DescribeQueueResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_admin_v1_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetWorkflowExecutionRawHistoryV2Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_admin_v1_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetWorkflowExecutionRawHistoryV2Response); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_admin_v1_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetReplicationMessagesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_admin_v1_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetReplicationMessagesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_admin_v1_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDLQReplicationMessagesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_admin_v1_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDLQReplicationMessagesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_admin_v1_service_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDomainReplicationMessagesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_admin_v1_service_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDomainReplicationMessagesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_admin_v1_service_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReapplyEventsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_admin_v1_service_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReapplyEventsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_admin_v1_service_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddSearchAttributeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_admin_v1_service_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddSearchAttributeResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_admin_v1_service_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DescribeClusterRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_admin_v1_service_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DescribeClusterResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_admin_v1_service_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReadDLQMessagesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_admin_v1_service_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReadDLQMessagesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_admin_v1_service_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PurgeDLQMessagesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_admin_v1_service_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PurgeDLQMessagesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_admin_v1_service_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MergeDLQMessagesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_admin_v1_service_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MergeDLQMessagesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_admin_v1_service_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RefreshWorkflowTasksRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_admin_v1_service_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RefreshWorkflowTasksResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_admin_v1_service_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResendReplicationTasksRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_admin_v1_service_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResendReplicationTasksResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_uber_cadence_admin_v1_service_proto_rawDesc, + NumEnums: 0, + NumMessages: 38, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_uber_cadence_admin_v1_service_proto_goTypes, + DependencyIndexes: file_uber_cadence_admin_v1_service_proto_depIdxs, + MessageInfos: file_uber_cadence_admin_v1_service_proto_msgTypes, + }.Build() + File_uber_cadence_admin_v1_service_proto = out.File + file_uber_cadence_admin_v1_service_proto_rawDesc = nil + file_uber_cadence_admin_v1_service_proto_goTypes = nil + file_uber_cadence_admin_v1_service_proto_depIdxs = nil } -func (this *ResetQueueRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ResetQueueRequest) - if !ok { - that2, ok := that.(ResetQueueRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.ShardId != that1.ShardId { - return false - } - if this.ClusterName != that1.ClusterName { - return false - } - if this.TaskType != that1.TaskType { - return false - } - return true -} -func (this *ResetQueueResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ResetQueueResponse) - if !ok { - that2, ok := that.(ResetQueueResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *DescribeQueueRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*DescribeQueueRequest) - if !ok { - that2, ok := that.(DescribeQueueRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.ShardId != that1.ShardId { - return false - } - if this.ClusterName != that1.ClusterName { - return false - } - if this.TaskType != that1.TaskType { - return false - } - return true -} -func (this *DescribeQueueResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*DescribeQueueResponse) - if !ok { - that2, ok := that.(DescribeQueueResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if len(this.ProcessingQueueStates) != len(that1.ProcessingQueueStates) { - return false - } - for i := range this.ProcessingQueueStates { - if this.ProcessingQueueStates[i] != that1.ProcessingQueueStates[i] { - return false - } - } - return true -} -func (this *GetWorkflowExecutionRawHistoryV2Request) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*GetWorkflowExecutionRawHistoryV2Request) - if !ok { - that2, ok := that.(GetWorkflowExecutionRawHistoryV2Request) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if !this.StartEvent.Equal(that1.StartEvent) { - return false - } - if !this.EndEvent.Equal(that1.EndEvent) { - return false - } - if this.PageSize != that1.PageSize { - return false - } - if !bytes.Equal(this.NextPageToken, that1.NextPageToken) { - return false - } - return true -} -func (this *GetWorkflowExecutionRawHistoryV2Response) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*GetWorkflowExecutionRawHistoryV2Response) - if !ok { - that2, ok := that.(GetWorkflowExecutionRawHistoryV2Response) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !bytes.Equal(this.NextPageToken, that1.NextPageToken) { - return false - } - if len(this.HistoryBatches) != len(that1.HistoryBatches) { - return false - } - for i := range this.HistoryBatches { - if !this.HistoryBatches[i].Equal(that1.HistoryBatches[i]) { - return false - } - } - if !this.VersionHistory.Equal(that1.VersionHistory) { - return false - } - return true -} -func (this *GetReplicationMessagesRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*GetReplicationMessagesRequest) - if !ok { - that2, ok := that.(GetReplicationMessagesRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if len(this.Tokens) != len(that1.Tokens) { - return false - } - for i := range this.Tokens { - if !this.Tokens[i].Equal(that1.Tokens[i]) { - return false - } - } - if this.ClusterName != that1.ClusterName { - return false - } - return true -} -func (this *GetReplicationMessagesResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*GetReplicationMessagesResponse) - if !ok { - that2, ok := that.(GetReplicationMessagesResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if len(this.ShardMessages) != len(that1.ShardMessages) { - return false - } - for i := range this.ShardMessages { - if !this.ShardMessages[i].Equal(that1.ShardMessages[i]) { - return false - } - } - return true -} -func (this *GetDLQReplicationMessagesRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*GetDLQReplicationMessagesRequest) - if !ok { - that2, ok := that.(GetDLQReplicationMessagesRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if len(this.TaskInfos) != len(that1.TaskInfos) { - return false - } - for i := range this.TaskInfos { - if !this.TaskInfos[i].Equal(that1.TaskInfos[i]) { - return false - } - } - return true -} -func (this *GetDLQReplicationMessagesResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*GetDLQReplicationMessagesResponse) - if !ok { - that2, ok := that.(GetDLQReplicationMessagesResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if len(this.ReplicationTasks) != len(that1.ReplicationTasks) { - return false - } - for i := range this.ReplicationTasks { - if !this.ReplicationTasks[i].Equal(that1.ReplicationTasks[i]) { - return false - } - } - return true -} -func (this *GetDomainReplicationMessagesRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*GetDomainReplicationMessagesRequest) - if !ok { - that2, ok := that.(GetDomainReplicationMessagesRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.LastRetrievedMessageId != that1.LastRetrievedMessageId { - return false - } - if this.LastProcessedMessageId != that1.LastProcessedMessageId { - return false - } - if this.ClusterName != that1.ClusterName { - return false - } - return true -} -func (this *GetDomainReplicationMessagesResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*GetDomainReplicationMessagesResponse) - if !ok { - that2, ok := that.(GetDomainReplicationMessagesResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.Messages.Equal(that1.Messages) { - return false - } - return true -} -func (this *ReapplyEventsRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ReapplyEventsRequest) - if !ok { - that2, ok := that.(ReapplyEventsRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if !this.Events.Equal(that1.Events) { - return false - } - return true -} -func (this *ReapplyEventsResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ReapplyEventsResponse) - if !ok { - that2, ok := that.(ReapplyEventsResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *AddSearchAttributeRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*AddSearchAttributeRequest) - if !ok { - that2, ok := that.(AddSearchAttributeRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if len(this.SearchAttribute) != len(that1.SearchAttribute) { - return false - } - for i := range this.SearchAttribute { - if this.SearchAttribute[i] != that1.SearchAttribute[i] { - return false - } - } - if this.SecurityToken != that1.SecurityToken { - return false - } - return true -} -func (this *AddSearchAttributeResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*AddSearchAttributeResponse) - if !ok { - that2, ok := that.(AddSearchAttributeResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *DescribeClusterRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*DescribeClusterRequest) - if !ok { - that2, ok := that.(DescribeClusterRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *DescribeClusterResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*DescribeClusterResponse) - if !ok { - that2, ok := that.(DescribeClusterResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.SupportedClientVersions.Equal(that1.SupportedClientVersions) { - return false - } - if !this.MembershipInfo.Equal(that1.MembershipInfo) { - return false - } - return true -} -func (this *ReadDLQMessagesRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ReadDLQMessagesRequest) - if !ok { - that2, ok := that.(ReadDLQMessagesRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Type != that1.Type { - return false - } - if this.ShardId != that1.ShardId { - return false - } - if this.SourceCluster != that1.SourceCluster { - return false - } - if this.InclusiveEndMessageId != that1.InclusiveEndMessageId { - return false - } - if this.PageSize != that1.PageSize { - return false - } - if !bytes.Equal(this.NextPageToken, that1.NextPageToken) { - return false - } - return true -} -func (this *ReadDLQMessagesResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ReadDLQMessagesResponse) - if !ok { - that2, ok := that.(ReadDLQMessagesResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Type != that1.Type { - return false - } - if len(this.ReplicationTasks) != len(that1.ReplicationTasks) { - return false - } - for i := range this.ReplicationTasks { - if !this.ReplicationTasks[i].Equal(that1.ReplicationTasks[i]) { - return false - } - } - if !bytes.Equal(this.NextPageToken, that1.NextPageToken) { - return false - } - return true -} -func (this *PurgeDLQMessagesRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*PurgeDLQMessagesRequest) - if !ok { - that2, ok := that.(PurgeDLQMessagesRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Type != that1.Type { - return false - } - if this.ShardId != that1.ShardId { - return false - } - if this.SourceCluster != that1.SourceCluster { - return false - } - if this.InclusiveEndMessageId != that1.InclusiveEndMessageId { - return false - } - return true -} -func (this *PurgeDLQMessagesResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*PurgeDLQMessagesResponse) - if !ok { - that2, ok := that.(PurgeDLQMessagesResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *MergeDLQMessagesRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*MergeDLQMessagesRequest) - if !ok { - that2, ok := that.(MergeDLQMessagesRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Type != that1.Type { - return false - } - if this.ShardId != that1.ShardId { - return false - } - if this.SourceCluster != that1.SourceCluster { - return false - } - if this.InclusiveEndMessageId != that1.InclusiveEndMessageId { - return false - } - if this.PageSize != that1.PageSize { - return false - } - if !bytes.Equal(this.NextPageToken, that1.NextPageToken) { - return false - } - return true -} -func (this *MergeDLQMessagesResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*MergeDLQMessagesResponse) - if !ok { - that2, ok := that.(MergeDLQMessagesResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !bytes.Equal(this.NextPageToken, that1.NextPageToken) { - return false - } - return true -} -func (this *RefreshWorkflowTasksRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RefreshWorkflowTasksRequest) - if !ok { - that2, ok := that.(RefreshWorkflowTasksRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - return true -} -func (this *RefreshWorkflowTasksResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RefreshWorkflowTasksResponse) - if !ok { - that2, ok := that.(RefreshWorkflowTasksResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *ResendReplicationTasksRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ResendReplicationTasksRequest) - if !ok { - that2, ok := that.(ResendReplicationTasksRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.DomainId != that1.DomainId { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if this.RemoteCluster != that1.RemoteCluster { - return false - } - if !this.StartEvent.Equal(that1.StartEvent) { - return false - } - if !this.EndEvent.Equal(that1.EndEvent) { - return false - } - return true -} -func (this *ResendReplicationTasksResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ResendReplicationTasksResponse) - if !ok { - that2, ok := that.(ResendReplicationTasksResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *DescribeWorkflowExecutionRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&adminv1.DescribeWorkflowExecutionRequest{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DescribeWorkflowExecutionResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 8) - s = append(s, "&adminv1.DescribeWorkflowExecutionResponse{") - s = append(s, "ShardId: "+fmt.Sprintf("%#v", this.ShardId)+",\n") - s = append(s, "HistoryAddr: "+fmt.Sprintf("%#v", this.HistoryAddr)+",\n") - s = append(s, "MutableStateInCache: "+fmt.Sprintf("%#v", this.MutableStateInCache)+",\n") - s = append(s, "MutableStateInDatabase: "+fmt.Sprintf("%#v", this.MutableStateInDatabase)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DescribeHistoryHostRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&adminv1.DescribeHistoryHostRequest{") - s = append(s, "HostAddress: "+fmt.Sprintf("%#v", this.HostAddress)+",\n") - s = append(s, "ShardId: "+fmt.Sprintf("%#v", this.ShardId)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DescribeHistoryHostResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 9) - s = append(s, "&adminv1.DescribeHistoryHostResponse{") - s = append(s, "NumberOfShards: "+fmt.Sprintf("%#v", this.NumberOfShards)+",\n") - s = append(s, "ShardIds: "+fmt.Sprintf("%#v", this.ShardIds)+",\n") - if this.DomainCache != nil { - s = append(s, "DomainCache: "+fmt.Sprintf("%#v", this.DomainCache)+",\n") - } - s = append(s, "ShardControllerStatus: "+fmt.Sprintf("%#v", this.ShardControllerStatus)+",\n") - s = append(s, "Address: "+fmt.Sprintf("%#v", this.Address)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *CloseShardRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&adminv1.CloseShardRequest{") - s = append(s, "ShardId: "+fmt.Sprintf("%#v", this.ShardId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *CloseShardResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&adminv1.CloseShardResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RemoveTaskRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 8) - s = append(s, "&adminv1.RemoveTaskRequest{") - s = append(s, "ShardId: "+fmt.Sprintf("%#v", this.ShardId)+",\n") - s = append(s, "TaskType: "+fmt.Sprintf("%#v", this.TaskType)+",\n") - s = append(s, "TaskId: "+fmt.Sprintf("%#v", this.TaskId)+",\n") - s = append(s, "VisibilityTime: "+fmt.Sprintf("%#v", this.VisibilityTime)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RemoveTaskResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&adminv1.RemoveTaskResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ResetQueueRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&adminv1.ResetQueueRequest{") - s = append(s, "ShardId: "+fmt.Sprintf("%#v", this.ShardId)+",\n") - s = append(s, "ClusterName: "+fmt.Sprintf("%#v", this.ClusterName)+",\n") - s = append(s, "TaskType: "+fmt.Sprintf("%#v", this.TaskType)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ResetQueueResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&adminv1.ResetQueueResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DescribeQueueRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&adminv1.DescribeQueueRequest{") - s = append(s, "ShardId: "+fmt.Sprintf("%#v", this.ShardId)+",\n") - s = append(s, "ClusterName: "+fmt.Sprintf("%#v", this.ClusterName)+",\n") - s = append(s, "TaskType: "+fmt.Sprintf("%#v", this.TaskType)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DescribeQueueResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&adminv1.DescribeQueueResponse{") - s = append(s, "ProcessingQueueStates: "+fmt.Sprintf("%#v", this.ProcessingQueueStates)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetWorkflowExecutionRawHistoryV2Request) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 10) - s = append(s, "&adminv1.GetWorkflowExecutionRawHistoryV2Request{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - if this.StartEvent != nil { - s = append(s, "StartEvent: "+fmt.Sprintf("%#v", this.StartEvent)+",\n") - } - if this.EndEvent != nil { - s = append(s, "EndEvent: "+fmt.Sprintf("%#v", this.EndEvent)+",\n") - } - s = append(s, "PageSize: "+fmt.Sprintf("%#v", this.PageSize)+",\n") - s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetWorkflowExecutionRawHistoryV2Response) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&adminv1.GetWorkflowExecutionRawHistoryV2Response{") - s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") - if this.HistoryBatches != nil { - s = append(s, "HistoryBatches: "+fmt.Sprintf("%#v", this.HistoryBatches)+",\n") - } - if this.VersionHistory != nil { - s = append(s, "VersionHistory: "+fmt.Sprintf("%#v", this.VersionHistory)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetReplicationMessagesRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&adminv1.GetReplicationMessagesRequest{") - if this.Tokens != nil { - s = append(s, "Tokens: "+fmt.Sprintf("%#v", this.Tokens)+",\n") - } - s = append(s, "ClusterName: "+fmt.Sprintf("%#v", this.ClusterName)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetReplicationMessagesResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&adminv1.GetReplicationMessagesResponse{") - keysForShardMessages := make([]int32, 0, len(this.ShardMessages)) - for k, _ := range this.ShardMessages { - keysForShardMessages = append(keysForShardMessages, k) - } - github_com_gogo_protobuf_sortkeys.Int32s(keysForShardMessages) - mapStringForShardMessages := "map[int32]*v11.ReplicationMessages{" - for _, k := range keysForShardMessages { - mapStringForShardMessages += fmt.Sprintf("%#v: %#v,", k, this.ShardMessages[k]) - } - mapStringForShardMessages += "}" - if this.ShardMessages != nil { - s = append(s, "ShardMessages: "+mapStringForShardMessages+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetDLQReplicationMessagesRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&adminv1.GetDLQReplicationMessagesRequest{") - if this.TaskInfos != nil { - s = append(s, "TaskInfos: "+fmt.Sprintf("%#v", this.TaskInfos)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetDLQReplicationMessagesResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&adminv1.GetDLQReplicationMessagesResponse{") - if this.ReplicationTasks != nil { - s = append(s, "ReplicationTasks: "+fmt.Sprintf("%#v", this.ReplicationTasks)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetDomainReplicationMessagesRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&adminv1.GetDomainReplicationMessagesRequest{") - s = append(s, "LastRetrievedMessageId: "+fmt.Sprintf("%#v", this.LastRetrievedMessageId)+",\n") - s = append(s, "LastProcessedMessageId: "+fmt.Sprintf("%#v", this.LastProcessedMessageId)+",\n") - s = append(s, "ClusterName: "+fmt.Sprintf("%#v", this.ClusterName)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetDomainReplicationMessagesResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&adminv1.GetDomainReplicationMessagesResponse{") - if this.Messages != nil { - s = append(s, "Messages: "+fmt.Sprintf("%#v", this.Messages)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ReapplyEventsRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&adminv1.ReapplyEventsRequest{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - if this.Events != nil { - s = append(s, "Events: "+fmt.Sprintf("%#v", this.Events)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ReapplyEventsResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&adminv1.ReapplyEventsResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *AddSearchAttributeRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&adminv1.AddSearchAttributeRequest{") - keysForSearchAttribute := make([]string, 0, len(this.SearchAttribute)) - for k, _ := range this.SearchAttribute { - keysForSearchAttribute = append(keysForSearchAttribute, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForSearchAttribute) - mapStringForSearchAttribute := "map[string]v1.IndexedValueType{" - for _, k := range keysForSearchAttribute { - mapStringForSearchAttribute += fmt.Sprintf("%#v: %#v,", k, this.SearchAttribute[k]) - } - mapStringForSearchAttribute += "}" - if this.SearchAttribute != nil { - s = append(s, "SearchAttribute: "+mapStringForSearchAttribute+",\n") - } - s = append(s, "SecurityToken: "+fmt.Sprintf("%#v", this.SecurityToken)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *AddSearchAttributeResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&adminv1.AddSearchAttributeResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DescribeClusterRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&adminv1.DescribeClusterRequest{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DescribeClusterResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&adminv1.DescribeClusterResponse{") - if this.SupportedClientVersions != nil { - s = append(s, "SupportedClientVersions: "+fmt.Sprintf("%#v", this.SupportedClientVersions)+",\n") - } - if this.MembershipInfo != nil { - s = append(s, "MembershipInfo: "+fmt.Sprintf("%#v", this.MembershipInfo)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ReadDLQMessagesRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 10) - s = append(s, "&adminv1.ReadDLQMessagesRequest{") - s = append(s, "Type: "+fmt.Sprintf("%#v", this.Type)+",\n") - s = append(s, "ShardId: "+fmt.Sprintf("%#v", this.ShardId)+",\n") - s = append(s, "SourceCluster: "+fmt.Sprintf("%#v", this.SourceCluster)+",\n") - s = append(s, "InclusiveEndMessageId: "+fmt.Sprintf("%#v", this.InclusiveEndMessageId)+",\n") - s = append(s, "PageSize: "+fmt.Sprintf("%#v", this.PageSize)+",\n") - s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ReadDLQMessagesResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&adminv1.ReadDLQMessagesResponse{") - s = append(s, "Type: "+fmt.Sprintf("%#v", this.Type)+",\n") - if this.ReplicationTasks != nil { - s = append(s, "ReplicationTasks: "+fmt.Sprintf("%#v", this.ReplicationTasks)+",\n") - } - s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *PurgeDLQMessagesRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 8) - s = append(s, "&adminv1.PurgeDLQMessagesRequest{") - s = append(s, "Type: "+fmt.Sprintf("%#v", this.Type)+",\n") - s = append(s, "ShardId: "+fmt.Sprintf("%#v", this.ShardId)+",\n") - s = append(s, "SourceCluster: "+fmt.Sprintf("%#v", this.SourceCluster)+",\n") - s = append(s, "InclusiveEndMessageId: "+fmt.Sprintf("%#v", this.InclusiveEndMessageId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *PurgeDLQMessagesResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&adminv1.PurgeDLQMessagesResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *MergeDLQMessagesRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 10) - s = append(s, "&adminv1.MergeDLQMessagesRequest{") - s = append(s, "Type: "+fmt.Sprintf("%#v", this.Type)+",\n") - s = append(s, "ShardId: "+fmt.Sprintf("%#v", this.ShardId)+",\n") - s = append(s, "SourceCluster: "+fmt.Sprintf("%#v", this.SourceCluster)+",\n") - s = append(s, "InclusiveEndMessageId: "+fmt.Sprintf("%#v", this.InclusiveEndMessageId)+",\n") - s = append(s, "PageSize: "+fmt.Sprintf("%#v", this.PageSize)+",\n") - s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *MergeDLQMessagesResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&adminv1.MergeDLQMessagesResponse{") - s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RefreshWorkflowTasksRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&adminv1.RefreshWorkflowTasksRequest{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RefreshWorkflowTasksResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&adminv1.RefreshWorkflowTasksResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ResendReplicationTasksRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 9) - s = append(s, "&adminv1.ResendReplicationTasksRequest{") - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "RemoteCluster: "+fmt.Sprintf("%#v", this.RemoteCluster)+",\n") - if this.StartEvent != nil { - s = append(s, "StartEvent: "+fmt.Sprintf("%#v", this.StartEvent)+",\n") - } - if this.EndEvent != nil { - s = append(s, "EndEvent: "+fmt.Sprintf("%#v", this.EndEvent)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ResendReplicationTasksResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&adminv1.ResendReplicationTasksResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func valueToGoStringService(v interface{}, typ string) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// 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 - -// AdminAPIClient is the client API for AdminAPI service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type AdminAPIClient interface { - // DescribeWorkflowExecution returns information about the internal states of workflow execution. - DescribeWorkflowExecution(ctx context.Context, in *DescribeWorkflowExecutionRequest, opts ...grpc.CallOption) (*DescribeWorkflowExecutionResponse, error) - // DescribeHistoryHost returns information about the internal states of a history host. - DescribeHistoryHost(ctx context.Context, in *DescribeHistoryHostRequest, opts ...grpc.CallOption) (*DescribeHistoryHostResponse, error) - // CloseShard closes shard. - CloseShard(ctx context.Context, in *CloseShardRequest, opts ...grpc.CallOption) (*CloseShardResponse, error) - // RemoveTask removes task. - RemoveTask(ctx context.Context, in *RemoveTaskRequest, opts ...grpc.CallOption) (*RemoveTaskResponse, error) - // ResetQueue resets queue. - ResetQueue(ctx context.Context, in *ResetQueueRequest, opts ...grpc.CallOption) (*ResetQueueResponse, error) - // DescribeQueue describes queue. - DescribeQueue(ctx context.Context, in *DescribeQueueRequest, opts ...grpc.CallOption) (*DescribeQueueResponse, error) - // Returns the raw history of specified workflow execution. - // It fails with 'EntityNotExistError' if specified workflow execution in unknown to the service. - // StartEventId defines the beginning of the event to fetch. The first event is inclusive. - // EndEventId and EndEventVersion defines the end of the event to fetch. The end event is exclusive. - GetWorkflowExecutionRawHistoryV2(ctx context.Context, in *GetWorkflowExecutionRawHistoryV2Request, opts ...grpc.CallOption) (*GetWorkflowExecutionRawHistoryV2Response, error) - // GetReplicationMessages returns new replication tasks since the read level provided in the token. - GetReplicationMessages(ctx context.Context, in *GetReplicationMessagesRequest, opts ...grpc.CallOption) (*GetReplicationMessagesResponse, error) - // GetDLQReplicationMessages return replication messages based on DLQ info. - GetDLQReplicationMessages(ctx context.Context, in *GetDLQReplicationMessagesRequest, opts ...grpc.CallOption) (*GetDLQReplicationMessagesResponse, error) - // GetDomainReplicationMessages returns new domain replication tasks since last retrieved task id. - GetDomainReplicationMessages(ctx context.Context, in *GetDomainReplicationMessagesRequest, opts ...grpc.CallOption) (*GetDomainReplicationMessagesResponse, error) - // ReapplyEvents applies stale events to the current workflow and current run. - ReapplyEvents(ctx context.Context, in *ReapplyEventsRequest, opts ...grpc.CallOption) (*ReapplyEventsResponse, error) - // AddSearchAttribute whitelist search attribute in request. - AddSearchAttribute(ctx context.Context, in *AddSearchAttributeRequest, opts ...grpc.CallOption) (*AddSearchAttributeResponse, error) - // DescribeCluster returns information about Cadence cluster. - DescribeCluster(ctx context.Context, in *DescribeClusterRequest, opts ...grpc.CallOption) (*DescribeClusterResponse, error) - // ReadDLQMessages returns messages from DLQ. - ReadDLQMessages(ctx context.Context, in *ReadDLQMessagesRequest, opts ...grpc.CallOption) (*ReadDLQMessagesResponse, error) - // PurgeDLQMessages purges messages from DLQ. - PurgeDLQMessages(ctx context.Context, in *PurgeDLQMessagesRequest, opts ...grpc.CallOption) (*PurgeDLQMessagesResponse, error) - // MergeDLQMessages merges messages from DLQ. - MergeDLQMessages(ctx context.Context, in *MergeDLQMessagesRequest, opts ...grpc.CallOption) (*MergeDLQMessagesResponse, error) - // RefreshWorkflowTasks refreshes all tasks of a workflow. - RefreshWorkflowTasks(ctx context.Context, in *RefreshWorkflowTasksRequest, opts ...grpc.CallOption) (*RefreshWorkflowTasksResponse, error) - // ResendReplicationTasks requests replication tasks from remote cluster and apply tasks to current cluster. - ResendReplicationTasks(ctx context.Context, in *ResendReplicationTasksRequest, opts ...grpc.CallOption) (*ResendReplicationTasksResponse, error) -} - -type adminAPIClient struct { - cc *grpc.ClientConn -} - -func NewAdminAPIClient(cc *grpc.ClientConn) AdminAPIClient { - return &adminAPIClient{cc} -} - -func (c *adminAPIClient) DescribeWorkflowExecution(ctx context.Context, in *DescribeWorkflowExecutionRequest, opts ...grpc.CallOption) (*DescribeWorkflowExecutionResponse, error) { - out := new(DescribeWorkflowExecutionResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.admin.v1.AdminAPI/DescribeWorkflowExecution", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminAPIClient) DescribeHistoryHost(ctx context.Context, in *DescribeHistoryHostRequest, opts ...grpc.CallOption) (*DescribeHistoryHostResponse, error) { - out := new(DescribeHistoryHostResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.admin.v1.AdminAPI/DescribeHistoryHost", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminAPIClient) CloseShard(ctx context.Context, in *CloseShardRequest, opts ...grpc.CallOption) (*CloseShardResponse, error) { - out := new(CloseShardResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.admin.v1.AdminAPI/CloseShard", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminAPIClient) RemoveTask(ctx context.Context, in *RemoveTaskRequest, opts ...grpc.CallOption) (*RemoveTaskResponse, error) { - out := new(RemoveTaskResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.admin.v1.AdminAPI/RemoveTask", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminAPIClient) ResetQueue(ctx context.Context, in *ResetQueueRequest, opts ...grpc.CallOption) (*ResetQueueResponse, error) { - out := new(ResetQueueResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.admin.v1.AdminAPI/ResetQueue", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminAPIClient) DescribeQueue(ctx context.Context, in *DescribeQueueRequest, opts ...grpc.CallOption) (*DescribeQueueResponse, error) { - out := new(DescribeQueueResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.admin.v1.AdminAPI/DescribeQueue", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminAPIClient) GetWorkflowExecutionRawHistoryV2(ctx context.Context, in *GetWorkflowExecutionRawHistoryV2Request, opts ...grpc.CallOption) (*GetWorkflowExecutionRawHistoryV2Response, error) { - out := new(GetWorkflowExecutionRawHistoryV2Response) - err := c.cc.Invoke(ctx, "/uber.cadence.admin.v1.AdminAPI/GetWorkflowExecutionRawHistoryV2", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminAPIClient) GetReplicationMessages(ctx context.Context, in *GetReplicationMessagesRequest, opts ...grpc.CallOption) (*GetReplicationMessagesResponse, error) { - out := new(GetReplicationMessagesResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.admin.v1.AdminAPI/GetReplicationMessages", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminAPIClient) GetDLQReplicationMessages(ctx context.Context, in *GetDLQReplicationMessagesRequest, opts ...grpc.CallOption) (*GetDLQReplicationMessagesResponse, error) { - out := new(GetDLQReplicationMessagesResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.admin.v1.AdminAPI/GetDLQReplicationMessages", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminAPIClient) GetDomainReplicationMessages(ctx context.Context, in *GetDomainReplicationMessagesRequest, opts ...grpc.CallOption) (*GetDomainReplicationMessagesResponse, error) { - out := new(GetDomainReplicationMessagesResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.admin.v1.AdminAPI/GetDomainReplicationMessages", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminAPIClient) ReapplyEvents(ctx context.Context, in *ReapplyEventsRequest, opts ...grpc.CallOption) (*ReapplyEventsResponse, error) { - out := new(ReapplyEventsResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.admin.v1.AdminAPI/ReapplyEvents", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminAPIClient) AddSearchAttribute(ctx context.Context, in *AddSearchAttributeRequest, opts ...grpc.CallOption) (*AddSearchAttributeResponse, error) { - out := new(AddSearchAttributeResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.admin.v1.AdminAPI/AddSearchAttribute", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminAPIClient) DescribeCluster(ctx context.Context, in *DescribeClusterRequest, opts ...grpc.CallOption) (*DescribeClusterResponse, error) { - out := new(DescribeClusterResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.admin.v1.AdminAPI/DescribeCluster", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminAPIClient) ReadDLQMessages(ctx context.Context, in *ReadDLQMessagesRequest, opts ...grpc.CallOption) (*ReadDLQMessagesResponse, error) { - out := new(ReadDLQMessagesResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.admin.v1.AdminAPI/ReadDLQMessages", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminAPIClient) PurgeDLQMessages(ctx context.Context, in *PurgeDLQMessagesRequest, opts ...grpc.CallOption) (*PurgeDLQMessagesResponse, error) { - out := new(PurgeDLQMessagesResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.admin.v1.AdminAPI/PurgeDLQMessages", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminAPIClient) MergeDLQMessages(ctx context.Context, in *MergeDLQMessagesRequest, opts ...grpc.CallOption) (*MergeDLQMessagesResponse, error) { - out := new(MergeDLQMessagesResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.admin.v1.AdminAPI/MergeDLQMessages", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminAPIClient) RefreshWorkflowTasks(ctx context.Context, in *RefreshWorkflowTasksRequest, opts ...grpc.CallOption) (*RefreshWorkflowTasksResponse, error) { - out := new(RefreshWorkflowTasksResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.admin.v1.AdminAPI/RefreshWorkflowTasks", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminAPIClient) ResendReplicationTasks(ctx context.Context, in *ResendReplicationTasksRequest, opts ...grpc.CallOption) (*ResendReplicationTasksResponse, error) { - out := new(ResendReplicationTasksResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.admin.v1.AdminAPI/ResendReplicationTasks", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// AdminAPIServer is the server API for AdminAPI service. -type AdminAPIServer interface { - // DescribeWorkflowExecution returns information about the internal states of workflow execution. - DescribeWorkflowExecution(context.Context, *DescribeWorkflowExecutionRequest) (*DescribeWorkflowExecutionResponse, error) - // DescribeHistoryHost returns information about the internal states of a history host. - DescribeHistoryHost(context.Context, *DescribeHistoryHostRequest) (*DescribeHistoryHostResponse, error) - // CloseShard closes shard. - CloseShard(context.Context, *CloseShardRequest) (*CloseShardResponse, error) - // RemoveTask removes task. - RemoveTask(context.Context, *RemoveTaskRequest) (*RemoveTaskResponse, error) - // ResetQueue resets queue. - ResetQueue(context.Context, *ResetQueueRequest) (*ResetQueueResponse, error) - // DescribeQueue describes queue. - DescribeQueue(context.Context, *DescribeQueueRequest) (*DescribeQueueResponse, error) - // Returns the raw history of specified workflow execution. - // It fails with 'EntityNotExistError' if specified workflow execution in unknown to the service. - // StartEventId defines the beginning of the event to fetch. The first event is inclusive. - // EndEventId and EndEventVersion defines the end of the event to fetch. The end event is exclusive. - GetWorkflowExecutionRawHistoryV2(context.Context, *GetWorkflowExecutionRawHistoryV2Request) (*GetWorkflowExecutionRawHistoryV2Response, error) - // GetReplicationMessages returns new replication tasks since the read level provided in the token. - GetReplicationMessages(context.Context, *GetReplicationMessagesRequest) (*GetReplicationMessagesResponse, error) - // GetDLQReplicationMessages return replication messages based on DLQ info. - GetDLQReplicationMessages(context.Context, *GetDLQReplicationMessagesRequest) (*GetDLQReplicationMessagesResponse, error) - // GetDomainReplicationMessages returns new domain replication tasks since last retrieved task id. - GetDomainReplicationMessages(context.Context, *GetDomainReplicationMessagesRequest) (*GetDomainReplicationMessagesResponse, error) - // ReapplyEvents applies stale events to the current workflow and current run. - ReapplyEvents(context.Context, *ReapplyEventsRequest) (*ReapplyEventsResponse, error) - // AddSearchAttribute whitelist search attribute in request. - AddSearchAttribute(context.Context, *AddSearchAttributeRequest) (*AddSearchAttributeResponse, error) - // DescribeCluster returns information about Cadence cluster. - DescribeCluster(context.Context, *DescribeClusterRequest) (*DescribeClusterResponse, error) - // ReadDLQMessages returns messages from DLQ. - ReadDLQMessages(context.Context, *ReadDLQMessagesRequest) (*ReadDLQMessagesResponse, error) - // PurgeDLQMessages purges messages from DLQ. - PurgeDLQMessages(context.Context, *PurgeDLQMessagesRequest) (*PurgeDLQMessagesResponse, error) - // MergeDLQMessages merges messages from DLQ. - MergeDLQMessages(context.Context, *MergeDLQMessagesRequest) (*MergeDLQMessagesResponse, error) - // RefreshWorkflowTasks refreshes all tasks of a workflow. - RefreshWorkflowTasks(context.Context, *RefreshWorkflowTasksRequest) (*RefreshWorkflowTasksResponse, error) - // ResendReplicationTasks requests replication tasks from remote cluster and apply tasks to current cluster. - ResendReplicationTasks(context.Context, *ResendReplicationTasksRequest) (*ResendReplicationTasksResponse, error) -} - -// UnimplementedAdminAPIServer can be embedded to have forward compatible implementations. -type UnimplementedAdminAPIServer struct { -} - -func (*UnimplementedAdminAPIServer) DescribeWorkflowExecution(ctx context.Context, req *DescribeWorkflowExecutionRequest) (*DescribeWorkflowExecutionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DescribeWorkflowExecution not implemented") -} -func (*UnimplementedAdminAPIServer) DescribeHistoryHost(ctx context.Context, req *DescribeHistoryHostRequest) (*DescribeHistoryHostResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DescribeHistoryHost not implemented") -} -func (*UnimplementedAdminAPIServer) CloseShard(ctx context.Context, req *CloseShardRequest) (*CloseShardResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CloseShard not implemented") -} -func (*UnimplementedAdminAPIServer) RemoveTask(ctx context.Context, req *RemoveTaskRequest) (*RemoveTaskResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveTask not implemented") -} -func (*UnimplementedAdminAPIServer) ResetQueue(ctx context.Context, req *ResetQueueRequest) (*ResetQueueResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ResetQueue not implemented") -} -func (*UnimplementedAdminAPIServer) DescribeQueue(ctx context.Context, req *DescribeQueueRequest) (*DescribeQueueResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DescribeQueue not implemented") -} -func (*UnimplementedAdminAPIServer) GetWorkflowExecutionRawHistoryV2(ctx context.Context, req *GetWorkflowExecutionRawHistoryV2Request) (*GetWorkflowExecutionRawHistoryV2Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetWorkflowExecutionRawHistoryV2 not implemented") -} -func (*UnimplementedAdminAPIServer) GetReplicationMessages(ctx context.Context, req *GetReplicationMessagesRequest) (*GetReplicationMessagesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetReplicationMessages not implemented") -} -func (*UnimplementedAdminAPIServer) GetDLQReplicationMessages(ctx context.Context, req *GetDLQReplicationMessagesRequest) (*GetDLQReplicationMessagesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetDLQReplicationMessages not implemented") -} -func (*UnimplementedAdminAPIServer) GetDomainReplicationMessages(ctx context.Context, req *GetDomainReplicationMessagesRequest) (*GetDomainReplicationMessagesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetDomainReplicationMessages not implemented") -} -func (*UnimplementedAdminAPIServer) ReapplyEvents(ctx context.Context, req *ReapplyEventsRequest) (*ReapplyEventsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReapplyEvents not implemented") -} -func (*UnimplementedAdminAPIServer) AddSearchAttribute(ctx context.Context, req *AddSearchAttributeRequest) (*AddSearchAttributeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddSearchAttribute not implemented") -} -func (*UnimplementedAdminAPIServer) DescribeCluster(ctx context.Context, req *DescribeClusterRequest) (*DescribeClusterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DescribeCluster not implemented") -} -func (*UnimplementedAdminAPIServer) ReadDLQMessages(ctx context.Context, req *ReadDLQMessagesRequest) (*ReadDLQMessagesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReadDLQMessages not implemented") -} -func (*UnimplementedAdminAPIServer) PurgeDLQMessages(ctx context.Context, req *PurgeDLQMessagesRequest) (*PurgeDLQMessagesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PurgeDLQMessages not implemented") -} -func (*UnimplementedAdminAPIServer) MergeDLQMessages(ctx context.Context, req *MergeDLQMessagesRequest) (*MergeDLQMessagesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MergeDLQMessages not implemented") -} -func (*UnimplementedAdminAPIServer) RefreshWorkflowTasks(ctx context.Context, req *RefreshWorkflowTasksRequest) (*RefreshWorkflowTasksResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RefreshWorkflowTasks not implemented") -} -func (*UnimplementedAdminAPIServer) ResendReplicationTasks(ctx context.Context, req *ResendReplicationTasksRequest) (*ResendReplicationTasksResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ResendReplicationTasks not implemented") -} - -func RegisterAdminAPIServer(s *grpc.Server, srv AdminAPIServer) { - s.RegisterService(&_AdminAPI_serviceDesc, srv) -} - -func _AdminAPI_DescribeWorkflowExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DescribeWorkflowExecutionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminAPIServer).DescribeWorkflowExecution(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.admin.v1.AdminAPI/DescribeWorkflowExecution", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminAPIServer).DescribeWorkflowExecution(ctx, req.(*DescribeWorkflowExecutionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminAPI_DescribeHistoryHost_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DescribeHistoryHostRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminAPIServer).DescribeHistoryHost(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.admin.v1.AdminAPI/DescribeHistoryHost", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminAPIServer).DescribeHistoryHost(ctx, req.(*DescribeHistoryHostRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminAPI_CloseShard_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CloseShardRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminAPIServer).CloseShard(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.admin.v1.AdminAPI/CloseShard", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminAPIServer).CloseShard(ctx, req.(*CloseShardRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminAPI_RemoveTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RemoveTaskRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminAPIServer).RemoveTask(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.admin.v1.AdminAPI/RemoveTask", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminAPIServer).RemoveTask(ctx, req.(*RemoveTaskRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminAPI_ResetQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ResetQueueRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminAPIServer).ResetQueue(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.admin.v1.AdminAPI/ResetQueue", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminAPIServer).ResetQueue(ctx, req.(*ResetQueueRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminAPI_DescribeQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DescribeQueueRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminAPIServer).DescribeQueue(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.admin.v1.AdminAPI/DescribeQueue", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminAPIServer).DescribeQueue(ctx, req.(*DescribeQueueRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminAPI_GetWorkflowExecutionRawHistoryV2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetWorkflowExecutionRawHistoryV2Request) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminAPIServer).GetWorkflowExecutionRawHistoryV2(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.admin.v1.AdminAPI/GetWorkflowExecutionRawHistoryV2", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminAPIServer).GetWorkflowExecutionRawHistoryV2(ctx, req.(*GetWorkflowExecutionRawHistoryV2Request)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminAPI_GetReplicationMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetReplicationMessagesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminAPIServer).GetReplicationMessages(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.admin.v1.AdminAPI/GetReplicationMessages", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminAPIServer).GetReplicationMessages(ctx, req.(*GetReplicationMessagesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminAPI_GetDLQReplicationMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetDLQReplicationMessagesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminAPIServer).GetDLQReplicationMessages(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.admin.v1.AdminAPI/GetDLQReplicationMessages", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminAPIServer).GetDLQReplicationMessages(ctx, req.(*GetDLQReplicationMessagesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminAPI_GetDomainReplicationMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetDomainReplicationMessagesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminAPIServer).GetDomainReplicationMessages(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.admin.v1.AdminAPI/GetDomainReplicationMessages", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminAPIServer).GetDomainReplicationMessages(ctx, req.(*GetDomainReplicationMessagesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminAPI_ReapplyEvents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ReapplyEventsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminAPIServer).ReapplyEvents(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.admin.v1.AdminAPI/ReapplyEvents", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminAPIServer).ReapplyEvents(ctx, req.(*ReapplyEventsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminAPI_AddSearchAttribute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddSearchAttributeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminAPIServer).AddSearchAttribute(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.admin.v1.AdminAPI/AddSearchAttribute", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminAPIServer).AddSearchAttribute(ctx, req.(*AddSearchAttributeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminAPI_DescribeCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DescribeClusterRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminAPIServer).DescribeCluster(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.admin.v1.AdminAPI/DescribeCluster", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminAPIServer).DescribeCluster(ctx, req.(*DescribeClusterRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminAPI_ReadDLQMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ReadDLQMessagesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminAPIServer).ReadDLQMessages(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.admin.v1.AdminAPI/ReadDLQMessages", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminAPIServer).ReadDLQMessages(ctx, req.(*ReadDLQMessagesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminAPI_PurgeDLQMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PurgeDLQMessagesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminAPIServer).PurgeDLQMessages(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.admin.v1.AdminAPI/PurgeDLQMessages", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminAPIServer).PurgeDLQMessages(ctx, req.(*PurgeDLQMessagesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminAPI_MergeDLQMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MergeDLQMessagesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminAPIServer).MergeDLQMessages(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.admin.v1.AdminAPI/MergeDLQMessages", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminAPIServer).MergeDLQMessages(ctx, req.(*MergeDLQMessagesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminAPI_RefreshWorkflowTasks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RefreshWorkflowTasksRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminAPIServer).RefreshWorkflowTasks(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.admin.v1.AdminAPI/RefreshWorkflowTasks", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminAPIServer).RefreshWorkflowTasks(ctx, req.(*RefreshWorkflowTasksRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminAPI_ResendReplicationTasks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ResendReplicationTasksRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminAPIServer).ResendReplicationTasks(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.admin.v1.AdminAPI/ResendReplicationTasks", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminAPIServer).ResendReplicationTasks(ctx, req.(*ResendReplicationTasksRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _AdminAPI_serviceDesc = grpc.ServiceDesc{ - ServiceName: "uber.cadence.admin.v1.AdminAPI", - HandlerType: (*AdminAPIServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "DescribeWorkflowExecution", - Handler: _AdminAPI_DescribeWorkflowExecution_Handler, - }, - { - MethodName: "DescribeHistoryHost", - Handler: _AdminAPI_DescribeHistoryHost_Handler, - }, - { - MethodName: "CloseShard", - Handler: _AdminAPI_CloseShard_Handler, - }, - { - MethodName: "RemoveTask", - Handler: _AdminAPI_RemoveTask_Handler, - }, - { - MethodName: "ResetQueue", - Handler: _AdminAPI_ResetQueue_Handler, - }, - { - MethodName: "DescribeQueue", - Handler: _AdminAPI_DescribeQueue_Handler, - }, - { - MethodName: "GetWorkflowExecutionRawHistoryV2", - Handler: _AdminAPI_GetWorkflowExecutionRawHistoryV2_Handler, - }, - { - MethodName: "GetReplicationMessages", - Handler: _AdminAPI_GetReplicationMessages_Handler, - }, - { - MethodName: "GetDLQReplicationMessages", - Handler: _AdminAPI_GetDLQReplicationMessages_Handler, - }, - { - MethodName: "GetDomainReplicationMessages", - Handler: _AdminAPI_GetDomainReplicationMessages_Handler, - }, - { - MethodName: "ReapplyEvents", - Handler: _AdminAPI_ReapplyEvents_Handler, - }, - { - MethodName: "AddSearchAttribute", - Handler: _AdminAPI_AddSearchAttribute_Handler, - }, - { - MethodName: "DescribeCluster", - Handler: _AdminAPI_DescribeCluster_Handler, - }, - { - MethodName: "ReadDLQMessages", - Handler: _AdminAPI_ReadDLQMessages_Handler, - }, - { - MethodName: "PurgeDLQMessages", - Handler: _AdminAPI_PurgeDLQMessages_Handler, - }, - { - MethodName: "MergeDLQMessages", - Handler: _AdminAPI_MergeDLQMessages_Handler, - }, - { - MethodName: "RefreshWorkflowTasks", - Handler: _AdminAPI_RefreshWorkflowTasks_Handler, - }, - { - MethodName: "ResendReplicationTasks", - Handler: _AdminAPI_ResendReplicationTasks_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "github.com/uber/cadence/.gen/proto/admin/v1/service.proto", -} - -func (m *DescribeWorkflowExecutionRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DescribeWorkflowExecutionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DescribeWorkflowExecutionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintService(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DescribeWorkflowExecutionResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DescribeWorkflowExecutionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DescribeWorkflowExecutionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.MutableStateInDatabase) > 0 { - i -= len(m.MutableStateInDatabase) - copy(dAtA[i:], m.MutableStateInDatabase) - i = encodeVarintService(dAtA, i, uint64(len(m.MutableStateInDatabase))) - i-- - dAtA[i] = 0x22 - } - if len(m.MutableStateInCache) > 0 { - i -= len(m.MutableStateInCache) - copy(dAtA[i:], m.MutableStateInCache) - i = encodeVarintService(dAtA, i, uint64(len(m.MutableStateInCache))) - i-- - dAtA[i] = 0x1a - } - if len(m.HistoryAddr) > 0 { - i -= len(m.HistoryAddr) - copy(dAtA[i:], m.HistoryAddr) - i = encodeVarintService(dAtA, i, uint64(len(m.HistoryAddr))) - i-- - dAtA[i] = 0x12 - } - if m.ShardId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.ShardId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *DescribeHistoryHostRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DescribeHistoryHostRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DescribeHistoryHostRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.ShardId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.ShardId)) - i-- - dAtA[i] = 0x10 - } - if len(m.HostAddress) > 0 { - i -= len(m.HostAddress) - copy(dAtA[i:], m.HostAddress) - i = encodeVarintService(dAtA, i, uint64(len(m.HostAddress))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DescribeHistoryHostResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DescribeHistoryHostResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DescribeHistoryHostResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintService(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0x2a - } - if len(m.ShardControllerStatus) > 0 { - i -= len(m.ShardControllerStatus) - copy(dAtA[i:], m.ShardControllerStatus) - i = encodeVarintService(dAtA, i, uint64(len(m.ShardControllerStatus))) - i-- - dAtA[i] = 0x22 - } - if m.DomainCache != nil { - { - size, err := m.DomainCache.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.ShardIds) > 0 { - dAtA5 := make([]byte, len(m.ShardIds)*10) - var j4 int - for _, num1 := range m.ShardIds { - num := uint64(num1) - for num >= 1<<7 { - dAtA5[j4] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j4++ - } - dAtA5[j4] = uint8(num) - j4++ - } - i -= j4 - copy(dAtA[i:], dAtA5[:j4]) - i = encodeVarintService(dAtA, i, uint64(j4)) - i-- - dAtA[i] = 0x12 - } - if m.NumberOfShards != 0 { - i = encodeVarintService(dAtA, i, uint64(m.NumberOfShards)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *CloseShardRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CloseShardRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CloseShardRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ShardId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.ShardId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *CloseShardResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CloseShardResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CloseShardResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RemoveTaskRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RemoveTaskRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RemoveTaskRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.VisibilityTime != nil { - n6, err6 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.VisibilityTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.VisibilityTime):]) - if err6 != nil { - return 0, err6 - } - i -= n6 - i = encodeVarintService(dAtA, i, uint64(n6)) - i-- - dAtA[i] = 0x22 - } - if m.TaskId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.TaskId)) - i-- - dAtA[i] = 0x18 - } - if m.TaskType != 0 { - i = encodeVarintService(dAtA, i, uint64(m.TaskType)) - i-- - dAtA[i] = 0x10 - } - if m.ShardId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.ShardId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *RemoveTaskResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RemoveTaskResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RemoveTaskResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *ResetQueueRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResetQueueRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResetQueueRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.TaskType != 0 { - i = encodeVarintService(dAtA, i, uint64(m.TaskType)) - i-- - dAtA[i] = 0x18 - } - if len(m.ClusterName) > 0 { - i -= len(m.ClusterName) - copy(dAtA[i:], m.ClusterName) - i = encodeVarintService(dAtA, i, uint64(len(m.ClusterName))) - i-- - dAtA[i] = 0x12 - } - if m.ShardId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.ShardId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ResetQueueResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResetQueueResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResetQueueResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *DescribeQueueRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DescribeQueueRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DescribeQueueRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.TaskType != 0 { - i = encodeVarintService(dAtA, i, uint64(m.TaskType)) - i-- - dAtA[i] = 0x18 - } - if len(m.ClusterName) > 0 { - i -= len(m.ClusterName) - copy(dAtA[i:], m.ClusterName) - i = encodeVarintService(dAtA, i, uint64(len(m.ClusterName))) - i-- - dAtA[i] = 0x12 - } - if m.ShardId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.ShardId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *DescribeQueueResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DescribeQueueResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DescribeQueueResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ProcessingQueueStates) > 0 { - for iNdEx := len(m.ProcessingQueueStates) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.ProcessingQueueStates[iNdEx]) - copy(dAtA[i:], m.ProcessingQueueStates[iNdEx]) - i = encodeVarintService(dAtA, i, uint64(len(m.ProcessingQueueStates[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *GetWorkflowExecutionRawHistoryV2Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetWorkflowExecutionRawHistoryV2Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetWorkflowExecutionRawHistoryV2Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.NextPageToken) > 0 { - i -= len(m.NextPageToken) - copy(dAtA[i:], m.NextPageToken) - i = encodeVarintService(dAtA, i, uint64(len(m.NextPageToken))) - i-- - dAtA[i] = 0x32 - } - if m.PageSize != 0 { - i = encodeVarintService(dAtA, i, uint64(m.PageSize)) - i-- - dAtA[i] = 0x28 - } - if m.EndEvent != nil { - { - size, err := m.EndEvent.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.StartEvent != nil { - { - size, err := m.StartEvent.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintService(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *GetWorkflowExecutionRawHistoryV2Response) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetWorkflowExecutionRawHistoryV2Response) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetWorkflowExecutionRawHistoryV2Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.VersionHistory != nil { - { - size, err := m.VersionHistory.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.HistoryBatches) > 0 { - for iNdEx := len(m.HistoryBatches) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.HistoryBatches[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.NextPageToken) > 0 { - i -= len(m.NextPageToken) - copy(dAtA[i:], m.NextPageToken) - i = encodeVarintService(dAtA, i, uint64(len(m.NextPageToken))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *GetReplicationMessagesRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetReplicationMessagesRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetReplicationMessagesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ClusterName) > 0 { - i -= len(m.ClusterName) - copy(dAtA[i:], m.ClusterName) - i = encodeVarintService(dAtA, i, uint64(len(m.ClusterName))) - i-- - dAtA[i] = 0x12 - } - if len(m.Tokens) > 0 { - for iNdEx := len(m.Tokens) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Tokens[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *GetReplicationMessagesResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetReplicationMessagesResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetReplicationMessagesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ShardMessages) > 0 { - for k := range m.ShardMessages { - v := m.ShardMessages[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i = encodeVarintService(dAtA, i, uint64(k)) - i-- - dAtA[i] = 0x8 - i = encodeVarintService(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *GetDLQReplicationMessagesRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetDLQReplicationMessagesRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetDLQReplicationMessagesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.TaskInfos) > 0 { - for iNdEx := len(m.TaskInfos) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.TaskInfos[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *GetDLQReplicationMessagesResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetDLQReplicationMessagesResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetDLQReplicationMessagesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ReplicationTasks) > 0 { - for iNdEx := len(m.ReplicationTasks) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ReplicationTasks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *GetDomainReplicationMessagesRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetDomainReplicationMessagesRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetDomainReplicationMessagesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ClusterName) > 0 { - i -= len(m.ClusterName) - copy(dAtA[i:], m.ClusterName) - i = encodeVarintService(dAtA, i, uint64(len(m.ClusterName))) - i-- - dAtA[i] = 0x1a - } - if m.LastProcessedMessageId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.LastProcessedMessageId)) - i-- - dAtA[i] = 0x10 - } - if m.LastRetrievedMessageId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.LastRetrievedMessageId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *GetDomainReplicationMessagesResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetDomainReplicationMessagesResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetDomainReplicationMessagesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Messages != nil { - { - size, err := m.Messages.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ReapplyEventsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReapplyEventsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReapplyEventsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Events != nil { - { - size, err := m.Events.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintService(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ReapplyEventsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReapplyEventsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReapplyEventsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *AddSearchAttributeRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AddSearchAttributeRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AddSearchAttributeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.SecurityToken) > 0 { - i -= len(m.SecurityToken) - copy(dAtA[i:], m.SecurityToken) - i = encodeVarintService(dAtA, i, uint64(len(m.SecurityToken))) - i-- - dAtA[i] = 0x12 - } - if len(m.SearchAttribute) > 0 { - for k := range m.SearchAttribute { - v := m.SearchAttribute[k] - baseI := i - i = encodeVarintService(dAtA, i, uint64(v)) - i-- - dAtA[i] = 0x10 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintService(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintService(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *AddSearchAttributeResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AddSearchAttributeResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AddSearchAttributeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *DescribeClusterRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DescribeClusterRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DescribeClusterRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *DescribeClusterResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DescribeClusterResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DescribeClusterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.MembershipInfo != nil { - { - size, err := m.MembershipInfo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.SupportedClientVersions != nil { - { - size, err := m.SupportedClientVersions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ReadDLQMessagesRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReadDLQMessagesRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReadDLQMessagesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.NextPageToken) > 0 { - i -= len(m.NextPageToken) - copy(dAtA[i:], m.NextPageToken) - i = encodeVarintService(dAtA, i, uint64(len(m.NextPageToken))) - i-- - dAtA[i] = 0x32 - } - if m.PageSize != 0 { - i = encodeVarintService(dAtA, i, uint64(m.PageSize)) - i-- - dAtA[i] = 0x28 - } - if m.InclusiveEndMessageId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.InclusiveEndMessageId)) - i-- - dAtA[i] = 0x20 - } - if len(m.SourceCluster) > 0 { - i -= len(m.SourceCluster) - copy(dAtA[i:], m.SourceCluster) - i = encodeVarintService(dAtA, i, uint64(len(m.SourceCluster))) - i-- - dAtA[i] = 0x1a - } - if m.ShardId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.ShardId)) - i-- - dAtA[i] = 0x10 - } - if m.Type != 0 { - i = encodeVarintService(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ReadDLQMessagesResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReadDLQMessagesResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReadDLQMessagesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.NextPageToken) > 0 { - i -= len(m.NextPageToken) - copy(dAtA[i:], m.NextPageToken) - i = encodeVarintService(dAtA, i, uint64(len(m.NextPageToken))) - i-- - dAtA[i] = 0x1a - } - if len(m.ReplicationTasks) > 0 { - for iNdEx := len(m.ReplicationTasks) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ReplicationTasks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if m.Type != 0 { - i = encodeVarintService(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *PurgeDLQMessagesRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PurgeDLQMessagesRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PurgeDLQMessagesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.InclusiveEndMessageId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.InclusiveEndMessageId)) - i-- - dAtA[i] = 0x20 - } - if len(m.SourceCluster) > 0 { - i -= len(m.SourceCluster) - copy(dAtA[i:], m.SourceCluster) - i = encodeVarintService(dAtA, i, uint64(len(m.SourceCluster))) - i-- - dAtA[i] = 0x1a - } - if m.ShardId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.ShardId)) - i-- - dAtA[i] = 0x10 - } - if m.Type != 0 { - i = encodeVarintService(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *PurgeDLQMessagesResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PurgeDLQMessagesResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PurgeDLQMessagesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MergeDLQMessagesRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MergeDLQMessagesRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MergeDLQMessagesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.NextPageToken) > 0 { - i -= len(m.NextPageToken) - copy(dAtA[i:], m.NextPageToken) - i = encodeVarintService(dAtA, i, uint64(len(m.NextPageToken))) - i-- - dAtA[i] = 0x32 - } - if m.PageSize != 0 { - i = encodeVarintService(dAtA, i, uint64(m.PageSize)) - i-- - dAtA[i] = 0x28 - } - if m.InclusiveEndMessageId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.InclusiveEndMessageId)) - i-- - dAtA[i] = 0x20 - } - if len(m.SourceCluster) > 0 { - i -= len(m.SourceCluster) - copy(dAtA[i:], m.SourceCluster) - i = encodeVarintService(dAtA, i, uint64(len(m.SourceCluster))) - i-- - dAtA[i] = 0x1a - } - if m.ShardId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.ShardId)) - i-- - dAtA[i] = 0x10 - } - if m.Type != 0 { - i = encodeVarintService(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *MergeDLQMessagesResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MergeDLQMessagesResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MergeDLQMessagesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.NextPageToken) > 0 { - i -= len(m.NextPageToken) - copy(dAtA[i:], m.NextPageToken) - i = encodeVarintService(dAtA, i, uint64(len(m.NextPageToken))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RefreshWorkflowTasksRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RefreshWorkflowTasksRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RefreshWorkflowTasksRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintService(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RefreshWorkflowTasksResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RefreshWorkflowTasksResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RefreshWorkflowTasksResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *ResendReplicationTasksRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResendReplicationTasksRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResendReplicationTasksRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.EndEvent != nil { - { - size, err := m.EndEvent.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.StartEvent != nil { - { - size, err := m.StartEvent.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.RemoteCluster) > 0 { - i -= len(m.RemoteCluster) - copy(dAtA[i:], m.RemoteCluster) - i = encodeVarintService(dAtA, i, uint64(len(m.RemoteCluster))) - i-- - dAtA[i] = 0x1a - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintService(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ResendReplicationTasksResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResendReplicationTasksResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResendReplicationTasksResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func encodeVarintService(dAtA []byte, offset int, v uint64) int { - offset -= sovService(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *DescribeWorkflowExecutionRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *DescribeWorkflowExecutionResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ShardId != 0 { - n += 1 + sovService(uint64(m.ShardId)) - } - l = len(m.HistoryAddr) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - l = len(m.MutableStateInCache) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - l = len(m.MutableStateInDatabase) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *DescribeHistoryHostRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.HostAddress) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.ShardId != 0 { - n += 1 + sovService(uint64(m.ShardId)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *DescribeHistoryHostResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.NumberOfShards != 0 { - n += 1 + sovService(uint64(m.NumberOfShards)) - } - if len(m.ShardIds) > 0 { - l = 0 - for _, e := range m.ShardIds { - l += sovService(uint64(e)) - } - n += 1 + sovService(uint64(l)) + l - } - if m.DomainCache != nil { - l = m.DomainCache.Size() - n += 1 + l + sovService(uint64(l)) - } - l = len(m.ShardControllerStatus) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - l = len(m.Address) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *CloseShardRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ShardId != 0 { - n += 1 + sovService(uint64(m.ShardId)) - } - return n -} - -func (m *CloseShardResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RemoveTaskRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ShardId != 0 { - n += 1 + sovService(uint64(m.ShardId)) - } - if m.TaskType != 0 { - n += 1 + sovService(uint64(m.TaskType)) - } - if m.TaskId != 0 { - n += 1 + sovService(uint64(m.TaskId)) - } - if m.VisibilityTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.VisibilityTime) - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *RemoveTaskResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *ResetQueueRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ShardId != 0 { - n += 1 + sovService(uint64(m.ShardId)) - } - l = len(m.ClusterName) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.TaskType != 0 { - n += 1 + sovService(uint64(m.TaskType)) - } - return n -} - -func (m *ResetQueueResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *DescribeQueueRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ShardId != 0 { - n += 1 + sovService(uint64(m.ShardId)) - } - l = len(m.ClusterName) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.TaskType != 0 { - n += 1 + sovService(uint64(m.TaskType)) - } - return n -} - -func (m *DescribeQueueResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.ProcessingQueueStates) > 0 { - for _, s := range m.ProcessingQueueStates { - l = len(s) - n += 1 + l + sovService(uint64(l)) - } - } - return n -} - -func (m *GetWorkflowExecutionRawHistoryV2Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.StartEvent != nil { - l = m.StartEvent.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.EndEvent != nil { - l = m.EndEvent.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.PageSize != 0 { - n += 1 + sovService(uint64(m.PageSize)) - } - l = len(m.NextPageToken) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *GetWorkflowExecutionRawHistoryV2Response) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.NextPageToken) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if len(m.HistoryBatches) > 0 { - for _, e := range m.HistoryBatches { - l = e.Size() - n += 1 + l + sovService(uint64(l)) - } - } - if m.VersionHistory != nil { - l = m.VersionHistory.Size() - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *GetReplicationMessagesRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Tokens) > 0 { - for _, e := range m.Tokens { - l = e.Size() - n += 1 + l + sovService(uint64(l)) - } - } - l = len(m.ClusterName) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *GetReplicationMessagesResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.ShardMessages) > 0 { - for k, v := range m.ShardMessages { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovService(uint64(l)) - } - mapEntrySize := 1 + sovService(uint64(k)) + l - n += mapEntrySize + 1 + sovService(uint64(mapEntrySize)) - } - } - return n -} - -func (m *GetDLQReplicationMessagesRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.TaskInfos) > 0 { - for _, e := range m.TaskInfos { - l = e.Size() - n += 1 + l + sovService(uint64(l)) - } - } - return n -} - -func (m *GetDLQReplicationMessagesResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.ReplicationTasks) > 0 { - for _, e := range m.ReplicationTasks { - l = e.Size() - n += 1 + l + sovService(uint64(l)) - } - } - return n -} - -func (m *GetDomainReplicationMessagesRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.LastRetrievedMessageId != 0 { - n += 1 + sovService(uint64(m.LastRetrievedMessageId)) - } - if m.LastProcessedMessageId != 0 { - n += 1 + sovService(uint64(m.LastProcessedMessageId)) - } - l = len(m.ClusterName) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *GetDomainReplicationMessagesResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Messages != nil { - l = m.Messages.Size() - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *ReapplyEventsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.Events != nil { - l = m.Events.Size() - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *ReapplyEventsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *AddSearchAttributeRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.SearchAttribute) > 0 { - for k, v := range m.SearchAttribute { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovService(uint64(len(k))) + 1 + sovService(uint64(v)) - n += mapEntrySize + 1 + sovService(uint64(mapEntrySize)) - } - } - l = len(m.SecurityToken) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *AddSearchAttributeResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *DescribeClusterRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *DescribeClusterResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.SupportedClientVersions != nil { - l = m.SupportedClientVersions.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.MembershipInfo != nil { - l = m.MembershipInfo.Size() - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *ReadDLQMessagesRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Type != 0 { - n += 1 + sovService(uint64(m.Type)) - } - if m.ShardId != 0 { - n += 1 + sovService(uint64(m.ShardId)) - } - l = len(m.SourceCluster) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.InclusiveEndMessageId != 0 { - n += 1 + sovService(uint64(m.InclusiveEndMessageId)) - } - if m.PageSize != 0 { - n += 1 + sovService(uint64(m.PageSize)) - } - l = len(m.NextPageToken) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *ReadDLQMessagesResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Type != 0 { - n += 1 + sovService(uint64(m.Type)) - } - if len(m.ReplicationTasks) > 0 { - for _, e := range m.ReplicationTasks { - l = e.Size() - n += 1 + l + sovService(uint64(l)) - } - } - l = len(m.NextPageToken) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *PurgeDLQMessagesRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Type != 0 { - n += 1 + sovService(uint64(m.Type)) - } - if m.ShardId != 0 { - n += 1 + sovService(uint64(m.ShardId)) - } - l = len(m.SourceCluster) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.InclusiveEndMessageId != 0 { - n += 1 + sovService(uint64(m.InclusiveEndMessageId)) - } - return n -} - -func (m *PurgeDLQMessagesResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MergeDLQMessagesRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Type != 0 { - n += 1 + sovService(uint64(m.Type)) - } - if m.ShardId != 0 { - n += 1 + sovService(uint64(m.ShardId)) - } - l = len(m.SourceCluster) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.InclusiveEndMessageId != 0 { - n += 1 + sovService(uint64(m.InclusiveEndMessageId)) - } - if m.PageSize != 0 { - n += 1 + sovService(uint64(m.PageSize)) - } - l = len(m.NextPageToken) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *MergeDLQMessagesResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.NextPageToken) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *RefreshWorkflowTasksRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *RefreshWorkflowTasksResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *ResendReplicationTasksRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovService(uint64(l)) - } - l = len(m.RemoteCluster) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.StartEvent != nil { - l = m.StartEvent.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.EndEvent != nil { - l = m.EndEvent.Size() - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *ResendReplicationTasksResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func sovService(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozService(x uint64) (n int) { - return sovService(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *DescribeWorkflowExecutionRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DescribeWorkflowExecutionRequest{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "v1.WorkflowExecution", 1) + `,`, - `}`, - }, "") - return s -} -func (this *DescribeWorkflowExecutionResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DescribeWorkflowExecutionResponse{`, - `ShardId:` + fmt.Sprintf("%v", this.ShardId) + `,`, - `HistoryAddr:` + fmt.Sprintf("%v", this.HistoryAddr) + `,`, - `MutableStateInCache:` + fmt.Sprintf("%v", this.MutableStateInCache) + `,`, - `MutableStateInDatabase:` + fmt.Sprintf("%v", this.MutableStateInDatabase) + `,`, - `}`, - }, "") - return s -} -func (this *DescribeHistoryHostRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DescribeHistoryHostRequest{`, - `HostAddress:` + fmt.Sprintf("%v", this.HostAddress) + `,`, - `ShardId:` + fmt.Sprintf("%v", this.ShardId) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "v1.WorkflowExecution", 1) + `,`, - `}`, - }, "") - return s -} -func (this *DescribeHistoryHostResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DescribeHistoryHostResponse{`, - `NumberOfShards:` + fmt.Sprintf("%v", this.NumberOfShards) + `,`, - `ShardIds:` + fmt.Sprintf("%v", this.ShardIds) + `,`, - `DomainCache:` + strings.Replace(fmt.Sprintf("%v", this.DomainCache), "DomainCacheInfo", "v11.DomainCacheInfo", 1) + `,`, - `ShardControllerStatus:` + fmt.Sprintf("%v", this.ShardControllerStatus) + `,`, - `Address:` + fmt.Sprintf("%v", this.Address) + `,`, - `}`, - }, "") - return s -} -func (this *CloseShardRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CloseShardRequest{`, - `ShardId:` + fmt.Sprintf("%v", this.ShardId) + `,`, - `}`, - }, "") - return s -} -func (this *CloseShardResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CloseShardResponse{`, - `}`, - }, "") - return s -} -func (this *RemoveTaskRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RemoveTaskRequest{`, - `ShardId:` + fmt.Sprintf("%v", this.ShardId) + `,`, - `TaskType:` + fmt.Sprintf("%v", this.TaskType) + `,`, - `TaskId:` + fmt.Sprintf("%v", this.TaskId) + `,`, - `VisibilityTime:` + strings.Replace(fmt.Sprintf("%v", this.VisibilityTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `}`, - }, "") - return s -} -func (this *RemoveTaskResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RemoveTaskResponse{`, - `}`, - }, "") - return s -} -func (this *ResetQueueRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ResetQueueRequest{`, - `ShardId:` + fmt.Sprintf("%v", this.ShardId) + `,`, - `ClusterName:` + fmt.Sprintf("%v", this.ClusterName) + `,`, - `TaskType:` + fmt.Sprintf("%v", this.TaskType) + `,`, - `}`, - }, "") - return s -} -func (this *ResetQueueResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ResetQueueResponse{`, - `}`, - }, "") - return s -} -func (this *DescribeQueueRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DescribeQueueRequest{`, - `ShardId:` + fmt.Sprintf("%v", this.ShardId) + `,`, - `ClusterName:` + fmt.Sprintf("%v", this.ClusterName) + `,`, - `TaskType:` + fmt.Sprintf("%v", this.TaskType) + `,`, - `}`, - }, "") - return s -} -func (this *DescribeQueueResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DescribeQueueResponse{`, - `ProcessingQueueStates:` + fmt.Sprintf("%v", this.ProcessingQueueStates) + `,`, - `}`, - }, "") - return s -} -func (this *GetWorkflowExecutionRawHistoryV2Request) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&GetWorkflowExecutionRawHistoryV2Request{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "v1.WorkflowExecution", 1) + `,`, - `StartEvent:` + strings.Replace(fmt.Sprintf("%v", this.StartEvent), "VersionHistoryItem", "v11.VersionHistoryItem", 1) + `,`, - `EndEvent:` + strings.Replace(fmt.Sprintf("%v", this.EndEvent), "VersionHistoryItem", "v11.VersionHistoryItem", 1) + `,`, - `PageSize:` + fmt.Sprintf("%v", this.PageSize) + `,`, - `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, - `}`, - }, "") - return s -} -func (this *GetWorkflowExecutionRawHistoryV2Response) String() string { - if this == nil { - return "nil" - } - repeatedStringForHistoryBatches := "[]*DataBlob{" - for _, f := range this.HistoryBatches { - repeatedStringForHistoryBatches += strings.Replace(fmt.Sprintf("%v", f), "DataBlob", "v1.DataBlob", 1) + "," - } - repeatedStringForHistoryBatches += "}" - s := strings.Join([]string{`&GetWorkflowExecutionRawHistoryV2Response{`, - `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, - `HistoryBatches:` + repeatedStringForHistoryBatches + `,`, - `VersionHistory:` + strings.Replace(fmt.Sprintf("%v", this.VersionHistory), "VersionHistory", "v11.VersionHistory", 1) + `,`, - `}`, - }, "") - return s -} -func (this *GetReplicationMessagesRequest) String() string { - if this == nil { - return "nil" - } - repeatedStringForTokens := "[]*ReplicationToken{" - for _, f := range this.Tokens { - repeatedStringForTokens += strings.Replace(fmt.Sprintf("%v", f), "ReplicationToken", "v11.ReplicationToken", 1) + "," - } - repeatedStringForTokens += "}" - s := strings.Join([]string{`&GetReplicationMessagesRequest{`, - `Tokens:` + repeatedStringForTokens + `,`, - `ClusterName:` + fmt.Sprintf("%v", this.ClusterName) + `,`, - `}`, - }, "") - return s -} -func (this *GetReplicationMessagesResponse) String() string { - if this == nil { - return "nil" - } - keysForShardMessages := make([]int32, 0, len(this.ShardMessages)) - for k, _ := range this.ShardMessages { - keysForShardMessages = append(keysForShardMessages, k) - } - github_com_gogo_protobuf_sortkeys.Int32s(keysForShardMessages) - mapStringForShardMessages := "map[int32]*v11.ReplicationMessages{" - for _, k := range keysForShardMessages { - mapStringForShardMessages += fmt.Sprintf("%v: %v,", k, this.ShardMessages[k]) - } - mapStringForShardMessages += "}" - s := strings.Join([]string{`&GetReplicationMessagesResponse{`, - `ShardMessages:` + mapStringForShardMessages + `,`, - `}`, - }, "") - return s -} -func (this *GetDLQReplicationMessagesRequest) String() string { - if this == nil { - return "nil" - } - repeatedStringForTaskInfos := "[]*ReplicationTaskInfo{" - for _, f := range this.TaskInfos { - repeatedStringForTaskInfos += strings.Replace(fmt.Sprintf("%v", f), "ReplicationTaskInfo", "v11.ReplicationTaskInfo", 1) + "," - } - repeatedStringForTaskInfos += "}" - s := strings.Join([]string{`&GetDLQReplicationMessagesRequest{`, - `TaskInfos:` + repeatedStringForTaskInfos + `,`, - `}`, - }, "") - return s -} -func (this *GetDLQReplicationMessagesResponse) String() string { - if this == nil { - return "nil" - } - repeatedStringForReplicationTasks := "[]*ReplicationTask{" - for _, f := range this.ReplicationTasks { - repeatedStringForReplicationTasks += strings.Replace(fmt.Sprintf("%v", f), "ReplicationTask", "v11.ReplicationTask", 1) + "," - } - repeatedStringForReplicationTasks += "}" - s := strings.Join([]string{`&GetDLQReplicationMessagesResponse{`, - `ReplicationTasks:` + repeatedStringForReplicationTasks + `,`, - `}`, - }, "") - return s -} -func (this *GetDomainReplicationMessagesRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&GetDomainReplicationMessagesRequest{`, - `LastRetrievedMessageId:` + fmt.Sprintf("%v", this.LastRetrievedMessageId) + `,`, - `LastProcessedMessageId:` + fmt.Sprintf("%v", this.LastProcessedMessageId) + `,`, - `ClusterName:` + fmt.Sprintf("%v", this.ClusterName) + `,`, - `}`, - }, "") - return s -} -func (this *GetDomainReplicationMessagesResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&GetDomainReplicationMessagesResponse{`, - `Messages:` + strings.Replace(fmt.Sprintf("%v", this.Messages), "ReplicationMessages", "v11.ReplicationMessages", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ReapplyEventsRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ReapplyEventsRequest{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "v1.WorkflowExecution", 1) + `,`, - `Events:` + strings.Replace(fmt.Sprintf("%v", this.Events), "DataBlob", "v1.DataBlob", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ReapplyEventsResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ReapplyEventsResponse{`, - `}`, - }, "") - return s -} -func (this *AddSearchAttributeRequest) String() string { - if this == nil { - return "nil" - } - keysForSearchAttribute := make([]string, 0, len(this.SearchAttribute)) - for k, _ := range this.SearchAttribute { - keysForSearchAttribute = append(keysForSearchAttribute, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForSearchAttribute) - mapStringForSearchAttribute := "map[string]v1.IndexedValueType{" - for _, k := range keysForSearchAttribute { - mapStringForSearchAttribute += fmt.Sprintf("%v: %v,", k, this.SearchAttribute[k]) - } - mapStringForSearchAttribute += "}" - s := strings.Join([]string{`&AddSearchAttributeRequest{`, - `SearchAttribute:` + mapStringForSearchAttribute + `,`, - `SecurityToken:` + fmt.Sprintf("%v", this.SecurityToken) + `,`, - `}`, - }, "") - return s -} -func (this *AddSearchAttributeResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&AddSearchAttributeResponse{`, - `}`, - }, "") - return s -} -func (this *DescribeClusterRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DescribeClusterRequest{`, - `}`, - }, "") - return s -} -func (this *DescribeClusterResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DescribeClusterResponse{`, - `SupportedClientVersions:` + strings.Replace(fmt.Sprintf("%v", this.SupportedClientVersions), "SupportedClientVersions", "v1.SupportedClientVersions", 1) + `,`, - `MembershipInfo:` + strings.Replace(fmt.Sprintf("%v", this.MembershipInfo), "MembershipInfo", "v11.MembershipInfo", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ReadDLQMessagesRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ReadDLQMessagesRequest{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `ShardId:` + fmt.Sprintf("%v", this.ShardId) + `,`, - `SourceCluster:` + fmt.Sprintf("%v", this.SourceCluster) + `,`, - `InclusiveEndMessageId:` + fmt.Sprintf("%v", this.InclusiveEndMessageId) + `,`, - `PageSize:` + fmt.Sprintf("%v", this.PageSize) + `,`, - `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, - `}`, - }, "") - return s -} -func (this *ReadDLQMessagesResponse) String() string { - if this == nil { - return "nil" - } - repeatedStringForReplicationTasks := "[]*ReplicationTask{" - for _, f := range this.ReplicationTasks { - repeatedStringForReplicationTasks += strings.Replace(fmt.Sprintf("%v", f), "ReplicationTask", "v11.ReplicationTask", 1) + "," - } - repeatedStringForReplicationTasks += "}" - s := strings.Join([]string{`&ReadDLQMessagesResponse{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `ReplicationTasks:` + repeatedStringForReplicationTasks + `,`, - `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, - `}`, - }, "") - return s -} -func (this *PurgeDLQMessagesRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PurgeDLQMessagesRequest{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `ShardId:` + fmt.Sprintf("%v", this.ShardId) + `,`, - `SourceCluster:` + fmt.Sprintf("%v", this.SourceCluster) + `,`, - `InclusiveEndMessageId:` + fmt.Sprintf("%v", this.InclusiveEndMessageId) + `,`, - `}`, - }, "") - return s -} -func (this *PurgeDLQMessagesResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PurgeDLQMessagesResponse{`, - `}`, - }, "") - return s -} -func (this *MergeDLQMessagesRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&MergeDLQMessagesRequest{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `ShardId:` + fmt.Sprintf("%v", this.ShardId) + `,`, - `SourceCluster:` + fmt.Sprintf("%v", this.SourceCluster) + `,`, - `InclusiveEndMessageId:` + fmt.Sprintf("%v", this.InclusiveEndMessageId) + `,`, - `PageSize:` + fmt.Sprintf("%v", this.PageSize) + `,`, - `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, - `}`, - }, "") - return s -} -func (this *MergeDLQMessagesResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&MergeDLQMessagesResponse{`, - `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, - `}`, - }, "") - return s -} -func (this *RefreshWorkflowTasksRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RefreshWorkflowTasksRequest{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "v1.WorkflowExecution", 1) + `,`, - `}`, - }, "") - return s -} -func (this *RefreshWorkflowTasksResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RefreshWorkflowTasksResponse{`, - `}`, - }, "") - return s -} -func (this *ResendReplicationTasksRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ResendReplicationTasksRequest{`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "v1.WorkflowExecution", 1) + `,`, - `RemoteCluster:` + fmt.Sprintf("%v", this.RemoteCluster) + `,`, - `StartEvent:` + strings.Replace(fmt.Sprintf("%v", this.StartEvent), "VersionHistoryItem", "v11.VersionHistoryItem", 1) + `,`, - `EndEvent:` + strings.Replace(fmt.Sprintf("%v", this.EndEvent), "VersionHistoryItem", "v11.VersionHistoryItem", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ResendReplicationTasksResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ResendReplicationTasksResponse{`, - `}`, - }, "") - return s -} -func valueToStringService(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *DescribeWorkflowExecutionRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DescribeWorkflowExecutionRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DescribeWorkflowExecutionRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &v1.WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DescribeWorkflowExecutionResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DescribeWorkflowExecutionResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DescribeWorkflowExecutionResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ShardId", wireType) - } - m.ShardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ShardId |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HistoryAddr", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HistoryAddr = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MutableStateInCache", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MutableStateInCache = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MutableStateInDatabase", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MutableStateInDatabase = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DescribeHistoryHostRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DescribeHistoryHostRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DescribeHistoryHostRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ShardId", wireType) - } - m.ShardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ShardId |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &v1.WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DescribeHistoryHostResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DescribeHistoryHostResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DescribeHistoryHostResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumberOfShards", wireType) - } - m.NumberOfShards = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NumberOfShards |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType == 0 { - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ShardIds = append(m.ShardIds, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(m.ShardIds) == 0 { - m.ShardIds = make([]int32, 0, elementCount) - } - for iNdEx < postIndex { - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ShardIds = append(m.ShardIds, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field ShardIds", wireType) - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainCache", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DomainCache == nil { - m.DomainCache = &v11.DomainCacheInfo{} - } - if err := m.DomainCache.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ShardControllerStatus", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ShardControllerStatus = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CloseShardRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CloseShardRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CloseShardRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ShardId", wireType) - } - m.ShardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ShardId |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CloseShardResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CloseShardResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CloseShardResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RemoveTaskRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RemoveTaskRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RemoveTaskRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ShardId", wireType) - } - m.ShardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ShardId |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskType", wireType) - } - m.TaskType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TaskType |= v11.TaskType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskId", wireType) - } - m.TaskId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TaskId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VisibilityTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.VisibilityTime == nil { - m.VisibilityTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.VisibilityTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RemoveTaskResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RemoveTaskResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RemoveTaskResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResetQueueRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResetQueueRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResetQueueRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ShardId", wireType) - } - m.ShardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ShardId |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskType", wireType) - } - m.TaskType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TaskType |= v11.TaskType(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResetQueueResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResetQueueResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResetQueueResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DescribeQueueRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DescribeQueueRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DescribeQueueRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ShardId", wireType) - } - m.ShardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ShardId |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskType", wireType) - } - m.TaskType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TaskType |= v11.TaskType(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DescribeQueueResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DescribeQueueResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DescribeQueueResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProcessingQueueStates", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ProcessingQueueStates = append(m.ProcessingQueueStates, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetWorkflowExecutionRawHistoryV2Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetWorkflowExecutionRawHistoryV2Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetWorkflowExecutionRawHistoryV2Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &v1.WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartEvent", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StartEvent == nil { - m.StartEvent = &v11.VersionHistoryItem{} - } - if err := m.StartEvent.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EndEvent", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.EndEvent == nil { - m.EndEvent = &v11.VersionHistoryItem{} - } - if err := m.EndEvent.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) - } - m.PageSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PageSize |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NextPageToken = append(m.NextPageToken[:0], dAtA[iNdEx:postIndex]...) - if m.NextPageToken == nil { - m.NextPageToken = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetWorkflowExecutionRawHistoryV2Response) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetWorkflowExecutionRawHistoryV2Response: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetWorkflowExecutionRawHistoryV2Response: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NextPageToken = append(m.NextPageToken[:0], dAtA[iNdEx:postIndex]...) - if m.NextPageToken == nil { - m.NextPageToken = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HistoryBatches", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HistoryBatches = append(m.HistoryBatches, &v1.DataBlob{}) - if err := m.HistoryBatches[len(m.HistoryBatches)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VersionHistory", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.VersionHistory == nil { - m.VersionHistory = &v11.VersionHistory{} - } - if err := m.VersionHistory.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetReplicationMessagesRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetReplicationMessagesRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetReplicationMessagesRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tokens", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tokens = append(m.Tokens, &v11.ReplicationToken{}) - if err := m.Tokens[len(m.Tokens)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetReplicationMessagesResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetReplicationMessagesResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetReplicationMessagesResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ShardMessages", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ShardMessages == nil { - m.ShardMessages = make(map[int32]*v11.ReplicationMessages) - } - var mapkey int32 - var mapvalue *v11.ReplicationMessages - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapkey |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthService - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthService - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &v11.ReplicationMessages{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.ShardMessages[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetDLQReplicationMessagesRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetDLQReplicationMessagesRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetDLQReplicationMessagesRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskInfos", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TaskInfos = append(m.TaskInfos, &v11.ReplicationTaskInfo{}) - if err := m.TaskInfos[len(m.TaskInfos)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetDLQReplicationMessagesResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetDLQReplicationMessagesResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetDLQReplicationMessagesResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReplicationTasks", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ReplicationTasks = append(m.ReplicationTasks, &v11.ReplicationTask{}) - if err := m.ReplicationTasks[len(m.ReplicationTasks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetDomainReplicationMessagesRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetDomainReplicationMessagesRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetDomainReplicationMessagesRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastRetrievedMessageId", wireType) - } - m.LastRetrievedMessageId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.LastRetrievedMessageId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastProcessedMessageId", wireType) - } - m.LastProcessedMessageId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.LastProcessedMessageId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetDomainReplicationMessagesResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetDomainReplicationMessagesResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetDomainReplicationMessagesResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Messages", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Messages == nil { - m.Messages = &v11.ReplicationMessages{} - } - if err := m.Messages.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReapplyEventsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReapplyEventsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReapplyEventsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &v1.WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Events == nil { - m.Events = &v1.DataBlob{} - } - if err := m.Events.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReapplyEventsResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReapplyEventsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReapplyEventsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AddSearchAttributeRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AddSearchAttributeRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AddSearchAttributeRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SearchAttribute", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SearchAttribute == nil { - m.SearchAttribute = make(map[string]v1.IndexedValueType) - } - var mapkey string - var mapvalue v1.IndexedValueType - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthService - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthService - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapvalue |= v1.IndexedValueType(b&0x7F) << shift - if b < 0x80 { - break - } - } - } else { - iNdEx = entryPreIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.SearchAttribute[mapkey] = mapvalue - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecurityToken", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SecurityToken = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AddSearchAttributeResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AddSearchAttributeResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AddSearchAttributeResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DescribeClusterRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DescribeClusterRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DescribeClusterRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DescribeClusterResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DescribeClusterResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DescribeClusterResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SupportedClientVersions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SupportedClientVersions == nil { - m.SupportedClientVersions = &v1.SupportedClientVersions{} - } - if err := m.SupportedClientVersions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MembershipInfo", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MembershipInfo == nil { - m.MembershipInfo = &v11.MembershipInfo{} - } - if err := m.MembershipInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReadDLQMessagesRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReadDLQMessagesRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReadDLQMessagesRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= v11.DLQType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ShardId", wireType) - } - m.ShardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ShardId |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SourceCluster", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SourceCluster = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field InclusiveEndMessageId", wireType) - } - m.InclusiveEndMessageId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.InclusiveEndMessageId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) - } - m.PageSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PageSize |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NextPageToken = append(m.NextPageToken[:0], dAtA[iNdEx:postIndex]...) - if m.NextPageToken == nil { - m.NextPageToken = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReadDLQMessagesResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReadDLQMessagesResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReadDLQMessagesResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= v11.DLQType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReplicationTasks", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ReplicationTasks = append(m.ReplicationTasks, &v11.ReplicationTask{}) - if err := m.ReplicationTasks[len(m.ReplicationTasks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NextPageToken = append(m.NextPageToken[:0], dAtA[iNdEx:postIndex]...) - if m.NextPageToken == nil { - m.NextPageToken = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PurgeDLQMessagesRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PurgeDLQMessagesRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PurgeDLQMessagesRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= v11.DLQType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ShardId", wireType) - } - m.ShardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ShardId |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SourceCluster", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SourceCluster = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field InclusiveEndMessageId", wireType) - } - m.InclusiveEndMessageId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.InclusiveEndMessageId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PurgeDLQMessagesResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PurgeDLQMessagesResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PurgeDLQMessagesResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MergeDLQMessagesRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MergeDLQMessagesRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MergeDLQMessagesRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= v11.DLQType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ShardId", wireType) - } - m.ShardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ShardId |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SourceCluster", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SourceCluster = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field InclusiveEndMessageId", wireType) - } - m.InclusiveEndMessageId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.InclusiveEndMessageId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) - } - m.PageSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PageSize |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NextPageToken = append(m.NextPageToken[:0], dAtA[iNdEx:postIndex]...) - if m.NextPageToken == nil { - m.NextPageToken = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MergeDLQMessagesResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MergeDLQMessagesResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MergeDLQMessagesResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NextPageToken = append(m.NextPageToken[:0], dAtA[iNdEx:postIndex]...) - if m.NextPageToken == nil { - m.NextPageToken = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RefreshWorkflowTasksRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RefreshWorkflowTasksRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RefreshWorkflowTasksRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &v1.WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RefreshWorkflowTasksResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RefreshWorkflowTasksResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RefreshWorkflowTasksResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResendReplicationTasksRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResendReplicationTasksRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResendReplicationTasksRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &v1.WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RemoteCluster", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RemoteCluster = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartEvent", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StartEvent == nil { - m.StartEvent = &v11.VersionHistoryItem{} - } - if err := m.StartEvent.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EndEvent", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.EndEvent == nil { - m.EndEvent = &v11.VersionHistoryItem{} - } - if err := m.EndEvent.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResendReplicationTasksResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResendReplicationTasksResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResendReplicationTasksResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipService(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowService - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowService - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowService - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthService - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupService - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthService - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthService = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowService = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupService = fmt.Errorf("proto: unexpected end of group") -) diff --git a/.gen/proto/admin/v1/service_grpc.pb.go b/.gen/proto/admin/v1/service_grpc.pb.go new file mode 100644 index 00000000000..b586d12e049 --- /dev/null +++ b/.gen/proto/admin/v1/service_grpc.pb.go @@ -0,0 +1,778 @@ +// The MIT License (MIT) + +// Copyright (c) 2017-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-go-grpc. DO NOT EDIT. + +package adminv1 + +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 + +// AdminAPIClient is the client API for AdminAPI 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 AdminAPIClient interface { + // DescribeWorkflowExecution returns information about the internal states of workflow execution. + DescribeWorkflowExecution(ctx context.Context, in *DescribeWorkflowExecutionRequest, opts ...grpc.CallOption) (*DescribeWorkflowExecutionResponse, error) + // DescribeHistoryHost returns information about the internal states of a history host. + DescribeHistoryHost(ctx context.Context, in *DescribeHistoryHostRequest, opts ...grpc.CallOption) (*DescribeHistoryHostResponse, error) + // CloseShard closes shard. + CloseShard(ctx context.Context, in *CloseShardRequest, opts ...grpc.CallOption) (*CloseShardResponse, error) + // RemoveTask removes task. + RemoveTask(ctx context.Context, in *RemoveTaskRequest, opts ...grpc.CallOption) (*RemoveTaskResponse, error) + // ResetQueue resets queue. + ResetQueue(ctx context.Context, in *ResetQueueRequest, opts ...grpc.CallOption) (*ResetQueueResponse, error) + // DescribeQueue describes queue. + DescribeQueue(ctx context.Context, in *DescribeQueueRequest, opts ...grpc.CallOption) (*DescribeQueueResponse, error) + // Returns the raw history of specified workflow execution. + // It fails with 'EntityNotExistError' if specified workflow execution in unknown to the service. + // StartEventId defines the beginning of the event to fetch. The first event is inclusive. + // EndEventId and EndEventVersion defines the end of the event to fetch. The end event is exclusive. + GetWorkflowExecutionRawHistoryV2(ctx context.Context, in *GetWorkflowExecutionRawHistoryV2Request, opts ...grpc.CallOption) (*GetWorkflowExecutionRawHistoryV2Response, error) + // GetReplicationMessages returns new replication tasks since the read level provided in the token. + GetReplicationMessages(ctx context.Context, in *GetReplicationMessagesRequest, opts ...grpc.CallOption) (*GetReplicationMessagesResponse, error) + // GetDLQReplicationMessages return replication messages based on DLQ info. + GetDLQReplicationMessages(ctx context.Context, in *GetDLQReplicationMessagesRequest, opts ...grpc.CallOption) (*GetDLQReplicationMessagesResponse, error) + // GetDomainReplicationMessages returns new domain replication tasks since last retrieved task id. + GetDomainReplicationMessages(ctx context.Context, in *GetDomainReplicationMessagesRequest, opts ...grpc.CallOption) (*GetDomainReplicationMessagesResponse, error) + // ReapplyEvents applies stale events to the current workflow and current run. + ReapplyEvents(ctx context.Context, in *ReapplyEventsRequest, opts ...grpc.CallOption) (*ReapplyEventsResponse, error) + // AddSearchAttribute whitelist search attribute in request. + AddSearchAttribute(ctx context.Context, in *AddSearchAttributeRequest, opts ...grpc.CallOption) (*AddSearchAttributeResponse, error) + // DescribeCluster returns information about Cadence cluster. + DescribeCluster(ctx context.Context, in *DescribeClusterRequest, opts ...grpc.CallOption) (*DescribeClusterResponse, error) + // ReadDLQMessages returns messages from DLQ. + ReadDLQMessages(ctx context.Context, in *ReadDLQMessagesRequest, opts ...grpc.CallOption) (*ReadDLQMessagesResponse, error) + // PurgeDLQMessages purges messages from DLQ. + PurgeDLQMessages(ctx context.Context, in *PurgeDLQMessagesRequest, opts ...grpc.CallOption) (*PurgeDLQMessagesResponse, error) + // MergeDLQMessages merges messages from DLQ. + MergeDLQMessages(ctx context.Context, in *MergeDLQMessagesRequest, opts ...grpc.CallOption) (*MergeDLQMessagesResponse, error) + // RefreshWorkflowTasks refreshes all tasks of a workflow. + RefreshWorkflowTasks(ctx context.Context, in *RefreshWorkflowTasksRequest, opts ...grpc.CallOption) (*RefreshWorkflowTasksResponse, error) + // ResendReplicationTasks requests replication tasks from remote cluster and apply tasks to current cluster. + ResendReplicationTasks(ctx context.Context, in *ResendReplicationTasksRequest, opts ...grpc.CallOption) (*ResendReplicationTasksResponse, error) +} + +type adminAPIClient struct { + cc grpc.ClientConnInterface +} + +func NewAdminAPIClient(cc grpc.ClientConnInterface) AdminAPIClient { + return &adminAPIClient{cc} +} + +func (c *adminAPIClient) DescribeWorkflowExecution(ctx context.Context, in *DescribeWorkflowExecutionRequest, opts ...grpc.CallOption) (*DescribeWorkflowExecutionResponse, error) { + out := new(DescribeWorkflowExecutionResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.admin.v1.AdminAPI/DescribeWorkflowExecution", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) DescribeHistoryHost(ctx context.Context, in *DescribeHistoryHostRequest, opts ...grpc.CallOption) (*DescribeHistoryHostResponse, error) { + out := new(DescribeHistoryHostResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.admin.v1.AdminAPI/DescribeHistoryHost", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) CloseShard(ctx context.Context, in *CloseShardRequest, opts ...grpc.CallOption) (*CloseShardResponse, error) { + out := new(CloseShardResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.admin.v1.AdminAPI/CloseShard", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) RemoveTask(ctx context.Context, in *RemoveTaskRequest, opts ...grpc.CallOption) (*RemoveTaskResponse, error) { + out := new(RemoveTaskResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.admin.v1.AdminAPI/RemoveTask", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) ResetQueue(ctx context.Context, in *ResetQueueRequest, opts ...grpc.CallOption) (*ResetQueueResponse, error) { + out := new(ResetQueueResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.admin.v1.AdminAPI/ResetQueue", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) DescribeQueue(ctx context.Context, in *DescribeQueueRequest, opts ...grpc.CallOption) (*DescribeQueueResponse, error) { + out := new(DescribeQueueResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.admin.v1.AdminAPI/DescribeQueue", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) GetWorkflowExecutionRawHistoryV2(ctx context.Context, in *GetWorkflowExecutionRawHistoryV2Request, opts ...grpc.CallOption) (*GetWorkflowExecutionRawHistoryV2Response, error) { + out := new(GetWorkflowExecutionRawHistoryV2Response) + err := c.cc.Invoke(ctx, "/uber.cadence.admin.v1.AdminAPI/GetWorkflowExecutionRawHistoryV2", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) GetReplicationMessages(ctx context.Context, in *GetReplicationMessagesRequest, opts ...grpc.CallOption) (*GetReplicationMessagesResponse, error) { + out := new(GetReplicationMessagesResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.admin.v1.AdminAPI/GetReplicationMessages", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) GetDLQReplicationMessages(ctx context.Context, in *GetDLQReplicationMessagesRequest, opts ...grpc.CallOption) (*GetDLQReplicationMessagesResponse, error) { + out := new(GetDLQReplicationMessagesResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.admin.v1.AdminAPI/GetDLQReplicationMessages", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) GetDomainReplicationMessages(ctx context.Context, in *GetDomainReplicationMessagesRequest, opts ...grpc.CallOption) (*GetDomainReplicationMessagesResponse, error) { + out := new(GetDomainReplicationMessagesResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.admin.v1.AdminAPI/GetDomainReplicationMessages", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) ReapplyEvents(ctx context.Context, in *ReapplyEventsRequest, opts ...grpc.CallOption) (*ReapplyEventsResponse, error) { + out := new(ReapplyEventsResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.admin.v1.AdminAPI/ReapplyEvents", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AddSearchAttribute(ctx context.Context, in *AddSearchAttributeRequest, opts ...grpc.CallOption) (*AddSearchAttributeResponse, error) { + out := new(AddSearchAttributeResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.admin.v1.AdminAPI/AddSearchAttribute", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) DescribeCluster(ctx context.Context, in *DescribeClusterRequest, opts ...grpc.CallOption) (*DescribeClusterResponse, error) { + out := new(DescribeClusterResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.admin.v1.AdminAPI/DescribeCluster", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) ReadDLQMessages(ctx context.Context, in *ReadDLQMessagesRequest, opts ...grpc.CallOption) (*ReadDLQMessagesResponse, error) { + out := new(ReadDLQMessagesResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.admin.v1.AdminAPI/ReadDLQMessages", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) PurgeDLQMessages(ctx context.Context, in *PurgeDLQMessagesRequest, opts ...grpc.CallOption) (*PurgeDLQMessagesResponse, error) { + out := new(PurgeDLQMessagesResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.admin.v1.AdminAPI/PurgeDLQMessages", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) MergeDLQMessages(ctx context.Context, in *MergeDLQMessagesRequest, opts ...grpc.CallOption) (*MergeDLQMessagesResponse, error) { + out := new(MergeDLQMessagesResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.admin.v1.AdminAPI/MergeDLQMessages", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) RefreshWorkflowTasks(ctx context.Context, in *RefreshWorkflowTasksRequest, opts ...grpc.CallOption) (*RefreshWorkflowTasksResponse, error) { + out := new(RefreshWorkflowTasksResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.admin.v1.AdminAPI/RefreshWorkflowTasks", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) ResendReplicationTasks(ctx context.Context, in *ResendReplicationTasksRequest, opts ...grpc.CallOption) (*ResendReplicationTasksResponse, error) { + out := new(ResendReplicationTasksResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.admin.v1.AdminAPI/ResendReplicationTasks", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// AdminAPIServer is the server API for AdminAPI service. +// All implementations must embed UnimplementedAdminAPIServer +// for forward compatibility +type AdminAPIServer interface { + // DescribeWorkflowExecution returns information about the internal states of workflow execution. + DescribeWorkflowExecution(context.Context, *DescribeWorkflowExecutionRequest) (*DescribeWorkflowExecutionResponse, error) + // DescribeHistoryHost returns information about the internal states of a history host. + DescribeHistoryHost(context.Context, *DescribeHistoryHostRequest) (*DescribeHistoryHostResponse, error) + // CloseShard closes shard. + CloseShard(context.Context, *CloseShardRequest) (*CloseShardResponse, error) + // RemoveTask removes task. + RemoveTask(context.Context, *RemoveTaskRequest) (*RemoveTaskResponse, error) + // ResetQueue resets queue. + ResetQueue(context.Context, *ResetQueueRequest) (*ResetQueueResponse, error) + // DescribeQueue describes queue. + DescribeQueue(context.Context, *DescribeQueueRequest) (*DescribeQueueResponse, error) + // Returns the raw history of specified workflow execution. + // It fails with 'EntityNotExistError' if specified workflow execution in unknown to the service. + // StartEventId defines the beginning of the event to fetch. The first event is inclusive. + // EndEventId and EndEventVersion defines the end of the event to fetch. The end event is exclusive. + GetWorkflowExecutionRawHistoryV2(context.Context, *GetWorkflowExecutionRawHistoryV2Request) (*GetWorkflowExecutionRawHistoryV2Response, error) + // GetReplicationMessages returns new replication tasks since the read level provided in the token. + GetReplicationMessages(context.Context, *GetReplicationMessagesRequest) (*GetReplicationMessagesResponse, error) + // GetDLQReplicationMessages return replication messages based on DLQ info. + GetDLQReplicationMessages(context.Context, *GetDLQReplicationMessagesRequest) (*GetDLQReplicationMessagesResponse, error) + // GetDomainReplicationMessages returns new domain replication tasks since last retrieved task id. + GetDomainReplicationMessages(context.Context, *GetDomainReplicationMessagesRequest) (*GetDomainReplicationMessagesResponse, error) + // ReapplyEvents applies stale events to the current workflow and current run. + ReapplyEvents(context.Context, *ReapplyEventsRequest) (*ReapplyEventsResponse, error) + // AddSearchAttribute whitelist search attribute in request. + AddSearchAttribute(context.Context, *AddSearchAttributeRequest) (*AddSearchAttributeResponse, error) + // DescribeCluster returns information about Cadence cluster. + DescribeCluster(context.Context, *DescribeClusterRequest) (*DescribeClusterResponse, error) + // ReadDLQMessages returns messages from DLQ. + ReadDLQMessages(context.Context, *ReadDLQMessagesRequest) (*ReadDLQMessagesResponse, error) + // PurgeDLQMessages purges messages from DLQ. + PurgeDLQMessages(context.Context, *PurgeDLQMessagesRequest) (*PurgeDLQMessagesResponse, error) + // MergeDLQMessages merges messages from DLQ. + MergeDLQMessages(context.Context, *MergeDLQMessagesRequest) (*MergeDLQMessagesResponse, error) + // RefreshWorkflowTasks refreshes all tasks of a workflow. + RefreshWorkflowTasks(context.Context, *RefreshWorkflowTasksRequest) (*RefreshWorkflowTasksResponse, error) + // ResendReplicationTasks requests replication tasks from remote cluster and apply tasks to current cluster. + ResendReplicationTasks(context.Context, *ResendReplicationTasksRequest) (*ResendReplicationTasksResponse, error) + mustEmbedUnimplementedAdminAPIServer() +} + +// UnimplementedAdminAPIServer must be embedded to have forward compatible implementations. +type UnimplementedAdminAPIServer struct { +} + +func (UnimplementedAdminAPIServer) DescribeWorkflowExecution(context.Context, *DescribeWorkflowExecutionRequest) (*DescribeWorkflowExecutionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DescribeWorkflowExecution not implemented") +} +func (UnimplementedAdminAPIServer) DescribeHistoryHost(context.Context, *DescribeHistoryHostRequest) (*DescribeHistoryHostResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DescribeHistoryHost not implemented") +} +func (UnimplementedAdminAPIServer) CloseShard(context.Context, *CloseShardRequest) (*CloseShardResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CloseShard not implemented") +} +func (UnimplementedAdminAPIServer) RemoveTask(context.Context, *RemoveTaskRequest) (*RemoveTaskResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveTask not implemented") +} +func (UnimplementedAdminAPIServer) ResetQueue(context.Context, *ResetQueueRequest) (*ResetQueueResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ResetQueue not implemented") +} +func (UnimplementedAdminAPIServer) DescribeQueue(context.Context, *DescribeQueueRequest) (*DescribeQueueResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DescribeQueue not implemented") +} +func (UnimplementedAdminAPIServer) GetWorkflowExecutionRawHistoryV2(context.Context, *GetWorkflowExecutionRawHistoryV2Request) (*GetWorkflowExecutionRawHistoryV2Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetWorkflowExecutionRawHistoryV2 not implemented") +} +func (UnimplementedAdminAPIServer) GetReplicationMessages(context.Context, *GetReplicationMessagesRequest) (*GetReplicationMessagesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetReplicationMessages not implemented") +} +func (UnimplementedAdminAPIServer) GetDLQReplicationMessages(context.Context, *GetDLQReplicationMessagesRequest) (*GetDLQReplicationMessagesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetDLQReplicationMessages not implemented") +} +func (UnimplementedAdminAPIServer) GetDomainReplicationMessages(context.Context, *GetDomainReplicationMessagesRequest) (*GetDomainReplicationMessagesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetDomainReplicationMessages not implemented") +} +func (UnimplementedAdminAPIServer) ReapplyEvents(context.Context, *ReapplyEventsRequest) (*ReapplyEventsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReapplyEvents not implemented") +} +func (UnimplementedAdminAPIServer) AddSearchAttribute(context.Context, *AddSearchAttributeRequest) (*AddSearchAttributeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddSearchAttribute not implemented") +} +func (UnimplementedAdminAPIServer) DescribeCluster(context.Context, *DescribeClusterRequest) (*DescribeClusterResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DescribeCluster not implemented") +} +func (UnimplementedAdminAPIServer) ReadDLQMessages(context.Context, *ReadDLQMessagesRequest) (*ReadDLQMessagesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReadDLQMessages not implemented") +} +func (UnimplementedAdminAPIServer) PurgeDLQMessages(context.Context, *PurgeDLQMessagesRequest) (*PurgeDLQMessagesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PurgeDLQMessages not implemented") +} +func (UnimplementedAdminAPIServer) MergeDLQMessages(context.Context, *MergeDLQMessagesRequest) (*MergeDLQMessagesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method MergeDLQMessages not implemented") +} +func (UnimplementedAdminAPIServer) RefreshWorkflowTasks(context.Context, *RefreshWorkflowTasksRequest) (*RefreshWorkflowTasksResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RefreshWorkflowTasks not implemented") +} +func (UnimplementedAdminAPIServer) ResendReplicationTasks(context.Context, *ResendReplicationTasksRequest) (*ResendReplicationTasksResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ResendReplicationTasks not implemented") +} +func (UnimplementedAdminAPIServer) mustEmbedUnimplementedAdminAPIServer() {} + +// UnsafeAdminAPIServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to AdminAPIServer will +// result in compilation errors. +type UnsafeAdminAPIServer interface { + mustEmbedUnimplementedAdminAPIServer() +} + +func RegisterAdminAPIServer(s grpc.ServiceRegistrar, srv AdminAPIServer) { + s.RegisterService(&AdminAPI_ServiceDesc, srv) +} + +func _AdminAPI_DescribeWorkflowExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DescribeWorkflowExecutionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).DescribeWorkflowExecution(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.admin.v1.AdminAPI/DescribeWorkflowExecution", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).DescribeWorkflowExecution(ctx, req.(*DescribeWorkflowExecutionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_DescribeHistoryHost_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DescribeHistoryHostRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).DescribeHistoryHost(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.admin.v1.AdminAPI/DescribeHistoryHost", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).DescribeHistoryHost(ctx, req.(*DescribeHistoryHostRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_CloseShard_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CloseShardRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).CloseShard(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.admin.v1.AdminAPI/CloseShard", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).CloseShard(ctx, req.(*CloseShardRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_RemoveTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RemoveTaskRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).RemoveTask(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.admin.v1.AdminAPI/RemoveTask", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).RemoveTask(ctx, req.(*RemoveTaskRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_ResetQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ResetQueueRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).ResetQueue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.admin.v1.AdminAPI/ResetQueue", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).ResetQueue(ctx, req.(*ResetQueueRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_DescribeQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DescribeQueueRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).DescribeQueue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.admin.v1.AdminAPI/DescribeQueue", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).DescribeQueue(ctx, req.(*DescribeQueueRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_GetWorkflowExecutionRawHistoryV2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetWorkflowExecutionRawHistoryV2Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).GetWorkflowExecutionRawHistoryV2(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.admin.v1.AdminAPI/GetWorkflowExecutionRawHistoryV2", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).GetWorkflowExecutionRawHistoryV2(ctx, req.(*GetWorkflowExecutionRawHistoryV2Request)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_GetReplicationMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetReplicationMessagesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).GetReplicationMessages(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.admin.v1.AdminAPI/GetReplicationMessages", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).GetReplicationMessages(ctx, req.(*GetReplicationMessagesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_GetDLQReplicationMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetDLQReplicationMessagesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).GetDLQReplicationMessages(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.admin.v1.AdminAPI/GetDLQReplicationMessages", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).GetDLQReplicationMessages(ctx, req.(*GetDLQReplicationMessagesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_GetDomainReplicationMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetDomainReplicationMessagesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).GetDomainReplicationMessages(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.admin.v1.AdminAPI/GetDomainReplicationMessages", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).GetDomainReplicationMessages(ctx, req.(*GetDomainReplicationMessagesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_ReapplyEvents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ReapplyEventsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).ReapplyEvents(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.admin.v1.AdminAPI/ReapplyEvents", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).ReapplyEvents(ctx, req.(*ReapplyEventsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AddSearchAttribute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddSearchAttributeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AddSearchAttribute(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.admin.v1.AdminAPI/AddSearchAttribute", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AddSearchAttribute(ctx, req.(*AddSearchAttributeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_DescribeCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DescribeClusterRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).DescribeCluster(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.admin.v1.AdminAPI/DescribeCluster", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).DescribeCluster(ctx, req.(*DescribeClusterRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_ReadDLQMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ReadDLQMessagesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).ReadDLQMessages(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.admin.v1.AdminAPI/ReadDLQMessages", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).ReadDLQMessages(ctx, req.(*ReadDLQMessagesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_PurgeDLQMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PurgeDLQMessagesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).PurgeDLQMessages(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.admin.v1.AdminAPI/PurgeDLQMessages", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).PurgeDLQMessages(ctx, req.(*PurgeDLQMessagesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_MergeDLQMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MergeDLQMessagesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).MergeDLQMessages(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.admin.v1.AdminAPI/MergeDLQMessages", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).MergeDLQMessages(ctx, req.(*MergeDLQMessagesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_RefreshWorkflowTasks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RefreshWorkflowTasksRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).RefreshWorkflowTasks(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.admin.v1.AdminAPI/RefreshWorkflowTasks", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).RefreshWorkflowTasks(ctx, req.(*RefreshWorkflowTasksRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_ResendReplicationTasks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ResendReplicationTasksRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).ResendReplicationTasks(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.admin.v1.AdminAPI/ResendReplicationTasks", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).ResendReplicationTasks(ctx, req.(*ResendReplicationTasksRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// AdminAPI_ServiceDesc is the grpc.ServiceDesc for AdminAPI service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var AdminAPI_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "uber.cadence.admin.v1.AdminAPI", + HandlerType: (*AdminAPIServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "DescribeWorkflowExecution", + Handler: _AdminAPI_DescribeWorkflowExecution_Handler, + }, + { + MethodName: "DescribeHistoryHost", + Handler: _AdminAPI_DescribeHistoryHost_Handler, + }, + { + MethodName: "CloseShard", + Handler: _AdminAPI_CloseShard_Handler, + }, + { + MethodName: "RemoveTask", + Handler: _AdminAPI_RemoveTask_Handler, + }, + { + MethodName: "ResetQueue", + Handler: _AdminAPI_ResetQueue_Handler, + }, + { + MethodName: "DescribeQueue", + Handler: _AdminAPI_DescribeQueue_Handler, + }, + { + MethodName: "GetWorkflowExecutionRawHistoryV2", + Handler: _AdminAPI_GetWorkflowExecutionRawHistoryV2_Handler, + }, + { + MethodName: "GetReplicationMessages", + Handler: _AdminAPI_GetReplicationMessages_Handler, + }, + { + MethodName: "GetDLQReplicationMessages", + Handler: _AdminAPI_GetDLQReplicationMessages_Handler, + }, + { + MethodName: "GetDomainReplicationMessages", + Handler: _AdminAPI_GetDomainReplicationMessages_Handler, + }, + { + MethodName: "ReapplyEvents", + Handler: _AdminAPI_ReapplyEvents_Handler, + }, + { + MethodName: "AddSearchAttribute", + Handler: _AdminAPI_AddSearchAttribute_Handler, + }, + { + MethodName: "DescribeCluster", + Handler: _AdminAPI_DescribeCluster_Handler, + }, + { + MethodName: "ReadDLQMessages", + Handler: _AdminAPI_ReadDLQMessages_Handler, + }, + { + MethodName: "PurgeDLQMessages", + Handler: _AdminAPI_PurgeDLQMessages_Handler, + }, + { + MethodName: "MergeDLQMessages", + Handler: _AdminAPI_MergeDLQMessages_Handler, + }, + { + MethodName: "RefreshWorkflowTasks", + Handler: _AdminAPI_RefreshWorkflowTasks_Handler, + }, + { + MethodName: "ResendReplicationTasks", + Handler: _AdminAPI_ResendReplicationTasks_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "uber/cadence/admin/v1/service.proto", +} diff --git a/.gen/proto/api/v1/common.pb.go b/.gen/proto/api/v1/common.pb.go index 93c53378545..8d48f99b07c 100644 --- a/.gen/proto/api/v1/common.pb.go +++ b/.gen/proto/api/v1/common.pb.go @@ -1,3899 +1,1093 @@ -// The MIT License (MIT) - -// Copyright (c) 2017-2020 Uber Technologies Inc. - +// 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 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. +// 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. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.14.0 // source: uber/cadence/api/v1/common.proto package apiv1 import ( - bytes "bytes" - encoding_binary "encoding/binary" - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" reflect "reflect" - strconv "strconv" - strings "strings" - time "time" - - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" - github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" - _ "github.com/golang/protobuf/ptypes/duration" + sync "sync" + + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf -var _ = time.Kitchen +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// 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 +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type EncodingType int32 const ( - ENCODING_TYPE_INVALID EncodingType = 0 - ENCODING_TYPE_THRIFTRW EncodingType = 1 - ENCODING_TYPE_JSON EncodingType = 2 - ENCODING_TYPE_PROTO3 EncodingType = 3 + EncodingType_ENCODING_TYPE_INVALID EncodingType = 0 + EncodingType_ENCODING_TYPE_THRIFTRW EncodingType = 1 + EncodingType_ENCODING_TYPE_JSON EncodingType = 2 + EncodingType_ENCODING_TYPE_PROTO3 EncodingType = 3 +) + +// Enum value maps for EncodingType. +var ( + EncodingType_name = map[int32]string{ + 0: "ENCODING_TYPE_INVALID", + 1: "ENCODING_TYPE_THRIFTRW", + 2: "ENCODING_TYPE_JSON", + 3: "ENCODING_TYPE_PROTO3", + } + EncodingType_value = map[string]int32{ + "ENCODING_TYPE_INVALID": 0, + "ENCODING_TYPE_THRIFTRW": 1, + "ENCODING_TYPE_JSON": 2, + "ENCODING_TYPE_PROTO3": 3, + } ) -var EncodingType_name = map[int32]string{ - 0: "ENCODING_TYPE_INVALID", - 1: "ENCODING_TYPE_THRIFTRW", - 2: "ENCODING_TYPE_JSON", - 3: "ENCODING_TYPE_PROTO3", +func (x EncodingType) Enum() *EncodingType { + p := new(EncodingType) + *p = x + return p +} + +func (x EncodingType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (EncodingType) Descriptor() protoreflect.EnumDescriptor { + return file_uber_cadence_api_v1_common_proto_enumTypes[0].Descriptor() +} + +func (EncodingType) Type() protoreflect.EnumType { + return &file_uber_cadence_api_v1_common_proto_enumTypes[0] } -var EncodingType_value = map[string]int32{ - "ENCODING_TYPE_INVALID": 0, - "ENCODING_TYPE_THRIFTRW": 1, - "ENCODING_TYPE_JSON": 2, - "ENCODING_TYPE_PROTO3": 3, +func (x EncodingType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use EncodingType.Descriptor instead. func (EncodingType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_0ff151d4a308b356, []int{0} + return file_uber_cadence_api_v1_common_proto_rawDescGZIP(), []int{0} } type WorkflowExecution struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + WorkflowId string `protobuf:"bytes,1,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` RunId string `protobuf:"bytes,2,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` } -func (m *WorkflowExecution) Reset() { *m = WorkflowExecution{} } -func (*WorkflowExecution) ProtoMessage() {} -func (*WorkflowExecution) Descriptor() ([]byte, []int) { - return fileDescriptor_0ff151d4a308b356, []int{0} -} -func (m *WorkflowExecution) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowExecution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowExecution.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *WorkflowExecution) Reset() { + *x = WorkflowExecution{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_common_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *WorkflowExecution) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowExecution.Merge(m, src) -} -func (m *WorkflowExecution) XXX_Size() int { - return m.Size() + +func (x *WorkflowExecution) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WorkflowExecution) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowExecution.DiscardUnknown(m) + +func (*WorkflowExecution) ProtoMessage() {} + +func (x *WorkflowExecution) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_common_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WorkflowExecution proto.InternalMessageInfo +// Deprecated: Use WorkflowExecution.ProtoReflect.Descriptor instead. +func (*WorkflowExecution) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_common_proto_rawDescGZIP(), []int{0} +} -func (m *WorkflowExecution) GetWorkflowId() string { - if m != nil { - return m.WorkflowId +func (x *WorkflowExecution) GetWorkflowId() string { + if x != nil { + return x.WorkflowId } return "" } -func (m *WorkflowExecution) GetRunId() string { - if m != nil { - return m.RunId +func (x *WorkflowExecution) GetRunId() string { + if x != nil { + return x.RunId } return "" } type WorkflowType struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } -func (m *WorkflowType) Reset() { *m = WorkflowType{} } -func (*WorkflowType) ProtoMessage() {} -func (*WorkflowType) Descriptor() ([]byte, []int) { - return fileDescriptor_0ff151d4a308b356, []int{1} -} -func (m *WorkflowType) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowType.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *WorkflowType) Reset() { + *x = WorkflowType{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_common_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *WorkflowType) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowType.Merge(m, src) -} -func (m *WorkflowType) XXX_Size() int { - return m.Size() + +func (x *WorkflowType) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WorkflowType) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowType.DiscardUnknown(m) + +func (*WorkflowType) ProtoMessage() {} + +func (x *WorkflowType) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_common_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WorkflowType proto.InternalMessageInfo +// Deprecated: Use WorkflowType.ProtoReflect.Descriptor instead. +func (*WorkflowType) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_common_proto_rawDescGZIP(), []int{1} +} -func (m *WorkflowType) GetName() string { - if m != nil { - return m.Name +func (x *WorkflowType) GetName() string { + if x != nil { + return x.Name } return "" } type ActivityType struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } -func (m *ActivityType) Reset() { *m = ActivityType{} } -func (*ActivityType) ProtoMessage() {} -func (*ActivityType) Descriptor() ([]byte, []int) { - return fileDescriptor_0ff151d4a308b356, []int{2} -} -func (m *ActivityType) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ActivityType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ActivityType.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ActivityType) Reset() { + *x = ActivityType{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_common_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ActivityType) XXX_Merge(src proto.Message) { - xxx_messageInfo_ActivityType.Merge(m, src) -} -func (m *ActivityType) XXX_Size() int { - return m.Size() + +func (x *ActivityType) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ActivityType) XXX_DiscardUnknown() { - xxx_messageInfo_ActivityType.DiscardUnknown(m) + +func (*ActivityType) ProtoMessage() {} + +func (x *ActivityType) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_common_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ActivityType proto.InternalMessageInfo +// Deprecated: Use ActivityType.ProtoReflect.Descriptor instead. +func (*ActivityType) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_common_proto_rawDescGZIP(), []int{2} +} -func (m *ActivityType) GetName() string { - if m != nil { - return m.Name +func (x *ActivityType) GetName() string { + if x != nil { + return x.Name } return "" } type Payload struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` } -func (m *Payload) Reset() { *m = Payload{} } -func (*Payload) ProtoMessage() {} -func (*Payload) Descriptor() ([]byte, []int) { - return fileDescriptor_0ff151d4a308b356, []int{3} -} -func (m *Payload) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Payload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Payload.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *Payload) Reset() { + *x = Payload{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_common_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *Payload) XXX_Merge(src proto.Message) { - xxx_messageInfo_Payload.Merge(m, src) -} -func (m *Payload) XXX_Size() int { - return m.Size() + +func (x *Payload) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Payload) XXX_DiscardUnknown() { - xxx_messageInfo_Payload.DiscardUnknown(m) + +func (*Payload) ProtoMessage() {} + +func (x *Payload) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_common_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Payload proto.InternalMessageInfo +// Deprecated: Use Payload.ProtoReflect.Descriptor instead. +func (*Payload) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_common_proto_rawDescGZIP(), []int{3} +} -func (m *Payload) GetData() []byte { - if m != nil { - return m.Data +func (x *Payload) GetData() []byte { + if x != nil { + return x.Data } return nil } type Failure struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"` Details []byte `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"` } -func (m *Failure) Reset() { *m = Failure{} } -func (*Failure) ProtoMessage() {} -func (*Failure) Descriptor() ([]byte, []int) { - return fileDescriptor_0ff151d4a308b356, []int{4} -} -func (m *Failure) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Failure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Failure.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *Failure) Reset() { + *x = Failure{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_common_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *Failure) XXX_Merge(src proto.Message) { - xxx_messageInfo_Failure.Merge(m, src) -} -func (m *Failure) XXX_Size() int { - return m.Size() + +func (x *Failure) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Failure) XXX_DiscardUnknown() { - xxx_messageInfo_Failure.DiscardUnknown(m) + +func (*Failure) ProtoMessage() {} + +func (x *Failure) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_common_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Failure proto.InternalMessageInfo +// Deprecated: Use Failure.ProtoReflect.Descriptor instead. +func (*Failure) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_common_proto_rawDescGZIP(), []int{4} +} -func (m *Failure) GetReason() string { - if m != nil { - return m.Reason +func (x *Failure) GetReason() string { + if x != nil { + return x.Reason } return "" } -func (m *Failure) GetDetails() []byte { - if m != nil { - return m.Details +func (x *Failure) GetDetails() []byte { + if x != nil { + return x.Details } return nil } type Memo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Fields map[string]*Payload `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func (m *Memo) Reset() { *m = Memo{} } -func (*Memo) ProtoMessage() {} -func (*Memo) Descriptor() ([]byte, []int) { - return fileDescriptor_0ff151d4a308b356, []int{5} -} -func (m *Memo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Memo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Memo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *Memo) Reset() { + *x = Memo{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_common_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *Memo) XXX_Merge(src proto.Message) { - xxx_messageInfo_Memo.Merge(m, src) -} -func (m *Memo) XXX_Size() int { - return m.Size() + +func (x *Memo) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Memo) XXX_DiscardUnknown() { - xxx_messageInfo_Memo.DiscardUnknown(m) + +func (*Memo) ProtoMessage() {} + +func (x *Memo) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_common_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Memo proto.InternalMessageInfo +// Deprecated: Use Memo.ProtoReflect.Descriptor instead. +func (*Memo) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_common_proto_rawDescGZIP(), []int{5} +} -func (m *Memo) GetFields() map[string]*Payload { - if m != nil { - return m.Fields +func (x *Memo) GetFields() map[string]*Payload { + if x != nil { + return x.Fields } return nil } type Header struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Fields map[string]*Payload `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func (m *Header) Reset() { *m = Header{} } -func (*Header) ProtoMessage() {} -func (*Header) Descriptor() ([]byte, []int) { - return fileDescriptor_0ff151d4a308b356, []int{6} -} -func (m *Header) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Header.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *Header) Reset() { + *x = Header{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_common_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *Header) XXX_Merge(src proto.Message) { - xxx_messageInfo_Header.Merge(m, src) -} -func (m *Header) XXX_Size() int { - return m.Size() + +func (x *Header) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Header) XXX_DiscardUnknown() { - xxx_messageInfo_Header.DiscardUnknown(m) + +func (*Header) ProtoMessage() {} + +func (x *Header) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_common_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Header proto.InternalMessageInfo +// Deprecated: Use Header.ProtoReflect.Descriptor instead. +func (*Header) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_common_proto_rawDescGZIP(), []int{6} +} -func (m *Header) GetFields() map[string]*Payload { - if m != nil { - return m.Fields +func (x *Header) GetFields() map[string]*Payload { + if x != nil { + return x.Fields } return nil } type SearchAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + IndexedFields map[string]*Payload `protobuf:"bytes,1,rep,name=indexed_fields,json=indexedFields,proto3" json:"indexed_fields,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func (m *SearchAttributes) Reset() { *m = SearchAttributes{} } -func (*SearchAttributes) ProtoMessage() {} -func (*SearchAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_0ff151d4a308b356, []int{7} -} -func (m *SearchAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SearchAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SearchAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *SearchAttributes) Reset() { + *x = SearchAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_common_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *SearchAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_SearchAttributes.Merge(m, src) -} -func (m *SearchAttributes) XXX_Size() int { - return m.Size() + +func (x *SearchAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SearchAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_SearchAttributes.DiscardUnknown(m) + +func (*SearchAttributes) ProtoMessage() {} + +func (x *SearchAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_common_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SearchAttributes proto.InternalMessageInfo +// Deprecated: Use SearchAttributes.ProtoReflect.Descriptor instead. +func (*SearchAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_common_proto_rawDescGZIP(), []int{7} +} -func (m *SearchAttributes) GetIndexedFields() map[string]*Payload { - if m != nil { - return m.IndexedFields +func (x *SearchAttributes) GetIndexedFields() map[string]*Payload { + if x != nil { + return x.IndexedFields } return nil } type DataBlob struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + EncodingType EncodingType `protobuf:"varint,1,opt,name=encoding_type,json=encodingType,proto3,enum=uber.cadence.api.v1.EncodingType" json:"encoding_type,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` } -func (m *DataBlob) Reset() { *m = DataBlob{} } -func (*DataBlob) ProtoMessage() {} -func (*DataBlob) Descriptor() ([]byte, []int) { - return fileDescriptor_0ff151d4a308b356, []int{8} -} -func (m *DataBlob) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DataBlob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DataBlob.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *DataBlob) Reset() { + *x = DataBlob{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_common_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *DataBlob) XXX_Merge(src proto.Message) { - xxx_messageInfo_DataBlob.Merge(m, src) -} -func (m *DataBlob) XXX_Size() int { - return m.Size() + +func (x *DataBlob) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DataBlob) XXX_DiscardUnknown() { - xxx_messageInfo_DataBlob.DiscardUnknown(m) + +func (*DataBlob) ProtoMessage() {} + +func (x *DataBlob) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_common_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DataBlob proto.InternalMessageInfo +// Deprecated: Use DataBlob.ProtoReflect.Descriptor instead. +func (*DataBlob) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_common_proto_rawDescGZIP(), []int{8} +} -func (m *DataBlob) GetEncodingType() EncodingType { - if m != nil { - return m.EncodingType +func (x *DataBlob) GetEncodingType() EncodingType { + if x != nil { + return x.EncodingType } - return ENCODING_TYPE_INVALID + return EncodingType_ENCODING_TYPE_INVALID } -func (m *DataBlob) GetData() []byte { - if m != nil { - return m.Data +func (x *DataBlob) GetData() []byte { + if x != nil { + return x.Data } return nil } type WorkerVersionInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Impl string `protobuf:"bytes,1,opt,name=impl,proto3" json:"impl,omitempty"` FeatureVersion string `protobuf:"bytes,2,opt,name=feature_version,json=featureVersion,proto3" json:"feature_version,omitempty"` } -func (m *WorkerVersionInfo) Reset() { *m = WorkerVersionInfo{} } -func (*WorkerVersionInfo) ProtoMessage() {} -func (*WorkerVersionInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_0ff151d4a308b356, []int{9} -} -func (m *WorkerVersionInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkerVersionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkerVersionInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *WorkerVersionInfo) Reset() { + *x = WorkerVersionInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_common_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *WorkerVersionInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkerVersionInfo.Merge(m, src) -} -func (m *WorkerVersionInfo) XXX_Size() int { - return m.Size() + +func (x *WorkerVersionInfo) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WorkerVersionInfo) XXX_DiscardUnknown() { - xxx_messageInfo_WorkerVersionInfo.DiscardUnknown(m) + +func (*WorkerVersionInfo) ProtoMessage() {} + +func (x *WorkerVersionInfo) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_common_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WorkerVersionInfo proto.InternalMessageInfo +// Deprecated: Use WorkerVersionInfo.ProtoReflect.Descriptor instead. +func (*WorkerVersionInfo) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_common_proto_rawDescGZIP(), []int{9} +} -func (m *WorkerVersionInfo) GetImpl() string { - if m != nil { - return m.Impl +func (x *WorkerVersionInfo) GetImpl() string { + if x != nil { + return x.Impl } return "" } -func (m *WorkerVersionInfo) GetFeatureVersion() string { - if m != nil { - return m.FeatureVersion +func (x *WorkerVersionInfo) GetFeatureVersion() string { + if x != nil { + return x.FeatureVersion } return "" } type SupportedClientVersions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Indicates the highest Go SDK version server will accept requests from. GoSdk string `protobuf:"bytes,1,opt,name=go_sdk,json=goSdk,proto3" json:"go_sdk,omitempty"` // Indicates the highest Java SDK version server will accept requests from. JavaSdk string `protobuf:"bytes,2,opt,name=java_sdk,json=javaSdk,proto3" json:"java_sdk,omitempty"` } -func (m *SupportedClientVersions) Reset() { *m = SupportedClientVersions{} } -func (*SupportedClientVersions) ProtoMessage() {} -func (*SupportedClientVersions) Descriptor() ([]byte, []int) { - return fileDescriptor_0ff151d4a308b356, []int{10} -} -func (m *SupportedClientVersions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SupportedClientVersions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SupportedClientVersions.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *SupportedClientVersions) Reset() { + *x = SupportedClientVersions{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_common_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *SupportedClientVersions) XXX_Merge(src proto.Message) { - xxx_messageInfo_SupportedClientVersions.Merge(m, src) -} -func (m *SupportedClientVersions) XXX_Size() int { - return m.Size() + +func (x *SupportedClientVersions) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SupportedClientVersions) XXX_DiscardUnknown() { - xxx_messageInfo_SupportedClientVersions.DiscardUnknown(m) + +func (*SupportedClientVersions) ProtoMessage() {} + +func (x *SupportedClientVersions) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_common_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SupportedClientVersions proto.InternalMessageInfo +// Deprecated: Use SupportedClientVersions.ProtoReflect.Descriptor instead. +func (*SupportedClientVersions) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_common_proto_rawDescGZIP(), []int{10} +} -func (m *SupportedClientVersions) GetGoSdk() string { - if m != nil { - return m.GoSdk +func (x *SupportedClientVersions) GetGoSdk() string { + if x != nil { + return x.GoSdk } return "" } -func (m *SupportedClientVersions) GetJavaSdk() string { - if m != nil { - return m.JavaSdk +func (x *SupportedClientVersions) GetJavaSdk() string { + if x != nil { + return x.JavaSdk } return "" } type RetryPolicy struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Interval of the first retry. If backoffCoefficient is 1.0 then it is used for all retries. - InitialInterval *time.Duration `protobuf:"bytes,1,opt,name=initial_interval,json=initialInterval,proto3,stdduration" json:"initial_interval,omitempty"` + InitialInterval *durationpb.Duration `protobuf:"bytes,1,opt,name=initial_interval,json=initialInterval,proto3" json:"initial_interval,omitempty"` // Coefficient used to calculate the next retry interval. // The next retry interval is previous interval multiplied by the coefficient. // Must be 1 or larger. BackoffCoefficient float64 `protobuf:"fixed64,2,opt,name=backoff_coefficient,json=backoffCoefficient,proto3" json:"backoff_coefficient,omitempty"` // Maximum interval between retries. Exponential backoff leads to interval increase. // This value is the cap of the increase. Default is 100x of initial interval. - MaximumInterval *time.Duration `protobuf:"bytes,3,opt,name=maximum_interval,json=maximumInterval,proto3,stdduration" json:"maximum_interval,omitempty"` + MaximumInterval *durationpb.Duration `protobuf:"bytes,3,opt,name=maximum_interval,json=maximumInterval,proto3" json:"maximum_interval,omitempty"` // Maximum number of attempts. When exceeded the retries stop even if not expired yet. // Must be 1 or bigger. Default is unlimited. MaximumAttempts int32 `protobuf:"varint,4,opt,name=maximum_attempts,json=maximumAttempts,proto3" json:"maximum_attempts,omitempty"` // Non-Retryable errors. Will stop retrying if error type matches this list. NonRetryableErrorReasons []string `protobuf:"bytes,5,rep,name=non_retryable_error_reasons,json=nonRetryableErrorReasons,proto3" json:"non_retryable_error_reasons,omitempty"` // Expiration time for the whole retry process. - ExpirationInterval *time.Duration `protobuf:"bytes,6,opt,name=expiration_interval,json=expirationInterval,proto3,stdduration" json:"expiration_interval,omitempty"` + ExpirationInterval *durationpb.Duration `protobuf:"bytes,6,opt,name=expiration_interval,json=expirationInterval,proto3" json:"expiration_interval,omitempty"` } -func (m *RetryPolicy) Reset() { *m = RetryPolicy{} } -func (*RetryPolicy) ProtoMessage() {} -func (*RetryPolicy) Descriptor() ([]byte, []int) { - return fileDescriptor_0ff151d4a308b356, []int{11} -} -func (m *RetryPolicy) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RetryPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RetryPolicy.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RetryPolicy) Reset() { + *x = RetryPolicy{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_common_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RetryPolicy) XXX_Merge(src proto.Message) { - xxx_messageInfo_RetryPolicy.Merge(m, src) -} -func (m *RetryPolicy) XXX_Size() int { - return m.Size() -} -func (m *RetryPolicy) XXX_DiscardUnknown() { - xxx_messageInfo_RetryPolicy.DiscardUnknown(m) + +func (x *RetryPolicy) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_RetryPolicy proto.InternalMessageInfo +func (*RetryPolicy) ProtoMessage() {} -func (m *RetryPolicy) GetInitialInterval() *time.Duration { - if m != nil { - return m.InitialInterval +func (x *RetryPolicy) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_common_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *RetryPolicy) GetBackoffCoefficient() float64 { - if m != nil { - return m.BackoffCoefficient - } - return 0 +// Deprecated: Use RetryPolicy.ProtoReflect.Descriptor instead. +func (*RetryPolicy) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_common_proto_rawDescGZIP(), []int{11} } -func (m *RetryPolicy) GetMaximumInterval() *time.Duration { - if m != nil { - return m.MaximumInterval +func (x *RetryPolicy) GetInitialInterval() *durationpb.Duration { + if x != nil { + return x.InitialInterval } return nil } -func (m *RetryPolicy) GetMaximumAttempts() int32 { - if m != nil { - return m.MaximumAttempts +func (x *RetryPolicy) GetBackoffCoefficient() float64 { + if x != nil { + return x.BackoffCoefficient } return 0 } -func (m *RetryPolicy) GetNonRetryableErrorReasons() []string { - if m != nil { - return m.NonRetryableErrorReasons - } - return nil -} - -func (m *RetryPolicy) GetExpirationInterval() *time.Duration { - if m != nil { - return m.ExpirationInterval +func (x *RetryPolicy) GetMaximumInterval() *durationpb.Duration { + if x != nil { + return x.MaximumInterval } return nil } -func init() { - proto.RegisterEnum("uber.cadence.api.v1.EncodingType", EncodingType_name, EncodingType_value) - proto.RegisterType((*WorkflowExecution)(nil), "uber.cadence.api.v1.WorkflowExecution") - proto.RegisterType((*WorkflowType)(nil), "uber.cadence.api.v1.WorkflowType") - proto.RegisterType((*ActivityType)(nil), "uber.cadence.api.v1.ActivityType") - proto.RegisterType((*Payload)(nil), "uber.cadence.api.v1.Payload") - proto.RegisterType((*Failure)(nil), "uber.cadence.api.v1.Failure") - proto.RegisterType((*Memo)(nil), "uber.cadence.api.v1.Memo") - proto.RegisterMapType((map[string]*Payload)(nil), "uber.cadence.api.v1.Memo.FieldsEntry") - proto.RegisterType((*Header)(nil), "uber.cadence.api.v1.Header") - proto.RegisterMapType((map[string]*Payload)(nil), "uber.cadence.api.v1.Header.FieldsEntry") - proto.RegisterType((*SearchAttributes)(nil), "uber.cadence.api.v1.SearchAttributes") - proto.RegisterMapType((map[string]*Payload)(nil), "uber.cadence.api.v1.SearchAttributes.IndexedFieldsEntry") - proto.RegisterType((*DataBlob)(nil), "uber.cadence.api.v1.DataBlob") - proto.RegisterType((*WorkerVersionInfo)(nil), "uber.cadence.api.v1.WorkerVersionInfo") - proto.RegisterType((*SupportedClientVersions)(nil), "uber.cadence.api.v1.SupportedClientVersions") - proto.RegisterType((*RetryPolicy)(nil), "uber.cadence.api.v1.RetryPolicy") -} - -func init() { - proto.RegisterFile("github.com/uber/cadence/.gen/proto/api/v1/common.proto", fileDescriptor_0ff151d4a308b356) -} - -var fileDescriptor_0ff151d4a308b356 = []byte{ - // 881 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x54, 0x4f, 0x6f, 0x1b, 0x45, - 0x14, 0xf7, 0xc4, 0xb1, 0x93, 0x8e, 0xd3, 0xd4, 0x4c, 0x68, 0xea, 0x98, 0xb2, 0x35, 0x96, 0x50, - 0x03, 0x87, 0xb5, 0xe2, 0x5e, 0x2a, 0x50, 0x85, 0x9c, 0xc4, 0xa1, 0x6e, 0x21, 0xb1, 0xd6, 0x56, - 0x23, 0x38, 0xb0, 0x8c, 0x77, 0xdf, 0x9a, 0xc1, 0xbb, 0x33, 0xab, 0xd9, 0x59, 0x27, 0xbe, 0xf1, - 0x11, 0x10, 0x27, 0x4e, 0x1c, 0x38, 0xf1, 0x51, 0x38, 0x46, 0xe2, 0xd2, 0x1b, 0xc4, 0xb9, 0x70, - 0xec, 0x47, 0x40, 0xbb, 0x3b, 0x8e, 0x9d, 0x62, 0xa4, 0x1e, 0x50, 0x6f, 0x33, 0xef, 0xf7, 0x67, - 0x7e, 0x33, 0x7a, 0x6f, 0x70, 0x2d, 0x1e, 0x80, 0x6c, 0x38, 0xd4, 0x05, 0xee, 0x40, 0x83, 0x86, - 0xac, 0x31, 0xde, 0x6b, 0x38, 0x22, 0x08, 0x04, 0x37, 0x43, 0x29, 0x94, 0x20, 0x5b, 0x09, 0xc3, - 0xd4, 0x0c, 0x93, 0x86, 0xcc, 0x1c, 0xef, 0x55, 0x8d, 0xa1, 0x10, 0x43, 0x1f, 0x1a, 0x29, 0x65, - 0x10, 0x7b, 0x0d, 0x37, 0x96, 0x54, 0xb1, 0x99, 0xa8, 0x7a, 0xdf, 0x85, 0x10, 0x78, 0x22, 0x61, - 0x10, 0x35, 0x86, 0x62, 0x28, 0xd2, 0x7a, 0x86, 0xd6, 0x9f, 0xe3, 0x77, 0x4e, 0x85, 0x1c, 0x79, - 0xbe, 0x38, 0x6b, 0x9f, 0x83, 0x13, 0x27, 0x42, 0xf2, 0x00, 0x97, 0xce, 0x74, 0xd1, 0x66, 0x6e, - 0x05, 0xd5, 0xd0, 0xee, 0x2d, 0x0b, 0xcf, 0x4a, 0x1d, 0x97, 0xdc, 0xc5, 0x45, 0x19, 0xf3, 0x04, - 0x5b, 0x49, 0xb1, 0x82, 0x8c, 0x79, 0xc7, 0xad, 0xd7, 0xf1, 0xc6, 0xcc, 0xac, 0x3f, 0x09, 0x81, - 0x10, 0xbc, 0xca, 0x69, 0x00, 0xda, 0x20, 0x5d, 0x27, 0x9c, 0x96, 0xa3, 0xd8, 0x98, 0xa9, 0xc9, - 0x7f, 0x72, 0xde, 0xc7, 0x6b, 0x5d, 0x3a, 0xf1, 0x05, 0x75, 0x13, 0xd8, 0xa5, 0x8a, 0xa6, 0xf0, - 0x86, 0x95, 0xae, 0xeb, 0x9f, 0xe2, 0xb5, 0x23, 0xca, 0xfc, 0x58, 0x02, 0xd9, 0xc6, 0x45, 0x09, - 0x34, 0x12, 0x5c, 0xeb, 0xf5, 0x8e, 0x54, 0xf0, 0x9a, 0x0b, 0x8a, 0x32, 0x3f, 0x4a, 0x13, 0x6e, - 0x58, 0xb3, 0x6d, 0xfd, 0x17, 0x84, 0x57, 0xbf, 0x84, 0x40, 0x90, 0x27, 0xb8, 0xe8, 0x31, 0xf0, - 0xdd, 0xa8, 0x82, 0x6a, 0xf9, 0xdd, 0x52, 0xf3, 0x43, 0x73, 0xc9, 0xeb, 0x9a, 0x09, 0xd5, 0x3c, - 0x4a, 0x79, 0x6d, 0xae, 0xe4, 0xc4, 0xd2, 0xa2, 0xea, 0x29, 0x2e, 0x2d, 0x94, 0x49, 0x19, 0xe7, - 0x47, 0x30, 0xd1, 0x29, 0x92, 0x25, 0x69, 0xe2, 0xc2, 0x98, 0xfa, 0x31, 0xa4, 0x01, 0x4a, 0xcd, - 0xfb, 0x4b, 0xed, 0xf5, 0x35, 0xad, 0x8c, 0xfa, 0xc9, 0xca, 0x63, 0x54, 0xff, 0x15, 0xe1, 0xe2, - 0x53, 0xa0, 0x2e, 0x48, 0xf2, 0xd9, 0x6b, 0x11, 0x1f, 0x2e, 0xf5, 0xc8, 0xc8, 0x6f, 0x37, 0xe4, - 0x1f, 0x08, 0x97, 0x7b, 0x40, 0xa5, 0xf3, 0x5d, 0x4b, 0x29, 0xc9, 0x06, 0xb1, 0x82, 0x88, 0xd8, - 0x78, 0x93, 0x71, 0x17, 0xce, 0xc1, 0xb5, 0x6f, 0xc4, 0x7e, 0xbc, 0xd4, 0xf5, 0x75, 0xb9, 0xd9, - 0xc9, 0xb4, 0x8b, 0xf7, 0xb8, 0xcd, 0x16, 0x6b, 0xd5, 0x6f, 0x30, 0xf9, 0x37, 0xe9, 0x7f, 0xbc, - 0x95, 0x87, 0xd7, 0x0f, 0xa9, 0xa2, 0xfb, 0xbe, 0x18, 0x90, 0x23, 0x7c, 0x1b, 0xb8, 0x23, 0x5c, - 0xc6, 0x87, 0xb6, 0x9a, 0x84, 0x59, 0x83, 0x6e, 0x36, 0x3f, 0x58, 0xea, 0xd5, 0xd6, 0xcc, 0xa4, - 0xa3, 0xad, 0x0d, 0x58, 0xd8, 0x5d, 0x37, 0xf0, 0xca, 0x42, 0x03, 0x77, 0xb3, 0xa1, 0x03, 0xf9, - 0x02, 0x64, 0xc4, 0x04, 0xef, 0x70, 0x4f, 0x24, 0x44, 0x16, 0x84, 0xfe, 0x6c, 0x10, 0x92, 0x35, - 0x79, 0x88, 0xef, 0x78, 0x40, 0x55, 0x2c, 0xc1, 0x1e, 0x67, 0x54, 0x3d, 0x70, 0x9b, 0xba, 0xac, - 0x0d, 0xea, 0xcf, 0xf1, 0xbd, 0x5e, 0x1c, 0x86, 0x42, 0x2a, 0x70, 0x0f, 0x7c, 0x06, 0x5c, 0x69, - 0x24, 0x4a, 0x66, 0x75, 0x28, 0xec, 0xc8, 0x1d, 0x69, 0xe7, 0xc2, 0x50, 0xf4, 0xdc, 0x11, 0xd9, - 0xc1, 0xeb, 0xdf, 0xd3, 0x31, 0x4d, 0x81, 0xcc, 0x73, 0x2d, 0xd9, 0xf7, 0xdc, 0x51, 0xfd, 0xa7, - 0x3c, 0x2e, 0x59, 0xa0, 0xe4, 0xa4, 0x2b, 0x7c, 0xe6, 0x4c, 0xc8, 0x33, 0x5c, 0x66, 0x9c, 0x29, - 0x46, 0x7d, 0x9b, 0x71, 0x05, 0x72, 0x4c, 0xb3, 0x94, 0xa5, 0xe6, 0x8e, 0x99, 0x7d, 0x3e, 0xe6, - 0xec, 0xf3, 0x31, 0x0f, 0xf5, 0xe7, 0xb3, 0xbf, 0xfa, 0xf3, 0x9f, 0x0f, 0x90, 0x75, 0x47, 0x0b, - 0x3b, 0x5a, 0x47, 0x1a, 0x78, 0x6b, 0x40, 0x9d, 0x91, 0xf0, 0x3c, 0xdb, 0x11, 0xe0, 0x79, 0xcc, - 0x49, 0xc2, 0xa6, 0x09, 0x90, 0x45, 0x34, 0x74, 0x30, 0x47, 0x92, 0xc3, 0x03, 0x7a, 0xce, 0x82, - 0x38, 0x98, 0x1f, 0x9e, 0x7f, 0xc3, 0xc3, 0xb5, 0xf0, 0xfa, 0xf0, 0x8f, 0xe6, 0x5e, 0x54, 0x29, - 0x08, 0x42, 0x15, 0x55, 0x56, 0x6b, 0x68, 0xb7, 0x70, 0x4d, 0x6d, 0xe9, 0x32, 0x79, 0x82, 0xdf, - 0xe3, 0x82, 0xdb, 0x32, 0x79, 0x06, 0x3a, 0xf0, 0xc1, 0x06, 0x29, 0x85, 0xb4, 0xb3, 0xef, 0x25, - 0xaa, 0x14, 0x6a, 0xf9, 0xdd, 0x5b, 0x56, 0x85, 0x0b, 0x6e, 0xcd, 0x18, 0xed, 0x84, 0x60, 0x65, - 0x38, 0xe9, 0xe2, 0x2d, 0x38, 0x0f, 0x59, 0x16, 0x67, 0x1e, 0xbc, 0xf8, 0x66, 0xc1, 0xc9, 0x5c, - 0x3b, 0xcb, 0xfe, 0xf1, 0x19, 0xde, 0x58, 0xec, 0x32, 0xb2, 0x83, 0xef, 0xb6, 0x8f, 0x0f, 0x4e, - 0x0e, 0x3b, 0xc7, 0x9f, 0xdb, 0xfd, 0xaf, 0xba, 0x6d, 0xbb, 0x73, 0xfc, 0xa2, 0xf5, 0x45, 0xe7, - 0xb0, 0x9c, 0x23, 0x55, 0xbc, 0x7d, 0x13, 0xea, 0x3f, 0xb5, 0x3a, 0x47, 0x7d, 0xeb, 0xb4, 0x8c, - 0xc8, 0x36, 0x26, 0x37, 0xb1, 0x67, 0xbd, 0x93, 0xe3, 0xf2, 0x0a, 0xa9, 0xe0, 0x77, 0x6f, 0xd6, - 0xbb, 0xd6, 0x49, 0xff, 0xe4, 0x51, 0x39, 0xbf, 0xff, 0xed, 0xc5, 0xa5, 0x91, 0x7b, 0x79, 0x69, - 0xe4, 0x5e, 0x5d, 0x1a, 0xe8, 0x87, 0xa9, 0x81, 0x7e, 0x9b, 0x1a, 0xe8, 0xf7, 0xa9, 0x81, 0x2e, - 0xa6, 0x06, 0xfa, 0x6b, 0x6a, 0xa0, 0xbf, 0xa7, 0x46, 0xee, 0xd5, 0xd4, 0x40, 0x3f, 0x5e, 0x19, - 0xb9, 0x8b, 0x2b, 0x23, 0xf7, 0xf2, 0xca, 0xc8, 0xe1, 0x7b, 0x8e, 0x08, 0x96, 0x8d, 0xca, 0xfe, - 0x7a, 0x2b, 0x64, 0xdd, 0xe4, 0xde, 0x5d, 0xf4, 0x75, 0x81, 0x86, 0x6c, 0xbc, 0x37, 0x28, 0xa6, - 0xef, 0xf0, 0xe8, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x15, 0xff, 0xd9, 0x87, 0x01, 0x07, 0x00, - 0x00, -} - -func (x EncodingType) String() string { - s, ok := EncodingType_name[int32(x)] - if ok { - return s - } - return strconv.Itoa(int(x)) -} -func (this *WorkflowExecution) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*WorkflowExecution) - if !ok { - that2, ok := that.(WorkflowExecution) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.WorkflowId != that1.WorkflowId { - return false - } - if this.RunId != that1.RunId { - return false - } - return true -} -func (this *WorkflowType) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*WorkflowType) - if !ok { - that2, ok := that.(WorkflowType) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Name != that1.Name { - return false - } - return true -} -func (this *ActivityType) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ActivityType) - if !ok { - that2, ok := that.(ActivityType) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Name != that1.Name { - return false - } - return true -} -func (this *Payload) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Payload) - if !ok { - that2, ok := that.(Payload) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !bytes.Equal(this.Data, that1.Data) { - return false - } - return true -} -func (this *Failure) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Failure) - if !ok { - that2, ok := that.(Failure) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Reason != that1.Reason { - return false - } - if !bytes.Equal(this.Details, that1.Details) { - return false +func (x *RetryPolicy) GetMaximumAttempts() int32 { + if x != nil { + return x.MaximumAttempts } - return true + return 0 } -func (this *Memo) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*Memo) - if !ok { - that2, ok := that.(Memo) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false +func (x *RetryPolicy) GetNonRetryableErrorReasons() []string { + if x != nil { + return x.NonRetryableErrorReasons } - if len(this.Fields) != len(that1.Fields) { - return false - } - for i := range this.Fields { - if !this.Fields[i].Equal(that1.Fields[i]) { - return false - } - } - return true + return nil } -func (this *Header) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*Header) - if !ok { - that2, ok := that.(Header) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if len(this.Fields) != len(that1.Fields) { - return false +func (x *RetryPolicy) GetExpirationInterval() *durationpb.Duration { + if x != nil { + return x.ExpirationInterval } - for i := range this.Fields { - if !this.Fields[i].Equal(that1.Fields[i]) { - return false - } - } - return true + return nil } -func (this *SearchAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*SearchAttributes) - if !ok { - that2, ok := that.(SearchAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if len(this.IndexedFields) != len(that1.IndexedFields) { - return false - } - for i := range this.IndexedFields { - if !this.IndexedFields[i].Equal(that1.IndexedFields[i]) { - return false - } - } - return true +var File_uber_cadence_api_v1_common_proto protoreflect.FileDescriptor + +var file_uber_cadence_api_v1_common_proto_rawDesc = []byte{ + 0x0a, 0x20, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x13, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4b, 0x0a, 0x11, 0x57, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, + 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x49, 0x64, 0x12, 0x15, 0x0a, + 0x06, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, + 0x75, 0x6e, 0x49, 0x64, 0x22, 0x22, 0x0a, 0x0c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x22, 0x0a, 0x0c, 0x41, 0x63, 0x74, 0x69, + 0x76, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x1d, 0x0a, 0x07, + 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x3b, 0x0a, 0x07, 0x46, + 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x18, + 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0x9e, 0x01, 0x0a, 0x04, 0x4d, 0x65, 0x6d, + 0x6f, 0x12, 0x3d, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x25, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x6d, 0x6f, 0x2e, 0x46, 0x69, 0x65, + 0x6c, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, + 0x1a, 0x57, 0x0a, 0x0b, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x32, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xa2, 0x01, 0x0a, 0x06, 0x48, 0x65, + 0x61, 0x64, 0x65, 0x72, 0x12, 0x3f, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x66, + 0x69, 0x65, 0x6c, 0x64, 0x73, 0x1a, 0x57, 0x0a, 0x0b, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x32, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, + 0x6f, 0x61, 0x64, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xd3, + 0x01, 0x0a, 0x10, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x12, 0x5f, 0x0a, 0x0e, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x64, 0x5f, 0x66, + 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x64, 0x46, 0x69, + 0x65, 0x6c, 0x64, 0x73, 0x1a, 0x5e, 0x0a, 0x12, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x64, 0x46, + 0x69, 0x65, 0x6c, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x32, 0x0a, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x3a, 0x02, 0x38, 0x01, 0x22, 0x66, 0x0a, 0x08, 0x44, 0x61, 0x74, 0x61, 0x42, 0x6c, 0x6f, 0x62, + 0x12, 0x46, 0x0a, 0x0d, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, + 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x65, 0x6e, 0x63, 0x6f, + 0x64, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x50, 0x0a, 0x11, + 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, + 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x6d, 0x70, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x69, 0x6d, 0x70, 0x6c, 0x12, 0x27, 0x0a, 0x0f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, + 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, + 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x4b, + 0x0a, 0x17, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x43, 0x6c, 0x69, 0x65, 0x6e, + 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x15, 0x0a, 0x06, 0x67, 0x6f, 0x5f, + 0x73, 0x64, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x67, 0x6f, 0x53, 0x64, 0x6b, + 0x12, 0x19, 0x0a, 0x08, 0x6a, 0x61, 0x76, 0x61, 0x5f, 0x73, 0x64, 0x6b, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x6a, 0x61, 0x76, 0x61, 0x53, 0x64, 0x6b, 0x22, 0x80, 0x03, 0x0a, 0x0b, + 0x52, 0x65, 0x74, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x44, 0x0a, 0x10, 0x69, + 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x0f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, + 0x6c, 0x12, 0x2f, 0x0a, 0x13, 0x62, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x5f, 0x63, 0x6f, 0x65, + 0x66, 0x66, 0x69, 0x63, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x12, + 0x62, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x43, 0x6f, 0x65, 0x66, 0x66, 0x69, 0x63, 0x69, 0x65, + 0x6e, 0x74, 0x12, 0x44, 0x0a, 0x10, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x69, 0x6e, + 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, + 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x29, 0x0a, 0x10, 0x6d, 0x61, 0x78, 0x69, + 0x6d, 0x75, 0x6d, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x0f, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x41, 0x74, 0x74, 0x65, 0x6d, + 0x70, 0x74, 0x73, 0x12, 0x3d, 0x0a, 0x1b, 0x6e, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x74, 0x72, 0x79, + 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, + 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x18, 0x6e, 0x6f, 0x6e, 0x52, 0x65, 0x74, + 0x72, 0x79, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x61, 0x73, 0x6f, + 0x6e, 0x73, 0x12, 0x4a, 0x0a, 0x13, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x12, 0x65, 0x78, 0x70, 0x69, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x2a, 0x77, + 0x0a, 0x0c, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, + 0x0a, 0x15, 0x45, 0x4e, 0x43, 0x4f, 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x45, 0x4e, 0x43, + 0x4f, 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x48, 0x52, 0x49, 0x46, + 0x54, 0x52, 0x57, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x45, 0x4e, 0x43, 0x4f, 0x44, 0x49, 0x4e, + 0x47, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4a, 0x53, 0x4f, 0x4e, 0x10, 0x02, 0x12, 0x18, 0x0a, + 0x14, 0x45, 0x4e, 0x43, 0x4f, 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, + 0x52, 0x4f, 0x54, 0x4f, 0x33, 0x10, 0x03, 0x42, 0x56, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x76, 0x31, 0x42, 0x08, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2f, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x62, 0x65, 0x72, 0x2f, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x2e, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x70, 0x69, 0x76, 0x31, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func (this *DataBlob) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*DataBlob) - if !ok { - that2, ok := that.(DataBlob) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.EncodingType != that1.EncodingType { - return false - } - if !bytes.Equal(this.Data, that1.Data) { - return false - } - return true -} -func (this *WorkerVersionInfo) Equal(that interface{}) bool { - if that == nil { - return this == nil - } +var ( + file_uber_cadence_api_v1_common_proto_rawDescOnce sync.Once + file_uber_cadence_api_v1_common_proto_rawDescData = file_uber_cadence_api_v1_common_proto_rawDesc +) - that1, ok := that.(*WorkerVersionInfo) - if !ok { - that2, ok := that.(WorkerVersionInfo) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Impl != that1.Impl { - return false - } - if this.FeatureVersion != that1.FeatureVersion { - return false - } - return true +func file_uber_cadence_api_v1_common_proto_rawDescGZIP() []byte { + file_uber_cadence_api_v1_common_proto_rawDescOnce.Do(func() { + file_uber_cadence_api_v1_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_uber_cadence_api_v1_common_proto_rawDescData) + }) + return file_uber_cadence_api_v1_common_proto_rawDescData +} + +var file_uber_cadence_api_v1_common_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_uber_cadence_api_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 15) +var file_uber_cadence_api_v1_common_proto_goTypes = []interface{}{ + (EncodingType)(0), // 0: uber.cadence.api.v1.EncodingType + (*WorkflowExecution)(nil), // 1: uber.cadence.api.v1.WorkflowExecution + (*WorkflowType)(nil), // 2: uber.cadence.api.v1.WorkflowType + (*ActivityType)(nil), // 3: uber.cadence.api.v1.ActivityType + (*Payload)(nil), // 4: uber.cadence.api.v1.Payload + (*Failure)(nil), // 5: uber.cadence.api.v1.Failure + (*Memo)(nil), // 6: uber.cadence.api.v1.Memo + (*Header)(nil), // 7: uber.cadence.api.v1.Header + (*SearchAttributes)(nil), // 8: uber.cadence.api.v1.SearchAttributes + (*DataBlob)(nil), // 9: uber.cadence.api.v1.DataBlob + (*WorkerVersionInfo)(nil), // 10: uber.cadence.api.v1.WorkerVersionInfo + (*SupportedClientVersions)(nil), // 11: uber.cadence.api.v1.SupportedClientVersions + (*RetryPolicy)(nil), // 12: uber.cadence.api.v1.RetryPolicy + nil, // 13: uber.cadence.api.v1.Memo.FieldsEntry + nil, // 14: uber.cadence.api.v1.Header.FieldsEntry + nil, // 15: uber.cadence.api.v1.SearchAttributes.IndexedFieldsEntry + (*durationpb.Duration)(nil), // 16: google.protobuf.Duration +} +var file_uber_cadence_api_v1_common_proto_depIdxs = []int32{ + 13, // 0: uber.cadence.api.v1.Memo.fields:type_name -> uber.cadence.api.v1.Memo.FieldsEntry + 14, // 1: uber.cadence.api.v1.Header.fields:type_name -> uber.cadence.api.v1.Header.FieldsEntry + 15, // 2: uber.cadence.api.v1.SearchAttributes.indexed_fields:type_name -> uber.cadence.api.v1.SearchAttributes.IndexedFieldsEntry + 0, // 3: uber.cadence.api.v1.DataBlob.encoding_type:type_name -> uber.cadence.api.v1.EncodingType + 16, // 4: uber.cadence.api.v1.RetryPolicy.initial_interval:type_name -> google.protobuf.Duration + 16, // 5: uber.cadence.api.v1.RetryPolicy.maximum_interval:type_name -> google.protobuf.Duration + 16, // 6: uber.cadence.api.v1.RetryPolicy.expiration_interval:type_name -> google.protobuf.Duration + 4, // 7: uber.cadence.api.v1.Memo.FieldsEntry.value:type_name -> uber.cadence.api.v1.Payload + 4, // 8: uber.cadence.api.v1.Header.FieldsEntry.value:type_name -> uber.cadence.api.v1.Payload + 4, // 9: uber.cadence.api.v1.SearchAttributes.IndexedFieldsEntry.value:type_name -> uber.cadence.api.v1.Payload + 10, // [10:10] is the sub-list for method output_type + 10, // [10:10] is the sub-list for method input_type + 10, // [10:10] is the sub-list for extension type_name + 10, // [10:10] is the sub-list for extension extendee + 0, // [0:10] is the sub-list for field type_name +} + +func init() { file_uber_cadence_api_v1_common_proto_init() } +func file_uber_cadence_api_v1_common_proto_init() { + if File_uber_cadence_api_v1_common_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_uber_cadence_api_v1_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowExecution); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_common_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowType); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_common_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ActivityType); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_common_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Payload); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_common_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Failure); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_common_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Memo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_common_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Header); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_common_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SearchAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_common_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DataBlob); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_common_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkerVersionInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_common_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SupportedClientVersions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_common_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RetryPolicy); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_uber_cadence_api_v1_common_proto_rawDesc, + NumEnums: 1, + NumMessages: 15, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_uber_cadence_api_v1_common_proto_goTypes, + DependencyIndexes: file_uber_cadence_api_v1_common_proto_depIdxs, + EnumInfos: file_uber_cadence_api_v1_common_proto_enumTypes, + MessageInfos: file_uber_cadence_api_v1_common_proto_msgTypes, + }.Build() + File_uber_cadence_api_v1_common_proto = out.File + file_uber_cadence_api_v1_common_proto_rawDesc = nil + file_uber_cadence_api_v1_common_proto_goTypes = nil + file_uber_cadence_api_v1_common_proto_depIdxs = nil } -func (this *SupportedClientVersions) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*SupportedClientVersions) - if !ok { - that2, ok := that.(SupportedClientVersions) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.GoSdk != that1.GoSdk { - return false - } - if this.JavaSdk != that1.JavaSdk { - return false - } - return true -} -func (this *RetryPolicy) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RetryPolicy) - if !ok { - that2, ok := that.(RetryPolicy) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.InitialInterval != nil && that1.InitialInterval != nil { - if *this.InitialInterval != *that1.InitialInterval { - return false - } - } else if this.InitialInterval != nil { - return false - } else if that1.InitialInterval != nil { - return false - } - if this.BackoffCoefficient != that1.BackoffCoefficient { - return false - } - if this.MaximumInterval != nil && that1.MaximumInterval != nil { - if *this.MaximumInterval != *that1.MaximumInterval { - return false - } - } else if this.MaximumInterval != nil { - return false - } else if that1.MaximumInterval != nil { - return false - } - if this.MaximumAttempts != that1.MaximumAttempts { - return false - } - if len(this.NonRetryableErrorReasons) != len(that1.NonRetryableErrorReasons) { - return false - } - for i := range this.NonRetryableErrorReasons { - if this.NonRetryableErrorReasons[i] != that1.NonRetryableErrorReasons[i] { - return false - } - } - if this.ExpirationInterval != nil && that1.ExpirationInterval != nil { - if *this.ExpirationInterval != *that1.ExpirationInterval { - return false - } - } else if this.ExpirationInterval != nil { - return false - } else if that1.ExpirationInterval != nil { - return false - } - return true -} -func (this *WorkflowExecution) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.WorkflowExecution{") - s = append(s, "WorkflowId: "+fmt.Sprintf("%#v", this.WorkflowId)+",\n") - s = append(s, "RunId: "+fmt.Sprintf("%#v", this.RunId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *WorkflowType) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&apiv1.WorkflowType{") - s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ActivityType) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&apiv1.ActivityType{") - s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *Payload) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&apiv1.Payload{") - s = append(s, "Data: "+fmt.Sprintf("%#v", this.Data)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *Failure) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.Failure{") - s = append(s, "Reason: "+fmt.Sprintf("%#v", this.Reason)+",\n") - s = append(s, "Details: "+fmt.Sprintf("%#v", this.Details)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *Memo) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&apiv1.Memo{") - keysForFields := make([]string, 0, len(this.Fields)) - for k, _ := range this.Fields { - keysForFields = append(keysForFields, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForFields) - mapStringForFields := "map[string]*Payload{" - for _, k := range keysForFields { - mapStringForFields += fmt.Sprintf("%#v: %#v,", k, this.Fields[k]) - } - mapStringForFields += "}" - if this.Fields != nil { - s = append(s, "Fields: "+mapStringForFields+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *Header) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&apiv1.Header{") - keysForFields := make([]string, 0, len(this.Fields)) - for k, _ := range this.Fields { - keysForFields = append(keysForFields, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForFields) - mapStringForFields := "map[string]*Payload{" - for _, k := range keysForFields { - mapStringForFields += fmt.Sprintf("%#v: %#v,", k, this.Fields[k]) - } - mapStringForFields += "}" - if this.Fields != nil { - s = append(s, "Fields: "+mapStringForFields+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *SearchAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&apiv1.SearchAttributes{") - keysForIndexedFields := make([]string, 0, len(this.IndexedFields)) - for k, _ := range this.IndexedFields { - keysForIndexedFields = append(keysForIndexedFields, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForIndexedFields) - mapStringForIndexedFields := "map[string]*Payload{" - for _, k := range keysForIndexedFields { - mapStringForIndexedFields += fmt.Sprintf("%#v: %#v,", k, this.IndexedFields[k]) - } - mapStringForIndexedFields += "}" - if this.IndexedFields != nil { - s = append(s, "IndexedFields: "+mapStringForIndexedFields+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DataBlob) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.DataBlob{") - s = append(s, "EncodingType: "+fmt.Sprintf("%#v", this.EncodingType)+",\n") - s = append(s, "Data: "+fmt.Sprintf("%#v", this.Data)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *WorkerVersionInfo) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.WorkerVersionInfo{") - s = append(s, "Impl: "+fmt.Sprintf("%#v", this.Impl)+",\n") - s = append(s, "FeatureVersion: "+fmt.Sprintf("%#v", this.FeatureVersion)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *SupportedClientVersions) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.SupportedClientVersions{") - s = append(s, "GoSdk: "+fmt.Sprintf("%#v", this.GoSdk)+",\n") - s = append(s, "JavaSdk: "+fmt.Sprintf("%#v", this.JavaSdk)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RetryPolicy) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 10) - s = append(s, "&apiv1.RetryPolicy{") - s = append(s, "InitialInterval: "+fmt.Sprintf("%#v", this.InitialInterval)+",\n") - s = append(s, "BackoffCoefficient: "+fmt.Sprintf("%#v", this.BackoffCoefficient)+",\n") - s = append(s, "MaximumInterval: "+fmt.Sprintf("%#v", this.MaximumInterval)+",\n") - s = append(s, "MaximumAttempts: "+fmt.Sprintf("%#v", this.MaximumAttempts)+",\n") - s = append(s, "NonRetryableErrorReasons: "+fmt.Sprintf("%#v", this.NonRetryableErrorReasons)+",\n") - s = append(s, "ExpirationInterval: "+fmt.Sprintf("%#v", this.ExpirationInterval)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func valueToGoStringCommon(v interface{}, typ string) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) -} -func (m *WorkflowExecution) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WorkflowExecution) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WorkflowExecution) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RunId) > 0 { - i -= len(m.RunId) - copy(dAtA[i:], m.RunId) - i = encodeVarintCommon(dAtA, i, uint64(len(m.RunId))) - i-- - dAtA[i] = 0x12 - } - if len(m.WorkflowId) > 0 { - i -= len(m.WorkflowId) - copy(dAtA[i:], m.WorkflowId) - i = encodeVarintCommon(dAtA, i, uint64(len(m.WorkflowId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *WorkflowType) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WorkflowType) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WorkflowType) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintCommon(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ActivityType) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ActivityType) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ActivityType) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintCommon(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Payload) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Payload) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Payload) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Data) > 0 { - i -= len(m.Data) - copy(dAtA[i:], m.Data) - i = encodeVarintCommon(dAtA, i, uint64(len(m.Data))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Failure) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Failure) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Failure) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Details) > 0 { - i -= len(m.Details) - copy(dAtA[i:], m.Details) - i = encodeVarintCommon(dAtA, i, uint64(len(m.Details))) - i-- - dAtA[i] = 0x12 - } - if len(m.Reason) > 0 { - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintCommon(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Memo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Memo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Memo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Fields) > 0 { - for k := range m.Fields { - v := m.Fields[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommon(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintCommon(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintCommon(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *Header) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Header) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Header) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Fields) > 0 { - for k := range m.Fields { - v := m.Fields[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommon(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintCommon(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintCommon(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *SearchAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SearchAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SearchAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.IndexedFields) > 0 { - for k := range m.IndexedFields { - v := m.IndexedFields[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommon(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintCommon(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintCommon(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *DataBlob) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DataBlob) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DataBlob) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Data) > 0 { - i -= len(m.Data) - copy(dAtA[i:], m.Data) - i = encodeVarintCommon(dAtA, i, uint64(len(m.Data))) - i-- - dAtA[i] = 0x12 - } - if m.EncodingType != 0 { - i = encodeVarintCommon(dAtA, i, uint64(m.EncodingType)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *WorkerVersionInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WorkerVersionInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WorkerVersionInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.FeatureVersion) > 0 { - i -= len(m.FeatureVersion) - copy(dAtA[i:], m.FeatureVersion) - i = encodeVarintCommon(dAtA, i, uint64(len(m.FeatureVersion))) - i-- - dAtA[i] = 0x12 - } - if len(m.Impl) > 0 { - i -= len(m.Impl) - copy(dAtA[i:], m.Impl) - i = encodeVarintCommon(dAtA, i, uint64(len(m.Impl))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *SupportedClientVersions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SupportedClientVersions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SupportedClientVersions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.JavaSdk) > 0 { - i -= len(m.JavaSdk) - copy(dAtA[i:], m.JavaSdk) - i = encodeVarintCommon(dAtA, i, uint64(len(m.JavaSdk))) - i-- - dAtA[i] = 0x12 - } - if len(m.GoSdk) > 0 { - i -= len(m.GoSdk) - copy(dAtA[i:], m.GoSdk) - i = encodeVarintCommon(dAtA, i, uint64(len(m.GoSdk))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RetryPolicy) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RetryPolicy) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RetryPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ExpirationInterval != nil { - n4, err4 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.ExpirationInterval, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ExpirationInterval):]) - if err4 != nil { - return 0, err4 - } - i -= n4 - i = encodeVarintCommon(dAtA, i, uint64(n4)) - i-- - dAtA[i] = 0x32 - } - if len(m.NonRetryableErrorReasons) > 0 { - for iNdEx := len(m.NonRetryableErrorReasons) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.NonRetryableErrorReasons[iNdEx]) - copy(dAtA[i:], m.NonRetryableErrorReasons[iNdEx]) - i = encodeVarintCommon(dAtA, i, uint64(len(m.NonRetryableErrorReasons[iNdEx]))) - i-- - dAtA[i] = 0x2a - } - } - if m.MaximumAttempts != 0 { - i = encodeVarintCommon(dAtA, i, uint64(m.MaximumAttempts)) - i-- - dAtA[i] = 0x20 - } - if m.MaximumInterval != nil { - n5, err5 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.MaximumInterval, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.MaximumInterval):]) - if err5 != nil { - return 0, err5 - } - i -= n5 - i = encodeVarintCommon(dAtA, i, uint64(n5)) - i-- - dAtA[i] = 0x1a - } - if m.BackoffCoefficient != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.BackoffCoefficient)))) - i-- - dAtA[i] = 0x11 - } - if m.InitialInterval != nil { - n6, err6 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.InitialInterval, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.InitialInterval):]) - if err6 != nil { - return 0, err6 - } - i -= n6 - i = encodeVarintCommon(dAtA, i, uint64(n6)) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintCommon(dAtA []byte, offset int, v uint64) int { - offset -= sovCommon(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *WorkflowExecution) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.WorkflowId) - if l > 0 { - n += 1 + l + sovCommon(uint64(l)) - } - l = len(m.RunId) - if l > 0 { - n += 1 + l + sovCommon(uint64(l)) - } - return n -} - -func (m *WorkflowType) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovCommon(uint64(l)) - } - return n -} - -func (m *ActivityType) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovCommon(uint64(l)) - } - return n -} - -func (m *Payload) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Data) - if l > 0 { - n += 1 + l + sovCommon(uint64(l)) - } - return n -} - -func (m *Failure) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovCommon(uint64(l)) - } - l = len(m.Details) - if l > 0 { - n += 1 + l + sovCommon(uint64(l)) - } - return n -} - -func (m *Memo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Fields) > 0 { - for k, v := range m.Fields { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovCommon(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovCommon(uint64(len(k))) + l - n += mapEntrySize + 1 + sovCommon(uint64(mapEntrySize)) - } - } - return n -} - -func (m *Header) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Fields) > 0 { - for k, v := range m.Fields { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovCommon(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovCommon(uint64(len(k))) + l - n += mapEntrySize + 1 + sovCommon(uint64(mapEntrySize)) - } - } - return n -} - -func (m *SearchAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.IndexedFields) > 0 { - for k, v := range m.IndexedFields { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovCommon(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovCommon(uint64(len(k))) + l - n += mapEntrySize + 1 + sovCommon(uint64(mapEntrySize)) - } - } - return n -} - -func (m *DataBlob) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.EncodingType != 0 { - n += 1 + sovCommon(uint64(m.EncodingType)) - } - l = len(m.Data) - if l > 0 { - n += 1 + l + sovCommon(uint64(l)) - } - return n -} - -func (m *WorkerVersionInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Impl) - if l > 0 { - n += 1 + l + sovCommon(uint64(l)) - } - l = len(m.FeatureVersion) - if l > 0 { - n += 1 + l + sovCommon(uint64(l)) - } - return n -} - -func (m *SupportedClientVersions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.GoSdk) - if l > 0 { - n += 1 + l + sovCommon(uint64(l)) - } - l = len(m.JavaSdk) - if l > 0 { - n += 1 + l + sovCommon(uint64(l)) - } - return n -} - -func (m *RetryPolicy) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.InitialInterval != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.InitialInterval) - n += 1 + l + sovCommon(uint64(l)) - } - if m.BackoffCoefficient != 0 { - n += 9 - } - if m.MaximumInterval != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.MaximumInterval) - n += 1 + l + sovCommon(uint64(l)) - } - if m.MaximumAttempts != 0 { - n += 1 + sovCommon(uint64(m.MaximumAttempts)) - } - if len(m.NonRetryableErrorReasons) > 0 { - for _, s := range m.NonRetryableErrorReasons { - l = len(s) - n += 1 + l + sovCommon(uint64(l)) - } - } - if m.ExpirationInterval != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ExpirationInterval) - n += 1 + l + sovCommon(uint64(l)) - } - return n -} - -func sovCommon(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozCommon(x uint64) (n int) { - return sovCommon(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *WorkflowExecution) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&WorkflowExecution{`, - `WorkflowId:` + fmt.Sprintf("%v", this.WorkflowId) + `,`, - `RunId:` + fmt.Sprintf("%v", this.RunId) + `,`, - `}`, - }, "") - return s -} -func (this *WorkflowType) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&WorkflowType{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `}`, - }, "") - return s -} -func (this *ActivityType) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ActivityType{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `}`, - }, "") - return s -} -func (this *Payload) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Payload{`, - `Data:` + fmt.Sprintf("%v", this.Data) + `,`, - `}`, - }, "") - return s -} -func (this *Failure) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Failure{`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Details:` + fmt.Sprintf("%v", this.Details) + `,`, - `}`, - }, "") - return s -} -func (this *Memo) String() string { - if this == nil { - return "nil" - } - keysForFields := make([]string, 0, len(this.Fields)) - for k, _ := range this.Fields { - keysForFields = append(keysForFields, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForFields) - mapStringForFields := "map[string]*Payload{" - for _, k := range keysForFields { - mapStringForFields += fmt.Sprintf("%v: %v,", k, this.Fields[k]) - } - mapStringForFields += "}" - s := strings.Join([]string{`&Memo{`, - `Fields:` + mapStringForFields + `,`, - `}`, - }, "") - return s -} -func (this *Header) String() string { - if this == nil { - return "nil" - } - keysForFields := make([]string, 0, len(this.Fields)) - for k, _ := range this.Fields { - keysForFields = append(keysForFields, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForFields) - mapStringForFields := "map[string]*Payload{" - for _, k := range keysForFields { - mapStringForFields += fmt.Sprintf("%v: %v,", k, this.Fields[k]) - } - mapStringForFields += "}" - s := strings.Join([]string{`&Header{`, - `Fields:` + mapStringForFields + `,`, - `}`, - }, "") - return s -} -func (this *SearchAttributes) String() string { - if this == nil { - return "nil" - } - keysForIndexedFields := make([]string, 0, len(this.IndexedFields)) - for k, _ := range this.IndexedFields { - keysForIndexedFields = append(keysForIndexedFields, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForIndexedFields) - mapStringForIndexedFields := "map[string]*Payload{" - for _, k := range keysForIndexedFields { - mapStringForIndexedFields += fmt.Sprintf("%v: %v,", k, this.IndexedFields[k]) - } - mapStringForIndexedFields += "}" - s := strings.Join([]string{`&SearchAttributes{`, - `IndexedFields:` + mapStringForIndexedFields + `,`, - `}`, - }, "") - return s -} -func (this *DataBlob) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DataBlob{`, - `EncodingType:` + fmt.Sprintf("%v", this.EncodingType) + `,`, - `Data:` + fmt.Sprintf("%v", this.Data) + `,`, - `}`, - }, "") - return s -} -func (this *WorkerVersionInfo) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&WorkerVersionInfo{`, - `Impl:` + fmt.Sprintf("%v", this.Impl) + `,`, - `FeatureVersion:` + fmt.Sprintf("%v", this.FeatureVersion) + `,`, - `}`, - }, "") - return s -} -func (this *SupportedClientVersions) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SupportedClientVersions{`, - `GoSdk:` + fmt.Sprintf("%v", this.GoSdk) + `,`, - `JavaSdk:` + fmt.Sprintf("%v", this.JavaSdk) + `,`, - `}`, - }, "") - return s -} -func (this *RetryPolicy) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RetryPolicy{`, - `InitialInterval:` + strings.Replace(fmt.Sprintf("%v", this.InitialInterval), "Duration", "duration.Duration", 1) + `,`, - `BackoffCoefficient:` + fmt.Sprintf("%v", this.BackoffCoefficient) + `,`, - `MaximumInterval:` + strings.Replace(fmt.Sprintf("%v", this.MaximumInterval), "Duration", "duration.Duration", 1) + `,`, - `MaximumAttempts:` + fmt.Sprintf("%v", this.MaximumAttempts) + `,`, - `NonRetryableErrorReasons:` + fmt.Sprintf("%v", this.NonRetryableErrorReasons) + `,`, - `ExpirationInterval:` + strings.Replace(fmt.Sprintf("%v", this.ExpirationInterval), "Duration", "duration.Duration", 1) + `,`, - `}`, - }, "") - return s -} -func valueToStringCommon(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *WorkflowExecution) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowExecution: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowExecution: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthCommon - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCommon - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.WorkflowId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RunId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthCommon - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCommon - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RunId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommon(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthCommon - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthCommon - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WorkflowType) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowType: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowType: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthCommon - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCommon - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommon(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthCommon - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthCommon - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ActivityType) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ActivityType: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ActivityType: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthCommon - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCommon - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommon(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthCommon - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthCommon - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Payload) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Payload: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Payload: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthCommon - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthCommon - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) - if m.Data == nil { - m.Data = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommon(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthCommon - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthCommon - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Failure) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Failure: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Failure: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthCommon - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCommon - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Details", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthCommon - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthCommon - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Details = append(m.Details[:0], dAtA[iNdEx:postIndex]...) - if m.Details == nil { - m.Details = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommon(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthCommon - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthCommon - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Memo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Memo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Memo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Fields", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthCommon - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCommon - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Fields == nil { - m.Fields = make(map[string]*Payload) - } - var mapkey string - var mapvalue *Payload - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthCommon - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthCommon - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthCommon - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthCommon - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &Payload{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipCommon(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthCommon - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Fields[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommon(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthCommon - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthCommon - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Header) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Header: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Header: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Fields", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthCommon - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCommon - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Fields == nil { - m.Fields = make(map[string]*Payload) - } - var mapkey string - var mapvalue *Payload - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthCommon - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthCommon - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthCommon - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthCommon - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &Payload{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipCommon(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthCommon - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Fields[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommon(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthCommon - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthCommon - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SearchAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SearchAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SearchAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IndexedFields", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthCommon - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCommon - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.IndexedFields == nil { - m.IndexedFields = make(map[string]*Payload) - } - var mapkey string - var mapvalue *Payload - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthCommon - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthCommon - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthCommon - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthCommon - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &Payload{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipCommon(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthCommon - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.IndexedFields[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommon(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthCommon - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthCommon - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DataBlob) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DataBlob: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DataBlob: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EncodingType", wireType) - } - m.EncodingType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EncodingType |= EncodingType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthCommon - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthCommon - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) - if m.Data == nil { - m.Data = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommon(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthCommon - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthCommon - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WorkerVersionInfo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkerVersionInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkerVersionInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Impl", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthCommon - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCommon - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Impl = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FeatureVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthCommon - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCommon - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FeatureVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommon(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthCommon - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthCommon - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SupportedClientVersions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SupportedClientVersions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SupportedClientVersions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GoSdk", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthCommon - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCommon - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GoSdk = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JavaSdk", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthCommon - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCommon - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.JavaSdk = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommon(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthCommon - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthCommon - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RetryPolicy) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RetryPolicy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RetryPolicy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InitialInterval", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthCommon - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCommon - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.InitialInterval == nil { - m.InitialInterval = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.InitialInterval, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field BackoffCoefficient", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.BackoffCoefficient = float64(math.Float64frombits(v)) - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaximumInterval", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthCommon - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCommon - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MaximumInterval == nil { - m.MaximumInterval = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.MaximumInterval, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaximumAttempts", wireType) - } - m.MaximumAttempts = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MaximumAttempts |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NonRetryableErrorReasons", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthCommon - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCommon - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NonRetryableErrorReasons = append(m.NonRetryableErrorReasons, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExpirationInterval", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommon - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthCommon - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCommon - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ExpirationInterval == nil { - m.ExpirationInterval = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.ExpirationInterval, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommon(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthCommon - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthCommon - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipCommon(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowCommon - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowCommon - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowCommon - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthCommon - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupCommon - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthCommon - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthCommon = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowCommon = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupCommon = fmt.Errorf("proto: unexpected end of group") -) diff --git a/.gen/proto/api/v1/decision.pb.go b/.gen/proto/api/v1/decision.pb.go index f0acbb1200c..0a53928d44b 100644 --- a/.gen/proto/api/v1/decision.pb.go +++ b/.gen/proto/api/v1/decision.pb.go @@ -1,60 +1,58 @@ -// The MIT License (MIT) - -// Copyright (c) 2017-2020 Uber Technologies Inc. - +// 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 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. +// 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. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.14.0 // source: uber/cadence/api/v1/decision.proto package apiv1 import ( - bytes "bytes" - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" reflect "reflect" - strings "strings" - time "time" + sync "sync" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" - _ "github.com/golang/protobuf/ptypes/duration" + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf -var _ = time.Kitchen +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// 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 +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type Decision struct { - // Types that are valid to be assigned to Attributes: + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Attributes: // *Decision_ScheduleActivityTaskDecisionAttributes // *Decision_StartTimerDecisionAttributes // *Decision_CompleteWorkflowExecutionDecisionAttributes @@ -71,99 +69,38 @@ type Decision struct { Attributes isDecision_Attributes `protobuf_oneof:"attributes"` } -func (m *Decision) Reset() { *m = Decision{} } -func (*Decision) ProtoMessage() {} -func (*Decision) Descriptor() ([]byte, []int) { - return fileDescriptor_fb529b236ea74dc2, []int{0} -} -func (m *Decision) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Decision) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Decision.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *Decision) Reset() { + *x = Decision{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_decision_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *Decision) XXX_Merge(src proto.Message) { - xxx_messageInfo_Decision.Merge(m, src) -} -func (m *Decision) XXX_Size() int { - return m.Size() -} -func (m *Decision) XXX_DiscardUnknown() { - xxx_messageInfo_Decision.DiscardUnknown(m) + +func (x *Decision) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_Decision proto.InternalMessageInfo +func (*Decision) ProtoMessage() {} -type isDecision_Attributes interface { - isDecision_Attributes() - Equal(interface{}) bool - MarshalTo([]byte) (int, error) - Size() int +func (x *Decision) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_decision_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type Decision_ScheduleActivityTaskDecisionAttributes struct { - ScheduleActivityTaskDecisionAttributes *ScheduleActivityTaskDecisionAttributes `protobuf:"bytes,1,opt,name=schedule_activity_task_decision_attributes,json=scheduleActivityTaskDecisionAttributes,proto3,oneof" json:"schedule_activity_task_decision_attributes,omitempty"` -} -type Decision_StartTimerDecisionAttributes struct { - StartTimerDecisionAttributes *StartTimerDecisionAttributes `protobuf:"bytes,2,opt,name=start_timer_decision_attributes,json=startTimerDecisionAttributes,proto3,oneof" json:"start_timer_decision_attributes,omitempty"` -} -type Decision_CompleteWorkflowExecutionDecisionAttributes struct { - CompleteWorkflowExecutionDecisionAttributes *CompleteWorkflowExecutionDecisionAttributes `protobuf:"bytes,3,opt,name=complete_workflow_execution_decision_attributes,json=completeWorkflowExecutionDecisionAttributes,proto3,oneof" json:"complete_workflow_execution_decision_attributes,omitempty"` -} -type Decision_FailWorkflowExecutionDecisionAttributes struct { - FailWorkflowExecutionDecisionAttributes *FailWorkflowExecutionDecisionAttributes `protobuf:"bytes,4,opt,name=fail_workflow_execution_decision_attributes,json=failWorkflowExecutionDecisionAttributes,proto3,oneof" json:"fail_workflow_execution_decision_attributes,omitempty"` -} -type Decision_RequestCancelActivityTaskDecisionAttributes struct { - RequestCancelActivityTaskDecisionAttributes *RequestCancelActivityTaskDecisionAttributes `protobuf:"bytes,5,opt,name=request_cancel_activity_task_decision_attributes,json=requestCancelActivityTaskDecisionAttributes,proto3,oneof" json:"request_cancel_activity_task_decision_attributes,omitempty"` -} -type Decision_CancelTimerDecisionAttributes struct { - CancelTimerDecisionAttributes *CancelTimerDecisionAttributes `protobuf:"bytes,6,opt,name=cancel_timer_decision_attributes,json=cancelTimerDecisionAttributes,proto3,oneof" json:"cancel_timer_decision_attributes,omitempty"` -} -type Decision_CancelWorkflowExecutionDecisionAttributes struct { - CancelWorkflowExecutionDecisionAttributes *CancelWorkflowExecutionDecisionAttributes `protobuf:"bytes,7,opt,name=cancel_workflow_execution_decision_attributes,json=cancelWorkflowExecutionDecisionAttributes,proto3,oneof" json:"cancel_workflow_execution_decision_attributes,omitempty"` -} -type Decision_RequestCancelExternalWorkflowExecutionDecisionAttributes struct { - RequestCancelExternalWorkflowExecutionDecisionAttributes *RequestCancelExternalWorkflowExecutionDecisionAttributes `protobuf:"bytes,8,opt,name=request_cancel_external_workflow_execution_decision_attributes,json=requestCancelExternalWorkflowExecutionDecisionAttributes,proto3,oneof" json:"request_cancel_external_workflow_execution_decision_attributes,omitempty"` -} -type Decision_RecordMarkerDecisionAttributes struct { - RecordMarkerDecisionAttributes *RecordMarkerDecisionAttributes `protobuf:"bytes,9,opt,name=record_marker_decision_attributes,json=recordMarkerDecisionAttributes,proto3,oneof" json:"record_marker_decision_attributes,omitempty"` -} -type Decision_ContinueAsNewWorkflowExecutionDecisionAttributes struct { - ContinueAsNewWorkflowExecutionDecisionAttributes *ContinueAsNewWorkflowExecutionDecisionAttributes `protobuf:"bytes,10,opt,name=continue_as_new_workflow_execution_decision_attributes,json=continueAsNewWorkflowExecutionDecisionAttributes,proto3,oneof" json:"continue_as_new_workflow_execution_decision_attributes,omitempty"` -} -type Decision_StartChildWorkflowExecutionDecisionAttributes struct { - StartChildWorkflowExecutionDecisionAttributes *StartChildWorkflowExecutionDecisionAttributes `protobuf:"bytes,11,opt,name=start_child_workflow_execution_decision_attributes,json=startChildWorkflowExecutionDecisionAttributes,proto3,oneof" json:"start_child_workflow_execution_decision_attributes,omitempty"` -} -type Decision_SignalExternalWorkflowExecutionDecisionAttributes struct { - SignalExternalWorkflowExecutionDecisionAttributes *SignalExternalWorkflowExecutionDecisionAttributes `protobuf:"bytes,12,opt,name=signal_external_workflow_execution_decision_attributes,json=signalExternalWorkflowExecutionDecisionAttributes,proto3,oneof" json:"signal_external_workflow_execution_decision_attributes,omitempty"` -} -type Decision_UpsertWorkflowSearchAttributesDecisionAttributes struct { - UpsertWorkflowSearchAttributesDecisionAttributes *UpsertWorkflowSearchAttributesDecisionAttributes `protobuf:"bytes,13,opt,name=upsert_workflow_search_attributes_decision_attributes,json=upsertWorkflowSearchAttributesDecisionAttributes,proto3,oneof" json:"upsert_workflow_search_attributes_decision_attributes,omitempty"` +// Deprecated: Use Decision.ProtoReflect.Descriptor instead. +func (*Decision) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_decision_proto_rawDescGZIP(), []int{0} } -func (*Decision_ScheduleActivityTaskDecisionAttributes) isDecision_Attributes() {} -func (*Decision_StartTimerDecisionAttributes) isDecision_Attributes() {} -func (*Decision_CompleteWorkflowExecutionDecisionAttributes) isDecision_Attributes() {} -func (*Decision_FailWorkflowExecutionDecisionAttributes) isDecision_Attributes() {} -func (*Decision_RequestCancelActivityTaskDecisionAttributes) isDecision_Attributes() {} -func (*Decision_CancelTimerDecisionAttributes) isDecision_Attributes() {} -func (*Decision_CancelWorkflowExecutionDecisionAttributes) isDecision_Attributes() {} -func (*Decision_RequestCancelExternalWorkflowExecutionDecisionAttributes) isDecision_Attributes() {} -func (*Decision_RecordMarkerDecisionAttributes) isDecision_Attributes() {} -func (*Decision_ContinueAsNewWorkflowExecutionDecisionAttributes) isDecision_Attributes() {} -func (*Decision_StartChildWorkflowExecutionDecisionAttributes) isDecision_Attributes() {} -func (*Decision_SignalExternalWorkflowExecutionDecisionAttributes) isDecision_Attributes() {} -func (*Decision_UpsertWorkflowSearchAttributesDecisionAttributes) isDecision_Attributes() {} - func (m *Decision) GetAttributes() isDecision_Attributes { if m != nil { return m.Attributes @@ -171,658 +108,749 @@ func (m *Decision) GetAttributes() isDecision_Attributes { return nil } -func (m *Decision) GetScheduleActivityTaskDecisionAttributes() *ScheduleActivityTaskDecisionAttributes { - if x, ok := m.GetAttributes().(*Decision_ScheduleActivityTaskDecisionAttributes); ok { +func (x *Decision) GetScheduleActivityTaskDecisionAttributes() *ScheduleActivityTaskDecisionAttributes { + if x, ok := x.GetAttributes().(*Decision_ScheduleActivityTaskDecisionAttributes); ok { return x.ScheduleActivityTaskDecisionAttributes } return nil } -func (m *Decision) GetStartTimerDecisionAttributes() *StartTimerDecisionAttributes { - if x, ok := m.GetAttributes().(*Decision_StartTimerDecisionAttributes); ok { +func (x *Decision) GetStartTimerDecisionAttributes() *StartTimerDecisionAttributes { + if x, ok := x.GetAttributes().(*Decision_StartTimerDecisionAttributes); ok { return x.StartTimerDecisionAttributes } return nil } -func (m *Decision) GetCompleteWorkflowExecutionDecisionAttributes() *CompleteWorkflowExecutionDecisionAttributes { - if x, ok := m.GetAttributes().(*Decision_CompleteWorkflowExecutionDecisionAttributes); ok { +func (x *Decision) GetCompleteWorkflowExecutionDecisionAttributes() *CompleteWorkflowExecutionDecisionAttributes { + if x, ok := x.GetAttributes().(*Decision_CompleteWorkflowExecutionDecisionAttributes); ok { return x.CompleteWorkflowExecutionDecisionAttributes } return nil } -func (m *Decision) GetFailWorkflowExecutionDecisionAttributes() *FailWorkflowExecutionDecisionAttributes { - if x, ok := m.GetAttributes().(*Decision_FailWorkflowExecutionDecisionAttributes); ok { +func (x *Decision) GetFailWorkflowExecutionDecisionAttributes() *FailWorkflowExecutionDecisionAttributes { + if x, ok := x.GetAttributes().(*Decision_FailWorkflowExecutionDecisionAttributes); ok { return x.FailWorkflowExecutionDecisionAttributes } return nil } -func (m *Decision) GetRequestCancelActivityTaskDecisionAttributes() *RequestCancelActivityTaskDecisionAttributes { - if x, ok := m.GetAttributes().(*Decision_RequestCancelActivityTaskDecisionAttributes); ok { +func (x *Decision) GetRequestCancelActivityTaskDecisionAttributes() *RequestCancelActivityTaskDecisionAttributes { + if x, ok := x.GetAttributes().(*Decision_RequestCancelActivityTaskDecisionAttributes); ok { return x.RequestCancelActivityTaskDecisionAttributes } return nil } -func (m *Decision) GetCancelTimerDecisionAttributes() *CancelTimerDecisionAttributes { - if x, ok := m.GetAttributes().(*Decision_CancelTimerDecisionAttributes); ok { +func (x *Decision) GetCancelTimerDecisionAttributes() *CancelTimerDecisionAttributes { + if x, ok := x.GetAttributes().(*Decision_CancelTimerDecisionAttributes); ok { return x.CancelTimerDecisionAttributes } return nil } -func (m *Decision) GetCancelWorkflowExecutionDecisionAttributes() *CancelWorkflowExecutionDecisionAttributes { - if x, ok := m.GetAttributes().(*Decision_CancelWorkflowExecutionDecisionAttributes); ok { +func (x *Decision) GetCancelWorkflowExecutionDecisionAttributes() *CancelWorkflowExecutionDecisionAttributes { + if x, ok := x.GetAttributes().(*Decision_CancelWorkflowExecutionDecisionAttributes); ok { return x.CancelWorkflowExecutionDecisionAttributes } return nil } -func (m *Decision) GetRequestCancelExternalWorkflowExecutionDecisionAttributes() *RequestCancelExternalWorkflowExecutionDecisionAttributes { - if x, ok := m.GetAttributes().(*Decision_RequestCancelExternalWorkflowExecutionDecisionAttributes); ok { +func (x *Decision) GetRequestCancelExternalWorkflowExecutionDecisionAttributes() *RequestCancelExternalWorkflowExecutionDecisionAttributes { + if x, ok := x.GetAttributes().(*Decision_RequestCancelExternalWorkflowExecutionDecisionAttributes); ok { return x.RequestCancelExternalWorkflowExecutionDecisionAttributes } return nil } -func (m *Decision) GetRecordMarkerDecisionAttributes() *RecordMarkerDecisionAttributes { - if x, ok := m.GetAttributes().(*Decision_RecordMarkerDecisionAttributes); ok { +func (x *Decision) GetRecordMarkerDecisionAttributes() *RecordMarkerDecisionAttributes { + if x, ok := x.GetAttributes().(*Decision_RecordMarkerDecisionAttributes); ok { return x.RecordMarkerDecisionAttributes } return nil } -func (m *Decision) GetContinueAsNewWorkflowExecutionDecisionAttributes() *ContinueAsNewWorkflowExecutionDecisionAttributes { - if x, ok := m.GetAttributes().(*Decision_ContinueAsNewWorkflowExecutionDecisionAttributes); ok { +func (x *Decision) GetContinueAsNewWorkflowExecutionDecisionAttributes() *ContinueAsNewWorkflowExecutionDecisionAttributes { + if x, ok := x.GetAttributes().(*Decision_ContinueAsNewWorkflowExecutionDecisionAttributes); ok { return x.ContinueAsNewWorkflowExecutionDecisionAttributes } return nil } -func (m *Decision) GetStartChildWorkflowExecutionDecisionAttributes() *StartChildWorkflowExecutionDecisionAttributes { - if x, ok := m.GetAttributes().(*Decision_StartChildWorkflowExecutionDecisionAttributes); ok { +func (x *Decision) GetStartChildWorkflowExecutionDecisionAttributes() *StartChildWorkflowExecutionDecisionAttributes { + if x, ok := x.GetAttributes().(*Decision_StartChildWorkflowExecutionDecisionAttributes); ok { return x.StartChildWorkflowExecutionDecisionAttributes } return nil } -func (m *Decision) GetSignalExternalWorkflowExecutionDecisionAttributes() *SignalExternalWorkflowExecutionDecisionAttributes { - if x, ok := m.GetAttributes().(*Decision_SignalExternalWorkflowExecutionDecisionAttributes); ok { +func (x *Decision) GetSignalExternalWorkflowExecutionDecisionAttributes() *SignalExternalWorkflowExecutionDecisionAttributes { + if x, ok := x.GetAttributes().(*Decision_SignalExternalWorkflowExecutionDecisionAttributes); ok { return x.SignalExternalWorkflowExecutionDecisionAttributes } return nil } -func (m *Decision) GetUpsertWorkflowSearchAttributesDecisionAttributes() *UpsertWorkflowSearchAttributesDecisionAttributes { - if x, ok := m.GetAttributes().(*Decision_UpsertWorkflowSearchAttributesDecisionAttributes); ok { +func (x *Decision) GetUpsertWorkflowSearchAttributesDecisionAttributes() *UpsertWorkflowSearchAttributesDecisionAttributes { + if x, ok := x.GetAttributes().(*Decision_UpsertWorkflowSearchAttributesDecisionAttributes); ok { return x.UpsertWorkflowSearchAttributesDecisionAttributes } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Decision) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*Decision_ScheduleActivityTaskDecisionAttributes)(nil), - (*Decision_StartTimerDecisionAttributes)(nil), - (*Decision_CompleteWorkflowExecutionDecisionAttributes)(nil), - (*Decision_FailWorkflowExecutionDecisionAttributes)(nil), - (*Decision_RequestCancelActivityTaskDecisionAttributes)(nil), - (*Decision_CancelTimerDecisionAttributes)(nil), - (*Decision_CancelWorkflowExecutionDecisionAttributes)(nil), - (*Decision_RequestCancelExternalWorkflowExecutionDecisionAttributes)(nil), - (*Decision_RecordMarkerDecisionAttributes)(nil), - (*Decision_ContinueAsNewWorkflowExecutionDecisionAttributes)(nil), - (*Decision_StartChildWorkflowExecutionDecisionAttributes)(nil), - (*Decision_SignalExternalWorkflowExecutionDecisionAttributes)(nil), - (*Decision_UpsertWorkflowSearchAttributesDecisionAttributes)(nil), - } +type isDecision_Attributes interface { + isDecision_Attributes() +} + +type Decision_ScheduleActivityTaskDecisionAttributes struct { + ScheduleActivityTaskDecisionAttributes *ScheduleActivityTaskDecisionAttributes `protobuf:"bytes,1,opt,name=schedule_activity_task_decision_attributes,json=scheduleActivityTaskDecisionAttributes,proto3,oneof"` +} + +type Decision_StartTimerDecisionAttributes struct { + StartTimerDecisionAttributes *StartTimerDecisionAttributes `protobuf:"bytes,2,opt,name=start_timer_decision_attributes,json=startTimerDecisionAttributes,proto3,oneof"` +} + +type Decision_CompleteWorkflowExecutionDecisionAttributes struct { + CompleteWorkflowExecutionDecisionAttributes *CompleteWorkflowExecutionDecisionAttributes `protobuf:"bytes,3,opt,name=complete_workflow_execution_decision_attributes,json=completeWorkflowExecutionDecisionAttributes,proto3,oneof"` +} + +type Decision_FailWorkflowExecutionDecisionAttributes struct { + FailWorkflowExecutionDecisionAttributes *FailWorkflowExecutionDecisionAttributes `protobuf:"bytes,4,opt,name=fail_workflow_execution_decision_attributes,json=failWorkflowExecutionDecisionAttributes,proto3,oneof"` +} + +type Decision_RequestCancelActivityTaskDecisionAttributes struct { + RequestCancelActivityTaskDecisionAttributes *RequestCancelActivityTaskDecisionAttributes `protobuf:"bytes,5,opt,name=request_cancel_activity_task_decision_attributes,json=requestCancelActivityTaskDecisionAttributes,proto3,oneof"` +} + +type Decision_CancelTimerDecisionAttributes struct { + CancelTimerDecisionAttributes *CancelTimerDecisionAttributes `protobuf:"bytes,6,opt,name=cancel_timer_decision_attributes,json=cancelTimerDecisionAttributes,proto3,oneof"` +} + +type Decision_CancelWorkflowExecutionDecisionAttributes struct { + CancelWorkflowExecutionDecisionAttributes *CancelWorkflowExecutionDecisionAttributes `protobuf:"bytes,7,opt,name=cancel_workflow_execution_decision_attributes,json=cancelWorkflowExecutionDecisionAttributes,proto3,oneof"` +} + +type Decision_RequestCancelExternalWorkflowExecutionDecisionAttributes struct { + RequestCancelExternalWorkflowExecutionDecisionAttributes *RequestCancelExternalWorkflowExecutionDecisionAttributes `protobuf:"bytes,8,opt,name=request_cancel_external_workflow_execution_decision_attributes,json=requestCancelExternalWorkflowExecutionDecisionAttributes,proto3,oneof"` +} + +type Decision_RecordMarkerDecisionAttributes struct { + RecordMarkerDecisionAttributes *RecordMarkerDecisionAttributes `protobuf:"bytes,9,opt,name=record_marker_decision_attributes,json=recordMarkerDecisionAttributes,proto3,oneof"` +} + +type Decision_ContinueAsNewWorkflowExecutionDecisionAttributes struct { + ContinueAsNewWorkflowExecutionDecisionAttributes *ContinueAsNewWorkflowExecutionDecisionAttributes `protobuf:"bytes,10,opt,name=continue_as_new_workflow_execution_decision_attributes,json=continueAsNewWorkflowExecutionDecisionAttributes,proto3,oneof"` +} + +type Decision_StartChildWorkflowExecutionDecisionAttributes struct { + StartChildWorkflowExecutionDecisionAttributes *StartChildWorkflowExecutionDecisionAttributes `protobuf:"bytes,11,opt,name=start_child_workflow_execution_decision_attributes,json=startChildWorkflowExecutionDecisionAttributes,proto3,oneof"` +} + +type Decision_SignalExternalWorkflowExecutionDecisionAttributes struct { + SignalExternalWorkflowExecutionDecisionAttributes *SignalExternalWorkflowExecutionDecisionAttributes `protobuf:"bytes,12,opt,name=signal_external_workflow_execution_decision_attributes,json=signalExternalWorkflowExecutionDecisionAttributes,proto3,oneof"` +} + +type Decision_UpsertWorkflowSearchAttributesDecisionAttributes struct { + UpsertWorkflowSearchAttributesDecisionAttributes *UpsertWorkflowSearchAttributesDecisionAttributes `protobuf:"bytes,13,opt,name=upsert_workflow_search_attributes_decision_attributes,json=upsertWorkflowSearchAttributesDecisionAttributes,proto3,oneof"` } +func (*Decision_ScheduleActivityTaskDecisionAttributes) isDecision_Attributes() {} + +func (*Decision_StartTimerDecisionAttributes) isDecision_Attributes() {} + +func (*Decision_CompleteWorkflowExecutionDecisionAttributes) isDecision_Attributes() {} + +func (*Decision_FailWorkflowExecutionDecisionAttributes) isDecision_Attributes() {} + +func (*Decision_RequestCancelActivityTaskDecisionAttributes) isDecision_Attributes() {} + +func (*Decision_CancelTimerDecisionAttributes) isDecision_Attributes() {} + +func (*Decision_CancelWorkflowExecutionDecisionAttributes) isDecision_Attributes() {} + +func (*Decision_RequestCancelExternalWorkflowExecutionDecisionAttributes) isDecision_Attributes() {} + +func (*Decision_RecordMarkerDecisionAttributes) isDecision_Attributes() {} + +func (*Decision_ContinueAsNewWorkflowExecutionDecisionAttributes) isDecision_Attributes() {} + +func (*Decision_StartChildWorkflowExecutionDecisionAttributes) isDecision_Attributes() {} + +func (*Decision_SignalExternalWorkflowExecutionDecisionAttributes) isDecision_Attributes() {} + +func (*Decision_UpsertWorkflowSearchAttributesDecisionAttributes) isDecision_Attributes() {} + type ScheduleActivityTaskDecisionAttributes struct { - ActivityId string `protobuf:"bytes,1,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` - ActivityType *ActivityType `protobuf:"bytes,2,opt,name=activity_type,json=activityType,proto3" json:"activity_type,omitempty"` - Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"` - TaskList *TaskList `protobuf:"bytes,4,opt,name=task_list,json=taskList,proto3" json:"task_list,omitempty"` - Input *Payload `protobuf:"bytes,5,opt,name=input,proto3" json:"input,omitempty"` - ScheduleToCloseTimeout *time.Duration `protobuf:"bytes,6,opt,name=schedule_to_close_timeout,json=scheduleToCloseTimeout,proto3,stdduration" json:"schedule_to_close_timeout,omitempty"` - ScheduleToStartTimeout *time.Duration `protobuf:"bytes,7,opt,name=schedule_to_start_timeout,json=scheduleToStartTimeout,proto3,stdduration" json:"schedule_to_start_timeout,omitempty"` - StartToCloseTimeout *time.Duration `protobuf:"bytes,8,opt,name=start_to_close_timeout,json=startToCloseTimeout,proto3,stdduration" json:"start_to_close_timeout,omitempty"` - HeartbeatTimeout *time.Duration `protobuf:"bytes,9,opt,name=heartbeat_timeout,json=heartbeatTimeout,proto3,stdduration" json:"heartbeat_timeout,omitempty"` - RetryPolicy *RetryPolicy `protobuf:"bytes,11,opt,name=retry_policy,json=retryPolicy,proto3" json:"retry_policy,omitempty"` - Header *Header `protobuf:"bytes,12,opt,name=header,proto3" json:"header,omitempty"` - RequestLocalDispatch bool `protobuf:"varint,13,opt,name=request_local_dispatch,json=requestLocalDispatch,proto3" json:"request_local_dispatch,omitempty"` -} - -func (m *ScheduleActivityTaskDecisionAttributes) Reset() { - *m = ScheduleActivityTaskDecisionAttributes{} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ActivityId string `protobuf:"bytes,1,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` + ActivityType *ActivityType `protobuf:"bytes,2,opt,name=activity_type,json=activityType,proto3" json:"activity_type,omitempty"` + Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"` + TaskList *TaskList `protobuf:"bytes,4,opt,name=task_list,json=taskList,proto3" json:"task_list,omitempty"` + Input *Payload `protobuf:"bytes,5,opt,name=input,proto3" json:"input,omitempty"` + ScheduleToCloseTimeout *durationpb.Duration `protobuf:"bytes,6,opt,name=schedule_to_close_timeout,json=scheduleToCloseTimeout,proto3" json:"schedule_to_close_timeout,omitempty"` + ScheduleToStartTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=schedule_to_start_timeout,json=scheduleToStartTimeout,proto3" json:"schedule_to_start_timeout,omitempty"` + StartToCloseTimeout *durationpb.Duration `protobuf:"bytes,8,opt,name=start_to_close_timeout,json=startToCloseTimeout,proto3" json:"start_to_close_timeout,omitempty"` + HeartbeatTimeout *durationpb.Duration `protobuf:"bytes,9,opt,name=heartbeat_timeout,json=heartbeatTimeout,proto3" json:"heartbeat_timeout,omitempty"` + RetryPolicy *RetryPolicy `protobuf:"bytes,11,opt,name=retry_policy,json=retryPolicy,proto3" json:"retry_policy,omitempty"` + Header *Header `protobuf:"bytes,12,opt,name=header,proto3" json:"header,omitempty"` + RequestLocalDispatch bool `protobuf:"varint,13,opt,name=request_local_dispatch,json=requestLocalDispatch,proto3" json:"request_local_dispatch,omitempty"` } -func (*ScheduleActivityTaskDecisionAttributes) ProtoMessage() {} -func (*ScheduleActivityTaskDecisionAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_fb529b236ea74dc2, []int{1} -} -func (m *ScheduleActivityTaskDecisionAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ScheduleActivityTaskDecisionAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ScheduleActivityTaskDecisionAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + +func (x *ScheduleActivityTaskDecisionAttributes) Reset() { + *x = ScheduleActivityTaskDecisionAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_decision_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ScheduleActivityTaskDecisionAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_ScheduleActivityTaskDecisionAttributes.Merge(m, src) -} -func (m *ScheduleActivityTaskDecisionAttributes) XXX_Size() int { - return m.Size() + +func (x *ScheduleActivityTaskDecisionAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ScheduleActivityTaskDecisionAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_ScheduleActivityTaskDecisionAttributes.DiscardUnknown(m) + +func (*ScheduleActivityTaskDecisionAttributes) ProtoMessage() {} + +func (x *ScheduleActivityTaskDecisionAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_decision_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ScheduleActivityTaskDecisionAttributes proto.InternalMessageInfo +// Deprecated: Use ScheduleActivityTaskDecisionAttributes.ProtoReflect.Descriptor instead. +func (*ScheduleActivityTaskDecisionAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_decision_proto_rawDescGZIP(), []int{1} +} -func (m *ScheduleActivityTaskDecisionAttributes) GetActivityId() string { - if m != nil { - return m.ActivityId +func (x *ScheduleActivityTaskDecisionAttributes) GetActivityId() string { + if x != nil { + return x.ActivityId } return "" } -func (m *ScheduleActivityTaskDecisionAttributes) GetActivityType() *ActivityType { - if m != nil { - return m.ActivityType +func (x *ScheduleActivityTaskDecisionAttributes) GetActivityType() *ActivityType { + if x != nil { + return x.ActivityType } return nil } -func (m *ScheduleActivityTaskDecisionAttributes) GetDomain() string { - if m != nil { - return m.Domain +func (x *ScheduleActivityTaskDecisionAttributes) GetDomain() string { + if x != nil { + return x.Domain } return "" } -func (m *ScheduleActivityTaskDecisionAttributes) GetTaskList() *TaskList { - if m != nil { - return m.TaskList +func (x *ScheduleActivityTaskDecisionAttributes) GetTaskList() *TaskList { + if x != nil { + return x.TaskList } return nil } -func (m *ScheduleActivityTaskDecisionAttributes) GetInput() *Payload { - if m != nil { - return m.Input +func (x *ScheduleActivityTaskDecisionAttributes) GetInput() *Payload { + if x != nil { + return x.Input } return nil } -func (m *ScheduleActivityTaskDecisionAttributes) GetScheduleToCloseTimeout() *time.Duration { - if m != nil { - return m.ScheduleToCloseTimeout +func (x *ScheduleActivityTaskDecisionAttributes) GetScheduleToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.ScheduleToCloseTimeout } return nil } -func (m *ScheduleActivityTaskDecisionAttributes) GetScheduleToStartTimeout() *time.Duration { - if m != nil { - return m.ScheduleToStartTimeout +func (x *ScheduleActivityTaskDecisionAttributes) GetScheduleToStartTimeout() *durationpb.Duration { + if x != nil { + return x.ScheduleToStartTimeout } return nil } -func (m *ScheduleActivityTaskDecisionAttributes) GetStartToCloseTimeout() *time.Duration { - if m != nil { - return m.StartToCloseTimeout +func (x *ScheduleActivityTaskDecisionAttributes) GetStartToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.StartToCloseTimeout } return nil } -func (m *ScheduleActivityTaskDecisionAttributes) GetHeartbeatTimeout() *time.Duration { - if m != nil { - return m.HeartbeatTimeout +func (x *ScheduleActivityTaskDecisionAttributes) GetHeartbeatTimeout() *durationpb.Duration { + if x != nil { + return x.HeartbeatTimeout } return nil } -func (m *ScheduleActivityTaskDecisionAttributes) GetRetryPolicy() *RetryPolicy { - if m != nil { - return m.RetryPolicy +func (x *ScheduleActivityTaskDecisionAttributes) GetRetryPolicy() *RetryPolicy { + if x != nil { + return x.RetryPolicy } return nil } -func (m *ScheduleActivityTaskDecisionAttributes) GetHeader() *Header { - if m != nil { - return m.Header +func (x *ScheduleActivityTaskDecisionAttributes) GetHeader() *Header { + if x != nil { + return x.Header } return nil } -func (m *ScheduleActivityTaskDecisionAttributes) GetRequestLocalDispatch() bool { - if m != nil { - return m.RequestLocalDispatch +func (x *ScheduleActivityTaskDecisionAttributes) GetRequestLocalDispatch() bool { + if x != nil { + return x.RequestLocalDispatch } return false } type StartTimerDecisionAttributes struct { - TimerId string `protobuf:"bytes,1,opt,name=timer_id,json=timerId,proto3" json:"timer_id,omitempty"` - StartToFireTimeout *time.Duration `protobuf:"bytes,2,opt,name=start_to_fire_timeout,json=startToFireTimeout,proto3,stdduration" json:"start_to_fire_timeout,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TimerId string `protobuf:"bytes,1,opt,name=timer_id,json=timerId,proto3" json:"timer_id,omitempty"` + StartToFireTimeout *durationpb.Duration `protobuf:"bytes,2,opt,name=start_to_fire_timeout,json=startToFireTimeout,proto3" json:"start_to_fire_timeout,omitempty"` } -func (m *StartTimerDecisionAttributes) Reset() { *m = StartTimerDecisionAttributes{} } -func (*StartTimerDecisionAttributes) ProtoMessage() {} -func (*StartTimerDecisionAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_fb529b236ea74dc2, []int{2} -} -func (m *StartTimerDecisionAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StartTimerDecisionAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StartTimerDecisionAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *StartTimerDecisionAttributes) Reset() { + *x = StartTimerDecisionAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_decision_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *StartTimerDecisionAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_StartTimerDecisionAttributes.Merge(m, src) -} -func (m *StartTimerDecisionAttributes) XXX_Size() int { - return m.Size() + +func (x *StartTimerDecisionAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *StartTimerDecisionAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_StartTimerDecisionAttributes.DiscardUnknown(m) + +func (*StartTimerDecisionAttributes) ProtoMessage() {} + +func (x *StartTimerDecisionAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_decision_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_StartTimerDecisionAttributes proto.InternalMessageInfo +// Deprecated: Use StartTimerDecisionAttributes.ProtoReflect.Descriptor instead. +func (*StartTimerDecisionAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_decision_proto_rawDescGZIP(), []int{2} +} -func (m *StartTimerDecisionAttributes) GetTimerId() string { - if m != nil { - return m.TimerId +func (x *StartTimerDecisionAttributes) GetTimerId() string { + if x != nil { + return x.TimerId } return "" } -func (m *StartTimerDecisionAttributes) GetStartToFireTimeout() *time.Duration { - if m != nil { - return m.StartToFireTimeout +func (x *StartTimerDecisionAttributes) GetStartToFireTimeout() *durationpb.Duration { + if x != nil { + return x.StartToFireTimeout } return nil } type CompleteWorkflowExecutionDecisionAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Result *Payload `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` } -func (m *CompleteWorkflowExecutionDecisionAttributes) Reset() { - *m = CompleteWorkflowExecutionDecisionAttributes{} +func (x *CompleteWorkflowExecutionDecisionAttributes) Reset() { + *x = CompleteWorkflowExecutionDecisionAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_decision_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CompleteWorkflowExecutionDecisionAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } + func (*CompleteWorkflowExecutionDecisionAttributes) ProtoMessage() {} -func (*CompleteWorkflowExecutionDecisionAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_fb529b236ea74dc2, []int{3} -} -func (m *CompleteWorkflowExecutionDecisionAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CompleteWorkflowExecutionDecisionAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CompleteWorkflowExecutionDecisionAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *CompleteWorkflowExecutionDecisionAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_decision_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *CompleteWorkflowExecutionDecisionAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_CompleteWorkflowExecutionDecisionAttributes.Merge(m, src) -} -func (m *CompleteWorkflowExecutionDecisionAttributes) XXX_Size() int { - return m.Size() -} -func (m *CompleteWorkflowExecutionDecisionAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_CompleteWorkflowExecutionDecisionAttributes.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_CompleteWorkflowExecutionDecisionAttributes proto.InternalMessageInfo +// Deprecated: Use CompleteWorkflowExecutionDecisionAttributes.ProtoReflect.Descriptor instead. +func (*CompleteWorkflowExecutionDecisionAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_decision_proto_rawDescGZIP(), []int{3} +} -func (m *CompleteWorkflowExecutionDecisionAttributes) GetResult() *Payload { - if m != nil { - return m.Result +func (x *CompleteWorkflowExecutionDecisionAttributes) GetResult() *Payload { + if x != nil { + return x.Result } return nil } type FailWorkflowExecutionDecisionAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Failure *Failure `protobuf:"bytes,1,opt,name=failure,proto3" json:"failure,omitempty"` } -func (m *FailWorkflowExecutionDecisionAttributes) Reset() { - *m = FailWorkflowExecutionDecisionAttributes{} +func (x *FailWorkflowExecutionDecisionAttributes) Reset() { + *x = FailWorkflowExecutionDecisionAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_decision_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FailWorkflowExecutionDecisionAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } + func (*FailWorkflowExecutionDecisionAttributes) ProtoMessage() {} -func (*FailWorkflowExecutionDecisionAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_fb529b236ea74dc2, []int{4} -} -func (m *FailWorkflowExecutionDecisionAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *FailWorkflowExecutionDecisionAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_FailWorkflowExecutionDecisionAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *FailWorkflowExecutionDecisionAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_decision_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *FailWorkflowExecutionDecisionAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_FailWorkflowExecutionDecisionAttributes.Merge(m, src) -} -func (m *FailWorkflowExecutionDecisionAttributes) XXX_Size() int { - return m.Size() -} -func (m *FailWorkflowExecutionDecisionAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_FailWorkflowExecutionDecisionAttributes.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_FailWorkflowExecutionDecisionAttributes proto.InternalMessageInfo +// Deprecated: Use FailWorkflowExecutionDecisionAttributes.ProtoReflect.Descriptor instead. +func (*FailWorkflowExecutionDecisionAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_decision_proto_rawDescGZIP(), []int{4} +} -func (m *FailWorkflowExecutionDecisionAttributes) GetFailure() *Failure { - if m != nil { - return m.Failure +func (x *FailWorkflowExecutionDecisionAttributes) GetFailure() *Failure { + if x != nil { + return x.Failure } return nil } type RequestCancelActivityTaskDecisionAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + ActivityId string `protobuf:"bytes,1,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` } -func (m *RequestCancelActivityTaskDecisionAttributes) Reset() { - *m = RequestCancelActivityTaskDecisionAttributes{} +func (x *RequestCancelActivityTaskDecisionAttributes) Reset() { + *x = RequestCancelActivityTaskDecisionAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_decision_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RequestCancelActivityTaskDecisionAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } + func (*RequestCancelActivityTaskDecisionAttributes) ProtoMessage() {} -func (*RequestCancelActivityTaskDecisionAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_fb529b236ea74dc2, []int{5} -} -func (m *RequestCancelActivityTaskDecisionAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RequestCancelActivityTaskDecisionAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RequestCancelActivityTaskDecisionAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *RequestCancelActivityTaskDecisionAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_decision_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *RequestCancelActivityTaskDecisionAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequestCancelActivityTaskDecisionAttributes.Merge(m, src) -} -func (m *RequestCancelActivityTaskDecisionAttributes) XXX_Size() int { - return m.Size() -} -func (m *RequestCancelActivityTaskDecisionAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_RequestCancelActivityTaskDecisionAttributes.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_RequestCancelActivityTaskDecisionAttributes proto.InternalMessageInfo +// Deprecated: Use RequestCancelActivityTaskDecisionAttributes.ProtoReflect.Descriptor instead. +func (*RequestCancelActivityTaskDecisionAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_decision_proto_rawDescGZIP(), []int{5} +} -func (m *RequestCancelActivityTaskDecisionAttributes) GetActivityId() string { - if m != nil { - return m.ActivityId +func (x *RequestCancelActivityTaskDecisionAttributes) GetActivityId() string { + if x != nil { + return x.ActivityId } return "" } type CancelTimerDecisionAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + TimerId string `protobuf:"bytes,1,opt,name=timer_id,json=timerId,proto3" json:"timer_id,omitempty"` } -func (m *CancelTimerDecisionAttributes) Reset() { *m = CancelTimerDecisionAttributes{} } -func (*CancelTimerDecisionAttributes) ProtoMessage() {} -func (*CancelTimerDecisionAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_fb529b236ea74dc2, []int{6} -} -func (m *CancelTimerDecisionAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CancelTimerDecisionAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CancelTimerDecisionAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *CancelTimerDecisionAttributes) Reset() { + *x = CancelTimerDecisionAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_decision_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *CancelTimerDecisionAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_CancelTimerDecisionAttributes.Merge(m, src) -} -func (m *CancelTimerDecisionAttributes) XXX_Size() int { - return m.Size() + +func (x *CancelTimerDecisionAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CancelTimerDecisionAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_CancelTimerDecisionAttributes.DiscardUnknown(m) + +func (*CancelTimerDecisionAttributes) ProtoMessage() {} + +func (x *CancelTimerDecisionAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_decision_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CancelTimerDecisionAttributes proto.InternalMessageInfo +// Deprecated: Use CancelTimerDecisionAttributes.ProtoReflect.Descriptor instead. +func (*CancelTimerDecisionAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_decision_proto_rawDescGZIP(), []int{6} +} -func (m *CancelTimerDecisionAttributes) GetTimerId() string { - if m != nil { - return m.TimerId +func (x *CancelTimerDecisionAttributes) GetTimerId() string { + if x != nil { + return x.TimerId } return "" } type CancelWorkflowExecutionDecisionAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Details *Payload `protobuf:"bytes,1,opt,name=details,proto3" json:"details,omitempty"` } -func (m *CancelWorkflowExecutionDecisionAttributes) Reset() { - *m = CancelWorkflowExecutionDecisionAttributes{} +func (x *CancelWorkflowExecutionDecisionAttributes) Reset() { + *x = CancelWorkflowExecutionDecisionAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_decision_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CancelWorkflowExecutionDecisionAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } + func (*CancelWorkflowExecutionDecisionAttributes) ProtoMessage() {} -func (*CancelWorkflowExecutionDecisionAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_fb529b236ea74dc2, []int{7} -} -func (m *CancelWorkflowExecutionDecisionAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CancelWorkflowExecutionDecisionAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CancelWorkflowExecutionDecisionAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *CancelWorkflowExecutionDecisionAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_decision_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *CancelWorkflowExecutionDecisionAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_CancelWorkflowExecutionDecisionAttributes.Merge(m, src) -} -func (m *CancelWorkflowExecutionDecisionAttributes) XXX_Size() int { - return m.Size() -} -func (m *CancelWorkflowExecutionDecisionAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_CancelWorkflowExecutionDecisionAttributes.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_CancelWorkflowExecutionDecisionAttributes proto.InternalMessageInfo +// Deprecated: Use CancelWorkflowExecutionDecisionAttributes.ProtoReflect.Descriptor instead. +func (*CancelWorkflowExecutionDecisionAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_decision_proto_rawDescGZIP(), []int{7} +} -func (m *CancelWorkflowExecutionDecisionAttributes) GetDetails() *Payload { - if m != nil { - return m.Details +func (x *CancelWorkflowExecutionDecisionAttributes) GetDetails() *Payload { + if x != nil { + return x.Details } return nil } type RequestCancelExternalWorkflowExecutionDecisionAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` WorkflowExecution *WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` Control []byte `protobuf:"bytes,3,opt,name=control,proto3" json:"control,omitempty"` ChildWorkflowOnly bool `protobuf:"varint,4,opt,name=child_workflow_only,json=childWorkflowOnly,proto3" json:"child_workflow_only,omitempty"` } -func (m *RequestCancelExternalWorkflowExecutionDecisionAttributes) Reset() { - *m = RequestCancelExternalWorkflowExecutionDecisionAttributes{} +func (x *RequestCancelExternalWorkflowExecutionDecisionAttributes) Reset() { + *x = RequestCancelExternalWorkflowExecutionDecisionAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_decision_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RequestCancelExternalWorkflowExecutionDecisionAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } + func (*RequestCancelExternalWorkflowExecutionDecisionAttributes) ProtoMessage() {} -func (*RequestCancelExternalWorkflowExecutionDecisionAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_fb529b236ea74dc2, []int{8} -} -func (m *RequestCancelExternalWorkflowExecutionDecisionAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RequestCancelExternalWorkflowExecutionDecisionAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RequestCancelExternalWorkflowExecutionDecisionAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *RequestCancelExternalWorkflowExecutionDecisionAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_decision_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *RequestCancelExternalWorkflowExecutionDecisionAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequestCancelExternalWorkflowExecutionDecisionAttributes.Merge(m, src) -} -func (m *RequestCancelExternalWorkflowExecutionDecisionAttributes) XXX_Size() int { - return m.Size() -} -func (m *RequestCancelExternalWorkflowExecutionDecisionAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_RequestCancelExternalWorkflowExecutionDecisionAttributes.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_RequestCancelExternalWorkflowExecutionDecisionAttributes proto.InternalMessageInfo +// Deprecated: Use RequestCancelExternalWorkflowExecutionDecisionAttributes.ProtoReflect.Descriptor instead. +func (*RequestCancelExternalWorkflowExecutionDecisionAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_decision_proto_rawDescGZIP(), []int{8} +} -func (m *RequestCancelExternalWorkflowExecutionDecisionAttributes) GetDomain() string { - if m != nil { - return m.Domain +func (x *RequestCancelExternalWorkflowExecutionDecisionAttributes) GetDomain() string { + if x != nil { + return x.Domain } return "" } -func (m *RequestCancelExternalWorkflowExecutionDecisionAttributes) GetWorkflowExecution() *WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *RequestCancelExternalWorkflowExecutionDecisionAttributes) GetWorkflowExecution() *WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *RequestCancelExternalWorkflowExecutionDecisionAttributes) GetControl() []byte { - if m != nil { - return m.Control +func (x *RequestCancelExternalWorkflowExecutionDecisionAttributes) GetControl() []byte { + if x != nil { + return x.Control } return nil } -func (m *RequestCancelExternalWorkflowExecutionDecisionAttributes) GetChildWorkflowOnly() bool { - if m != nil { - return m.ChildWorkflowOnly +func (x *RequestCancelExternalWorkflowExecutionDecisionAttributes) GetChildWorkflowOnly() bool { + if x != nil { + return x.ChildWorkflowOnly } return false } type RecordMarkerDecisionAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + MarkerName string `protobuf:"bytes,1,opt,name=marker_name,json=markerName,proto3" json:"marker_name,omitempty"` Details *Payload `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"` Header *Header `protobuf:"bytes,3,opt,name=header,proto3" json:"header,omitempty"` } -func (m *RecordMarkerDecisionAttributes) Reset() { *m = RecordMarkerDecisionAttributes{} } -func (*RecordMarkerDecisionAttributes) ProtoMessage() {} -func (*RecordMarkerDecisionAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_fb529b236ea74dc2, []int{9} -} -func (m *RecordMarkerDecisionAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RecordMarkerDecisionAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RecordMarkerDecisionAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RecordMarkerDecisionAttributes) Reset() { + *x = RecordMarkerDecisionAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_decision_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RecordMarkerDecisionAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_RecordMarkerDecisionAttributes.Merge(m, src) -} -func (m *RecordMarkerDecisionAttributes) XXX_Size() int { - return m.Size() + +func (x *RecordMarkerDecisionAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RecordMarkerDecisionAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_RecordMarkerDecisionAttributes.DiscardUnknown(m) + +func (*RecordMarkerDecisionAttributes) ProtoMessage() {} + +func (x *RecordMarkerDecisionAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_decision_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RecordMarkerDecisionAttributes proto.InternalMessageInfo +// Deprecated: Use RecordMarkerDecisionAttributes.ProtoReflect.Descriptor instead. +func (*RecordMarkerDecisionAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_decision_proto_rawDescGZIP(), []int{9} +} -func (m *RecordMarkerDecisionAttributes) GetMarkerName() string { - if m != nil { - return m.MarkerName +func (x *RecordMarkerDecisionAttributes) GetMarkerName() string { + if x != nil { + return x.MarkerName } return "" } -func (m *RecordMarkerDecisionAttributes) GetDetails() *Payload { - if m != nil { - return m.Details +func (x *RecordMarkerDecisionAttributes) GetDetails() *Payload { + if x != nil { + return x.Details } return nil } -func (m *RecordMarkerDecisionAttributes) GetHeader() *Header { - if m != nil { - return m.Header +func (x *RecordMarkerDecisionAttributes) GetHeader() *Header { + if x != nil { + return x.Header } return nil } type ContinueAsNewWorkflowExecutionDecisionAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + WorkflowType *WorkflowType `protobuf:"bytes,1,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` TaskList *TaskList `protobuf:"bytes,2,opt,name=task_list,json=taskList,proto3" json:"task_list,omitempty"` Input *Payload `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"` - ExecutionStartToCloseTimeout *time.Duration `protobuf:"bytes,4,opt,name=execution_start_to_close_timeout,json=executionStartToCloseTimeout,proto3,stdduration" json:"execution_start_to_close_timeout,omitempty"` - TaskStartToCloseTimeout *time.Duration `protobuf:"bytes,5,opt,name=task_start_to_close_timeout,json=taskStartToCloseTimeout,proto3,stdduration" json:"task_start_to_close_timeout,omitempty"` - BackoffStartInterval *time.Duration `protobuf:"bytes,6,opt,name=backoff_start_interval,json=backoffStartInterval,proto3,stdduration" json:"backoff_start_interval,omitempty"` + ExecutionStartToCloseTimeout *durationpb.Duration `protobuf:"bytes,4,opt,name=execution_start_to_close_timeout,json=executionStartToCloseTimeout,proto3" json:"execution_start_to_close_timeout,omitempty"` + TaskStartToCloseTimeout *durationpb.Duration `protobuf:"bytes,5,opt,name=task_start_to_close_timeout,json=taskStartToCloseTimeout,proto3" json:"task_start_to_close_timeout,omitempty"` + BackoffStartInterval *durationpb.Duration `protobuf:"bytes,6,opt,name=backoff_start_interval,json=backoffStartInterval,proto3" json:"backoff_start_interval,omitempty"` RetryPolicy *RetryPolicy `protobuf:"bytes,7,opt,name=retry_policy,json=retryPolicy,proto3" json:"retry_policy,omitempty"` Initiator ContinueAsNewInitiator `protobuf:"varint,8,opt,name=initiator,proto3,enum=uber.cadence.api.v1.ContinueAsNewInitiator" json:"initiator,omitempty"` Failure *Failure `protobuf:"bytes,9,opt,name=failure,proto3" json:"failure,omitempty"` @@ -833,146 +861,148 @@ type ContinueAsNewWorkflowExecutionDecisionAttributes struct { SearchAttributes *SearchAttributes `protobuf:"bytes,14,opt,name=search_attributes,json=searchAttributes,proto3" json:"search_attributes,omitempty"` } -func (m *ContinueAsNewWorkflowExecutionDecisionAttributes) Reset() { - *m = ContinueAsNewWorkflowExecutionDecisionAttributes{} -} -func (*ContinueAsNewWorkflowExecutionDecisionAttributes) ProtoMessage() {} -func (*ContinueAsNewWorkflowExecutionDecisionAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_fb529b236ea74dc2, []int{10} -} -func (m *ContinueAsNewWorkflowExecutionDecisionAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ContinueAsNewWorkflowExecutionDecisionAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ContinueAsNewWorkflowExecutionDecisionAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ContinueAsNewWorkflowExecutionDecisionAttributes) Reset() { + *x = ContinueAsNewWorkflowExecutionDecisionAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_decision_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ContinueAsNewWorkflowExecutionDecisionAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContinueAsNewWorkflowExecutionDecisionAttributes.Merge(m, src) -} -func (m *ContinueAsNewWorkflowExecutionDecisionAttributes) XXX_Size() int { - return m.Size() + +func (x *ContinueAsNewWorkflowExecutionDecisionAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ContinueAsNewWorkflowExecutionDecisionAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_ContinueAsNewWorkflowExecutionDecisionAttributes.DiscardUnknown(m) + +func (*ContinueAsNewWorkflowExecutionDecisionAttributes) ProtoMessage() {} + +func (x *ContinueAsNewWorkflowExecutionDecisionAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_decision_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ContinueAsNewWorkflowExecutionDecisionAttributes proto.InternalMessageInfo +// Deprecated: Use ContinueAsNewWorkflowExecutionDecisionAttributes.ProtoReflect.Descriptor instead. +func (*ContinueAsNewWorkflowExecutionDecisionAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_decision_proto_rawDescGZIP(), []int{10} +} -func (m *ContinueAsNewWorkflowExecutionDecisionAttributes) GetWorkflowType() *WorkflowType { - if m != nil { - return m.WorkflowType +func (x *ContinueAsNewWorkflowExecutionDecisionAttributes) GetWorkflowType() *WorkflowType { + if x != nil { + return x.WorkflowType } return nil } -func (m *ContinueAsNewWorkflowExecutionDecisionAttributes) GetTaskList() *TaskList { - if m != nil { - return m.TaskList +func (x *ContinueAsNewWorkflowExecutionDecisionAttributes) GetTaskList() *TaskList { + if x != nil { + return x.TaskList } return nil } -func (m *ContinueAsNewWorkflowExecutionDecisionAttributes) GetInput() *Payload { - if m != nil { - return m.Input +func (x *ContinueAsNewWorkflowExecutionDecisionAttributes) GetInput() *Payload { + if x != nil { + return x.Input } return nil } -func (m *ContinueAsNewWorkflowExecutionDecisionAttributes) GetExecutionStartToCloseTimeout() *time.Duration { - if m != nil { - return m.ExecutionStartToCloseTimeout +func (x *ContinueAsNewWorkflowExecutionDecisionAttributes) GetExecutionStartToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.ExecutionStartToCloseTimeout } return nil } -func (m *ContinueAsNewWorkflowExecutionDecisionAttributes) GetTaskStartToCloseTimeout() *time.Duration { - if m != nil { - return m.TaskStartToCloseTimeout +func (x *ContinueAsNewWorkflowExecutionDecisionAttributes) GetTaskStartToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.TaskStartToCloseTimeout } return nil } -func (m *ContinueAsNewWorkflowExecutionDecisionAttributes) GetBackoffStartInterval() *time.Duration { - if m != nil { - return m.BackoffStartInterval +func (x *ContinueAsNewWorkflowExecutionDecisionAttributes) GetBackoffStartInterval() *durationpb.Duration { + if x != nil { + return x.BackoffStartInterval } return nil } -func (m *ContinueAsNewWorkflowExecutionDecisionAttributes) GetRetryPolicy() *RetryPolicy { - if m != nil { - return m.RetryPolicy +func (x *ContinueAsNewWorkflowExecutionDecisionAttributes) GetRetryPolicy() *RetryPolicy { + if x != nil { + return x.RetryPolicy } return nil } -func (m *ContinueAsNewWorkflowExecutionDecisionAttributes) GetInitiator() ContinueAsNewInitiator { - if m != nil { - return m.Initiator +func (x *ContinueAsNewWorkflowExecutionDecisionAttributes) GetInitiator() ContinueAsNewInitiator { + if x != nil { + return x.Initiator } - return CONTINUE_AS_NEW_INITIATOR_INVALID + return ContinueAsNewInitiator_CONTINUE_AS_NEW_INITIATOR_INVALID } -func (m *ContinueAsNewWorkflowExecutionDecisionAttributes) GetFailure() *Failure { - if m != nil { - return m.Failure +func (x *ContinueAsNewWorkflowExecutionDecisionAttributes) GetFailure() *Failure { + if x != nil { + return x.Failure } return nil } -func (m *ContinueAsNewWorkflowExecutionDecisionAttributes) GetLastCompletionResult() *Payload { - if m != nil { - return m.LastCompletionResult +func (x *ContinueAsNewWorkflowExecutionDecisionAttributes) GetLastCompletionResult() *Payload { + if x != nil { + return x.LastCompletionResult } return nil } -func (m *ContinueAsNewWorkflowExecutionDecisionAttributes) GetCronSchedule() string { - if m != nil { - return m.CronSchedule +func (x *ContinueAsNewWorkflowExecutionDecisionAttributes) GetCronSchedule() string { + if x != nil { + return x.CronSchedule } return "" } -func (m *ContinueAsNewWorkflowExecutionDecisionAttributes) GetHeader() *Header { - if m != nil { - return m.Header +func (x *ContinueAsNewWorkflowExecutionDecisionAttributes) GetHeader() *Header { + if x != nil { + return x.Header } return nil } -func (m *ContinueAsNewWorkflowExecutionDecisionAttributes) GetMemo() *Memo { - if m != nil { - return m.Memo +func (x *ContinueAsNewWorkflowExecutionDecisionAttributes) GetMemo() *Memo { + if x != nil { + return x.Memo } return nil } -func (m *ContinueAsNewWorkflowExecutionDecisionAttributes) GetSearchAttributes() *SearchAttributes { - if m != nil { - return m.SearchAttributes +func (x *ContinueAsNewWorkflowExecutionDecisionAttributes) GetSearchAttributes() *SearchAttributes { + if x != nil { + return x.SearchAttributes } return nil } type StartChildWorkflowExecutionDecisionAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` WorkflowId string `protobuf:"bytes,2,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` WorkflowType *WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` TaskList *TaskList `protobuf:"bytes,4,opt,name=task_list,json=taskList,proto3" json:"task_list,omitempty"` Input *Payload `protobuf:"bytes,5,opt,name=input,proto3" json:"input,omitempty"` - ExecutionStartToCloseTimeout *time.Duration `protobuf:"bytes,6,opt,name=execution_start_to_close_timeout,json=executionStartToCloseTimeout,proto3,stdduration" json:"execution_start_to_close_timeout,omitempty"` - TaskStartToCloseTimeout *time.Duration `protobuf:"bytes,7,opt,name=task_start_to_close_timeout,json=taskStartToCloseTimeout,proto3,stdduration" json:"task_start_to_close_timeout,omitempty"` + ExecutionStartToCloseTimeout *durationpb.Duration `protobuf:"bytes,6,opt,name=execution_start_to_close_timeout,json=executionStartToCloseTimeout,proto3" json:"execution_start_to_close_timeout,omitempty"` + TaskStartToCloseTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=task_start_to_close_timeout,json=taskStartToCloseTimeout,proto3" json:"task_start_to_close_timeout,omitempty"` ParentClosePolicy ParentClosePolicy `protobuf:"varint,8,opt,name=parent_close_policy,json=parentClosePolicy,proto3,enum=uber.cadence.api.v1.ParentClosePolicy" json:"parent_close_policy,omitempty"` Control []byte `protobuf:"bytes,9,opt,name=control,proto3" json:"control,omitempty"` WorkflowIdReusePolicy WorkflowIdReusePolicy `protobuf:"varint,10,opt,name=workflow_id_reuse_policy,json=workflowIdReusePolicy,proto3,enum=uber.cadence.api.v1.WorkflowIdReusePolicy" json:"workflow_id_reuse_policy,omitempty"` @@ -983,146 +1013,148 @@ type StartChildWorkflowExecutionDecisionAttributes struct { SearchAttributes *SearchAttributes `protobuf:"bytes,15,opt,name=search_attributes,json=searchAttributes,proto3" json:"search_attributes,omitempty"` } -func (m *StartChildWorkflowExecutionDecisionAttributes) Reset() { - *m = StartChildWorkflowExecutionDecisionAttributes{} +func (x *StartChildWorkflowExecutionDecisionAttributes) Reset() { + *x = StartChildWorkflowExecutionDecisionAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_decision_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StartChildWorkflowExecutionDecisionAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } + func (*StartChildWorkflowExecutionDecisionAttributes) ProtoMessage() {} -func (*StartChildWorkflowExecutionDecisionAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_fb529b236ea74dc2, []int{11} -} -func (m *StartChildWorkflowExecutionDecisionAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StartChildWorkflowExecutionDecisionAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StartChildWorkflowExecutionDecisionAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *StartChildWorkflowExecutionDecisionAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_decision_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *StartChildWorkflowExecutionDecisionAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_StartChildWorkflowExecutionDecisionAttributes.Merge(m, src) -} -func (m *StartChildWorkflowExecutionDecisionAttributes) XXX_Size() int { - return m.Size() -} -func (m *StartChildWorkflowExecutionDecisionAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_StartChildWorkflowExecutionDecisionAttributes.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_StartChildWorkflowExecutionDecisionAttributes proto.InternalMessageInfo +// Deprecated: Use StartChildWorkflowExecutionDecisionAttributes.ProtoReflect.Descriptor instead. +func (*StartChildWorkflowExecutionDecisionAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_decision_proto_rawDescGZIP(), []int{11} +} -func (m *StartChildWorkflowExecutionDecisionAttributes) GetDomain() string { - if m != nil { - return m.Domain +func (x *StartChildWorkflowExecutionDecisionAttributes) GetDomain() string { + if x != nil { + return x.Domain } return "" } -func (m *StartChildWorkflowExecutionDecisionAttributes) GetWorkflowId() string { - if m != nil { - return m.WorkflowId +func (x *StartChildWorkflowExecutionDecisionAttributes) GetWorkflowId() string { + if x != nil { + return x.WorkflowId } return "" } -func (m *StartChildWorkflowExecutionDecisionAttributes) GetWorkflowType() *WorkflowType { - if m != nil { - return m.WorkflowType +func (x *StartChildWorkflowExecutionDecisionAttributes) GetWorkflowType() *WorkflowType { + if x != nil { + return x.WorkflowType } return nil } -func (m *StartChildWorkflowExecutionDecisionAttributes) GetTaskList() *TaskList { - if m != nil { - return m.TaskList +func (x *StartChildWorkflowExecutionDecisionAttributes) GetTaskList() *TaskList { + if x != nil { + return x.TaskList } return nil } -func (m *StartChildWorkflowExecutionDecisionAttributes) GetInput() *Payload { - if m != nil { - return m.Input +func (x *StartChildWorkflowExecutionDecisionAttributes) GetInput() *Payload { + if x != nil { + return x.Input } return nil } -func (m *StartChildWorkflowExecutionDecisionAttributes) GetExecutionStartToCloseTimeout() *time.Duration { - if m != nil { - return m.ExecutionStartToCloseTimeout +func (x *StartChildWorkflowExecutionDecisionAttributes) GetExecutionStartToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.ExecutionStartToCloseTimeout } return nil } -func (m *StartChildWorkflowExecutionDecisionAttributes) GetTaskStartToCloseTimeout() *time.Duration { - if m != nil { - return m.TaskStartToCloseTimeout +func (x *StartChildWorkflowExecutionDecisionAttributes) GetTaskStartToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.TaskStartToCloseTimeout } return nil } -func (m *StartChildWorkflowExecutionDecisionAttributes) GetParentClosePolicy() ParentClosePolicy { - if m != nil { - return m.ParentClosePolicy +func (x *StartChildWorkflowExecutionDecisionAttributes) GetParentClosePolicy() ParentClosePolicy { + if x != nil { + return x.ParentClosePolicy } - return PARENT_CLOSE_POLICY_INVALID + return ParentClosePolicy_PARENT_CLOSE_POLICY_INVALID } -func (m *StartChildWorkflowExecutionDecisionAttributes) GetControl() []byte { - if m != nil { - return m.Control +func (x *StartChildWorkflowExecutionDecisionAttributes) GetControl() []byte { + if x != nil { + return x.Control } return nil } -func (m *StartChildWorkflowExecutionDecisionAttributes) GetWorkflowIdReusePolicy() WorkflowIdReusePolicy { - if m != nil { - return m.WorkflowIdReusePolicy +func (x *StartChildWorkflowExecutionDecisionAttributes) GetWorkflowIdReusePolicy() WorkflowIdReusePolicy { + if x != nil { + return x.WorkflowIdReusePolicy } - return WORKFLOW_ID_REUSE_POLICY_INVALID + return WorkflowIdReusePolicy_WORKFLOW_ID_REUSE_POLICY_INVALID } -func (m *StartChildWorkflowExecutionDecisionAttributes) GetRetryPolicy() *RetryPolicy { - if m != nil { - return m.RetryPolicy +func (x *StartChildWorkflowExecutionDecisionAttributes) GetRetryPolicy() *RetryPolicy { + if x != nil { + return x.RetryPolicy } return nil } -func (m *StartChildWorkflowExecutionDecisionAttributes) GetCronSchedule() string { - if m != nil { - return m.CronSchedule +func (x *StartChildWorkflowExecutionDecisionAttributes) GetCronSchedule() string { + if x != nil { + return x.CronSchedule } return "" } -func (m *StartChildWorkflowExecutionDecisionAttributes) GetHeader() *Header { - if m != nil { - return m.Header +func (x *StartChildWorkflowExecutionDecisionAttributes) GetHeader() *Header { + if x != nil { + return x.Header } return nil } -func (m *StartChildWorkflowExecutionDecisionAttributes) GetMemo() *Memo { - if m != nil { - return m.Memo +func (x *StartChildWorkflowExecutionDecisionAttributes) GetMemo() *Memo { + if x != nil { + return x.Memo } return nil } -func (m *StartChildWorkflowExecutionDecisionAttributes) GetSearchAttributes() *SearchAttributes { - if m != nil { - return m.SearchAttributes +func (x *StartChildWorkflowExecutionDecisionAttributes) GetSearchAttributes() *SearchAttributes { + if x != nil { + return x.SearchAttributes } return nil } type SignalExternalWorkflowExecutionDecisionAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` WorkflowExecution *WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` SignalName string `protobuf:"bytes,3,opt,name=signal_name,json=signalName,proto3" json:"signal_name,omitempty"` @@ -1131,6922 +1163,868 @@ type SignalExternalWorkflowExecutionDecisionAttributes struct { ChildWorkflowOnly bool `protobuf:"varint,6,opt,name=child_workflow_only,json=childWorkflowOnly,proto3" json:"child_workflow_only,omitempty"` } -func (m *SignalExternalWorkflowExecutionDecisionAttributes) Reset() { - *m = SignalExternalWorkflowExecutionDecisionAttributes{} +func (x *SignalExternalWorkflowExecutionDecisionAttributes) Reset() { + *x = SignalExternalWorkflowExecutionDecisionAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_decision_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SignalExternalWorkflowExecutionDecisionAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } + func (*SignalExternalWorkflowExecutionDecisionAttributes) ProtoMessage() {} -func (*SignalExternalWorkflowExecutionDecisionAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_fb529b236ea74dc2, []int{12} -} -func (m *SignalExternalWorkflowExecutionDecisionAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SignalExternalWorkflowExecutionDecisionAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SignalExternalWorkflowExecutionDecisionAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *SignalExternalWorkflowExecutionDecisionAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_decision_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *SignalExternalWorkflowExecutionDecisionAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_SignalExternalWorkflowExecutionDecisionAttributes.Merge(m, src) -} -func (m *SignalExternalWorkflowExecutionDecisionAttributes) XXX_Size() int { - return m.Size() -} -func (m *SignalExternalWorkflowExecutionDecisionAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_SignalExternalWorkflowExecutionDecisionAttributes.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_SignalExternalWorkflowExecutionDecisionAttributes proto.InternalMessageInfo +// Deprecated: Use SignalExternalWorkflowExecutionDecisionAttributes.ProtoReflect.Descriptor instead. +func (*SignalExternalWorkflowExecutionDecisionAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_decision_proto_rawDescGZIP(), []int{12} +} -func (m *SignalExternalWorkflowExecutionDecisionAttributes) GetDomain() string { - if m != nil { - return m.Domain +func (x *SignalExternalWorkflowExecutionDecisionAttributes) GetDomain() string { + if x != nil { + return x.Domain } return "" } -func (m *SignalExternalWorkflowExecutionDecisionAttributes) GetWorkflowExecution() *WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *SignalExternalWorkflowExecutionDecisionAttributes) GetWorkflowExecution() *WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *SignalExternalWorkflowExecutionDecisionAttributes) GetSignalName() string { - if m != nil { - return m.SignalName +func (x *SignalExternalWorkflowExecutionDecisionAttributes) GetSignalName() string { + if x != nil { + return x.SignalName } return "" } -func (m *SignalExternalWorkflowExecutionDecisionAttributes) GetInput() *Payload { - if m != nil { - return m.Input +func (x *SignalExternalWorkflowExecutionDecisionAttributes) GetInput() *Payload { + if x != nil { + return x.Input } return nil } -func (m *SignalExternalWorkflowExecutionDecisionAttributes) GetControl() []byte { - if m != nil { - return m.Control +func (x *SignalExternalWorkflowExecutionDecisionAttributes) GetControl() []byte { + if x != nil { + return x.Control } return nil } -func (m *SignalExternalWorkflowExecutionDecisionAttributes) GetChildWorkflowOnly() bool { - if m != nil { - return m.ChildWorkflowOnly +func (x *SignalExternalWorkflowExecutionDecisionAttributes) GetChildWorkflowOnly() bool { + if x != nil { + return x.ChildWorkflowOnly } return false } type UpsertWorkflowSearchAttributesDecisionAttributes struct { - SearchAttributes *SearchAttributes `protobuf:"bytes,1,opt,name=search_attributes,json=searchAttributes,proto3" json:"search_attributes,omitempty"` -} - -func (m *UpsertWorkflowSearchAttributesDecisionAttributes) Reset() { - *m = UpsertWorkflowSearchAttributesDecisionAttributes{} -} -func (*UpsertWorkflowSearchAttributesDecisionAttributes) ProtoMessage() {} -func (*UpsertWorkflowSearchAttributesDecisionAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_fb529b236ea74dc2, []int{13} -} -func (m *UpsertWorkflowSearchAttributesDecisionAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UpsertWorkflowSearchAttributesDecisionAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UpsertWorkflowSearchAttributesDecisionAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *UpsertWorkflowSearchAttributesDecisionAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpsertWorkflowSearchAttributesDecisionAttributes.Merge(m, src) -} -func (m *UpsertWorkflowSearchAttributesDecisionAttributes) XXX_Size() int { - return m.Size() -} -func (m *UpsertWorkflowSearchAttributesDecisionAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_UpsertWorkflowSearchAttributesDecisionAttributes.DiscardUnknown(m) -} - -var xxx_messageInfo_UpsertWorkflowSearchAttributesDecisionAttributes proto.InternalMessageInfo - -func (m *UpsertWorkflowSearchAttributesDecisionAttributes) GetSearchAttributes() *SearchAttributes { - if m != nil { - return m.SearchAttributes - } - return nil -} - -func init() { - proto.RegisterType((*Decision)(nil), "uber.cadence.api.v1.Decision") - proto.RegisterType((*ScheduleActivityTaskDecisionAttributes)(nil), "uber.cadence.api.v1.ScheduleActivityTaskDecisionAttributes") - proto.RegisterType((*StartTimerDecisionAttributes)(nil), "uber.cadence.api.v1.StartTimerDecisionAttributes") - proto.RegisterType((*CompleteWorkflowExecutionDecisionAttributes)(nil), "uber.cadence.api.v1.CompleteWorkflowExecutionDecisionAttributes") - proto.RegisterType((*FailWorkflowExecutionDecisionAttributes)(nil), "uber.cadence.api.v1.FailWorkflowExecutionDecisionAttributes") - proto.RegisterType((*RequestCancelActivityTaskDecisionAttributes)(nil), "uber.cadence.api.v1.RequestCancelActivityTaskDecisionAttributes") - proto.RegisterType((*CancelTimerDecisionAttributes)(nil), "uber.cadence.api.v1.CancelTimerDecisionAttributes") - proto.RegisterType((*CancelWorkflowExecutionDecisionAttributes)(nil), "uber.cadence.api.v1.CancelWorkflowExecutionDecisionAttributes") - proto.RegisterType((*RequestCancelExternalWorkflowExecutionDecisionAttributes)(nil), "uber.cadence.api.v1.RequestCancelExternalWorkflowExecutionDecisionAttributes") - proto.RegisterType((*RecordMarkerDecisionAttributes)(nil), "uber.cadence.api.v1.RecordMarkerDecisionAttributes") - proto.RegisterType((*ContinueAsNewWorkflowExecutionDecisionAttributes)(nil), "uber.cadence.api.v1.ContinueAsNewWorkflowExecutionDecisionAttributes") - proto.RegisterType((*StartChildWorkflowExecutionDecisionAttributes)(nil), "uber.cadence.api.v1.StartChildWorkflowExecutionDecisionAttributes") - proto.RegisterType((*SignalExternalWorkflowExecutionDecisionAttributes)(nil), "uber.cadence.api.v1.SignalExternalWorkflowExecutionDecisionAttributes") - proto.RegisterType((*UpsertWorkflowSearchAttributesDecisionAttributes)(nil), "uber.cadence.api.v1.UpsertWorkflowSearchAttributesDecisionAttributes") -} - -func init() { - proto.RegisterFile("github.com/uber/cadence/.gen/proto/api/v1/decision.proto", fileDescriptor_fb529b236ea74dc2) -} - -var fileDescriptor_fb529b236ea74dc2 = []byte{ - // 1610 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0xcd, 0x6f, 0xdc, 0x44, - 0x14, 0x8f, 0xf3, 0xb1, 0x1f, 0x2f, 0x49, 0x69, 0x26, 0x6d, 0x9a, 0xb4, 0xa9, 0x93, 0x2e, 0x22, - 0xa5, 0x8d, 0xb2, 0xf9, 0x68, 0xa9, 0xaa, 0x82, 0x2a, 0x92, 0xb4, 0x51, 0x23, 0xb5, 0x25, 0x72, - 0x53, 0x90, 0x2a, 0xa1, 0x65, 0x62, 0x4f, 0x92, 0x51, 0xbc, 0xf6, 0x32, 0x9e, 0x4d, 0xba, 0x48, - 0x48, 0x15, 0x07, 0xc4, 0x05, 0x89, 0x23, 0x48, 0x9c, 0x90, 0x90, 0xca, 0x05, 0xae, 0x20, 0x4e, - 0xdc, 0x38, 0x96, 0x5b, 0x6f, 0x90, 0xf4, 0xc2, 0xb1, 0x12, 0xff, 0x00, 0x9a, 0xf1, 0x78, 0x77, - 0xb3, 0xf1, 0x3a, 0xe3, 0xa4, 0xea, 0x6d, 0x3d, 0x7e, 0xef, 0xf7, 0x7e, 0x33, 0xef, 0xcd, 0x7b, - 0x3f, 0x2f, 0x14, 0xaa, 0x6b, 0x84, 0x4d, 0xdb, 0xd8, 0x21, 0x9e, 0x4d, 0xa6, 0x71, 0x85, 0x4e, - 0x6f, 0xcf, 0x4e, 0x3b, 0xc4, 0xa6, 0x01, 0xf5, 0xbd, 0x62, 0x85, 0xf9, 0xdc, 0x47, 0x83, 0xc2, - 0xa6, 0xa8, 0x6c, 0x8a, 0xb8, 0x42, 0x8b, 0xdb, 0xb3, 0x67, 0xcd, 0x0d, 0xdf, 0xdf, 0x70, 0xc9, - 0xb4, 0x34, 0x59, 0xab, 0xae, 0x4f, 0x3b, 0x55, 0x86, 0x79, 0xdd, 0xe9, 0xec, 0xa8, 0x43, 0x2a, - 0xc4, 0x13, 0x2e, 0x94, 0x04, 0xd3, 0x1b, 0xfe, 0x86, 0x2f, 0xd7, 0xd5, 0xdb, 0xf1, 0xb8, 0xb0, - 0xb6, 0x5f, 0x2e, 0xd7, 0xfd, 0x63, 0x89, 0x71, 0x1c, 0x6c, 0xb9, 0x34, 0xe0, 0x49, 0x36, 0x3b, - 0x3e, 0xdb, 0x5a, 0x77, 0xfd, 0x9d, 0xd0, 0xa6, 0xf0, 0xd5, 0x00, 0xe4, 0x6e, 0xa9, 0xfd, 0xa0, - 0xef, 0x0c, 0xb8, 0x1c, 0xd8, 0x9b, 0xc4, 0xa9, 0xba, 0xa4, 0x84, 0x6d, 0x4e, 0xb7, 0x29, 0xaf, - 0x95, 0x04, 0x6a, 0x29, 0xda, 0x73, 0x09, 0x73, 0xce, 0xe8, 0x5a, 0x95, 0x93, 0x60, 0xd8, 0x18, - 0x37, 0xde, 0xee, 0x9d, 0x7b, 0xb7, 0x18, 0xb3, 0xff, 0xe2, 0x03, 0x05, 0x33, 0xaf, 0x50, 0x56, - 0x71, 0xb0, 0x15, 0xc5, 0x99, 0xaf, 0x43, 0xdc, 0xe9, 0xb0, 0x26, 0x02, 0x2d, 0x4b, 0xf4, 0x19, - 0x8c, 0x05, 0x1c, 0x33, 0x5e, 0xe2, 0xb4, 0x4c, 0x58, 0x2c, 0x9f, 0x4e, 0xc9, 0x67, 0x36, 0x9e, - 0x8f, 0xf0, 0x5d, 0x15, 0xae, 0xb1, 0x2c, 0x46, 0x83, 0x84, 0xf7, 0xe8, 0xa9, 0x01, 0xe2, 0xf4, - 0x2b, 0x2e, 0xe1, 0xa4, 0x14, 0x1d, 0x60, 0x89, 0x3c, 0x26, 0x76, 0x55, 0xa4, 0x34, 0x96, 0x4c, - 0x97, 0x24, 0xf3, 0x7e, 0x2c, 0x99, 0x45, 0x85, 0xf5, 0x91, 0x82, 0xba, 0x1d, 0x21, 0xc5, 0x72, - 0x9b, 0xb4, 0xf5, 0xcd, 0xd1, 0xf7, 0x06, 0x4c, 0xae, 0x63, 0xea, 0xea, 0xd2, 0xec, 0x96, 0x34, - 0xdf, 0x8b, 0xa5, 0xb9, 0x84, 0xa9, 0xab, 0x47, 0xf1, 0xe2, 0xba, 0x9e, 0x29, 0xfa, 0xc9, 0x80, - 0x19, 0x46, 0x3e, 0xad, 0x92, 0x80, 0x97, 0x6c, 0xec, 0xd9, 0xc4, 0xd5, 0xa8, 0xb3, 0x9e, 0x84, - 0xa3, 0xb4, 0x42, 0xb0, 0x45, 0x89, 0x75, 0x68, 0xb1, 0x4d, 0x32, 0x7d, 0x73, 0xf4, 0x39, 0x8c, - 0x2b, 0x8a, 0xed, 0x4b, 0x2e, 0x23, 0xa9, 0xcd, 0xc5, 0x67, 0x59, 0x3a, 0xb7, 0xaf, 0xb9, 0xf3, - 0x76, 0x92, 0x01, 0xfa, 0xc1, 0x80, 0x29, 0x15, 0x5f, 0x33, 0x97, 0x59, 0x49, 0xe6, 0x66, 0x02, - 0x19, 0xbd, 0x6c, 0x5e, 0xb2, 0x75, 0x8d, 0xd1, 0x5f, 0x06, 0xdc, 0x6c, 0xc9, 0x27, 0x79, 0xcc, - 0x09, 0xf3, 0xb0, 0x36, 0xeb, 0x9c, 0x64, 0x7d, 0xef, 0xf0, 0xec, 0xde, 0x56, 0xc0, 0x7a, 0x9b, - 0xb8, 0xce, 0x8e, 0xe8, 0x8b, 0x9e, 0x18, 0x70, 0x81, 0x11, 0xdb, 0x67, 0x4e, 0xa9, 0x8c, 0xd9, - 0x56, 0x9b, 0xcc, 0xe7, 0x25, 0xed, 0x2b, 0x6d, 0x68, 0x0b, 0xef, 0x7b, 0xd2, 0x39, 0x96, 0x9c, - 0xc9, 0x12, 0x2d, 0xd0, 0x6f, 0x06, 0x5c, 0xb3, 0x7d, 0x8f, 0x53, 0xaf, 0x4a, 0x4a, 0x38, 0x28, - 0x79, 0x64, 0x47, 0xf7, 0x38, 0x41, 0xf2, 0xba, 0xdd, 0xa6, 0xef, 0x84, 0x90, 0xf3, 0xc1, 0x7d, - 0xb2, 0xa3, 0x77, 0x8c, 0x33, 0x76, 0x4a, 0x1f, 0xf4, 0x8b, 0x01, 0x73, 0x61, 0xa7, 0xb6, 0x37, - 0xa9, 0xeb, 0xe8, 0xf2, 0xee, 0x95, 0xbc, 0x17, 0xda, 0x37, 0xef, 0x45, 0x81, 0xa6, 0x47, 0x7a, - 0x2a, 0x48, 0xe3, 0x80, 0x7e, 0x37, 0xe0, 0x5a, 0x40, 0x37, 0x44, 0xcd, 0xa6, 0x2d, 0xde, 0x3e, - 0xc9, 0x7a, 0x29, 0x9e, 0xb5, 0x84, 0x4c, 0x57, 0xb5, 0xb3, 0x41, 0x5a, 0x27, 0xf4, 0xab, 0x01, - 0xef, 0x54, 0x2b, 0x01, 0x61, 0xbc, 0x41, 0x3a, 0x20, 0x98, 0xd9, 0x9b, 0x4d, 0x44, 0x63, 0xc9, - 0xf7, 0x27, 0x94, 0xca, 0x43, 0x89, 0x18, 0xc5, 0x7f, 0x20, 0xf1, 0x1a, 0x41, 0xe3, 0x4b, 0xa5, - 0x9a, 0xd2, 0x67, 0xa1, 0x0f, 0xa0, 0x41, 0xa7, 0xf0, 0x63, 0x06, 0x26, 0xf4, 0x64, 0x03, 0x1a, - 0x83, 0xde, 0xfa, 0xd8, 0xa0, 0x8e, 0x14, 0x22, 0x79, 0x0b, 0xa2, 0xa5, 0x65, 0x07, 0x2d, 0x41, - 0x7f, 0x63, 0xae, 0xd4, 0x2a, 0x44, 0x69, 0x83, 0x0b, 0xb1, 0x7b, 0xad, 0x07, 0xab, 0x55, 0x88, - 0xd5, 0x87, 0x9b, 0x9e, 0xd0, 0x10, 0x64, 0x1c, 0xbf, 0x8c, 0xa9, 0x27, 0xe7, 0x79, 0xde, 0x52, - 0x4f, 0xe8, 0x06, 0xe4, 0xe5, 0xb8, 0x12, 0x6a, 0x4b, 0xcd, 0xd0, 0xf3, 0xb1, 0xd8, 0x62, 0x03, - 0x77, 0x69, 0xc0, 0xad, 0x1c, 0x57, 0xbf, 0xd0, 0x1c, 0xf4, 0x50, 0xaf, 0x52, 0xe5, 0x6a, 0xae, - 0x8d, 0xc6, 0xfa, 0xad, 0xe0, 0x9a, 0xeb, 0x63, 0xc7, 0x0a, 0x4d, 0xd1, 0x23, 0x18, 0xa9, 0x0b, - 0x33, 0xee, 0x97, 0x6c, 0xd7, 0x0f, 0x88, 0x1c, 0x4b, 0x7e, 0x95, 0xab, 0x21, 0x34, 0x52, 0x0c, - 0x25, 0x67, 0x31, 0x92, 0x9c, 0xc5, 0x5b, 0x4a, 0x72, 0x2e, 0x74, 0x7f, 0xfb, 0xf7, 0x98, 0x61, - 0x0d, 0x45, 0x08, 0xab, 0xfe, 0xa2, 0xf0, 0x5f, 0x0d, 0xdd, 0x5b, 0xb1, 0x1b, 0x2a, 0x4b, 0x60, - 0x67, 0x53, 0x63, 0xd7, 0x95, 0x96, 0xc0, 0x5e, 0x85, 0x21, 0x85, 0xd7, 0x4a, 0x3a, 0xa7, 0x07, - 0x3c, 0x18, 0x0a, 0xb3, 0xfd, 0x8c, 0xef, 0xc2, 0xc0, 0x26, 0xc1, 0x8c, 0xaf, 0x11, 0xdc, 0x60, - 0x9a, 0xd7, 0x03, 0x3c, 0x59, 0xf7, 0x8c, 0xd0, 0x16, 0xa1, 0x8f, 0x11, 0xce, 0x6a, 0xa5, 0x8a, - 0xef, 0x52, 0xbb, 0xa6, 0x3a, 0xd1, 0x78, 0x9b, 0xce, 0xce, 0x59, 0x6d, 0x45, 0xda, 0x59, 0xbd, - 0xac, 0xf1, 0x80, 0xae, 0x40, 0x66, 0x93, 0x60, 0x87, 0x30, 0xd5, 0x12, 0xce, 0xc5, 0xba, 0xdf, - 0x91, 0x26, 0x96, 0x32, 0x45, 0x57, 0x61, 0x28, 0x1a, 0x9e, 0xae, 0x6f, 0x63, 0xb7, 0xe4, 0xd0, - 0xa0, 0x82, 0xb9, 0xbd, 0x29, 0xaf, 0x66, 0xce, 0x3a, 0xa5, 0xde, 0xde, 0x15, 0x2f, 0x6f, 0xa9, - 0x77, 0x85, 0xaf, 0x0d, 0x18, 0x4d, 0x92, 0xb3, 0x68, 0x04, 0x72, 0xa1, 0x62, 0xa9, 0x5f, 0x8d, - 0xac, 0x7c, 0x5e, 0x76, 0x90, 0x05, 0xa7, 0xeb, 0xf9, 0x58, 0xa7, 0xac, 0x91, 0x8e, 0x4e, 0xbd, - 0xd3, 0x43, 0x2a, 0x1d, 0x4b, 0x94, 0x45, 0xd9, 0x28, 0xd8, 0x30, 0x99, 0x42, 0xd0, 0xa2, 0xab, - 0x90, 0x61, 0x24, 0xa8, 0xba, 0x5c, 0x7d, 0x3f, 0x24, 0xd7, 0xbf, 0xb2, 0x2d, 0x60, 0xb8, 0xa8, - 0x29, 0x47, 0xd1, 0x35, 0xc8, 0x0a, 0x39, 0x5a, 0x65, 0x24, 0x31, 0xc2, 0x52, 0x68, 0x63, 0x45, - 0xc6, 0x85, 0xfb, 0x30, 0x99, 0x42, 0x4d, 0x1e, 0xda, 0x83, 0x0a, 0x37, 0xe0, 0x7c, 0xa2, 0x04, - 0x4c, 0xc8, 0x53, 0xc1, 0x86, 0x4b, 0xda, 0x8a, 0x4d, 0x6c, 0xd8, 0x21, 0x1c, 0x53, 0x37, 0xd0, - 0x3a, 0xd2, 0xc8, 0xb8, 0xf0, 0x9f, 0x01, 0xd7, 0x8f, 0xaa, 0xb0, 0x9a, 0x3a, 0xa3, 0xb1, 0xaf, - 0x33, 0x3e, 0x04, 0x74, 0x70, 0x76, 0xaa, 0xf2, 0x9a, 0x88, 0xe5, 0x75, 0x20, 0x9a, 0x35, 0xb0, - 0xd3, 0xba, 0x84, 0x86, 0x21, 0x2b, 0x94, 0x08, 0xf3, 0x5d, 0xd9, 0x89, 0xfb, 0xac, 0xe8, 0x11, - 0x15, 0x61, 0xb0, 0x45, 0x68, 0xf8, 0x9e, 0x5b, 0x93, 0x4d, 0x39, 0x67, 0x0d, 0xd8, 0xcd, 0x22, - 0xe0, 0x03, 0xcf, 0xad, 0x15, 0x7e, 0x36, 0xc0, 0x4c, 0x16, 0x68, 0x22, 0xb5, 0x4a, 0xf9, 0x79, - 0xb8, 0x4c, 0xa2, 0xd4, 0x86, 0x4b, 0xf7, 0x71, 0x99, 0x34, 0x9f, 0x78, 0x67, 0x8a, 0x13, 0x6f, - 0xea, 0x12, 0x5d, 0xda, 0x5d, 0xa2, 0xf0, 0x45, 0x0e, 0x66, 0xd2, 0x2a, 0x37, 0x31, 0x00, 0xeb, - 0xe7, 0x21, 0x07, 0xa0, 0x91, 0x30, 0x00, 0x23, 0xc0, 0x70, 0x00, 0xee, 0x34, 0x3d, 0xed, 0x1f, - 0x74, 0x9d, 0x47, 0x1c, 0x74, 0x5d, 0xfa, 0x83, 0x6e, 0x03, 0xc6, 0x1b, 0x8a, 0xab, 0xcd, 0xe8, - 0xe8, 0xd6, 0xeb, 0x55, 0xa3, 0x75, 0xa0, 0x07, 0x31, 0x33, 0xe4, 0x63, 0x38, 0x27, 0x37, 0xd6, - 0x26, 0x46, 0x8f, 0x5e, 0x8c, 0x33, 0x02, 0x23, 0x0e, 0xfe, 0x21, 0x0c, 0xad, 0x61, 0x7b, 0xcb, - 0x5f, 0x5f, 0x57, 0x11, 0xa8, 0xc7, 0x09, 0xdb, 0xc6, 0xae, 0xee, 0xb4, 0x3e, 0xa5, 0xdc, 0x25, - 0xf8, 0xb2, 0x72, 0x3e, 0x30, 0xab, 0xb2, 0x47, 0x99, 0x55, 0xcb, 0x90, 0xa7, 0x1e, 0xe5, 0x14, - 0x73, 0x9f, 0xc9, 0x39, 0x7c, 0x62, 0x6e, 0xf2, 0xf0, 0xef, 0x85, 0xe5, 0xc8, 0xc5, 0x6a, 0x78, - 0x37, 0xf7, 0xda, 0x7c, 0x8a, 0x5e, 0x8b, 0x2c, 0x18, 0x72, 0xb1, 0xf8, 0x66, 0x0c, 0x07, 0x87, - 0x48, 0xb6, 0x1a, 0x0a, 0xa0, 0x51, 0x2b, 0xa7, 0x84, 0xef, 0x62, 0xdd, 0xd5, 0x92, 0x9e, 0xe8, - 0x4d, 0xe8, 0xb7, 0x99, 0xa8, 0x1a, 0x25, 0x45, 0xe4, 0x20, 0xcf, 0x5b, 0x7d, 0x62, 0x31, 0xd2, - 0x95, 0x47, 0x9b, 0xd3, 0x53, 0xd0, 0x5d, 0x26, 0x65, 0x5f, 0x09, 0xe6, 0x91, 0x58, 0x97, 0x7b, - 0xa4, 0xec, 0x5b, 0xd2, 0x0c, 0x59, 0x30, 0x70, 0x40, 0x80, 0x0f, 0x9f, 0x90, 0xbe, 0x6f, 0xc5, - 0x7f, 0x29, 0xb4, 0x48, 0x65, 0xeb, 0x64, 0xd0, 0xb2, 0x52, 0xd8, 0xcd, 0xc2, 0x54, 0xaa, 0xcf, - 0xa0, 0xb6, 0x0d, 0x7a, 0x0c, 0x7a, 0xeb, 0x9d, 0x81, 0x3a, 0xf2, 0x4e, 0xe7, 0x2d, 0x88, 0x96, - 0x42, 0xed, 0xbc, 0xbf, 0x75, 0x74, 0xbd, 0x82, 0xd6, 0xf1, 0x1a, 0x34, 0xb2, 0x4e, 0xeb, 0xc8, - 0xbc, 0x86, 0xd6, 0x91, 0x3d, 0x66, 0xeb, 0xf8, 0x10, 0x06, 0x2b, 0x98, 0x11, 0x8f, 0x2b, 0x5c, - 0x75, 0xd5, 0xc3, 0x8b, 0x3a, 0xd1, 0xe6, 0x24, 0x84, 0xbd, 0x44, 0x51, 0x17, 0x7e, 0xa0, 0xd2, - 0xba, 0xd4, 0x3c, 0x42, 0xf3, 0xfb, 0x47, 0xa8, 0x0d, 0xc3, 0x4d, 0x25, 0x51, 0x62, 0xa4, 0xda, - 0x08, 0x0b, 0x32, 0xec, 0xe5, 0xc4, 0xe4, 0x2f, 0x3b, 0x96, 0x70, 0x51, 0xa1, 0x4f, 0xef, 0xc4, - 0x2d, 0xbf, 0x1a, 0x99, 0x7d, 0xe0, 0x8e, 0xf7, 0x25, 0xde, 0xf1, 0xfe, 0xf4, 0x77, 0xfc, 0xc4, - 0x31, 0xee, 0xf8, 0x1b, 0xc7, 0xbb, 0xe3, 0x7f, 0x74, 0xc2, 0x6c, 0xea, 0x3f, 0x0d, 0x5e, 0xb7, - 0x10, 0x1b, 0x83, 0x5e, 0xf5, 0x5f, 0x89, 0xd4, 0x46, 0xe1, 0x67, 0x31, 0x84, 0x4b, 0x52, 0x1b, - 0xd5, 0xaf, 0x6e, 0xb7, 0xfe, 0xd5, 0x6d, 0x2a, 0xcd, 0x1e, 0x2d, 0x75, 0x97, 0x69, 0xa7, 0xee, - 0xbe, 0x34, 0x60, 0x26, 0xed, 0x7f, 0x17, 0xf1, 0xc9, 0x34, 0x8e, 0x95, 0xcc, 0x85, 0x4f, 0x9e, - 0xed, 0x9a, 0x1d, 0xcf, 0x77, 0xcd, 0x8e, 0x97, 0xbb, 0xa6, 0xf1, 0x64, 0xcf, 0x34, 0x9e, 0xee, - 0x99, 0xc6, 0x9f, 0x7b, 0xa6, 0xf1, 0x6c, 0xcf, 0x34, 0xfe, 0xd9, 0x33, 0x8d, 0x7f, 0xf7, 0xcc, - 0x8e, 0x97, 0x7b, 0xa6, 0xf1, 0xcd, 0x0b, 0xb3, 0xe3, 0xd9, 0x0b, 0xb3, 0xe3, 0xf9, 0x0b, 0xb3, - 0x03, 0xce, 0xd8, 0x7e, 0x39, 0x2e, 0xe2, 0x42, 0x6e, 0xbe, 0x42, 0x57, 0x44, 0x27, 0x59, 0x31, - 0x1e, 0xf5, 0xe0, 0x0a, 0xdd, 0x9e, 0x5d, 0xcb, 0xc8, 0xce, 0x72, 0xe5, 0xff, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xb1, 0xe2, 0x70, 0x1c, 0xa4, 0x1a, 0x00, 0x00, -} - -func (this *Decision) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Decision) - if !ok { - that2, ok := that.(Decision) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if that1.Attributes == nil { - if this.Attributes != nil { - return false - } - } else if this.Attributes == nil { - return false - } else if !this.Attributes.Equal(that1.Attributes) { - return false - } - return true -} -func (this *Decision_ScheduleActivityTaskDecisionAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Decision_ScheduleActivityTaskDecisionAttributes) - if !ok { - that2, ok := that.(Decision_ScheduleActivityTaskDecisionAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.ScheduleActivityTaskDecisionAttributes.Equal(that1.ScheduleActivityTaskDecisionAttributes) { - return false - } - return true -} -func (this *Decision_StartTimerDecisionAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Decision_StartTimerDecisionAttributes) - if !ok { - that2, ok := that.(Decision_StartTimerDecisionAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.StartTimerDecisionAttributes.Equal(that1.StartTimerDecisionAttributes) { - return false - } - return true -} -func (this *Decision_CompleteWorkflowExecutionDecisionAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Decision_CompleteWorkflowExecutionDecisionAttributes) - if !ok { - that2, ok := that.(Decision_CompleteWorkflowExecutionDecisionAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.CompleteWorkflowExecutionDecisionAttributes.Equal(that1.CompleteWorkflowExecutionDecisionAttributes) { - return false - } - return true -} -func (this *Decision_FailWorkflowExecutionDecisionAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Decision_FailWorkflowExecutionDecisionAttributes) - if !ok { - that2, ok := that.(Decision_FailWorkflowExecutionDecisionAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.FailWorkflowExecutionDecisionAttributes.Equal(that1.FailWorkflowExecutionDecisionAttributes) { - return false - } - return true -} -func (this *Decision_RequestCancelActivityTaskDecisionAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Decision_RequestCancelActivityTaskDecisionAttributes) - if !ok { - that2, ok := that.(Decision_RequestCancelActivityTaskDecisionAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.RequestCancelActivityTaskDecisionAttributes.Equal(that1.RequestCancelActivityTaskDecisionAttributes) { - return false - } - return true -} -func (this *Decision_CancelTimerDecisionAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Decision_CancelTimerDecisionAttributes) - if !ok { - that2, ok := that.(Decision_CancelTimerDecisionAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.CancelTimerDecisionAttributes.Equal(that1.CancelTimerDecisionAttributes) { - return false - } - return true -} -func (this *Decision_CancelWorkflowExecutionDecisionAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Decision_CancelWorkflowExecutionDecisionAttributes) - if !ok { - that2, ok := that.(Decision_CancelWorkflowExecutionDecisionAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.CancelWorkflowExecutionDecisionAttributes.Equal(that1.CancelWorkflowExecutionDecisionAttributes) { - return false - } - return true -} -func (this *Decision_RequestCancelExternalWorkflowExecutionDecisionAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Decision_RequestCancelExternalWorkflowExecutionDecisionAttributes) - if !ok { - that2, ok := that.(Decision_RequestCancelExternalWorkflowExecutionDecisionAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.RequestCancelExternalWorkflowExecutionDecisionAttributes.Equal(that1.RequestCancelExternalWorkflowExecutionDecisionAttributes) { - return false - } - return true -} -func (this *Decision_RecordMarkerDecisionAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Decision_RecordMarkerDecisionAttributes) - if !ok { - that2, ok := that.(Decision_RecordMarkerDecisionAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.RecordMarkerDecisionAttributes.Equal(that1.RecordMarkerDecisionAttributes) { - return false - } - return true -} -func (this *Decision_ContinueAsNewWorkflowExecutionDecisionAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Decision_ContinueAsNewWorkflowExecutionDecisionAttributes) - if !ok { - that2, ok := that.(Decision_ContinueAsNewWorkflowExecutionDecisionAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.ContinueAsNewWorkflowExecutionDecisionAttributes.Equal(that1.ContinueAsNewWorkflowExecutionDecisionAttributes) { - return false - } - return true -} -func (this *Decision_StartChildWorkflowExecutionDecisionAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Decision_StartChildWorkflowExecutionDecisionAttributes) - if !ok { - that2, ok := that.(Decision_StartChildWorkflowExecutionDecisionAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.StartChildWorkflowExecutionDecisionAttributes.Equal(that1.StartChildWorkflowExecutionDecisionAttributes) { - return false - } - return true -} -func (this *Decision_SignalExternalWorkflowExecutionDecisionAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Decision_SignalExternalWorkflowExecutionDecisionAttributes) - if !ok { - that2, ok := that.(Decision_SignalExternalWorkflowExecutionDecisionAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.SignalExternalWorkflowExecutionDecisionAttributes.Equal(that1.SignalExternalWorkflowExecutionDecisionAttributes) { - return false - } - return true -} -func (this *Decision_UpsertWorkflowSearchAttributesDecisionAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields - that1, ok := that.(*Decision_UpsertWorkflowSearchAttributesDecisionAttributes) - if !ok { - that2, ok := that.(Decision_UpsertWorkflowSearchAttributesDecisionAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.UpsertWorkflowSearchAttributesDecisionAttributes.Equal(that1.UpsertWorkflowSearchAttributesDecisionAttributes) { - return false - } - return true + SearchAttributes *SearchAttributes `protobuf:"bytes,1,opt,name=search_attributes,json=searchAttributes,proto3" json:"search_attributes,omitempty"` } -func (this *ScheduleActivityTaskDecisionAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*ScheduleActivityTaskDecisionAttributes) - if !ok { - that2, ok := that.(ScheduleActivityTaskDecisionAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.ActivityId != that1.ActivityId { - return false - } - if !this.ActivityType.Equal(that1.ActivityType) { - return false - } - if this.Domain != that1.Domain { - return false - } - if !this.TaskList.Equal(that1.TaskList) { - return false +func (x *UpsertWorkflowSearchAttributesDecisionAttributes) Reset() { + *x = UpsertWorkflowSearchAttributesDecisionAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_decision_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if !this.Input.Equal(that1.Input) { - return false - } - if this.ScheduleToCloseTimeout != nil && that1.ScheduleToCloseTimeout != nil { - if *this.ScheduleToCloseTimeout != *that1.ScheduleToCloseTimeout { - return false - } - } else if this.ScheduleToCloseTimeout != nil { - return false - } else if that1.ScheduleToCloseTimeout != nil { - return false - } - if this.ScheduleToStartTimeout != nil && that1.ScheduleToStartTimeout != nil { - if *this.ScheduleToStartTimeout != *that1.ScheduleToStartTimeout { - return false - } - } else if this.ScheduleToStartTimeout != nil { - return false - } else if that1.ScheduleToStartTimeout != nil { - return false - } - if this.StartToCloseTimeout != nil && that1.StartToCloseTimeout != nil { - if *this.StartToCloseTimeout != *that1.StartToCloseTimeout { - return false - } - } else if this.StartToCloseTimeout != nil { - return false - } else if that1.StartToCloseTimeout != nil { - return false - } - if this.HeartbeatTimeout != nil && that1.HeartbeatTimeout != nil { - if *this.HeartbeatTimeout != *that1.HeartbeatTimeout { - return false - } - } else if this.HeartbeatTimeout != nil { - return false - } else if that1.HeartbeatTimeout != nil { - return false - } - if !this.RetryPolicy.Equal(that1.RetryPolicy) { - return false - } - if !this.Header.Equal(that1.Header) { - return false - } - if this.RequestLocalDispatch != that1.RequestLocalDispatch { - return false - } - return true } -func (this *StartTimerDecisionAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*StartTimerDecisionAttributes) - if !ok { - that2, ok := that.(StartTimerDecisionAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.TimerId != that1.TimerId { - return false - } - if this.StartToFireTimeout != nil && that1.StartToFireTimeout != nil { - if *this.StartToFireTimeout != *that1.StartToFireTimeout { - return false - } - } else if this.StartToFireTimeout != nil { - return false - } else if that1.StartToFireTimeout != nil { - return false - } - return true +func (x *UpsertWorkflowSearchAttributesDecisionAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -func (this *CompleteWorkflowExecutionDecisionAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*CompleteWorkflowExecutionDecisionAttributes) - if !ok { - that2, ok := that.(CompleteWorkflowExecutionDecisionAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.Result.Equal(that1.Result) { - return false - } - return true -} -func (this *FailWorkflowExecutionDecisionAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } +func (*UpsertWorkflowSearchAttributesDecisionAttributes) ProtoMessage() {} - that1, ok := that.(*FailWorkflowExecutionDecisionAttributes) - if !ok { - that2, ok := that.(FailWorkflowExecutionDecisionAttributes) - if ok { - that1 = &that2 - } else { - return false +func (x *UpsertWorkflowSearchAttributesDecisionAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_decision_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.Failure.Equal(that1.Failure) { - return false - } - return true + return mi.MessageOf(x) } -func (this *RequestCancelActivityTaskDecisionAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*RequestCancelActivityTaskDecisionAttributes) - if !ok { - that2, ok := that.(RequestCancelActivityTaskDecisionAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.ActivityId != that1.ActivityId { - return false - } - return true +// Deprecated: Use UpsertWorkflowSearchAttributesDecisionAttributes.ProtoReflect.Descriptor instead. +func (*UpsertWorkflowSearchAttributesDecisionAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_decision_proto_rawDescGZIP(), []int{13} +} + +func (x *UpsertWorkflowSearchAttributesDecisionAttributes) GetSearchAttributes() *SearchAttributes { + if x != nil { + return x.SearchAttributes + } + return nil +} + +var File_uber_cadence_api_v1_decision_proto protoreflect.FileDescriptor + +var file_uber_cadence_api_v1_decision_proto_rawDesc = []byte{ + 0x0a, 0x22, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x75, 0x62, 0x65, 0x72, 0x2f, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63, + 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x75, 0x62, 0x65, + 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, + 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x22, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0x88, 0x11, 0x0a, 0x08, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x12, 0x99, 0x01, 0x0a, 0x2a, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x61, 0x63, + 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x64, 0x65, 0x63, 0x69, + 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, + 0x64, 0x75, 0x6c, 0x65, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, + 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x48, 0x00, 0x52, 0x26, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x41, 0x63, + 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, + 0x6f, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x7a, 0x0a, 0x1f, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x72, 0x5f, 0x64, 0x65, 0x63, 0x69, + 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x72, + 0x74, 0x54, 0x69, 0x6d, 0x65, 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x1c, 0x73, 0x74, 0x61, 0x72, + 0x74, 0x54, 0x69, 0x6d, 0x65, 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0xa8, 0x01, 0x0a, 0x2f, 0x63, 0x6f, 0x6d, + 0x70, 0x6c, 0x65, 0x74, 0x65, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, + 0x6e, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x40, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, + 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x2b, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, + 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x12, 0x9c, 0x01, 0x0a, 0x2b, 0x66, 0x61, 0x69, 0x6c, 0x5f, 0x77, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x46, 0x61, 0x69, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x27, 0x66, 0x61, 0x69, 0x6c, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x12, 0xa9, 0x01, 0x0a, 0x30, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x63, + 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, 0x74, + 0x61, 0x73, 0x6b, 0x5f, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x40, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x61, 0x6e, 0x63, 0x65, + 0x6c, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x44, 0x65, 0x63, + 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, + 0x00, 0x52, 0x2b, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, + 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x44, 0x65, 0x63, 0x69, + 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x7d, + 0x0a, 0x20, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x72, 0x5f, 0x64, + 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, + 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, + 0x6f, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x1d, + 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, + 0x69, 0x6f, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0xa2, 0x01, + 0x0a, 0x2d, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x65, 0x63, 0x69, + 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6e, 0x63, + 0x65, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x29, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x12, 0xd1, 0x01, 0x0a, 0x3e, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x63, + 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x77, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x4d, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x45, + 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x38, 0x72, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x72, + 0x6e, 0x61, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x80, 0x01, 0x0a, 0x21, 0x72, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x5f, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, + 0x6e, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x09, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x4d, + 0x61, 0x72, 0x6b, 0x65, 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x1e, 0x72, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0xb9, 0x01, 0x0a, 0x36, 0x63, 0x6f, + 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x5f, 0x61, 0x73, 0x5f, 0x6e, 0x65, 0x77, 0x5f, 0x77, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x41, 0x73, 0x4e, 0x65, 0x77, 0x57, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, + 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x73, 0x48, 0x00, 0x52, 0x30, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x41, 0x73, 0x4e, + 0x65, 0x77, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0xaf, 0x01, 0x0a, 0x32, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, + 0x63, 0x68, 0x69, 0x6c, 0x64, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, + 0x6e, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x0b, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x42, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x43, 0x68, + 0x69, 0x6c, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x2d, 0x73, 0x74, 0x61, 0x72, 0x74, 0x43, + 0x68, 0x69, 0x6c, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0xbb, 0x01, 0x0a, 0x36, 0x73, 0x69, 0x67, 0x6e, + 0x61, 0x6c, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x77, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, + 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x46, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, + 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x57, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, + 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, + 0x48, 0x00, 0x52, 0x31, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, + 0x61, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0xb8, 0x01, 0x0a, 0x35, 0x75, 0x70, 0x73, 0x65, 0x72, 0x74, + 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, + 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x5f, 0x64, 0x65, 0x63, 0x69, + 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, + 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x73, 0x65, + 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, + 0x6f, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x30, + 0x75, 0x70, 0x73, 0x65, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x65, + 0x61, 0x72, 0x63, 0x68, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x44, 0x65, + 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, + 0x42, 0x0c, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x22, 0x8d, + 0x06, 0x0a, 0x26, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x41, 0x63, 0x74, 0x69, 0x76, + 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x63, 0x74, + 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, + 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x46, 0x0a, 0x0d, 0x61, 0x63, + 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x21, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, + 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x3a, 0x0a, 0x09, 0x74, 0x61, + 0x73, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x08, 0x74, 0x61, + 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, + 0x6f, 0x61, 0x64, 0x52, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x54, 0x0a, 0x19, 0x73, 0x63, + 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x74, 0x6f, 0x5f, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x5f, + 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x16, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, + 0x6c, 0x65, 0x54, 0x6f, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, + 0x12, 0x54, 0x0a, 0x19, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x74, 0x6f, 0x5f, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x16, + 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x54, 0x6f, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, + 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x4e, 0x0a, 0x16, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, + 0x74, 0x6f, 0x5f, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, + 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x13, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x6f, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x54, + 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x46, 0x0a, 0x11, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, + 0x65, 0x61, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x68, 0x65, + 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x43, + 0x0a, 0x0c, 0x72, 0x65, 0x74, 0x72, 0x79, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x0b, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x74, 0x72, 0x79, + 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x0b, 0x72, 0x65, 0x74, 0x72, 0x79, 0x50, 0x6f, 0x6c, + 0x69, 0x63, 0x79, 0x12, 0x33, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x0c, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x34, 0x0a, 0x16, 0x72, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x5f, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x64, 0x69, 0x73, 0x70, 0x61, 0x74, + 0x63, 0x68, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x44, 0x69, 0x73, 0x70, 0x61, 0x74, 0x63, 0x68, 0x22, 0x87, + 0x01, 0x0a, 0x1c, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x72, 0x44, 0x65, 0x63, + 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, + 0x19, 0x0a, 0x08, 0x74, 0x69, 0x6d, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x72, 0x49, 0x64, 0x12, 0x4c, 0x0a, 0x15, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x5f, 0x74, 0x6f, 0x5f, 0x66, 0x69, 0x72, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, + 0x6f, 0x75, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x12, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x6f, 0x46, 0x69, 0x72, + 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x22, 0x63, 0x0a, 0x2b, 0x43, 0x6f, 0x6d, 0x70, + 0x6c, 0x65, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x34, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, + 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x61, 0x0a, + 0x27, 0x46, 0x61, 0x69, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x07, 0x66, 0x61, 0x69, 0x6c, + 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x52, 0x07, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, + 0x22, 0x4e, 0x0a, 0x2b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x61, 0x6e, 0x63, 0x65, + 0x6c, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x44, 0x65, 0x63, + 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, + 0x1f, 0x0a, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x49, 0x64, + 0x22, 0x3a, 0x0a, 0x1d, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x72, 0x44, + 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x73, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x69, 0x6d, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x72, 0x49, 0x64, 0x22, 0x63, 0x0a, 0x29, + 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x07, 0x64, 0x65, 0x74, + 0x61, 0x69, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, + 0x73, 0x22, 0xf3, 0x01, 0x0a, 0x38, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x61, 0x6e, + 0x63, 0x65, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x63, 0x69, + 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x16, + 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, + 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, + 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x12, 0x2e, 0x0a, 0x13, 0x63, 0x68, 0x69, 0x6c, 0x64, + 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0xae, 0x01, 0x0a, 0x1e, 0x52, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x6d, 0x61, + 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x64, + 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, + 0x69, 0x6c, 0x73, 0x12, 0x33, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x22, 0xf0, 0x07, 0x0a, 0x30, 0x43, 0x6f, 0x6e, + 0x74, 0x69, 0x6e, 0x75, 0x65, 0x41, 0x73, 0x4e, 0x65, 0x77, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x63, 0x69, 0x73, + 0x69, 0x6f, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x46, 0x0a, + 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3a, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6c, 0x69, + 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, + 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, + 0x74, 0x12, 0x32, 0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x05, + 0x69, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x61, 0x0a, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x6f, 0x5f, 0x63, 0x6c, 0x6f, 0x73, + 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x1c, 0x65, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x6f, 0x43, 0x6c, 0x6f, 0x73, + 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x57, 0x0a, 0x1b, 0x74, 0x61, 0x73, 0x6b, + 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x6f, 0x5f, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x5f, + 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x17, 0x74, 0x61, 0x73, 0x6b, 0x53, 0x74, + 0x61, 0x72, 0x74, 0x54, 0x6f, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, + 0x74, 0x12, 0x4f, 0x0a, 0x16, 0x62, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x5f, 0x73, 0x74, 0x61, + 0x72, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x14, 0x62, 0x61, + 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x53, 0x74, 0x61, 0x72, 0x74, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, + 0x61, 0x6c, 0x12, 0x43, 0x0a, 0x0c, 0x72, 0x65, 0x74, 0x72, 0x79, 0x5f, 0x70, 0x6f, 0x6c, 0x69, + 0x63, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, + 0x65, 0x74, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x0b, 0x72, 0x65, 0x74, 0x72, + 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x49, 0x0a, 0x09, 0x69, 0x6e, 0x69, 0x74, 0x69, + 0x61, 0x74, 0x6f, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x41, 0x73, 0x4e, 0x65, 0x77, 0x49, 0x6e, + 0x69, 0x74, 0x69, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x09, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, + 0x6f, 0x72, 0x12, 0x36, 0x0a, 0x07, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x18, 0x09, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, + 0x65, 0x52, 0x07, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x12, 0x52, 0x0a, 0x16, 0x6c, 0x61, + 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, + 0x73, 0x75, 0x6c, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x14, 0x6c, 0x61, 0x73, 0x74, 0x43, 0x6f, + 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x23, + 0x0a, 0x0d, 0x63, 0x72, 0x6f, 0x6e, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x18, + 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x72, 0x6f, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x64, + 0x75, 0x6c, 0x65, 0x12, 0x33, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x0c, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x2d, 0x0a, 0x04, 0x6d, 0x65, 0x6d, 0x6f, + 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x6d, + 0x6f, 0x52, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x12, 0x52, 0x0a, 0x11, 0x73, 0x65, 0x61, 0x72, 0x63, + 0x68, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x0e, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x10, 0x73, 0x65, 0x61, 0x72, 0x63, + 0x68, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x22, 0xd5, 0x07, 0x0a, 0x2d, + 0x53, 0x74, 0x61, 0x72, 0x74, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x63, 0x69, 0x73, + 0x69, 0x6f, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x16, 0x0a, + 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x77, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x49, 0x64, 0x12, 0x46, 0x0a, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, + 0x52, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3a, + 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, + 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x05, 0x69, 0x6e, + 0x70, 0x75, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x61, + 0x0a, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x72, + 0x74, 0x5f, 0x74, 0x6f, 0x5f, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, + 0x75, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x1c, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, + 0x61, 0x72, 0x74, 0x54, 0x6f, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, + 0x74, 0x12, 0x57, 0x0a, 0x1b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, + 0x74, 0x6f, 0x5f, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x17, 0x74, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x6f, 0x43, 0x6c, + 0x6f, 0x73, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x56, 0x0a, 0x13, 0x70, 0x61, + 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, + 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, + 0x72, 0x65, 0x6e, 0x74, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, + 0x11, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x50, 0x6f, 0x6c, 0x69, + 0x63, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x18, 0x09, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x12, 0x63, 0x0a, 0x18, + 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x64, 0x5f, 0x72, 0x65, 0x75, 0x73, + 0x65, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x49, 0x64, 0x52, + 0x65, 0x75, 0x73, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x15, 0x77, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x49, 0x64, 0x52, 0x65, 0x75, 0x73, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, + 0x79, 0x12, 0x43, 0x0a, 0x0c, 0x72, 0x65, 0x74, 0x72, 0x79, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, + 0x79, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, + 0x74, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x0b, 0x72, 0x65, 0x74, 0x72, 0x79, + 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x72, 0x6f, 0x6e, 0x5f, 0x73, + 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, + 0x72, 0x6f, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x33, 0x0a, 0x06, 0x68, + 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x12, 0x2d, 0x0a, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x6d, 0x6f, 0x52, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x12, + 0x52, 0x0a, 0x11, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x73, 0x52, 0x10, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x22, 0xc1, 0x02, 0x0a, 0x31, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x45, 0x78, + 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x69, 0x67, 0x6e, + 0x61, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, + 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x32, 0x0a, 0x05, 0x69, 0x6e, 0x70, + 0x75, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, + 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x18, 0x0a, + 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, + 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x12, 0x2e, 0x0a, 0x13, 0x63, 0x68, 0x69, 0x6c, 0x64, + 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x86, 0x01, 0x0a, 0x30, 0x55, 0x70, 0x73, 0x65, + 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, + 0x6f, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x52, 0x0a, 0x11, + 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, + 0x61, 0x72, 0x63, 0x68, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x10, + 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, + 0x42, 0x56, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x42, 0x08, 0x41, 0x70, 0x69, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2f, 0x2e, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x76, 0x31, 0x3b, 0x61, 0x70, 0x69, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func (this *CancelTimerDecisionAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*CancelTimerDecisionAttributes) - if !ok { - that2, ok := that.(CancelTimerDecisionAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.TimerId != that1.TimerId { - return false - } - return true -} -func (this *CancelWorkflowExecutionDecisionAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } +var ( + file_uber_cadence_api_v1_decision_proto_rawDescOnce sync.Once + file_uber_cadence_api_v1_decision_proto_rawDescData = file_uber_cadence_api_v1_decision_proto_rawDesc +) - that1, ok := that.(*CancelWorkflowExecutionDecisionAttributes) - if !ok { - that2, ok := that.(CancelWorkflowExecutionDecisionAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.Details.Equal(that1.Details) { - return false +func file_uber_cadence_api_v1_decision_proto_rawDescGZIP() []byte { + file_uber_cadence_api_v1_decision_proto_rawDescOnce.Do(func() { + file_uber_cadence_api_v1_decision_proto_rawDescData = protoimpl.X.CompressGZIP(file_uber_cadence_api_v1_decision_proto_rawDescData) + }) + return file_uber_cadence_api_v1_decision_proto_rawDescData +} + +var file_uber_cadence_api_v1_decision_proto_msgTypes = make([]protoimpl.MessageInfo, 14) +var file_uber_cadence_api_v1_decision_proto_goTypes = []interface{}{ + (*Decision)(nil), // 0: uber.cadence.api.v1.Decision + (*ScheduleActivityTaskDecisionAttributes)(nil), // 1: uber.cadence.api.v1.ScheduleActivityTaskDecisionAttributes + (*StartTimerDecisionAttributes)(nil), // 2: uber.cadence.api.v1.StartTimerDecisionAttributes + (*CompleteWorkflowExecutionDecisionAttributes)(nil), // 3: uber.cadence.api.v1.CompleteWorkflowExecutionDecisionAttributes + (*FailWorkflowExecutionDecisionAttributes)(nil), // 4: uber.cadence.api.v1.FailWorkflowExecutionDecisionAttributes + (*RequestCancelActivityTaskDecisionAttributes)(nil), // 5: uber.cadence.api.v1.RequestCancelActivityTaskDecisionAttributes + (*CancelTimerDecisionAttributes)(nil), // 6: uber.cadence.api.v1.CancelTimerDecisionAttributes + (*CancelWorkflowExecutionDecisionAttributes)(nil), // 7: uber.cadence.api.v1.CancelWorkflowExecutionDecisionAttributes + (*RequestCancelExternalWorkflowExecutionDecisionAttributes)(nil), // 8: uber.cadence.api.v1.RequestCancelExternalWorkflowExecutionDecisionAttributes + (*RecordMarkerDecisionAttributes)(nil), // 9: uber.cadence.api.v1.RecordMarkerDecisionAttributes + (*ContinueAsNewWorkflowExecutionDecisionAttributes)(nil), // 10: uber.cadence.api.v1.ContinueAsNewWorkflowExecutionDecisionAttributes + (*StartChildWorkflowExecutionDecisionAttributes)(nil), // 11: uber.cadence.api.v1.StartChildWorkflowExecutionDecisionAttributes + (*SignalExternalWorkflowExecutionDecisionAttributes)(nil), // 12: uber.cadence.api.v1.SignalExternalWorkflowExecutionDecisionAttributes + (*UpsertWorkflowSearchAttributesDecisionAttributes)(nil), // 13: uber.cadence.api.v1.UpsertWorkflowSearchAttributesDecisionAttributes + (*ActivityType)(nil), // 14: uber.cadence.api.v1.ActivityType + (*TaskList)(nil), // 15: uber.cadence.api.v1.TaskList + (*Payload)(nil), // 16: uber.cadence.api.v1.Payload + (*durationpb.Duration)(nil), // 17: google.protobuf.Duration + (*RetryPolicy)(nil), // 18: uber.cadence.api.v1.RetryPolicy + (*Header)(nil), // 19: uber.cadence.api.v1.Header + (*Failure)(nil), // 20: uber.cadence.api.v1.Failure + (*WorkflowExecution)(nil), // 21: uber.cadence.api.v1.WorkflowExecution + (*WorkflowType)(nil), // 22: uber.cadence.api.v1.WorkflowType + (ContinueAsNewInitiator)(0), // 23: uber.cadence.api.v1.ContinueAsNewInitiator + (*Memo)(nil), // 24: uber.cadence.api.v1.Memo + (*SearchAttributes)(nil), // 25: uber.cadence.api.v1.SearchAttributes + (ParentClosePolicy)(0), // 26: uber.cadence.api.v1.ParentClosePolicy + (WorkflowIdReusePolicy)(0), // 27: uber.cadence.api.v1.WorkflowIdReusePolicy +} +var file_uber_cadence_api_v1_decision_proto_depIdxs = []int32{ + 1, // 0: uber.cadence.api.v1.Decision.schedule_activity_task_decision_attributes:type_name -> uber.cadence.api.v1.ScheduleActivityTaskDecisionAttributes + 2, // 1: uber.cadence.api.v1.Decision.start_timer_decision_attributes:type_name -> uber.cadence.api.v1.StartTimerDecisionAttributes + 3, // 2: uber.cadence.api.v1.Decision.complete_workflow_execution_decision_attributes:type_name -> uber.cadence.api.v1.CompleteWorkflowExecutionDecisionAttributes + 4, // 3: uber.cadence.api.v1.Decision.fail_workflow_execution_decision_attributes:type_name -> uber.cadence.api.v1.FailWorkflowExecutionDecisionAttributes + 5, // 4: uber.cadence.api.v1.Decision.request_cancel_activity_task_decision_attributes:type_name -> uber.cadence.api.v1.RequestCancelActivityTaskDecisionAttributes + 6, // 5: uber.cadence.api.v1.Decision.cancel_timer_decision_attributes:type_name -> uber.cadence.api.v1.CancelTimerDecisionAttributes + 7, // 6: uber.cadence.api.v1.Decision.cancel_workflow_execution_decision_attributes:type_name -> uber.cadence.api.v1.CancelWorkflowExecutionDecisionAttributes + 8, // 7: uber.cadence.api.v1.Decision.request_cancel_external_workflow_execution_decision_attributes:type_name -> uber.cadence.api.v1.RequestCancelExternalWorkflowExecutionDecisionAttributes + 9, // 8: uber.cadence.api.v1.Decision.record_marker_decision_attributes:type_name -> uber.cadence.api.v1.RecordMarkerDecisionAttributes + 10, // 9: uber.cadence.api.v1.Decision.continue_as_new_workflow_execution_decision_attributes:type_name -> uber.cadence.api.v1.ContinueAsNewWorkflowExecutionDecisionAttributes + 11, // 10: uber.cadence.api.v1.Decision.start_child_workflow_execution_decision_attributes:type_name -> uber.cadence.api.v1.StartChildWorkflowExecutionDecisionAttributes + 12, // 11: uber.cadence.api.v1.Decision.signal_external_workflow_execution_decision_attributes:type_name -> uber.cadence.api.v1.SignalExternalWorkflowExecutionDecisionAttributes + 13, // 12: uber.cadence.api.v1.Decision.upsert_workflow_search_attributes_decision_attributes:type_name -> uber.cadence.api.v1.UpsertWorkflowSearchAttributesDecisionAttributes + 14, // 13: uber.cadence.api.v1.ScheduleActivityTaskDecisionAttributes.activity_type:type_name -> uber.cadence.api.v1.ActivityType + 15, // 14: uber.cadence.api.v1.ScheduleActivityTaskDecisionAttributes.task_list:type_name -> uber.cadence.api.v1.TaskList + 16, // 15: uber.cadence.api.v1.ScheduleActivityTaskDecisionAttributes.input:type_name -> uber.cadence.api.v1.Payload + 17, // 16: uber.cadence.api.v1.ScheduleActivityTaskDecisionAttributes.schedule_to_close_timeout:type_name -> google.protobuf.Duration + 17, // 17: uber.cadence.api.v1.ScheduleActivityTaskDecisionAttributes.schedule_to_start_timeout:type_name -> google.protobuf.Duration + 17, // 18: uber.cadence.api.v1.ScheduleActivityTaskDecisionAttributes.start_to_close_timeout:type_name -> google.protobuf.Duration + 17, // 19: uber.cadence.api.v1.ScheduleActivityTaskDecisionAttributes.heartbeat_timeout:type_name -> google.protobuf.Duration + 18, // 20: uber.cadence.api.v1.ScheduleActivityTaskDecisionAttributes.retry_policy:type_name -> uber.cadence.api.v1.RetryPolicy + 19, // 21: uber.cadence.api.v1.ScheduleActivityTaskDecisionAttributes.header:type_name -> uber.cadence.api.v1.Header + 17, // 22: uber.cadence.api.v1.StartTimerDecisionAttributes.start_to_fire_timeout:type_name -> google.protobuf.Duration + 16, // 23: uber.cadence.api.v1.CompleteWorkflowExecutionDecisionAttributes.result:type_name -> uber.cadence.api.v1.Payload + 20, // 24: uber.cadence.api.v1.FailWorkflowExecutionDecisionAttributes.failure:type_name -> uber.cadence.api.v1.Failure + 16, // 25: uber.cadence.api.v1.CancelWorkflowExecutionDecisionAttributes.details:type_name -> uber.cadence.api.v1.Payload + 21, // 26: uber.cadence.api.v1.RequestCancelExternalWorkflowExecutionDecisionAttributes.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 16, // 27: uber.cadence.api.v1.RecordMarkerDecisionAttributes.details:type_name -> uber.cadence.api.v1.Payload + 19, // 28: uber.cadence.api.v1.RecordMarkerDecisionAttributes.header:type_name -> uber.cadence.api.v1.Header + 22, // 29: uber.cadence.api.v1.ContinueAsNewWorkflowExecutionDecisionAttributes.workflow_type:type_name -> uber.cadence.api.v1.WorkflowType + 15, // 30: uber.cadence.api.v1.ContinueAsNewWorkflowExecutionDecisionAttributes.task_list:type_name -> uber.cadence.api.v1.TaskList + 16, // 31: uber.cadence.api.v1.ContinueAsNewWorkflowExecutionDecisionAttributes.input:type_name -> uber.cadence.api.v1.Payload + 17, // 32: uber.cadence.api.v1.ContinueAsNewWorkflowExecutionDecisionAttributes.execution_start_to_close_timeout:type_name -> google.protobuf.Duration + 17, // 33: uber.cadence.api.v1.ContinueAsNewWorkflowExecutionDecisionAttributes.task_start_to_close_timeout:type_name -> google.protobuf.Duration + 17, // 34: uber.cadence.api.v1.ContinueAsNewWorkflowExecutionDecisionAttributes.backoff_start_interval:type_name -> google.protobuf.Duration + 18, // 35: uber.cadence.api.v1.ContinueAsNewWorkflowExecutionDecisionAttributes.retry_policy:type_name -> uber.cadence.api.v1.RetryPolicy + 23, // 36: uber.cadence.api.v1.ContinueAsNewWorkflowExecutionDecisionAttributes.initiator:type_name -> uber.cadence.api.v1.ContinueAsNewInitiator + 20, // 37: uber.cadence.api.v1.ContinueAsNewWorkflowExecutionDecisionAttributes.failure:type_name -> uber.cadence.api.v1.Failure + 16, // 38: uber.cadence.api.v1.ContinueAsNewWorkflowExecutionDecisionAttributes.last_completion_result:type_name -> uber.cadence.api.v1.Payload + 19, // 39: uber.cadence.api.v1.ContinueAsNewWorkflowExecutionDecisionAttributes.header:type_name -> uber.cadence.api.v1.Header + 24, // 40: uber.cadence.api.v1.ContinueAsNewWorkflowExecutionDecisionAttributes.memo:type_name -> uber.cadence.api.v1.Memo + 25, // 41: uber.cadence.api.v1.ContinueAsNewWorkflowExecutionDecisionAttributes.search_attributes:type_name -> uber.cadence.api.v1.SearchAttributes + 22, // 42: uber.cadence.api.v1.StartChildWorkflowExecutionDecisionAttributes.workflow_type:type_name -> uber.cadence.api.v1.WorkflowType + 15, // 43: uber.cadence.api.v1.StartChildWorkflowExecutionDecisionAttributes.task_list:type_name -> uber.cadence.api.v1.TaskList + 16, // 44: uber.cadence.api.v1.StartChildWorkflowExecutionDecisionAttributes.input:type_name -> uber.cadence.api.v1.Payload + 17, // 45: uber.cadence.api.v1.StartChildWorkflowExecutionDecisionAttributes.execution_start_to_close_timeout:type_name -> google.protobuf.Duration + 17, // 46: uber.cadence.api.v1.StartChildWorkflowExecutionDecisionAttributes.task_start_to_close_timeout:type_name -> google.protobuf.Duration + 26, // 47: uber.cadence.api.v1.StartChildWorkflowExecutionDecisionAttributes.parent_close_policy:type_name -> uber.cadence.api.v1.ParentClosePolicy + 27, // 48: uber.cadence.api.v1.StartChildWorkflowExecutionDecisionAttributes.workflow_id_reuse_policy:type_name -> uber.cadence.api.v1.WorkflowIdReusePolicy + 18, // 49: uber.cadence.api.v1.StartChildWorkflowExecutionDecisionAttributes.retry_policy:type_name -> uber.cadence.api.v1.RetryPolicy + 19, // 50: uber.cadence.api.v1.StartChildWorkflowExecutionDecisionAttributes.header:type_name -> uber.cadence.api.v1.Header + 24, // 51: uber.cadence.api.v1.StartChildWorkflowExecutionDecisionAttributes.memo:type_name -> uber.cadence.api.v1.Memo + 25, // 52: uber.cadence.api.v1.StartChildWorkflowExecutionDecisionAttributes.search_attributes:type_name -> uber.cadence.api.v1.SearchAttributes + 21, // 53: uber.cadence.api.v1.SignalExternalWorkflowExecutionDecisionAttributes.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 16, // 54: uber.cadence.api.v1.SignalExternalWorkflowExecutionDecisionAttributes.input:type_name -> uber.cadence.api.v1.Payload + 25, // 55: uber.cadence.api.v1.UpsertWorkflowSearchAttributesDecisionAttributes.search_attributes:type_name -> uber.cadence.api.v1.SearchAttributes + 56, // [56:56] is the sub-list for method output_type + 56, // [56:56] is the sub-list for method input_type + 56, // [56:56] is the sub-list for extension type_name + 56, // [56:56] is the sub-list for extension extendee + 0, // [0:56] is the sub-list for field type_name +} + +func init() { file_uber_cadence_api_v1_decision_proto_init() } +func file_uber_cadence_api_v1_decision_proto_init() { + if File_uber_cadence_api_v1_decision_proto != nil { + return + } + file_uber_cadence_api_v1_common_proto_init() + file_uber_cadence_api_v1_tasklist_proto_init() + file_uber_cadence_api_v1_workflow_proto_init() + if !protoimpl.UnsafeEnabled { + file_uber_cadence_api_v1_decision_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Decision); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_decision_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ScheduleActivityTaskDecisionAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_decision_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StartTimerDecisionAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_decision_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CompleteWorkflowExecutionDecisionAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_decision_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FailWorkflowExecutionDecisionAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_decision_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestCancelActivityTaskDecisionAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_decision_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CancelTimerDecisionAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_decision_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CancelWorkflowExecutionDecisionAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_decision_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestCancelExternalWorkflowExecutionDecisionAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_decision_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RecordMarkerDecisionAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_decision_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContinueAsNewWorkflowExecutionDecisionAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_decision_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StartChildWorkflowExecutionDecisionAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_decision_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignalExternalWorkflowExecutionDecisionAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_decision_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpsertWorkflowSearchAttributesDecisionAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_uber_cadence_api_v1_decision_proto_msgTypes[0].OneofWrappers = []interface{}{ + (*Decision_ScheduleActivityTaskDecisionAttributes)(nil), + (*Decision_StartTimerDecisionAttributes)(nil), + (*Decision_CompleteWorkflowExecutionDecisionAttributes)(nil), + (*Decision_FailWorkflowExecutionDecisionAttributes)(nil), + (*Decision_RequestCancelActivityTaskDecisionAttributes)(nil), + (*Decision_CancelTimerDecisionAttributes)(nil), + (*Decision_CancelWorkflowExecutionDecisionAttributes)(nil), + (*Decision_RequestCancelExternalWorkflowExecutionDecisionAttributes)(nil), + (*Decision_RecordMarkerDecisionAttributes)(nil), + (*Decision_ContinueAsNewWorkflowExecutionDecisionAttributes)(nil), + (*Decision_StartChildWorkflowExecutionDecisionAttributes)(nil), + (*Decision_SignalExternalWorkflowExecutionDecisionAttributes)(nil), + (*Decision_UpsertWorkflowSearchAttributesDecisionAttributes)(nil), } - return true + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_uber_cadence_api_v1_decision_proto_rawDesc, + NumEnums: 0, + NumMessages: 14, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_uber_cadence_api_v1_decision_proto_goTypes, + DependencyIndexes: file_uber_cadence_api_v1_decision_proto_depIdxs, + MessageInfos: file_uber_cadence_api_v1_decision_proto_msgTypes, + }.Build() + File_uber_cadence_api_v1_decision_proto = out.File + file_uber_cadence_api_v1_decision_proto_rawDesc = nil + file_uber_cadence_api_v1_decision_proto_goTypes = nil + file_uber_cadence_api_v1_decision_proto_depIdxs = nil } -func (this *RequestCancelExternalWorkflowExecutionDecisionAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RequestCancelExternalWorkflowExecutionDecisionAttributes) - if !ok { - that2, ok := that.(RequestCancelExternalWorkflowExecutionDecisionAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if !bytes.Equal(this.Control, that1.Control) { - return false - } - if this.ChildWorkflowOnly != that1.ChildWorkflowOnly { - return false - } - return true -} -func (this *RecordMarkerDecisionAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RecordMarkerDecisionAttributes) - if !ok { - that2, ok := that.(RecordMarkerDecisionAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.MarkerName != that1.MarkerName { - return false - } - if !this.Details.Equal(that1.Details) { - return false - } - if !this.Header.Equal(that1.Header) { - return false - } - return true -} -func (this *ContinueAsNewWorkflowExecutionDecisionAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ContinueAsNewWorkflowExecutionDecisionAttributes) - if !ok { - that2, ok := that.(ContinueAsNewWorkflowExecutionDecisionAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.WorkflowType.Equal(that1.WorkflowType) { - return false - } - if !this.TaskList.Equal(that1.TaskList) { - return false - } - if !this.Input.Equal(that1.Input) { - return false - } - if this.ExecutionStartToCloseTimeout != nil && that1.ExecutionStartToCloseTimeout != nil { - if *this.ExecutionStartToCloseTimeout != *that1.ExecutionStartToCloseTimeout { - return false - } - } else if this.ExecutionStartToCloseTimeout != nil { - return false - } else if that1.ExecutionStartToCloseTimeout != nil { - return false - } - if this.TaskStartToCloseTimeout != nil && that1.TaskStartToCloseTimeout != nil { - if *this.TaskStartToCloseTimeout != *that1.TaskStartToCloseTimeout { - return false - } - } else if this.TaskStartToCloseTimeout != nil { - return false - } else if that1.TaskStartToCloseTimeout != nil { - return false - } - if this.BackoffStartInterval != nil && that1.BackoffStartInterval != nil { - if *this.BackoffStartInterval != *that1.BackoffStartInterval { - return false - } - } else if this.BackoffStartInterval != nil { - return false - } else if that1.BackoffStartInterval != nil { - return false - } - if !this.RetryPolicy.Equal(that1.RetryPolicy) { - return false - } - if this.Initiator != that1.Initiator { - return false - } - if !this.Failure.Equal(that1.Failure) { - return false - } - if !this.LastCompletionResult.Equal(that1.LastCompletionResult) { - return false - } - if this.CronSchedule != that1.CronSchedule { - return false - } - if !this.Header.Equal(that1.Header) { - return false - } - if !this.Memo.Equal(that1.Memo) { - return false - } - if !this.SearchAttributes.Equal(that1.SearchAttributes) { - return false - } - return true -} -func (this *StartChildWorkflowExecutionDecisionAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*StartChildWorkflowExecutionDecisionAttributes) - if !ok { - that2, ok := that.(StartChildWorkflowExecutionDecisionAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if this.WorkflowId != that1.WorkflowId { - return false - } - if !this.WorkflowType.Equal(that1.WorkflowType) { - return false - } - if !this.TaskList.Equal(that1.TaskList) { - return false - } - if !this.Input.Equal(that1.Input) { - return false - } - if this.ExecutionStartToCloseTimeout != nil && that1.ExecutionStartToCloseTimeout != nil { - if *this.ExecutionStartToCloseTimeout != *that1.ExecutionStartToCloseTimeout { - return false - } - } else if this.ExecutionStartToCloseTimeout != nil { - return false - } else if that1.ExecutionStartToCloseTimeout != nil { - return false - } - if this.TaskStartToCloseTimeout != nil && that1.TaskStartToCloseTimeout != nil { - if *this.TaskStartToCloseTimeout != *that1.TaskStartToCloseTimeout { - return false - } - } else if this.TaskStartToCloseTimeout != nil { - return false - } else if that1.TaskStartToCloseTimeout != nil { - return false - } - if this.ParentClosePolicy != that1.ParentClosePolicy { - return false - } - if !bytes.Equal(this.Control, that1.Control) { - return false - } - if this.WorkflowIdReusePolicy != that1.WorkflowIdReusePolicy { - return false - } - if !this.RetryPolicy.Equal(that1.RetryPolicy) { - return false - } - if this.CronSchedule != that1.CronSchedule { - return false - } - if !this.Header.Equal(that1.Header) { - return false - } - if !this.Memo.Equal(that1.Memo) { - return false - } - if !this.SearchAttributes.Equal(that1.SearchAttributes) { - return false - } - return true -} -func (this *SignalExternalWorkflowExecutionDecisionAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*SignalExternalWorkflowExecutionDecisionAttributes) - if !ok { - that2, ok := that.(SignalExternalWorkflowExecutionDecisionAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if this.SignalName != that1.SignalName { - return false - } - if !this.Input.Equal(that1.Input) { - return false - } - if !bytes.Equal(this.Control, that1.Control) { - return false - } - if this.ChildWorkflowOnly != that1.ChildWorkflowOnly { - return false - } - return true -} -func (this *UpsertWorkflowSearchAttributesDecisionAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*UpsertWorkflowSearchAttributesDecisionAttributes) - if !ok { - that2, ok := that.(UpsertWorkflowSearchAttributesDecisionAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.SearchAttributes.Equal(that1.SearchAttributes) { - return false - } - return true -} -func (this *Decision) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 17) - s = append(s, "&apiv1.Decision{") - if this.Attributes != nil { - s = append(s, "Attributes: "+fmt.Sprintf("%#v", this.Attributes)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *Decision_ScheduleActivityTaskDecisionAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.Decision_ScheduleActivityTaskDecisionAttributes{` + - `ScheduleActivityTaskDecisionAttributes:` + fmt.Sprintf("%#v", this.ScheduleActivityTaskDecisionAttributes) + `}`}, ", ") - return s -} -func (this *Decision_StartTimerDecisionAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.Decision_StartTimerDecisionAttributes{` + - `StartTimerDecisionAttributes:` + fmt.Sprintf("%#v", this.StartTimerDecisionAttributes) + `}`}, ", ") - return s -} -func (this *Decision_CompleteWorkflowExecutionDecisionAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.Decision_CompleteWorkflowExecutionDecisionAttributes{` + - `CompleteWorkflowExecutionDecisionAttributes:` + fmt.Sprintf("%#v", this.CompleteWorkflowExecutionDecisionAttributes) + `}`}, ", ") - return s -} -func (this *Decision_FailWorkflowExecutionDecisionAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.Decision_FailWorkflowExecutionDecisionAttributes{` + - `FailWorkflowExecutionDecisionAttributes:` + fmt.Sprintf("%#v", this.FailWorkflowExecutionDecisionAttributes) + `}`}, ", ") - return s -} -func (this *Decision_RequestCancelActivityTaskDecisionAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.Decision_RequestCancelActivityTaskDecisionAttributes{` + - `RequestCancelActivityTaskDecisionAttributes:` + fmt.Sprintf("%#v", this.RequestCancelActivityTaskDecisionAttributes) + `}`}, ", ") - return s -} -func (this *Decision_CancelTimerDecisionAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.Decision_CancelTimerDecisionAttributes{` + - `CancelTimerDecisionAttributes:` + fmt.Sprintf("%#v", this.CancelTimerDecisionAttributes) + `}`}, ", ") - return s -} -func (this *Decision_CancelWorkflowExecutionDecisionAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.Decision_CancelWorkflowExecutionDecisionAttributes{` + - `CancelWorkflowExecutionDecisionAttributes:` + fmt.Sprintf("%#v", this.CancelWorkflowExecutionDecisionAttributes) + `}`}, ", ") - return s -} -func (this *Decision_RequestCancelExternalWorkflowExecutionDecisionAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.Decision_RequestCancelExternalWorkflowExecutionDecisionAttributes{` + - `RequestCancelExternalWorkflowExecutionDecisionAttributes:` + fmt.Sprintf("%#v", this.RequestCancelExternalWorkflowExecutionDecisionAttributes) + `}`}, ", ") - return s -} -func (this *Decision_RecordMarkerDecisionAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.Decision_RecordMarkerDecisionAttributes{` + - `RecordMarkerDecisionAttributes:` + fmt.Sprintf("%#v", this.RecordMarkerDecisionAttributes) + `}`}, ", ") - return s -} -func (this *Decision_ContinueAsNewWorkflowExecutionDecisionAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.Decision_ContinueAsNewWorkflowExecutionDecisionAttributes{` + - `ContinueAsNewWorkflowExecutionDecisionAttributes:` + fmt.Sprintf("%#v", this.ContinueAsNewWorkflowExecutionDecisionAttributes) + `}`}, ", ") - return s -} -func (this *Decision_StartChildWorkflowExecutionDecisionAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.Decision_StartChildWorkflowExecutionDecisionAttributes{` + - `StartChildWorkflowExecutionDecisionAttributes:` + fmt.Sprintf("%#v", this.StartChildWorkflowExecutionDecisionAttributes) + `}`}, ", ") - return s -} -func (this *Decision_SignalExternalWorkflowExecutionDecisionAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.Decision_SignalExternalWorkflowExecutionDecisionAttributes{` + - `SignalExternalWorkflowExecutionDecisionAttributes:` + fmt.Sprintf("%#v", this.SignalExternalWorkflowExecutionDecisionAttributes) + `}`}, ", ") - return s -} -func (this *Decision_UpsertWorkflowSearchAttributesDecisionAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.Decision_UpsertWorkflowSearchAttributesDecisionAttributes{` + - `UpsertWorkflowSearchAttributesDecisionAttributes:` + fmt.Sprintf("%#v", this.UpsertWorkflowSearchAttributesDecisionAttributes) + `}`}, ", ") - return s -} -func (this *ScheduleActivityTaskDecisionAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 16) - s = append(s, "&apiv1.ScheduleActivityTaskDecisionAttributes{") - s = append(s, "ActivityId: "+fmt.Sprintf("%#v", this.ActivityId)+",\n") - if this.ActivityType != nil { - s = append(s, "ActivityType: "+fmt.Sprintf("%#v", this.ActivityType)+",\n") - } - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - if this.TaskList != nil { - s = append(s, "TaskList: "+fmt.Sprintf("%#v", this.TaskList)+",\n") - } - if this.Input != nil { - s = append(s, "Input: "+fmt.Sprintf("%#v", this.Input)+",\n") - } - s = append(s, "ScheduleToCloseTimeout: "+fmt.Sprintf("%#v", this.ScheduleToCloseTimeout)+",\n") - s = append(s, "ScheduleToStartTimeout: "+fmt.Sprintf("%#v", this.ScheduleToStartTimeout)+",\n") - s = append(s, "StartToCloseTimeout: "+fmt.Sprintf("%#v", this.StartToCloseTimeout)+",\n") - s = append(s, "HeartbeatTimeout: "+fmt.Sprintf("%#v", this.HeartbeatTimeout)+",\n") - if this.RetryPolicy != nil { - s = append(s, "RetryPolicy: "+fmt.Sprintf("%#v", this.RetryPolicy)+",\n") - } - if this.Header != nil { - s = append(s, "Header: "+fmt.Sprintf("%#v", this.Header)+",\n") - } - s = append(s, "RequestLocalDispatch: "+fmt.Sprintf("%#v", this.RequestLocalDispatch)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *StartTimerDecisionAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.StartTimerDecisionAttributes{") - s = append(s, "TimerId: "+fmt.Sprintf("%#v", this.TimerId)+",\n") - s = append(s, "StartToFireTimeout: "+fmt.Sprintf("%#v", this.StartToFireTimeout)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *CompleteWorkflowExecutionDecisionAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&apiv1.CompleteWorkflowExecutionDecisionAttributes{") - if this.Result != nil { - s = append(s, "Result: "+fmt.Sprintf("%#v", this.Result)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *FailWorkflowExecutionDecisionAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&apiv1.FailWorkflowExecutionDecisionAttributes{") - if this.Failure != nil { - s = append(s, "Failure: "+fmt.Sprintf("%#v", this.Failure)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RequestCancelActivityTaskDecisionAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&apiv1.RequestCancelActivityTaskDecisionAttributes{") - s = append(s, "ActivityId: "+fmt.Sprintf("%#v", this.ActivityId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *CancelTimerDecisionAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&apiv1.CancelTimerDecisionAttributes{") - s = append(s, "TimerId: "+fmt.Sprintf("%#v", this.TimerId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *CancelWorkflowExecutionDecisionAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&apiv1.CancelWorkflowExecutionDecisionAttributes{") - if this.Details != nil { - s = append(s, "Details: "+fmt.Sprintf("%#v", this.Details)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RequestCancelExternalWorkflowExecutionDecisionAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 8) - s = append(s, "&apiv1.RequestCancelExternalWorkflowExecutionDecisionAttributes{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "Control: "+fmt.Sprintf("%#v", this.Control)+",\n") - s = append(s, "ChildWorkflowOnly: "+fmt.Sprintf("%#v", this.ChildWorkflowOnly)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RecordMarkerDecisionAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&apiv1.RecordMarkerDecisionAttributes{") - s = append(s, "MarkerName: "+fmt.Sprintf("%#v", this.MarkerName)+",\n") - if this.Details != nil { - s = append(s, "Details: "+fmt.Sprintf("%#v", this.Details)+",\n") - } - if this.Header != nil { - s = append(s, "Header: "+fmt.Sprintf("%#v", this.Header)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ContinueAsNewWorkflowExecutionDecisionAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 18) - s = append(s, "&apiv1.ContinueAsNewWorkflowExecutionDecisionAttributes{") - if this.WorkflowType != nil { - s = append(s, "WorkflowType: "+fmt.Sprintf("%#v", this.WorkflowType)+",\n") - } - if this.TaskList != nil { - s = append(s, "TaskList: "+fmt.Sprintf("%#v", this.TaskList)+",\n") - } - if this.Input != nil { - s = append(s, "Input: "+fmt.Sprintf("%#v", this.Input)+",\n") - } - s = append(s, "ExecutionStartToCloseTimeout: "+fmt.Sprintf("%#v", this.ExecutionStartToCloseTimeout)+",\n") - s = append(s, "TaskStartToCloseTimeout: "+fmt.Sprintf("%#v", this.TaskStartToCloseTimeout)+",\n") - s = append(s, "BackoffStartInterval: "+fmt.Sprintf("%#v", this.BackoffStartInterval)+",\n") - if this.RetryPolicy != nil { - s = append(s, "RetryPolicy: "+fmt.Sprintf("%#v", this.RetryPolicy)+",\n") - } - s = append(s, "Initiator: "+fmt.Sprintf("%#v", this.Initiator)+",\n") - if this.Failure != nil { - s = append(s, "Failure: "+fmt.Sprintf("%#v", this.Failure)+",\n") - } - if this.LastCompletionResult != nil { - s = append(s, "LastCompletionResult: "+fmt.Sprintf("%#v", this.LastCompletionResult)+",\n") - } - s = append(s, "CronSchedule: "+fmt.Sprintf("%#v", this.CronSchedule)+",\n") - if this.Header != nil { - s = append(s, "Header: "+fmt.Sprintf("%#v", this.Header)+",\n") - } - if this.Memo != nil { - s = append(s, "Memo: "+fmt.Sprintf("%#v", this.Memo)+",\n") - } - if this.SearchAttributes != nil { - s = append(s, "SearchAttributes: "+fmt.Sprintf("%#v", this.SearchAttributes)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *StartChildWorkflowExecutionDecisionAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 19) - s = append(s, "&apiv1.StartChildWorkflowExecutionDecisionAttributes{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - s = append(s, "WorkflowId: "+fmt.Sprintf("%#v", this.WorkflowId)+",\n") - if this.WorkflowType != nil { - s = append(s, "WorkflowType: "+fmt.Sprintf("%#v", this.WorkflowType)+",\n") - } - if this.TaskList != nil { - s = append(s, "TaskList: "+fmt.Sprintf("%#v", this.TaskList)+",\n") - } - if this.Input != nil { - s = append(s, "Input: "+fmt.Sprintf("%#v", this.Input)+",\n") - } - s = append(s, "ExecutionStartToCloseTimeout: "+fmt.Sprintf("%#v", this.ExecutionStartToCloseTimeout)+",\n") - s = append(s, "TaskStartToCloseTimeout: "+fmt.Sprintf("%#v", this.TaskStartToCloseTimeout)+",\n") - s = append(s, "ParentClosePolicy: "+fmt.Sprintf("%#v", this.ParentClosePolicy)+",\n") - s = append(s, "Control: "+fmt.Sprintf("%#v", this.Control)+",\n") - s = append(s, "WorkflowIdReusePolicy: "+fmt.Sprintf("%#v", this.WorkflowIdReusePolicy)+",\n") - if this.RetryPolicy != nil { - s = append(s, "RetryPolicy: "+fmt.Sprintf("%#v", this.RetryPolicy)+",\n") - } - s = append(s, "CronSchedule: "+fmt.Sprintf("%#v", this.CronSchedule)+",\n") - if this.Header != nil { - s = append(s, "Header: "+fmt.Sprintf("%#v", this.Header)+",\n") - } - if this.Memo != nil { - s = append(s, "Memo: "+fmt.Sprintf("%#v", this.Memo)+",\n") - } - if this.SearchAttributes != nil { - s = append(s, "SearchAttributes: "+fmt.Sprintf("%#v", this.SearchAttributes)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *SignalExternalWorkflowExecutionDecisionAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 10) - s = append(s, "&apiv1.SignalExternalWorkflowExecutionDecisionAttributes{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "SignalName: "+fmt.Sprintf("%#v", this.SignalName)+",\n") - if this.Input != nil { - s = append(s, "Input: "+fmt.Sprintf("%#v", this.Input)+",\n") - } - s = append(s, "Control: "+fmt.Sprintf("%#v", this.Control)+",\n") - s = append(s, "ChildWorkflowOnly: "+fmt.Sprintf("%#v", this.ChildWorkflowOnly)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *UpsertWorkflowSearchAttributesDecisionAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&apiv1.UpsertWorkflowSearchAttributesDecisionAttributes{") - if this.SearchAttributes != nil { - s = append(s, "SearchAttributes: "+fmt.Sprintf("%#v", this.SearchAttributes)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func valueToGoStringDecision(v interface{}, typ string) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) -} -func (m *Decision) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Decision) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Decision) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Attributes != nil { - { - size := m.Attributes.Size() - i -= size - if _, err := m.Attributes.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - return len(dAtA) - i, nil -} - -func (m *Decision_ScheduleActivityTaskDecisionAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Decision_ScheduleActivityTaskDecisionAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ScheduleActivityTaskDecisionAttributes != nil { - { - size, err := m.ScheduleActivityTaskDecisionAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} -func (m *Decision_StartTimerDecisionAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Decision_StartTimerDecisionAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.StartTimerDecisionAttributes != nil { - { - size, err := m.StartTimerDecisionAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil -} -func (m *Decision_CompleteWorkflowExecutionDecisionAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Decision_CompleteWorkflowExecutionDecisionAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.CompleteWorkflowExecutionDecisionAttributes != nil { - { - size, err := m.CompleteWorkflowExecutionDecisionAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - return len(dAtA) - i, nil -} -func (m *Decision_FailWorkflowExecutionDecisionAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Decision_FailWorkflowExecutionDecisionAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.FailWorkflowExecutionDecisionAttributes != nil { - { - size, err := m.FailWorkflowExecutionDecisionAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - return len(dAtA) - i, nil -} -func (m *Decision_RequestCancelActivityTaskDecisionAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Decision_RequestCancelActivityTaskDecisionAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.RequestCancelActivityTaskDecisionAttributes != nil { - { - size, err := m.RequestCancelActivityTaskDecisionAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - return len(dAtA) - i, nil -} -func (m *Decision_CancelTimerDecisionAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Decision_CancelTimerDecisionAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.CancelTimerDecisionAttributes != nil { - { - size, err := m.CancelTimerDecisionAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - return len(dAtA) - i, nil -} -func (m *Decision_CancelWorkflowExecutionDecisionAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Decision_CancelWorkflowExecutionDecisionAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.CancelWorkflowExecutionDecisionAttributes != nil { - { - size, err := m.CancelWorkflowExecutionDecisionAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - return len(dAtA) - i, nil -} -func (m *Decision_RequestCancelExternalWorkflowExecutionDecisionAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Decision_RequestCancelExternalWorkflowExecutionDecisionAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.RequestCancelExternalWorkflowExecutionDecisionAttributes != nil { - { - size, err := m.RequestCancelExternalWorkflowExecutionDecisionAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } - return len(dAtA) - i, nil -} -func (m *Decision_RecordMarkerDecisionAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Decision_RecordMarkerDecisionAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.RecordMarkerDecisionAttributes != nil { - { - size, err := m.RecordMarkerDecisionAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - } - return len(dAtA) - i, nil -} -func (m *Decision_ContinueAsNewWorkflowExecutionDecisionAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Decision_ContinueAsNewWorkflowExecutionDecisionAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ContinueAsNewWorkflowExecutionDecisionAttributes != nil { - { - size, err := m.ContinueAsNewWorkflowExecutionDecisionAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - } - return len(dAtA) - i, nil -} -func (m *Decision_StartChildWorkflowExecutionDecisionAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Decision_StartChildWorkflowExecutionDecisionAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.StartChildWorkflowExecutionDecisionAttributes != nil { - { - size, err := m.StartChildWorkflowExecutionDecisionAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - } - return len(dAtA) - i, nil -} -func (m *Decision_SignalExternalWorkflowExecutionDecisionAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Decision_SignalExternalWorkflowExecutionDecisionAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.SignalExternalWorkflowExecutionDecisionAttributes != nil { - { - size, err := m.SignalExternalWorkflowExecutionDecisionAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x62 - } - return len(dAtA) - i, nil -} -func (m *Decision_UpsertWorkflowSearchAttributesDecisionAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Decision_UpsertWorkflowSearchAttributesDecisionAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.UpsertWorkflowSearchAttributesDecisionAttributes != nil { - { - size, err := m.UpsertWorkflowSearchAttributesDecisionAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a - } - return len(dAtA) - i, nil -} -func (m *ScheduleActivityTaskDecisionAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ScheduleActivityTaskDecisionAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ScheduleActivityTaskDecisionAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.RequestLocalDispatch { - i-- - if m.RequestLocalDispatch { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x68 - } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x62 - } - if m.RetryPolicy != nil { - { - size, err := m.RetryPolicy.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - } - if m.HeartbeatTimeout != nil { - n16, err16 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.HeartbeatTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.HeartbeatTimeout):]) - if err16 != nil { - return 0, err16 - } - i -= n16 - i = encodeVarintDecision(dAtA, i, uint64(n16)) - i-- - dAtA[i] = 0x4a - } - if m.StartToCloseTimeout != nil { - n17, err17 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.StartToCloseTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.StartToCloseTimeout):]) - if err17 != nil { - return 0, err17 - } - i -= n17 - i = encodeVarintDecision(dAtA, i, uint64(n17)) - i-- - dAtA[i] = 0x42 - } - if m.ScheduleToStartTimeout != nil { - n18, err18 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.ScheduleToStartTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ScheduleToStartTimeout):]) - if err18 != nil { - return 0, err18 - } - i -= n18 - i = encodeVarintDecision(dAtA, i, uint64(n18)) - i-- - dAtA[i] = 0x3a - } - if m.ScheduleToCloseTimeout != nil { - n19, err19 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.ScheduleToCloseTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ScheduleToCloseTimeout):]) - if err19 != nil { - return 0, err19 - } - i -= n19 - i = encodeVarintDecision(dAtA, i, uint64(n19)) - i-- - dAtA[i] = 0x32 - } - if m.Input != nil { - { - size, err := m.Input.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.TaskList != nil { - { - size, err := m.TaskList.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintDecision(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0x1a - } - if m.ActivityType != nil { - { - size, err := m.ActivityType.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.ActivityId) > 0 { - i -= len(m.ActivityId) - copy(dAtA[i:], m.ActivityId) - i = encodeVarintDecision(dAtA, i, uint64(len(m.ActivityId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *StartTimerDecisionAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StartTimerDecisionAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StartTimerDecisionAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.StartToFireTimeout != nil { - n23, err23 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.StartToFireTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.StartToFireTimeout):]) - if err23 != nil { - return 0, err23 - } - i -= n23 - i = encodeVarintDecision(dAtA, i, uint64(n23)) - i-- - dAtA[i] = 0x12 - } - if len(m.TimerId) > 0 { - i -= len(m.TimerId) - copy(dAtA[i:], m.TimerId) - i = encodeVarintDecision(dAtA, i, uint64(len(m.TimerId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *CompleteWorkflowExecutionDecisionAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CompleteWorkflowExecutionDecisionAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CompleteWorkflowExecutionDecisionAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Result != nil { - { - size, err := m.Result.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *FailWorkflowExecutionDecisionAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *FailWorkflowExecutionDecisionAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FailWorkflowExecutionDecisionAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Failure != nil { - { - size, err := m.Failure.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RequestCancelActivityTaskDecisionAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RequestCancelActivityTaskDecisionAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RequestCancelActivityTaskDecisionAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ActivityId) > 0 { - i -= len(m.ActivityId) - copy(dAtA[i:], m.ActivityId) - i = encodeVarintDecision(dAtA, i, uint64(len(m.ActivityId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *CancelTimerDecisionAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CancelTimerDecisionAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CancelTimerDecisionAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.TimerId) > 0 { - i -= len(m.TimerId) - copy(dAtA[i:], m.TimerId) - i = encodeVarintDecision(dAtA, i, uint64(len(m.TimerId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *CancelWorkflowExecutionDecisionAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CancelWorkflowExecutionDecisionAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CancelWorkflowExecutionDecisionAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Details != nil { - { - size, err := m.Details.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RequestCancelExternalWorkflowExecutionDecisionAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RequestCancelExternalWorkflowExecutionDecisionAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RequestCancelExternalWorkflowExecutionDecisionAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ChildWorkflowOnly { - i-- - if m.ChildWorkflowOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if len(m.Control) > 0 { - i -= len(m.Control) - copy(dAtA[i:], m.Control) - i = encodeVarintDecision(dAtA, i, uint64(len(m.Control))) - i-- - dAtA[i] = 0x1a - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintDecision(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RecordMarkerDecisionAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RecordMarkerDecisionAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RecordMarkerDecisionAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Details != nil { - { - size, err := m.Details.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.MarkerName) > 0 { - i -= len(m.MarkerName) - copy(dAtA[i:], m.MarkerName) - i = encodeVarintDecision(dAtA, i, uint64(len(m.MarkerName))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ContinueAsNewWorkflowExecutionDecisionAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ContinueAsNewWorkflowExecutionDecisionAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ContinueAsNewWorkflowExecutionDecisionAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.SearchAttributes != nil { - { - size, err := m.SearchAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x72 - } - if m.Memo != nil { - { - size, err := m.Memo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a - } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x62 - } - if len(m.CronSchedule) > 0 { - i -= len(m.CronSchedule) - copy(dAtA[i:], m.CronSchedule) - i = encodeVarintDecision(dAtA, i, uint64(len(m.CronSchedule))) - i-- - dAtA[i] = 0x5a - } - if m.LastCompletionResult != nil { - { - size, err := m.LastCompletionResult.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - } - if m.Failure != nil { - { - size, err := m.Failure.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - } - if m.Initiator != 0 { - i = encodeVarintDecision(dAtA, i, uint64(m.Initiator)) - i-- - dAtA[i] = 0x40 - } - if m.RetryPolicy != nil { - { - size, err := m.RetryPolicy.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - if m.BackoffStartInterval != nil { - n36, err36 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.BackoffStartInterval, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.BackoffStartInterval):]) - if err36 != nil { - return 0, err36 - } - i -= n36 - i = encodeVarintDecision(dAtA, i, uint64(n36)) - i-- - dAtA[i] = 0x32 - } - if m.TaskStartToCloseTimeout != nil { - n37, err37 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.TaskStartToCloseTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.TaskStartToCloseTimeout):]) - if err37 != nil { - return 0, err37 - } - i -= n37 - i = encodeVarintDecision(dAtA, i, uint64(n37)) - i-- - dAtA[i] = 0x2a - } - if m.ExecutionStartToCloseTimeout != nil { - n38, err38 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.ExecutionStartToCloseTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ExecutionStartToCloseTimeout):]) - if err38 != nil { - return 0, err38 - } - i -= n38 - i = encodeVarintDecision(dAtA, i, uint64(n38)) - i-- - dAtA[i] = 0x22 - } - if m.Input != nil { - { - size, err := m.Input.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.TaskList != nil { - { - size, err := m.TaskList.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.WorkflowType != nil { - { - size, err := m.WorkflowType.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *StartChildWorkflowExecutionDecisionAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StartChildWorkflowExecutionDecisionAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StartChildWorkflowExecutionDecisionAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.SearchAttributes != nil { - { - size, err := m.SearchAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x7a - } - if m.Memo != nil { - { - size, err := m.Memo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x72 - } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a - } - if len(m.CronSchedule) > 0 { - i -= len(m.CronSchedule) - copy(dAtA[i:], m.CronSchedule) - i = encodeVarintDecision(dAtA, i, uint64(len(m.CronSchedule))) - i-- - dAtA[i] = 0x62 - } - if m.RetryPolicy != nil { - { - size, err := m.RetryPolicy.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - } - if m.WorkflowIdReusePolicy != 0 { - i = encodeVarintDecision(dAtA, i, uint64(m.WorkflowIdReusePolicy)) - i-- - dAtA[i] = 0x50 - } - if len(m.Control) > 0 { - i -= len(m.Control) - copy(dAtA[i:], m.Control) - i = encodeVarintDecision(dAtA, i, uint64(len(m.Control))) - i-- - dAtA[i] = 0x4a - } - if m.ParentClosePolicy != 0 { - i = encodeVarintDecision(dAtA, i, uint64(m.ParentClosePolicy)) - i-- - dAtA[i] = 0x40 - } - if m.TaskStartToCloseTimeout != nil { - n46, err46 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.TaskStartToCloseTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.TaskStartToCloseTimeout):]) - if err46 != nil { - return 0, err46 - } - i -= n46 - i = encodeVarintDecision(dAtA, i, uint64(n46)) - i-- - dAtA[i] = 0x3a - } - if m.ExecutionStartToCloseTimeout != nil { - n47, err47 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.ExecutionStartToCloseTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ExecutionStartToCloseTimeout):]) - if err47 != nil { - return 0, err47 - } - i -= n47 - i = encodeVarintDecision(dAtA, i, uint64(n47)) - i-- - dAtA[i] = 0x32 - } - if m.Input != nil { - { - size, err := m.Input.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.TaskList != nil { - { - size, err := m.TaskList.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.WorkflowType != nil { - { - size, err := m.WorkflowType.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.WorkflowId) > 0 { - i -= len(m.WorkflowId) - copy(dAtA[i:], m.WorkflowId) - i = encodeVarintDecision(dAtA, i, uint64(len(m.WorkflowId))) - i-- - dAtA[i] = 0x12 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintDecision(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *SignalExternalWorkflowExecutionDecisionAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SignalExternalWorkflowExecutionDecisionAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SignalExternalWorkflowExecutionDecisionAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ChildWorkflowOnly { - i-- - if m.ChildWorkflowOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - } - if len(m.Control) > 0 { - i -= len(m.Control) - copy(dAtA[i:], m.Control) - i = encodeVarintDecision(dAtA, i, uint64(len(m.Control))) - i-- - dAtA[i] = 0x2a - } - if m.Input != nil { - { - size, err := m.Input.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.SignalName) > 0 { - i -= len(m.SignalName) - copy(dAtA[i:], m.SignalName) - i = encodeVarintDecision(dAtA, i, uint64(len(m.SignalName))) - i-- - dAtA[i] = 0x1a - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintDecision(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *UpsertWorkflowSearchAttributesDecisionAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *UpsertWorkflowSearchAttributesDecisionAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpsertWorkflowSearchAttributesDecisionAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.SearchAttributes != nil { - { - size, err := m.SearchAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDecision(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintDecision(dAtA []byte, offset int, v uint64) int { - offset -= sovDecision(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Decision) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Attributes != nil { - n += m.Attributes.Size() - } - return n -} - -func (m *Decision_ScheduleActivityTaskDecisionAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ScheduleActivityTaskDecisionAttributes != nil { - l = m.ScheduleActivityTaskDecisionAttributes.Size() - n += 1 + l + sovDecision(uint64(l)) - } - return n -} -func (m *Decision_StartTimerDecisionAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.StartTimerDecisionAttributes != nil { - l = m.StartTimerDecisionAttributes.Size() - n += 1 + l + sovDecision(uint64(l)) - } - return n -} -func (m *Decision_CompleteWorkflowExecutionDecisionAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.CompleteWorkflowExecutionDecisionAttributes != nil { - l = m.CompleteWorkflowExecutionDecisionAttributes.Size() - n += 1 + l + sovDecision(uint64(l)) - } - return n -} -func (m *Decision_FailWorkflowExecutionDecisionAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.FailWorkflowExecutionDecisionAttributes != nil { - l = m.FailWorkflowExecutionDecisionAttributes.Size() - n += 1 + l + sovDecision(uint64(l)) - } - return n -} -func (m *Decision_RequestCancelActivityTaskDecisionAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.RequestCancelActivityTaskDecisionAttributes != nil { - l = m.RequestCancelActivityTaskDecisionAttributes.Size() - n += 1 + l + sovDecision(uint64(l)) - } - return n -} -func (m *Decision_CancelTimerDecisionAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.CancelTimerDecisionAttributes != nil { - l = m.CancelTimerDecisionAttributes.Size() - n += 1 + l + sovDecision(uint64(l)) - } - return n -} -func (m *Decision_CancelWorkflowExecutionDecisionAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.CancelWorkflowExecutionDecisionAttributes != nil { - l = m.CancelWorkflowExecutionDecisionAttributes.Size() - n += 1 + l + sovDecision(uint64(l)) - } - return n -} -func (m *Decision_RequestCancelExternalWorkflowExecutionDecisionAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.RequestCancelExternalWorkflowExecutionDecisionAttributes != nil { - l = m.RequestCancelExternalWorkflowExecutionDecisionAttributes.Size() - n += 1 + l + sovDecision(uint64(l)) - } - return n -} -func (m *Decision_RecordMarkerDecisionAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.RecordMarkerDecisionAttributes != nil { - l = m.RecordMarkerDecisionAttributes.Size() - n += 1 + l + sovDecision(uint64(l)) - } - return n -} -func (m *Decision_ContinueAsNewWorkflowExecutionDecisionAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ContinueAsNewWorkflowExecutionDecisionAttributes != nil { - l = m.ContinueAsNewWorkflowExecutionDecisionAttributes.Size() - n += 1 + l + sovDecision(uint64(l)) - } - return n -} -func (m *Decision_StartChildWorkflowExecutionDecisionAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.StartChildWorkflowExecutionDecisionAttributes != nil { - l = m.StartChildWorkflowExecutionDecisionAttributes.Size() - n += 1 + l + sovDecision(uint64(l)) - } - return n -} -func (m *Decision_SignalExternalWorkflowExecutionDecisionAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.SignalExternalWorkflowExecutionDecisionAttributes != nil { - l = m.SignalExternalWorkflowExecutionDecisionAttributes.Size() - n += 1 + l + sovDecision(uint64(l)) - } - return n -} -func (m *Decision_UpsertWorkflowSearchAttributesDecisionAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.UpsertWorkflowSearchAttributesDecisionAttributes != nil { - l = m.UpsertWorkflowSearchAttributesDecisionAttributes.Size() - n += 1 + l + sovDecision(uint64(l)) - } - return n -} -func (m *ScheduleActivityTaskDecisionAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ActivityId) - if l > 0 { - n += 1 + l + sovDecision(uint64(l)) - } - if m.ActivityType != nil { - l = m.ActivityType.Size() - n += 1 + l + sovDecision(uint64(l)) - } - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovDecision(uint64(l)) - } - if m.TaskList != nil { - l = m.TaskList.Size() - n += 1 + l + sovDecision(uint64(l)) - } - if m.Input != nil { - l = m.Input.Size() - n += 1 + l + sovDecision(uint64(l)) - } - if m.ScheduleToCloseTimeout != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ScheduleToCloseTimeout) - n += 1 + l + sovDecision(uint64(l)) - } - if m.ScheduleToStartTimeout != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ScheduleToStartTimeout) - n += 1 + l + sovDecision(uint64(l)) - } - if m.StartToCloseTimeout != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.StartToCloseTimeout) - n += 1 + l + sovDecision(uint64(l)) - } - if m.HeartbeatTimeout != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.HeartbeatTimeout) - n += 1 + l + sovDecision(uint64(l)) - } - if m.RetryPolicy != nil { - l = m.RetryPolicy.Size() - n += 1 + l + sovDecision(uint64(l)) - } - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovDecision(uint64(l)) - } - if m.RequestLocalDispatch { - n += 2 - } - return n -} - -func (m *StartTimerDecisionAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.TimerId) - if l > 0 { - n += 1 + l + sovDecision(uint64(l)) - } - if m.StartToFireTimeout != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.StartToFireTimeout) - n += 1 + l + sovDecision(uint64(l)) - } - return n -} - -func (m *CompleteWorkflowExecutionDecisionAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Result != nil { - l = m.Result.Size() - n += 1 + l + sovDecision(uint64(l)) - } - return n -} - -func (m *FailWorkflowExecutionDecisionAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Failure != nil { - l = m.Failure.Size() - n += 1 + l + sovDecision(uint64(l)) - } - return n -} - -func (m *RequestCancelActivityTaskDecisionAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ActivityId) - if l > 0 { - n += 1 + l + sovDecision(uint64(l)) - } - return n -} - -func (m *CancelTimerDecisionAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.TimerId) - if l > 0 { - n += 1 + l + sovDecision(uint64(l)) - } - return n -} - -func (m *CancelWorkflowExecutionDecisionAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Details != nil { - l = m.Details.Size() - n += 1 + l + sovDecision(uint64(l)) - } - return n -} - -func (m *RequestCancelExternalWorkflowExecutionDecisionAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovDecision(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovDecision(uint64(l)) - } - l = len(m.Control) - if l > 0 { - n += 1 + l + sovDecision(uint64(l)) - } - if m.ChildWorkflowOnly { - n += 2 - } - return n -} - -func (m *RecordMarkerDecisionAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.MarkerName) - if l > 0 { - n += 1 + l + sovDecision(uint64(l)) - } - if m.Details != nil { - l = m.Details.Size() - n += 1 + l + sovDecision(uint64(l)) - } - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovDecision(uint64(l)) - } - return n -} - -func (m *ContinueAsNewWorkflowExecutionDecisionAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.WorkflowType != nil { - l = m.WorkflowType.Size() - n += 1 + l + sovDecision(uint64(l)) - } - if m.TaskList != nil { - l = m.TaskList.Size() - n += 1 + l + sovDecision(uint64(l)) - } - if m.Input != nil { - l = m.Input.Size() - n += 1 + l + sovDecision(uint64(l)) - } - if m.ExecutionStartToCloseTimeout != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ExecutionStartToCloseTimeout) - n += 1 + l + sovDecision(uint64(l)) - } - if m.TaskStartToCloseTimeout != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.TaskStartToCloseTimeout) - n += 1 + l + sovDecision(uint64(l)) - } - if m.BackoffStartInterval != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.BackoffStartInterval) - n += 1 + l + sovDecision(uint64(l)) - } - if m.RetryPolicy != nil { - l = m.RetryPolicy.Size() - n += 1 + l + sovDecision(uint64(l)) - } - if m.Initiator != 0 { - n += 1 + sovDecision(uint64(m.Initiator)) - } - if m.Failure != nil { - l = m.Failure.Size() - n += 1 + l + sovDecision(uint64(l)) - } - if m.LastCompletionResult != nil { - l = m.LastCompletionResult.Size() - n += 1 + l + sovDecision(uint64(l)) - } - l = len(m.CronSchedule) - if l > 0 { - n += 1 + l + sovDecision(uint64(l)) - } - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovDecision(uint64(l)) - } - if m.Memo != nil { - l = m.Memo.Size() - n += 1 + l + sovDecision(uint64(l)) - } - if m.SearchAttributes != nil { - l = m.SearchAttributes.Size() - n += 1 + l + sovDecision(uint64(l)) - } - return n -} - -func (m *StartChildWorkflowExecutionDecisionAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovDecision(uint64(l)) - } - l = len(m.WorkflowId) - if l > 0 { - n += 1 + l + sovDecision(uint64(l)) - } - if m.WorkflowType != nil { - l = m.WorkflowType.Size() - n += 1 + l + sovDecision(uint64(l)) - } - if m.TaskList != nil { - l = m.TaskList.Size() - n += 1 + l + sovDecision(uint64(l)) - } - if m.Input != nil { - l = m.Input.Size() - n += 1 + l + sovDecision(uint64(l)) - } - if m.ExecutionStartToCloseTimeout != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ExecutionStartToCloseTimeout) - n += 1 + l + sovDecision(uint64(l)) - } - if m.TaskStartToCloseTimeout != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.TaskStartToCloseTimeout) - n += 1 + l + sovDecision(uint64(l)) - } - if m.ParentClosePolicy != 0 { - n += 1 + sovDecision(uint64(m.ParentClosePolicy)) - } - l = len(m.Control) - if l > 0 { - n += 1 + l + sovDecision(uint64(l)) - } - if m.WorkflowIdReusePolicy != 0 { - n += 1 + sovDecision(uint64(m.WorkflowIdReusePolicy)) - } - if m.RetryPolicy != nil { - l = m.RetryPolicy.Size() - n += 1 + l + sovDecision(uint64(l)) - } - l = len(m.CronSchedule) - if l > 0 { - n += 1 + l + sovDecision(uint64(l)) - } - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovDecision(uint64(l)) - } - if m.Memo != nil { - l = m.Memo.Size() - n += 1 + l + sovDecision(uint64(l)) - } - if m.SearchAttributes != nil { - l = m.SearchAttributes.Size() - n += 1 + l + sovDecision(uint64(l)) - } - return n -} - -func (m *SignalExternalWorkflowExecutionDecisionAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovDecision(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovDecision(uint64(l)) - } - l = len(m.SignalName) - if l > 0 { - n += 1 + l + sovDecision(uint64(l)) - } - if m.Input != nil { - l = m.Input.Size() - n += 1 + l + sovDecision(uint64(l)) - } - l = len(m.Control) - if l > 0 { - n += 1 + l + sovDecision(uint64(l)) - } - if m.ChildWorkflowOnly { - n += 2 - } - return n -} - -func (m *UpsertWorkflowSearchAttributesDecisionAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.SearchAttributes != nil { - l = m.SearchAttributes.Size() - n += 1 + l + sovDecision(uint64(l)) - } - return n -} - -func sovDecision(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozDecision(x uint64) (n int) { - return sovDecision(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *Decision) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Decision{`, - `Attributes:` + fmt.Sprintf("%v", this.Attributes) + `,`, - `}`, - }, "") - return s -} -func (this *Decision_ScheduleActivityTaskDecisionAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Decision_ScheduleActivityTaskDecisionAttributes{`, - `ScheduleActivityTaskDecisionAttributes:` + strings.Replace(fmt.Sprintf("%v", this.ScheduleActivityTaskDecisionAttributes), "ScheduleActivityTaskDecisionAttributes", "ScheduleActivityTaskDecisionAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *Decision_StartTimerDecisionAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Decision_StartTimerDecisionAttributes{`, - `StartTimerDecisionAttributes:` + strings.Replace(fmt.Sprintf("%v", this.StartTimerDecisionAttributes), "StartTimerDecisionAttributes", "StartTimerDecisionAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *Decision_CompleteWorkflowExecutionDecisionAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Decision_CompleteWorkflowExecutionDecisionAttributes{`, - `CompleteWorkflowExecutionDecisionAttributes:` + strings.Replace(fmt.Sprintf("%v", this.CompleteWorkflowExecutionDecisionAttributes), "CompleteWorkflowExecutionDecisionAttributes", "CompleteWorkflowExecutionDecisionAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *Decision_FailWorkflowExecutionDecisionAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Decision_FailWorkflowExecutionDecisionAttributes{`, - `FailWorkflowExecutionDecisionAttributes:` + strings.Replace(fmt.Sprintf("%v", this.FailWorkflowExecutionDecisionAttributes), "FailWorkflowExecutionDecisionAttributes", "FailWorkflowExecutionDecisionAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *Decision_RequestCancelActivityTaskDecisionAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Decision_RequestCancelActivityTaskDecisionAttributes{`, - `RequestCancelActivityTaskDecisionAttributes:` + strings.Replace(fmt.Sprintf("%v", this.RequestCancelActivityTaskDecisionAttributes), "RequestCancelActivityTaskDecisionAttributes", "RequestCancelActivityTaskDecisionAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *Decision_CancelTimerDecisionAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Decision_CancelTimerDecisionAttributes{`, - `CancelTimerDecisionAttributes:` + strings.Replace(fmt.Sprintf("%v", this.CancelTimerDecisionAttributes), "CancelTimerDecisionAttributes", "CancelTimerDecisionAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *Decision_CancelWorkflowExecutionDecisionAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Decision_CancelWorkflowExecutionDecisionAttributes{`, - `CancelWorkflowExecutionDecisionAttributes:` + strings.Replace(fmt.Sprintf("%v", this.CancelWorkflowExecutionDecisionAttributes), "CancelWorkflowExecutionDecisionAttributes", "CancelWorkflowExecutionDecisionAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *Decision_RequestCancelExternalWorkflowExecutionDecisionAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Decision_RequestCancelExternalWorkflowExecutionDecisionAttributes{`, - `RequestCancelExternalWorkflowExecutionDecisionAttributes:` + strings.Replace(fmt.Sprintf("%v", this.RequestCancelExternalWorkflowExecutionDecisionAttributes), "RequestCancelExternalWorkflowExecutionDecisionAttributes", "RequestCancelExternalWorkflowExecutionDecisionAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *Decision_RecordMarkerDecisionAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Decision_RecordMarkerDecisionAttributes{`, - `RecordMarkerDecisionAttributes:` + strings.Replace(fmt.Sprintf("%v", this.RecordMarkerDecisionAttributes), "RecordMarkerDecisionAttributes", "RecordMarkerDecisionAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *Decision_ContinueAsNewWorkflowExecutionDecisionAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Decision_ContinueAsNewWorkflowExecutionDecisionAttributes{`, - `ContinueAsNewWorkflowExecutionDecisionAttributes:` + strings.Replace(fmt.Sprintf("%v", this.ContinueAsNewWorkflowExecutionDecisionAttributes), "ContinueAsNewWorkflowExecutionDecisionAttributes", "ContinueAsNewWorkflowExecutionDecisionAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *Decision_StartChildWorkflowExecutionDecisionAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Decision_StartChildWorkflowExecutionDecisionAttributes{`, - `StartChildWorkflowExecutionDecisionAttributes:` + strings.Replace(fmt.Sprintf("%v", this.StartChildWorkflowExecutionDecisionAttributes), "StartChildWorkflowExecutionDecisionAttributes", "StartChildWorkflowExecutionDecisionAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *Decision_SignalExternalWorkflowExecutionDecisionAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Decision_SignalExternalWorkflowExecutionDecisionAttributes{`, - `SignalExternalWorkflowExecutionDecisionAttributes:` + strings.Replace(fmt.Sprintf("%v", this.SignalExternalWorkflowExecutionDecisionAttributes), "SignalExternalWorkflowExecutionDecisionAttributes", "SignalExternalWorkflowExecutionDecisionAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *Decision_UpsertWorkflowSearchAttributesDecisionAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Decision_UpsertWorkflowSearchAttributesDecisionAttributes{`, - `UpsertWorkflowSearchAttributesDecisionAttributes:` + strings.Replace(fmt.Sprintf("%v", this.UpsertWorkflowSearchAttributesDecisionAttributes), "UpsertWorkflowSearchAttributesDecisionAttributes", "UpsertWorkflowSearchAttributesDecisionAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ScheduleActivityTaskDecisionAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ScheduleActivityTaskDecisionAttributes{`, - `ActivityId:` + fmt.Sprintf("%v", this.ActivityId) + `,`, - `ActivityType:` + strings.Replace(fmt.Sprintf("%v", this.ActivityType), "ActivityType", "ActivityType", 1) + `,`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `TaskList:` + strings.Replace(fmt.Sprintf("%v", this.TaskList), "TaskList", "TaskList", 1) + `,`, - `Input:` + strings.Replace(fmt.Sprintf("%v", this.Input), "Payload", "Payload", 1) + `,`, - `ScheduleToCloseTimeout:` + strings.Replace(fmt.Sprintf("%v", this.ScheduleToCloseTimeout), "Duration", "duration.Duration", 1) + `,`, - `ScheduleToStartTimeout:` + strings.Replace(fmt.Sprintf("%v", this.ScheduleToStartTimeout), "Duration", "duration.Duration", 1) + `,`, - `StartToCloseTimeout:` + strings.Replace(fmt.Sprintf("%v", this.StartToCloseTimeout), "Duration", "duration.Duration", 1) + `,`, - `HeartbeatTimeout:` + strings.Replace(fmt.Sprintf("%v", this.HeartbeatTimeout), "Duration", "duration.Duration", 1) + `,`, - `RetryPolicy:` + strings.Replace(fmt.Sprintf("%v", this.RetryPolicy), "RetryPolicy", "RetryPolicy", 1) + `,`, - `Header:` + strings.Replace(fmt.Sprintf("%v", this.Header), "Header", "Header", 1) + `,`, - `RequestLocalDispatch:` + fmt.Sprintf("%v", this.RequestLocalDispatch) + `,`, - `}`, - }, "") - return s -} -func (this *StartTimerDecisionAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&StartTimerDecisionAttributes{`, - `TimerId:` + fmt.Sprintf("%v", this.TimerId) + `,`, - `StartToFireTimeout:` + strings.Replace(fmt.Sprintf("%v", this.StartToFireTimeout), "Duration", "duration.Duration", 1) + `,`, - `}`, - }, "") - return s -} -func (this *CompleteWorkflowExecutionDecisionAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CompleteWorkflowExecutionDecisionAttributes{`, - `Result:` + strings.Replace(fmt.Sprintf("%v", this.Result), "Payload", "Payload", 1) + `,`, - `}`, - }, "") - return s -} -func (this *FailWorkflowExecutionDecisionAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&FailWorkflowExecutionDecisionAttributes{`, - `Failure:` + strings.Replace(fmt.Sprintf("%v", this.Failure), "Failure", "Failure", 1) + `,`, - `}`, - }, "") - return s -} -func (this *RequestCancelActivityTaskDecisionAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RequestCancelActivityTaskDecisionAttributes{`, - `ActivityId:` + fmt.Sprintf("%v", this.ActivityId) + `,`, - `}`, - }, "") - return s -} -func (this *CancelTimerDecisionAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CancelTimerDecisionAttributes{`, - `TimerId:` + fmt.Sprintf("%v", this.TimerId) + `,`, - `}`, - }, "") - return s -} -func (this *CancelWorkflowExecutionDecisionAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CancelWorkflowExecutionDecisionAttributes{`, - `Details:` + strings.Replace(fmt.Sprintf("%v", this.Details), "Payload", "Payload", 1) + `,`, - `}`, - }, "") - return s -} -func (this *RequestCancelExternalWorkflowExecutionDecisionAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RequestCancelExternalWorkflowExecutionDecisionAttributes{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "WorkflowExecution", 1) + `,`, - `Control:` + fmt.Sprintf("%v", this.Control) + `,`, - `ChildWorkflowOnly:` + fmt.Sprintf("%v", this.ChildWorkflowOnly) + `,`, - `}`, - }, "") - return s -} -func (this *RecordMarkerDecisionAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RecordMarkerDecisionAttributes{`, - `MarkerName:` + fmt.Sprintf("%v", this.MarkerName) + `,`, - `Details:` + strings.Replace(fmt.Sprintf("%v", this.Details), "Payload", "Payload", 1) + `,`, - `Header:` + strings.Replace(fmt.Sprintf("%v", this.Header), "Header", "Header", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ContinueAsNewWorkflowExecutionDecisionAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ContinueAsNewWorkflowExecutionDecisionAttributes{`, - `WorkflowType:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowType), "WorkflowType", "WorkflowType", 1) + `,`, - `TaskList:` + strings.Replace(fmt.Sprintf("%v", this.TaskList), "TaskList", "TaskList", 1) + `,`, - `Input:` + strings.Replace(fmt.Sprintf("%v", this.Input), "Payload", "Payload", 1) + `,`, - `ExecutionStartToCloseTimeout:` + strings.Replace(fmt.Sprintf("%v", this.ExecutionStartToCloseTimeout), "Duration", "duration.Duration", 1) + `,`, - `TaskStartToCloseTimeout:` + strings.Replace(fmt.Sprintf("%v", this.TaskStartToCloseTimeout), "Duration", "duration.Duration", 1) + `,`, - `BackoffStartInterval:` + strings.Replace(fmt.Sprintf("%v", this.BackoffStartInterval), "Duration", "duration.Duration", 1) + `,`, - `RetryPolicy:` + strings.Replace(fmt.Sprintf("%v", this.RetryPolicy), "RetryPolicy", "RetryPolicy", 1) + `,`, - `Initiator:` + fmt.Sprintf("%v", this.Initiator) + `,`, - `Failure:` + strings.Replace(fmt.Sprintf("%v", this.Failure), "Failure", "Failure", 1) + `,`, - `LastCompletionResult:` + strings.Replace(fmt.Sprintf("%v", this.LastCompletionResult), "Payload", "Payload", 1) + `,`, - `CronSchedule:` + fmt.Sprintf("%v", this.CronSchedule) + `,`, - `Header:` + strings.Replace(fmt.Sprintf("%v", this.Header), "Header", "Header", 1) + `,`, - `Memo:` + strings.Replace(fmt.Sprintf("%v", this.Memo), "Memo", "Memo", 1) + `,`, - `SearchAttributes:` + strings.Replace(fmt.Sprintf("%v", this.SearchAttributes), "SearchAttributes", "SearchAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *StartChildWorkflowExecutionDecisionAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&StartChildWorkflowExecutionDecisionAttributes{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `WorkflowId:` + fmt.Sprintf("%v", this.WorkflowId) + `,`, - `WorkflowType:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowType), "WorkflowType", "WorkflowType", 1) + `,`, - `TaskList:` + strings.Replace(fmt.Sprintf("%v", this.TaskList), "TaskList", "TaskList", 1) + `,`, - `Input:` + strings.Replace(fmt.Sprintf("%v", this.Input), "Payload", "Payload", 1) + `,`, - `ExecutionStartToCloseTimeout:` + strings.Replace(fmt.Sprintf("%v", this.ExecutionStartToCloseTimeout), "Duration", "duration.Duration", 1) + `,`, - `TaskStartToCloseTimeout:` + strings.Replace(fmt.Sprintf("%v", this.TaskStartToCloseTimeout), "Duration", "duration.Duration", 1) + `,`, - `ParentClosePolicy:` + fmt.Sprintf("%v", this.ParentClosePolicy) + `,`, - `Control:` + fmt.Sprintf("%v", this.Control) + `,`, - `WorkflowIdReusePolicy:` + fmt.Sprintf("%v", this.WorkflowIdReusePolicy) + `,`, - `RetryPolicy:` + strings.Replace(fmt.Sprintf("%v", this.RetryPolicy), "RetryPolicy", "RetryPolicy", 1) + `,`, - `CronSchedule:` + fmt.Sprintf("%v", this.CronSchedule) + `,`, - `Header:` + strings.Replace(fmt.Sprintf("%v", this.Header), "Header", "Header", 1) + `,`, - `Memo:` + strings.Replace(fmt.Sprintf("%v", this.Memo), "Memo", "Memo", 1) + `,`, - `SearchAttributes:` + strings.Replace(fmt.Sprintf("%v", this.SearchAttributes), "SearchAttributes", "SearchAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *SignalExternalWorkflowExecutionDecisionAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SignalExternalWorkflowExecutionDecisionAttributes{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "WorkflowExecution", 1) + `,`, - `SignalName:` + fmt.Sprintf("%v", this.SignalName) + `,`, - `Input:` + strings.Replace(fmt.Sprintf("%v", this.Input), "Payload", "Payload", 1) + `,`, - `Control:` + fmt.Sprintf("%v", this.Control) + `,`, - `ChildWorkflowOnly:` + fmt.Sprintf("%v", this.ChildWorkflowOnly) + `,`, - `}`, - }, "") - return s -} -func (this *UpsertWorkflowSearchAttributesDecisionAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&UpsertWorkflowSearchAttributesDecisionAttributes{`, - `SearchAttributes:` + strings.Replace(fmt.Sprintf("%v", this.SearchAttributes), "SearchAttributes", "SearchAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func valueToStringDecision(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *Decision) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Decision: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Decision: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduleActivityTaskDecisionAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ScheduleActivityTaskDecisionAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &Decision_ScheduleActivityTaskDecisionAttributes{v} - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartTimerDecisionAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &StartTimerDecisionAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &Decision_StartTimerDecisionAttributes{v} - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CompleteWorkflowExecutionDecisionAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &CompleteWorkflowExecutionDecisionAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &Decision_CompleteWorkflowExecutionDecisionAttributes{v} - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FailWorkflowExecutionDecisionAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &FailWorkflowExecutionDecisionAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &Decision_FailWorkflowExecutionDecisionAttributes{v} - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestCancelActivityTaskDecisionAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &RequestCancelActivityTaskDecisionAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &Decision_RequestCancelActivityTaskDecisionAttributes{v} - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CancelTimerDecisionAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &CancelTimerDecisionAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &Decision_CancelTimerDecisionAttributes{v} - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CancelWorkflowExecutionDecisionAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &CancelWorkflowExecutionDecisionAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &Decision_CancelWorkflowExecutionDecisionAttributes{v} - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestCancelExternalWorkflowExecutionDecisionAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &RequestCancelExternalWorkflowExecutionDecisionAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &Decision_RequestCancelExternalWorkflowExecutionDecisionAttributes{v} - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RecordMarkerDecisionAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &RecordMarkerDecisionAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &Decision_RecordMarkerDecisionAttributes{v} - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContinueAsNewWorkflowExecutionDecisionAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ContinueAsNewWorkflowExecutionDecisionAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &Decision_ContinueAsNewWorkflowExecutionDecisionAttributes{v} - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartChildWorkflowExecutionDecisionAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &StartChildWorkflowExecutionDecisionAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &Decision_StartChildWorkflowExecutionDecisionAttributes{v} - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SignalExternalWorkflowExecutionDecisionAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &SignalExternalWorkflowExecutionDecisionAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &Decision_SignalExternalWorkflowExecutionDecisionAttributes{v} - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UpsertWorkflowSearchAttributesDecisionAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &UpsertWorkflowSearchAttributesDecisionAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &Decision_UpsertWorkflowSearchAttributesDecisionAttributes{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipDecision(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthDecision - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthDecision - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ScheduleActivityTaskDecisionAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ScheduleActivityTaskDecisionAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ScheduleActivityTaskDecisionAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActivityId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ActivityId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActivityType", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ActivityType == nil { - m.ActivityType = &ActivityType{} - } - if err := m.ActivityType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TaskList == nil { - m.TaskList = &TaskList{} - } - if err := m.TaskList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Input == nil { - m.Input = &Payload{} - } - if err := m.Input.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduleToCloseTimeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ScheduleToCloseTimeout == nil { - m.ScheduleToCloseTimeout = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.ScheduleToCloseTimeout, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduleToStartTimeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ScheduleToStartTimeout == nil { - m.ScheduleToStartTimeout = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.ScheduleToStartTimeout, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartToCloseTimeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StartToCloseTimeout == nil { - m.StartToCloseTimeout = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.StartToCloseTimeout, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HeartbeatTimeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.HeartbeatTimeout == nil { - m.HeartbeatTimeout = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.HeartbeatTimeout, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RetryPolicy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RetryPolicy == nil { - m.RetryPolicy = &RetryPolicy{} - } - if err := m.RetryPolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Header == nil { - m.Header = &Header{} - } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 13: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestLocalDispatch", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.RequestLocalDispatch = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipDecision(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthDecision - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthDecision - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StartTimerDecisionAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StartTimerDecisionAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StartTimerDecisionAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TimerId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TimerId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartToFireTimeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StartToFireTimeout == nil { - m.StartToFireTimeout = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.StartToFireTimeout, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipDecision(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthDecision - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthDecision - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CompleteWorkflowExecutionDecisionAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CompleteWorkflowExecutionDecisionAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CompleteWorkflowExecutionDecisionAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Result == nil { - m.Result = &Payload{} - } - if err := m.Result.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipDecision(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthDecision - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthDecision - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *FailWorkflowExecutionDecisionAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: FailWorkflowExecutionDecisionAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: FailWorkflowExecutionDecisionAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Failure", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Failure == nil { - m.Failure = &Failure{} - } - if err := m.Failure.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipDecision(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthDecision - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthDecision - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RequestCancelActivityTaskDecisionAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RequestCancelActivityTaskDecisionAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RequestCancelActivityTaskDecisionAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActivityId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ActivityId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipDecision(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthDecision - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthDecision - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CancelTimerDecisionAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CancelTimerDecisionAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CancelTimerDecisionAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TimerId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TimerId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipDecision(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthDecision - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthDecision - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CancelWorkflowExecutionDecisionAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CancelWorkflowExecutionDecisionAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CancelWorkflowExecutionDecisionAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Details", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Details == nil { - m.Details = &Payload{} - } - if err := m.Details.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipDecision(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthDecision - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthDecision - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RequestCancelExternalWorkflowExecutionDecisionAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RequestCancelExternalWorkflowExecutionDecisionAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RequestCancelExternalWorkflowExecutionDecisionAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Control", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Control = append(m.Control[:0], dAtA[iNdEx:postIndex]...) - if m.Control == nil { - m.Control = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ChildWorkflowOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ChildWorkflowOnly = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipDecision(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthDecision - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthDecision - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RecordMarkerDecisionAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RecordMarkerDecisionAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RecordMarkerDecisionAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MarkerName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MarkerName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Details", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Details == nil { - m.Details = &Payload{} - } - if err := m.Details.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Header == nil { - m.Header = &Header{} - } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipDecision(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthDecision - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthDecision - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContinueAsNewWorkflowExecutionDecisionAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ContinueAsNewWorkflowExecutionDecisionAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ContinueAsNewWorkflowExecutionDecisionAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowType", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowType == nil { - m.WorkflowType = &WorkflowType{} - } - if err := m.WorkflowType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TaskList == nil { - m.TaskList = &TaskList{} - } - if err := m.TaskList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Input == nil { - m.Input = &Payload{} - } - if err := m.Input.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExecutionStartToCloseTimeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ExecutionStartToCloseTimeout == nil { - m.ExecutionStartToCloseTimeout = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.ExecutionStartToCloseTimeout, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskStartToCloseTimeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TaskStartToCloseTimeout == nil { - m.TaskStartToCloseTimeout = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.TaskStartToCloseTimeout, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BackoffStartInterval", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.BackoffStartInterval == nil { - m.BackoffStartInterval = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.BackoffStartInterval, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RetryPolicy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RetryPolicy == nil { - m.RetryPolicy = &RetryPolicy{} - } - if err := m.RetryPolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Initiator", wireType) - } - m.Initiator = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Initiator |= ContinueAsNewInitiator(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Failure", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Failure == nil { - m.Failure = &Failure{} - } - if err := m.Failure.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastCompletionResult", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LastCompletionResult == nil { - m.LastCompletionResult = &Payload{} - } - if err := m.LastCompletionResult.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CronSchedule", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CronSchedule = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Header == nil { - m.Header = &Header{} - } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Memo", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Memo == nil { - m.Memo = &Memo{} - } - if err := m.Memo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SearchAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SearchAttributes == nil { - m.SearchAttributes = &SearchAttributes{} - } - if err := m.SearchAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipDecision(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthDecision - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthDecision - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StartChildWorkflowExecutionDecisionAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StartChildWorkflowExecutionDecisionAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StartChildWorkflowExecutionDecisionAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.WorkflowId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowType", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowType == nil { - m.WorkflowType = &WorkflowType{} - } - if err := m.WorkflowType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TaskList == nil { - m.TaskList = &TaskList{} - } - if err := m.TaskList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Input == nil { - m.Input = &Payload{} - } - if err := m.Input.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExecutionStartToCloseTimeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ExecutionStartToCloseTimeout == nil { - m.ExecutionStartToCloseTimeout = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.ExecutionStartToCloseTimeout, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskStartToCloseTimeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TaskStartToCloseTimeout == nil { - m.TaskStartToCloseTimeout = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.TaskStartToCloseTimeout, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ParentClosePolicy", wireType) - } - m.ParentClosePolicy = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ParentClosePolicy |= ParentClosePolicy(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Control", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Control = append(m.Control[:0], dAtA[iNdEx:postIndex]...) - if m.Control == nil { - m.Control = []byte{} - } - iNdEx = postIndex - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowIdReusePolicy", wireType) - } - m.WorkflowIdReusePolicy = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.WorkflowIdReusePolicy |= WorkflowIdReusePolicy(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RetryPolicy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RetryPolicy == nil { - m.RetryPolicy = &RetryPolicy{} - } - if err := m.RetryPolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CronSchedule", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CronSchedule = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Header == nil { - m.Header = &Header{} - } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Memo", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Memo == nil { - m.Memo = &Memo{} - } - if err := m.Memo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SearchAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SearchAttributes == nil { - m.SearchAttributes = &SearchAttributes{} - } - if err := m.SearchAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipDecision(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthDecision - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthDecision - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SignalExternalWorkflowExecutionDecisionAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SignalExternalWorkflowExecutionDecisionAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SignalExternalWorkflowExecutionDecisionAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SignalName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SignalName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Input == nil { - m.Input = &Payload{} - } - if err := m.Input.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Control", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Control = append(m.Control[:0], dAtA[iNdEx:postIndex]...) - if m.Control == nil { - m.Control = []byte{} - } - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ChildWorkflowOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ChildWorkflowOnly = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipDecision(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthDecision - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthDecision - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UpsertWorkflowSearchAttributesDecisionAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UpsertWorkflowSearchAttributesDecisionAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UpsertWorkflowSearchAttributesDecisionAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SearchAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDecision - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDecision - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDecision - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SearchAttributes == nil { - m.SearchAttributes = &SearchAttributes{} - } - if err := m.SearchAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipDecision(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthDecision - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthDecision - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipDecision(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowDecision - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowDecision - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowDecision - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthDecision - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupDecision - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthDecision - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthDecision = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowDecision = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupDecision = fmt.Errorf("proto: unexpected end of group") -) diff --git a/.gen/proto/api/v1/domain.pb.go b/.gen/proto/api/v1/domain.pb.go index 47b14ad41bb..ecfc2bd6904 100644 --- a/.gen/proto/api/v1/domain.pb.go +++ b/.gen/proto/api/v1/domain.pb.go @@ -1,112 +1,159 @@ -// The MIT License (MIT) - -// Copyright (c) 2017-2020 Uber Technologies Inc. - +// 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 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. +// 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. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.14.0 // source: uber/cadence/api/v1/domain.proto package apiv1 import ( - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" reflect "reflect" - strconv "strconv" - strings "strings" - time "time" - - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" - github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" - _ "github.com/golang/protobuf/ptypes/duration" - _ "github.com/golang/protobuf/ptypes/timestamp" + sync "sync" + + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf -var _ = time.Kitchen +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// 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 +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type DomainStatus int32 const ( - DOMAIN_STATUS_INVALID DomainStatus = 0 - DOMAIN_STATUS_REGISTERED DomainStatus = 1 - DOMAIN_STATUS_DEPRECATED DomainStatus = 2 - DOMAIN_STATUS_DELETED DomainStatus = 3 + DomainStatus_DOMAIN_STATUS_INVALID DomainStatus = 0 + DomainStatus_DOMAIN_STATUS_REGISTERED DomainStatus = 1 + DomainStatus_DOMAIN_STATUS_DEPRECATED DomainStatus = 2 + DomainStatus_DOMAIN_STATUS_DELETED DomainStatus = 3 +) + +// Enum value maps for DomainStatus. +var ( + DomainStatus_name = map[int32]string{ + 0: "DOMAIN_STATUS_INVALID", + 1: "DOMAIN_STATUS_REGISTERED", + 2: "DOMAIN_STATUS_DEPRECATED", + 3: "DOMAIN_STATUS_DELETED", + } + DomainStatus_value = map[string]int32{ + "DOMAIN_STATUS_INVALID": 0, + "DOMAIN_STATUS_REGISTERED": 1, + "DOMAIN_STATUS_DEPRECATED": 2, + "DOMAIN_STATUS_DELETED": 3, + } ) -var DomainStatus_name = map[int32]string{ - 0: "DOMAIN_STATUS_INVALID", - 1: "DOMAIN_STATUS_REGISTERED", - 2: "DOMAIN_STATUS_DEPRECATED", - 3: "DOMAIN_STATUS_DELETED", +func (x DomainStatus) Enum() *DomainStatus { + p := new(DomainStatus) + *p = x + return p +} + +func (x DomainStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (DomainStatus) Descriptor() protoreflect.EnumDescriptor { + return file_uber_cadence_api_v1_domain_proto_enumTypes[0].Descriptor() +} + +func (DomainStatus) Type() protoreflect.EnumType { + return &file_uber_cadence_api_v1_domain_proto_enumTypes[0] } -var DomainStatus_value = map[string]int32{ - "DOMAIN_STATUS_INVALID": 0, - "DOMAIN_STATUS_REGISTERED": 1, - "DOMAIN_STATUS_DEPRECATED": 2, - "DOMAIN_STATUS_DELETED": 3, +func (x DomainStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use DomainStatus.Descriptor instead. func (DomainStatus) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_824795d6ae7d8e2f, []int{0} + return file_uber_cadence_api_v1_domain_proto_rawDescGZIP(), []int{0} } type ArchivalStatus int32 const ( - ARCHIVAL_STATUS_INVALID ArchivalStatus = 0 - ARCHIVAL_STATUS_DISABLED ArchivalStatus = 1 - ARCHIVAL_STATUS_ENABLED ArchivalStatus = 2 + ArchivalStatus_ARCHIVAL_STATUS_INVALID ArchivalStatus = 0 + ArchivalStatus_ARCHIVAL_STATUS_DISABLED ArchivalStatus = 1 + ArchivalStatus_ARCHIVAL_STATUS_ENABLED ArchivalStatus = 2 ) -var ArchivalStatus_name = map[int32]string{ - 0: "ARCHIVAL_STATUS_INVALID", - 1: "ARCHIVAL_STATUS_DISABLED", - 2: "ARCHIVAL_STATUS_ENABLED", +// Enum value maps for ArchivalStatus. +var ( + ArchivalStatus_name = map[int32]string{ + 0: "ARCHIVAL_STATUS_INVALID", + 1: "ARCHIVAL_STATUS_DISABLED", + 2: "ARCHIVAL_STATUS_ENABLED", + } + ArchivalStatus_value = map[string]int32{ + "ARCHIVAL_STATUS_INVALID": 0, + "ARCHIVAL_STATUS_DISABLED": 1, + "ARCHIVAL_STATUS_ENABLED": 2, + } +) + +func (x ArchivalStatus) Enum() *ArchivalStatus { + p := new(ArchivalStatus) + *p = x + return p +} + +func (x ArchivalStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -var ArchivalStatus_value = map[string]int32{ - "ARCHIVAL_STATUS_INVALID": 0, - "ARCHIVAL_STATUS_DISABLED": 1, - "ARCHIVAL_STATUS_ENABLED": 2, +func (ArchivalStatus) Descriptor() protoreflect.EnumDescriptor { + return file_uber_cadence_api_v1_domain_proto_enumTypes[1].Descriptor() } +func (ArchivalStatus) Type() protoreflect.EnumType { + return &file_uber_cadence_api_v1_domain_proto_enumTypes[1] +} + +func (x ArchivalStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ArchivalStatus.Descriptor instead. func (ArchivalStatus) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_824795d6ae7d8e2f, []int{1} + return file_uber_cadence_api_v1_domain_proto_rawDescGZIP(), []int{1} } type DomainInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Status DomainStatus `protobuf:"varint,3,opt,name=status,proto3,enum=uber.cadence.api.v1.DomainStatus" json:"status,omitempty"` @@ -115,2519 +162,639 @@ type DomainInfo struct { Data map[string]string `protobuf:"bytes,6,rep,name=data,proto3" json:"data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func (m *DomainInfo) Reset() { *m = DomainInfo{} } -func (*DomainInfo) ProtoMessage() {} -func (*DomainInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_824795d6ae7d8e2f, []int{0} -} -func (m *DomainInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DomainInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DomainInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *DomainInfo) Reset() { + *x = DomainInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_domain_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *DomainInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_DomainInfo.Merge(m, src) -} -func (m *DomainInfo) XXX_Size() int { - return m.Size() + +func (x *DomainInfo) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DomainInfo) XXX_DiscardUnknown() { - xxx_messageInfo_DomainInfo.DiscardUnknown(m) + +func (*DomainInfo) ProtoMessage() {} + +func (x *DomainInfo) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_domain_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DomainInfo proto.InternalMessageInfo +// Deprecated: Use DomainInfo.ProtoReflect.Descriptor instead. +func (*DomainInfo) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_domain_proto_rawDescGZIP(), []int{0} +} -func (m *DomainInfo) GetId() string { - if m != nil { - return m.Id +func (x *DomainInfo) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *DomainInfo) GetName() string { - if m != nil { - return m.Name +func (x *DomainInfo) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *DomainInfo) GetStatus() DomainStatus { - if m != nil { - return m.Status +func (x *DomainInfo) GetStatus() DomainStatus { + if x != nil { + return x.Status } - return DOMAIN_STATUS_INVALID + return DomainStatus_DOMAIN_STATUS_INVALID } -func (m *DomainInfo) GetDescription() string { - if m != nil { - return m.Description +func (x *DomainInfo) GetDescription() string { + if x != nil { + return x.Description } return "" } -func (m *DomainInfo) GetOwnerEmail() string { - if m != nil { - return m.OwnerEmail +func (x *DomainInfo) GetOwnerEmail() string { + if x != nil { + return x.OwnerEmail } return "" } -func (m *DomainInfo) GetData() map[string]string { - if m != nil { - return m.Data +func (x *DomainInfo) GetData() map[string]string { + if x != nil { + return x.Data } return nil } type DomainConfiguration struct { - WorkflowExecutionRetentionPeriod *time.Duration `protobuf:"bytes,1,opt,name=workflow_execution_retention_period,json=workflowExecutionRetentionPeriod,proto3,stdduration" json:"workflow_execution_retention_period,omitempty"` - BadBinaries *BadBinaries `protobuf:"bytes,2,opt,name=bad_binaries,json=badBinaries,proto3" json:"bad_binaries,omitempty"` - HistoryArchivalStatus ArchivalStatus `protobuf:"varint,3,opt,name=history_archival_status,json=historyArchivalStatus,proto3,enum=uber.cadence.api.v1.ArchivalStatus" json:"history_archival_status,omitempty"` - HistoryArchivalUri string `protobuf:"bytes,4,opt,name=history_archival_uri,json=historyArchivalUri,proto3" json:"history_archival_uri,omitempty"` - VisibilityArchivalStatus ArchivalStatus `protobuf:"varint,5,opt,name=visibility_archival_status,json=visibilityArchivalStatus,proto3,enum=uber.cadence.api.v1.ArchivalStatus" json:"visibility_archival_status,omitempty"` - VisibilityArchivalUri string `protobuf:"bytes,6,opt,name=visibility_archival_uri,json=visibilityArchivalUri,proto3" json:"visibility_archival_uri,omitempty"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *DomainConfiguration) Reset() { *m = DomainConfiguration{} } -func (*DomainConfiguration) ProtoMessage() {} -func (*DomainConfiguration) Descriptor() ([]byte, []int) { - return fileDescriptor_824795d6ae7d8e2f, []int{1} -} -func (m *DomainConfiguration) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DomainConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DomainConfiguration.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + WorkflowExecutionRetentionPeriod *durationpb.Duration `protobuf:"bytes,1,opt,name=workflow_execution_retention_period,json=workflowExecutionRetentionPeriod,proto3" json:"workflow_execution_retention_period,omitempty"` + BadBinaries *BadBinaries `protobuf:"bytes,2,opt,name=bad_binaries,json=badBinaries,proto3" json:"bad_binaries,omitempty"` + HistoryArchivalStatus ArchivalStatus `protobuf:"varint,3,opt,name=history_archival_status,json=historyArchivalStatus,proto3,enum=uber.cadence.api.v1.ArchivalStatus" json:"history_archival_status,omitempty"` + HistoryArchivalUri string `protobuf:"bytes,4,opt,name=history_archival_uri,json=historyArchivalUri,proto3" json:"history_archival_uri,omitempty"` + VisibilityArchivalStatus ArchivalStatus `protobuf:"varint,5,opt,name=visibility_archival_status,json=visibilityArchivalStatus,proto3,enum=uber.cadence.api.v1.ArchivalStatus" json:"visibility_archival_status,omitempty"` + VisibilityArchivalUri string `protobuf:"bytes,6,opt,name=visibility_archival_uri,json=visibilityArchivalUri,proto3" json:"visibility_archival_uri,omitempty"` } -func (m *DomainConfiguration) XXX_Merge(src proto.Message) { - xxx_messageInfo_DomainConfiguration.Merge(m, src) -} -func (m *DomainConfiguration) XXX_Size() int { - return m.Size() -} -func (m *DomainConfiguration) XXX_DiscardUnknown() { - xxx_messageInfo_DomainConfiguration.DiscardUnknown(m) -} - -var xxx_messageInfo_DomainConfiguration proto.InternalMessageInfo -func (m *DomainConfiguration) GetWorkflowExecutionRetentionPeriod() *time.Duration { - if m != nil { - return m.WorkflowExecutionRetentionPeriod +func (x *DomainConfiguration) Reset() { + *x = DomainConfiguration{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_domain_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *DomainConfiguration) GetBadBinaries() *BadBinaries { - if m != nil { - return m.BadBinaries - } - return nil +func (x *DomainConfiguration) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DomainConfiguration) GetHistoryArchivalStatus() ArchivalStatus { - if m != nil { - return m.HistoryArchivalStatus - } - return ARCHIVAL_STATUS_INVALID -} +func (*DomainConfiguration) ProtoMessage() {} -func (m *DomainConfiguration) GetHistoryArchivalUri() string { - if m != nil { - return m.HistoryArchivalUri +func (x *DomainConfiguration) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_domain_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -func (m *DomainConfiguration) GetVisibilityArchivalStatus() ArchivalStatus { - if m != nil { - return m.VisibilityArchivalStatus - } - return ARCHIVAL_STATUS_INVALID +// Deprecated: Use DomainConfiguration.ProtoReflect.Descriptor instead. +func (*DomainConfiguration) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_domain_proto_rawDescGZIP(), []int{1} } -func (m *DomainConfiguration) GetVisibilityArchivalUri() string { - if m != nil { - return m.VisibilityArchivalUri +func (x *DomainConfiguration) GetWorkflowExecutionRetentionPeriod() *durationpb.Duration { + if x != nil { + return x.WorkflowExecutionRetentionPeriod } - return "" + return nil } -type ClusterReplicationConfiguration struct { - ClusterName string `protobuf:"bytes,1,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"` +func (x *DomainConfiguration) GetBadBinaries() *BadBinaries { + if x != nil { + return x.BadBinaries + } + return nil } -func (m *ClusterReplicationConfiguration) Reset() { *m = ClusterReplicationConfiguration{} } -func (*ClusterReplicationConfiguration) ProtoMessage() {} -func (*ClusterReplicationConfiguration) Descriptor() ([]byte, []int) { - return fileDescriptor_824795d6ae7d8e2f, []int{2} -} -func (m *ClusterReplicationConfiguration) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ClusterReplicationConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ClusterReplicationConfiguration.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *DomainConfiguration) GetHistoryArchivalStatus() ArchivalStatus { + if x != nil { + return x.HistoryArchivalStatus } + return ArchivalStatus_ARCHIVAL_STATUS_INVALID } -func (m *ClusterReplicationConfiguration) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClusterReplicationConfiguration.Merge(m, src) -} -func (m *ClusterReplicationConfiguration) XXX_Size() int { - return m.Size() -} -func (m *ClusterReplicationConfiguration) XXX_DiscardUnknown() { - xxx_messageInfo_ClusterReplicationConfiguration.DiscardUnknown(m) -} - -var xxx_messageInfo_ClusterReplicationConfiguration proto.InternalMessageInfo -func (m *ClusterReplicationConfiguration) GetClusterName() string { - if m != nil { - return m.ClusterName +func (x *DomainConfiguration) GetHistoryArchivalUri() string { + if x != nil { + return x.HistoryArchivalUri } return "" } -type DomainReplicationConfiguration struct { - ActiveClusterName string `protobuf:"bytes,1,opt,name=active_cluster_name,json=activeClusterName,proto3" json:"active_cluster_name,omitempty"` - Clusters []*ClusterReplicationConfiguration `protobuf:"bytes,2,rep,name=clusters,proto3" json:"clusters,omitempty"` -} - -func (m *DomainReplicationConfiguration) Reset() { *m = DomainReplicationConfiguration{} } -func (*DomainReplicationConfiguration) ProtoMessage() {} -func (*DomainReplicationConfiguration) Descriptor() ([]byte, []int) { - return fileDescriptor_824795d6ae7d8e2f, []int{3} -} -func (m *DomainReplicationConfiguration) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DomainReplicationConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DomainReplicationConfiguration.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *DomainConfiguration) GetVisibilityArchivalStatus() ArchivalStatus { + if x != nil { + return x.VisibilityArchivalStatus } -} -func (m *DomainReplicationConfiguration) XXX_Merge(src proto.Message) { - xxx_messageInfo_DomainReplicationConfiguration.Merge(m, src) -} -func (m *DomainReplicationConfiguration) XXX_Size() int { - return m.Size() -} -func (m *DomainReplicationConfiguration) XXX_DiscardUnknown() { - xxx_messageInfo_DomainReplicationConfiguration.DiscardUnknown(m) + return ArchivalStatus_ARCHIVAL_STATUS_INVALID } -var xxx_messageInfo_DomainReplicationConfiguration proto.InternalMessageInfo - -func (m *DomainReplicationConfiguration) GetActiveClusterName() string { - if m != nil { - return m.ActiveClusterName +func (x *DomainConfiguration) GetVisibilityArchivalUri() string { + if x != nil { + return x.VisibilityArchivalUri } return "" } -func (m *DomainReplicationConfiguration) GetClusters() []*ClusterReplicationConfiguration { - if m != nil { - return m.Clusters - } - return nil -} +type ClusterReplicationConfiguration struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type BadBinaries struct { - Binaries map[string]*BadBinaryInfo `protobuf:"bytes,1,rep,name=binaries,proto3" json:"binaries,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + ClusterName string `protobuf:"bytes,1,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"` } -func (m *BadBinaries) Reset() { *m = BadBinaries{} } -func (*BadBinaries) ProtoMessage() {} -func (*BadBinaries) Descriptor() ([]byte, []int) { - return fileDescriptor_824795d6ae7d8e2f, []int{4} -} -func (m *BadBinaries) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BadBinaries) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BadBinaries.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ClusterReplicationConfiguration) Reset() { + *x = ClusterReplicationConfiguration{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_domain_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *BadBinaries) XXX_Merge(src proto.Message) { - xxx_messageInfo_BadBinaries.Merge(m, src) -} -func (m *BadBinaries) XXX_Size() int { - return m.Size() -} -func (m *BadBinaries) XXX_DiscardUnknown() { - xxx_messageInfo_BadBinaries.DiscardUnknown(m) -} - -var xxx_messageInfo_BadBinaries proto.InternalMessageInfo -func (m *BadBinaries) GetBinaries() map[string]*BadBinaryInfo { - if m != nil { - return m.Binaries - } - return nil +func (x *ClusterReplicationConfiguration) String() string { + return protoimpl.X.MessageStringOf(x) } -type BadBinaryInfo struct { - Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"` - Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` - CreatedTime *time.Time `protobuf:"bytes,3,opt,name=created_time,json=createdTime,proto3,stdtime" json:"created_time,omitempty"` -} +func (*ClusterReplicationConfiguration) ProtoMessage() {} -func (m *BadBinaryInfo) Reset() { *m = BadBinaryInfo{} } -func (*BadBinaryInfo) ProtoMessage() {} -func (*BadBinaryInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_824795d6ae7d8e2f, []int{5} -} -func (m *BadBinaryInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BadBinaryInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BadBinaryInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *ClusterReplicationConfiguration) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_domain_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *BadBinaryInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_BadBinaryInfo.Merge(m, src) -} -func (m *BadBinaryInfo) XXX_Size() int { - return m.Size() -} -func (m *BadBinaryInfo) XXX_DiscardUnknown() { - xxx_messageInfo_BadBinaryInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_BadBinaryInfo proto.InternalMessageInfo -func (m *BadBinaryInfo) GetReason() string { - if m != nil { - return m.Reason - } - return "" +// Deprecated: Use ClusterReplicationConfiguration.ProtoReflect.Descriptor instead. +func (*ClusterReplicationConfiguration) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_domain_proto_rawDescGZIP(), []int{2} } -func (m *BadBinaryInfo) GetOperator() string { - if m != nil { - return m.Operator +func (x *ClusterReplicationConfiguration) GetClusterName() string { + if x != nil { + return x.ClusterName } return "" } -func (m *BadBinaryInfo) GetCreatedTime() *time.Time { - if m != nil { - return m.CreatedTime - } - return nil -} - -func init() { - proto.RegisterEnum("uber.cadence.api.v1.DomainStatus", DomainStatus_name, DomainStatus_value) - proto.RegisterEnum("uber.cadence.api.v1.ArchivalStatus", ArchivalStatus_name, ArchivalStatus_value) - proto.RegisterType((*DomainInfo)(nil), "uber.cadence.api.v1.DomainInfo") - proto.RegisterMapType((map[string]string)(nil), "uber.cadence.api.v1.DomainInfo.DataEntry") - proto.RegisterType((*DomainConfiguration)(nil), "uber.cadence.api.v1.DomainConfiguration") - proto.RegisterType((*ClusterReplicationConfiguration)(nil), "uber.cadence.api.v1.ClusterReplicationConfiguration") - proto.RegisterType((*DomainReplicationConfiguration)(nil), "uber.cadence.api.v1.DomainReplicationConfiguration") - proto.RegisterType((*BadBinaries)(nil), "uber.cadence.api.v1.BadBinaries") - proto.RegisterMapType((map[string]*BadBinaryInfo)(nil), "uber.cadence.api.v1.BadBinaries.BinariesEntry") - proto.RegisterType((*BadBinaryInfo)(nil), "uber.cadence.api.v1.BadBinaryInfo") -} - -func init() { - proto.RegisterFile("github.com/uber/cadence/.gen/proto/api/v1/domain.proto", fileDescriptor_824795d6ae7d8e2f) -} - -var fileDescriptor_824795d6ae7d8e2f = []byte{ - // 872 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xbf, 0x73, 0x1b, 0x45, - 0x14, 0xd6, 0x4a, 0xb2, 0xc6, 0x79, 0xe7, 0x78, 0xcc, 0x3a, 0xc6, 0x8a, 0xc8, 0x9c, 0x15, 0xa5, - 0x31, 0x29, 0x4e, 0x58, 0x30, 0x10, 0x98, 0xa1, 0x38, 0xe9, 0x6e, 0x40, 0x8c, 0x31, 0x9a, 0x93, - 0x9c, 0x02, 0x8a, 0x63, 0x75, 0xb7, 0x96, 0x77, 0x22, 0xdd, 0xde, 0xec, 0x9d, 0x64, 0xdc, 0xa5, - 0xa4, 0x4c, 0x49, 0x4d, 0xc1, 0xf0, 0x37, 0xf0, 0x17, 0x50, 0xba, 0x4c, 0x07, 0x96, 0x1b, 0xca, - 0x14, 0xfc, 0x01, 0xcc, 0xed, 0xad, 0x64, 0xfd, 0x38, 0xe2, 0x74, 0xbb, 0xef, 0x7d, 0xef, 0xdb, - 0x6f, 0xf7, 0xbd, 0x6f, 0xa1, 0x3a, 0xee, 0x53, 0x51, 0xf7, 0x88, 0x4f, 0x03, 0x8f, 0xd6, 0x49, - 0xc8, 0xea, 0x93, 0xa3, 0xba, 0xcf, 0x47, 0x84, 0x05, 0x46, 0x28, 0x78, 0xcc, 0xf1, 0x6e, 0x82, - 0x30, 0x14, 0xc2, 0x20, 0x21, 0x33, 0x26, 0x47, 0x15, 0x7d, 0xc0, 0xf9, 0x60, 0x48, 0xeb, 0x12, - 0xd2, 0x1f, 0x9f, 0xd5, 0xfd, 0xb1, 0x20, 0x31, 0xe3, 0xaa, 0xa8, 0x72, 0xb0, 0x9a, 0x8f, 0xd9, - 0x88, 0x46, 0x31, 0x19, 0x85, 0x0a, 0xf0, 0xc8, 0xa7, 0x21, 0x0d, 0x12, 0x4e, 0x46, 0xa3, 0xfa, - 0x80, 0x0f, 0xb8, 0x8c, 0xa7, 0xd9, 0xda, 0x6f, 0x79, 0x00, 0x4b, 0x8a, 0x68, 0x07, 0x67, 0x1c, - 0x6f, 0x43, 0x9e, 0xf9, 0x65, 0x54, 0x45, 0x87, 0xf7, 0x9c, 0x3c, 0xf3, 0x31, 0x86, 0x62, 0x40, - 0x46, 0xb4, 0x9c, 0x97, 0x11, 0xb9, 0xc6, 0x9f, 0x43, 0x29, 0x8a, 0x49, 0x3c, 0x8e, 0xca, 0x85, - 0x2a, 0x3a, 0xdc, 0x6e, 0x3c, 0x36, 0x32, 0x74, 0x1b, 0x29, 0x69, 0x57, 0x02, 0x1d, 0x55, 0x80, - 0xab, 0xa0, 0xf9, 0x34, 0xf2, 0x04, 0x0b, 0x93, 0x1b, 0x94, 0x8b, 0x92, 0x75, 0x31, 0x84, 0x0f, - 0x40, 0xe3, 0x17, 0x01, 0x15, 0x2e, 0x1d, 0x11, 0x36, 0x2c, 0x6f, 0x48, 0x04, 0xc8, 0x90, 0x9d, - 0x44, 0xf0, 0x97, 0x50, 0xf4, 0x49, 0x4c, 0xca, 0xa5, 0x6a, 0xe1, 0x50, 0x6b, 0x7c, 0xf8, 0x96, - 0xb3, 0x93, 0x0b, 0x19, 0x16, 0x89, 0x89, 0x1d, 0xc4, 0xe2, 0xd2, 0x91, 0x65, 0x95, 0xcf, 0xe0, - 0xde, 0x3c, 0x84, 0x77, 0xa0, 0xf0, 0x82, 0x5e, 0xaa, 0xeb, 0x26, 0x4b, 0xfc, 0x00, 0x36, 0x26, - 0x64, 0x38, 0x9e, 0x5d, 0x38, 0xdd, 0x7c, 0x91, 0x7f, 0x86, 0x6a, 0xff, 0x16, 0x60, 0x37, 0xe5, - 0x6d, 0xf1, 0xe0, 0x8c, 0x0d, 0x54, 0x17, 0x70, 0x00, 0x4f, 0x2e, 0xb8, 0x78, 0x71, 0x36, 0xe4, - 0x17, 0x2e, 0xfd, 0x89, 0x7a, 0xe3, 0x24, 0xea, 0x0a, 0x1a, 0xd3, 0x40, 0xae, 0x42, 0x2a, 0x18, - 0x4f, 0x9f, 0x54, 0x6b, 0x3c, 0x34, 0xd2, 0x6e, 0x19, 0xb3, 0x6e, 0x19, 0x96, 0xe2, 0x69, 0x16, - 0x7f, 0xf9, 0xeb, 0x00, 0x39, 0xd5, 0x19, 0x97, 0x3d, 0xa3, 0x72, 0x66, 0x4c, 0x1d, 0x49, 0x84, - 0x5b, 0xb0, 0xd5, 0x27, 0xbe, 0xdb, 0x67, 0x01, 0x11, 0x8c, 0x46, 0x52, 0xa8, 0xd6, 0xa8, 0x66, - 0xbe, 0x43, 0x93, 0xf8, 0x4d, 0x85, 0x73, 0xb4, 0xfe, 0xed, 0x06, 0xff, 0x00, 0xfb, 0xe7, 0x2c, - 0x8a, 0xb9, 0xb8, 0x74, 0x89, 0xf0, 0xce, 0xd9, 0x84, 0x0c, 0xdd, 0xa5, 0x9e, 0x3e, 0xc9, 0xe4, - 0x33, 0x15, 0x56, 0x75, 0x75, 0x4f, 0x71, 0x2c, 0x87, 0xf1, 0x47, 0xf0, 0x60, 0x8d, 0x7c, 0x2c, - 0x98, 0xea, 0x36, 0x5e, 0x29, 0x3a, 0x15, 0x0c, 0x13, 0xa8, 0x4c, 0x58, 0xc4, 0xfa, 0x6c, 0xc8, - 0xe2, 0x75, 0x45, 0x1b, 0xef, 0xae, 0xa8, 0x7c, 0x4b, 0xb3, 0x22, 0xea, 0x53, 0xd8, 0xcf, 0x3a, - 0x22, 0xd1, 0x55, 0x92, 0xba, 0xf6, 0xd6, 0x4b, 0x4f, 0x05, 0xab, 0x59, 0x70, 0xd0, 0x1a, 0x8e, - 0xa3, 0x98, 0x0a, 0x87, 0x86, 0x43, 0xe6, 0xc9, 0x66, 0x2d, 0x4f, 0xc0, 0x63, 0xd8, 0xf2, 0x52, - 0x88, 0x2b, 0xbd, 0x92, 0x8e, 0x93, 0xa6, 0x62, 0x27, 0x64, 0x44, 0x6b, 0xbf, 0x22, 0xd0, 0xd3, - 0xe1, 0xf9, 0x5f, 0x16, 0x03, 0x76, 0x89, 0x17, 0xb3, 0x09, 0x75, 0x33, 0xc8, 0xde, 0x4b, 0x53, - 0xad, 0x5b, 0x4a, 0xdc, 0x81, 0x4d, 0x05, 0x4c, 0x66, 0x20, 0xf1, 0xc2, 0x27, 0x99, 0x2f, 0x74, - 0x87, 0x7a, 0x67, 0xce, 0x52, 0xfb, 0x03, 0x81, 0xb6, 0x30, 0x31, 0xf8, 0x1b, 0xd8, 0x9c, 0x4f, - 0x19, 0x92, 0x27, 0x18, 0x77, 0x4d, 0x99, 0x31, 0x5b, 0xa4, 0x96, 0x9b, 0xd7, 0x57, 0x5c, 0xb8, - 0xbf, 0x94, 0xca, 0xb0, 0xde, 0xb3, 0x45, 0xeb, 0x69, 0x8d, 0xda, 0x5b, 0xcf, 0xba, 0x4c, 0xcc, - 0xbd, 0x68, 0xcf, 0x9f, 0x11, 0xdc, 0x5f, 0x4a, 0xe2, 0xf7, 0xa1, 0x24, 0x28, 0x89, 0x78, 0xa0, - 0x0e, 0x51, 0x3b, 0x5c, 0x81, 0x4d, 0x1e, 0x52, 0x41, 0x62, 0x2e, 0x94, 0xcb, 0xe7, 0xfb, 0xc4, - 0x5c, 0x9e, 0xa0, 0x24, 0xa6, 0xbe, 0x9b, 0x7c, 0xa3, 0xd2, 0x0c, 0x5a, 0xa3, 0xb2, 0xe6, 0xda, - 0xde, 0xec, 0x8f, 0x6d, 0x16, 0x5f, 0x25, 0xb6, 0xd5, 0x54, 0x55, 0x12, 0x7f, 0xfa, 0x12, 0xc1, - 0xd6, 0xe2, 0xef, 0x87, 0x1f, 0xc2, 0x9e, 0xf5, 0xdd, 0xb7, 0x66, 0xfb, 0xc4, 0xed, 0xf6, 0xcc, - 0xde, 0x69, 0xd7, 0x6d, 0x9f, 0x3c, 0x37, 0x8f, 0xdb, 0xd6, 0x4e, 0x0e, 0x3f, 0x82, 0xf2, 0x72, - 0xca, 0xb1, 0xbf, 0x6a, 0x77, 0x7b, 0xb6, 0x63, 0x5b, 0x3b, 0x68, 0x3d, 0x6b, 0xd9, 0x1d, 0xc7, - 0x6e, 0x99, 0x3d, 0xdb, 0xda, 0xc9, 0xaf, 0xd3, 0x5a, 0xf6, 0xb1, 0x9d, 0xa4, 0x0a, 0x4f, 0xcf, - 0x61, 0x7b, 0x65, 0xfe, 0x3f, 0x80, 0x7d, 0xd3, 0x69, 0x7d, 0xdd, 0x7e, 0x6e, 0x1e, 0x67, 0xaa, - 0x58, 0x4d, 0x5a, 0xed, 0xae, 0xd9, 0x3c, 0x96, 0x2a, 0x32, 0x4a, 0xed, 0x93, 0x34, 0x99, 0x6f, - 0xfe, 0x78, 0x75, 0xad, 0xe7, 0x5e, 0x5f, 0xeb, 0xb9, 0x37, 0xd7, 0x3a, 0x7a, 0x39, 0xd5, 0xd1, - 0xef, 0x53, 0x1d, 0xfd, 0x39, 0xd5, 0xd1, 0xd5, 0x54, 0x47, 0x7f, 0x4f, 0x75, 0xf4, 0xcf, 0x54, - 0xcf, 0xbd, 0x99, 0xea, 0xe8, 0xd5, 0x8d, 0x9e, 0xbb, 0xba, 0xd1, 0x73, 0xaf, 0x6f, 0xf4, 0x1c, - 0xec, 0x7b, 0x7c, 0x94, 0xd5, 0xdf, 0xe6, 0xa6, 0x19, 0xb2, 0x4e, 0xf2, 0xca, 0x1d, 0xf4, 0xfd, - 0x06, 0x09, 0xd9, 0xe4, 0xa8, 0x5f, 0x92, 0xaf, 0xfe, 0xf1, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, - 0x41, 0xea, 0x3c, 0x01, 0x40, 0x07, 0x00, 0x00, -} +type DomainReplicationConfiguration struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x DomainStatus) String() string { - s, ok := DomainStatus_name[int32(x)] - if ok { - return s - } - return strconv.Itoa(int(x)) -} -func (x ArchivalStatus) String() string { - s, ok := ArchivalStatus_name[int32(x)] - if ok { - return s - } - return strconv.Itoa(int(x)) + ActiveClusterName string `protobuf:"bytes,1,opt,name=active_cluster_name,json=activeClusterName,proto3" json:"active_cluster_name,omitempty"` + Clusters []*ClusterReplicationConfiguration `protobuf:"bytes,2,rep,name=clusters,proto3" json:"clusters,omitempty"` } -func (this *DomainInfo) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*DomainInfo) - if !ok { - that2, ok := that.(DomainInfo) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Id != that1.Id { - return false - } - if this.Name != that1.Name { - return false - } - if this.Status != that1.Status { - return false - } - if this.Description != that1.Description { - return false - } - if this.OwnerEmail != that1.OwnerEmail { - return false - } - if len(this.Data) != len(that1.Data) { - return false - } - for i := range this.Data { - if this.Data[i] != that1.Data[i] { - return false - } +func (x *DomainReplicationConfiguration) Reset() { + *x = DomainReplicationConfiguration{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_domain_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return true } -func (this *DomainConfiguration) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*DomainConfiguration) - if !ok { - that2, ok := that.(DomainConfiguration) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.WorkflowExecutionRetentionPeriod != nil && that1.WorkflowExecutionRetentionPeriod != nil { - if *this.WorkflowExecutionRetentionPeriod != *that1.WorkflowExecutionRetentionPeriod { - return false - } - } else if this.WorkflowExecutionRetentionPeriod != nil { - return false - } else if that1.WorkflowExecutionRetentionPeriod != nil { - return false - } - if !this.BadBinaries.Equal(that1.BadBinaries) { - return false - } - if this.HistoryArchivalStatus != that1.HistoryArchivalStatus { - return false - } - if this.HistoryArchivalUri != that1.HistoryArchivalUri { - return false - } - if this.VisibilityArchivalStatus != that1.VisibilityArchivalStatus { - return false - } - if this.VisibilityArchivalUri != that1.VisibilityArchivalUri { - return false - } - return true +func (x *DomainReplicationConfiguration) String() string { + return protoimpl.X.MessageStringOf(x) } -func (this *ClusterReplicationConfiguration) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*ClusterReplicationConfiguration) - if !ok { - that2, ok := that.(ClusterReplicationConfiguration) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.ClusterName != that1.ClusterName { - return false - } - return true -} -func (this *DomainReplicationConfiguration) Equal(that interface{}) bool { - if that == nil { - return this == nil - } +func (*DomainReplicationConfiguration) ProtoMessage() {} - that1, ok := that.(*DomainReplicationConfiguration) - if !ok { - that2, ok := that.(DomainReplicationConfiguration) - if ok { - that1 = &that2 - } else { - return false +func (x *DomainReplicationConfiguration) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_domain_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.ActiveClusterName != that1.ActiveClusterName { - return false - } - if len(this.Clusters) != len(that1.Clusters) { - return false - } - for i := range this.Clusters { - if !this.Clusters[i].Equal(that1.Clusters[i]) { - return false - } - } - return true + return mi.MessageOf(x) } -func (this *BadBinaries) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*BadBinaries) - if !ok { - that2, ok := that.(BadBinaries) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if len(this.Binaries) != len(that1.Binaries) { - return false - } - for i := range this.Binaries { - if !this.Binaries[i].Equal(that1.Binaries[i]) { - return false - } - } - return true +// Deprecated: Use DomainReplicationConfiguration.ProtoReflect.Descriptor instead. +func (*DomainReplicationConfiguration) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_domain_proto_rawDescGZIP(), []int{3} } -func (this *BadBinaryInfo) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*BadBinaryInfo) - if !ok { - that2, ok := that.(BadBinaryInfo) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Reason != that1.Reason { - return false - } - if this.Operator != that1.Operator { - return false - } - if that1.CreatedTime == nil { - if this.CreatedTime != nil { - return false - } - } else if !this.CreatedTime.Equal(*that1.CreatedTime) { - return false - } - return true -} -func (this *DomainInfo) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 10) - s = append(s, "&apiv1.DomainInfo{") - s = append(s, "Id: "+fmt.Sprintf("%#v", this.Id)+",\n") - s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n") - s = append(s, "Status: "+fmt.Sprintf("%#v", this.Status)+",\n") - s = append(s, "Description: "+fmt.Sprintf("%#v", this.Description)+",\n") - s = append(s, "OwnerEmail: "+fmt.Sprintf("%#v", this.OwnerEmail)+",\n") - keysForData := make([]string, 0, len(this.Data)) - for k, _ := range this.Data { - keysForData = append(keysForData, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForData) - mapStringForData := "map[string]string{" - for _, k := range keysForData { - mapStringForData += fmt.Sprintf("%#v: %#v,", k, this.Data[k]) - } - mapStringForData += "}" - if this.Data != nil { - s = append(s, "Data: "+mapStringForData+",\n") +func (x *DomainReplicationConfiguration) GetActiveClusterName() string { + if x != nil { + return x.ActiveClusterName } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DomainConfiguration) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 10) - s = append(s, "&apiv1.DomainConfiguration{") - s = append(s, "WorkflowExecutionRetentionPeriod: "+fmt.Sprintf("%#v", this.WorkflowExecutionRetentionPeriod)+",\n") - if this.BadBinaries != nil { - s = append(s, "BadBinaries: "+fmt.Sprintf("%#v", this.BadBinaries)+",\n") - } - s = append(s, "HistoryArchivalStatus: "+fmt.Sprintf("%#v", this.HistoryArchivalStatus)+",\n") - s = append(s, "HistoryArchivalUri: "+fmt.Sprintf("%#v", this.HistoryArchivalUri)+",\n") - s = append(s, "VisibilityArchivalStatus: "+fmt.Sprintf("%#v", this.VisibilityArchivalStatus)+",\n") - s = append(s, "VisibilityArchivalUri: "+fmt.Sprintf("%#v", this.VisibilityArchivalUri)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ClusterReplicationConfiguration) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&apiv1.ClusterReplicationConfiguration{") - s = append(s, "ClusterName: "+fmt.Sprintf("%#v", this.ClusterName)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DomainReplicationConfiguration) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.DomainReplicationConfiguration{") - s = append(s, "ActiveClusterName: "+fmt.Sprintf("%#v", this.ActiveClusterName)+",\n") - if this.Clusters != nil { - s = append(s, "Clusters: "+fmt.Sprintf("%#v", this.Clusters)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *BadBinaries) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&apiv1.BadBinaries{") - keysForBinaries := make([]string, 0, len(this.Binaries)) - for k, _ := range this.Binaries { - keysForBinaries = append(keysForBinaries, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForBinaries) - mapStringForBinaries := "map[string]*BadBinaryInfo{" - for _, k := range keysForBinaries { - mapStringForBinaries += fmt.Sprintf("%#v: %#v,", k, this.Binaries[k]) - } - mapStringForBinaries += "}" - if this.Binaries != nil { - s = append(s, "Binaries: "+mapStringForBinaries+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *BadBinaryInfo) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&apiv1.BadBinaryInfo{") - s = append(s, "Reason: "+fmt.Sprintf("%#v", this.Reason)+",\n") - s = append(s, "Operator: "+fmt.Sprintf("%#v", this.Operator)+",\n") - s = append(s, "CreatedTime: "+fmt.Sprintf("%#v", this.CreatedTime)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func valueToGoStringDomain(v interface{}, typ string) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) -} -func (m *DomainInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DomainInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DomainInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Data) > 0 { - for k := range m.Data { - v := m.Data[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintDomain(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintDomain(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintDomain(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x32 - } - } - if len(m.OwnerEmail) > 0 { - i -= len(m.OwnerEmail) - copy(dAtA[i:], m.OwnerEmail) - i = encodeVarintDomain(dAtA, i, uint64(len(m.OwnerEmail))) - i-- - dAtA[i] = 0x2a - } - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintDomain(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x22 - } - if m.Status != 0 { - i = encodeVarintDomain(dAtA, i, uint64(m.Status)) - i-- - dAtA[i] = 0x18 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintDomain(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x12 - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintDomain(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return "" } -func (m *DomainConfiguration) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *DomainReplicationConfiguration) GetClusters() []*ClusterReplicationConfiguration { + if x != nil { + return x.Clusters } - return dAtA[:n], nil + return nil } -func (m *DomainConfiguration) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +type BadBinaries struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *DomainConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.VisibilityArchivalUri) > 0 { - i -= len(m.VisibilityArchivalUri) - copy(dAtA[i:], m.VisibilityArchivalUri) - i = encodeVarintDomain(dAtA, i, uint64(len(m.VisibilityArchivalUri))) - i-- - dAtA[i] = 0x32 - } - if m.VisibilityArchivalStatus != 0 { - i = encodeVarintDomain(dAtA, i, uint64(m.VisibilityArchivalStatus)) - i-- - dAtA[i] = 0x28 - } - if len(m.HistoryArchivalUri) > 0 { - i -= len(m.HistoryArchivalUri) - copy(dAtA[i:], m.HistoryArchivalUri) - i = encodeVarintDomain(dAtA, i, uint64(len(m.HistoryArchivalUri))) - i-- - dAtA[i] = 0x22 - } - if m.HistoryArchivalStatus != 0 { - i = encodeVarintDomain(dAtA, i, uint64(m.HistoryArchivalStatus)) - i-- - dAtA[i] = 0x18 - } - if m.BadBinaries != nil { - { - size, err := m.BadBinaries.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDomain(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.WorkflowExecutionRetentionPeriod != nil { - n2, err2 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.WorkflowExecutionRetentionPeriod, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.WorkflowExecutionRetentionPeriod):]) - if err2 != nil { - return 0, err2 - } - i -= n2 - i = encodeVarintDomain(dAtA, i, uint64(n2)) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + Binaries map[string]*BadBinaryInfo `protobuf:"bytes,1,rep,name=binaries,proto3" json:"binaries,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func (m *ClusterReplicationConfiguration) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *BadBinaries) Reset() { + *x = BadBinaries{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_domain_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return dAtA[:n], nil } -func (m *ClusterReplicationConfiguration) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *BadBinaries) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ClusterReplicationConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ClusterName) > 0 { - i -= len(m.ClusterName) - copy(dAtA[i:], m.ClusterName) - i = encodeVarintDomain(dAtA, i, uint64(len(m.ClusterName))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DomainReplicationConfiguration) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DomainReplicationConfiguration) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DomainReplicationConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Clusters) > 0 { - for iNdEx := len(m.Clusters) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Clusters[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDomain(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.ActiveClusterName) > 0 { - i -= len(m.ActiveClusterName) - copy(dAtA[i:], m.ActiveClusterName) - i = encodeVarintDomain(dAtA, i, uint64(len(m.ActiveClusterName))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} +func (*BadBinaries) ProtoMessage() {} -func (m *BadBinaries) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BadBinaries) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BadBinaries) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Binaries) > 0 { - for k := range m.Binaries { - v := m.Binaries[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDomain(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintDomain(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintDomain(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa +func (x *BadBinaries) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_domain_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return len(dAtA) - i, nil -} - -func (m *BadBinaryInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BadBinaryInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return mi.MessageOf(x) } -func (m *BadBinaryInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.CreatedTime != nil { - n4, err4 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.CreatedTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.CreatedTime):]) - if err4 != nil { - return 0, err4 - } - i -= n4 - i = encodeVarintDomain(dAtA, i, uint64(n4)) - i-- - dAtA[i] = 0x1a - } - if len(m.Operator) > 0 { - i -= len(m.Operator) - copy(dAtA[i:], m.Operator) - i = encodeVarintDomain(dAtA, i, uint64(len(m.Operator))) - i-- - dAtA[i] = 0x12 - } - if len(m.Reason) > 0 { - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintDomain(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +// Deprecated: Use BadBinaries.ProtoReflect.Descriptor instead. +func (*BadBinaries) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_domain_proto_rawDescGZIP(), []int{4} } -func encodeVarintDomain(dAtA []byte, offset int, v uint64) int { - offset -= sovDomain(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *DomainInfo) Size() (n int) { - if m == nil { - return 0 +func (x *BadBinaries) GetBinaries() map[string]*BadBinaryInfo { + if x != nil { + return x.Binaries } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovDomain(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovDomain(uint64(l)) - } - if m.Status != 0 { - n += 1 + sovDomain(uint64(m.Status)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovDomain(uint64(l)) - } - l = len(m.OwnerEmail) - if l > 0 { - n += 1 + l + sovDomain(uint64(l)) - } - if len(m.Data) > 0 { - for k, v := range m.Data { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovDomain(uint64(len(k))) + 1 + len(v) + sovDomain(uint64(len(v))) - n += mapEntrySize + 1 + sovDomain(uint64(mapEntrySize)) - } - } - return n + return nil } -func (m *DomainConfiguration) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.WorkflowExecutionRetentionPeriod != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.WorkflowExecutionRetentionPeriod) - n += 1 + l + sovDomain(uint64(l)) - } - if m.BadBinaries != nil { - l = m.BadBinaries.Size() - n += 1 + l + sovDomain(uint64(l)) - } - if m.HistoryArchivalStatus != 0 { - n += 1 + sovDomain(uint64(m.HistoryArchivalStatus)) - } - l = len(m.HistoryArchivalUri) - if l > 0 { - n += 1 + l + sovDomain(uint64(l)) - } - if m.VisibilityArchivalStatus != 0 { - n += 1 + sovDomain(uint64(m.VisibilityArchivalStatus)) - } - l = len(m.VisibilityArchivalUri) - if l > 0 { - n += 1 + l + sovDomain(uint64(l)) - } - return n -} +type BadBinaryInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ClusterReplicationConfiguration) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ClusterName) - if l > 0 { - n += 1 + l + sovDomain(uint64(l)) - } - return n + Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"` + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + CreatedTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_time,json=createdTime,proto3" json:"created_time,omitempty"` } -func (m *DomainReplicationConfiguration) Size() (n int) { - if m == nil { - return 0 +func (x *BadBinaryInfo) Reset() { + *x = BadBinaryInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_domain_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - var l int - _ = l - l = len(m.ActiveClusterName) - if l > 0 { - n += 1 + l + sovDomain(uint64(l)) - } - if len(m.Clusters) > 0 { - for _, e := range m.Clusters { - l = e.Size() - n += 1 + l + sovDomain(uint64(l)) - } - } - return n } -func (m *BadBinaries) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Binaries) > 0 { - for k, v := range m.Binaries { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovDomain(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovDomain(uint64(len(k))) + l - n += mapEntrySize + 1 + sovDomain(uint64(mapEntrySize)) - } - } - return n +func (x *BadBinaryInfo) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BadBinaryInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovDomain(uint64(l)) - } - l = len(m.Operator) - if l > 0 { - n += 1 + l + sovDomain(uint64(l)) - } - if m.CreatedTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.CreatedTime) - n += 1 + l + sovDomain(uint64(l)) - } - return n -} +func (*BadBinaryInfo) ProtoMessage() {} -func sovDomain(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozDomain(x uint64) (n int) { - return sovDomain(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *DomainInfo) String() string { - if this == nil { - return "nil" - } - keysForData := make([]string, 0, len(this.Data)) - for k, _ := range this.Data { - keysForData = append(keysForData, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForData) - mapStringForData := "map[string]string{" - for _, k := range keysForData { - mapStringForData += fmt.Sprintf("%v: %v,", k, this.Data[k]) - } - mapStringForData += "}" - s := strings.Join([]string{`&DomainInfo{`, - `Id:` + fmt.Sprintf("%v", this.Id) + `,`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Status:` + fmt.Sprintf("%v", this.Status) + `,`, - `Description:` + fmt.Sprintf("%v", this.Description) + `,`, - `OwnerEmail:` + fmt.Sprintf("%v", this.OwnerEmail) + `,`, - `Data:` + mapStringForData + `,`, - `}`, - }, "") - return s -} -func (this *DomainConfiguration) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DomainConfiguration{`, - `WorkflowExecutionRetentionPeriod:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecutionRetentionPeriod), "Duration", "duration.Duration", 1) + `,`, - `BadBinaries:` + strings.Replace(this.BadBinaries.String(), "BadBinaries", "BadBinaries", 1) + `,`, - `HistoryArchivalStatus:` + fmt.Sprintf("%v", this.HistoryArchivalStatus) + `,`, - `HistoryArchivalUri:` + fmt.Sprintf("%v", this.HistoryArchivalUri) + `,`, - `VisibilityArchivalStatus:` + fmt.Sprintf("%v", this.VisibilityArchivalStatus) + `,`, - `VisibilityArchivalUri:` + fmt.Sprintf("%v", this.VisibilityArchivalUri) + `,`, - `}`, - }, "") - return s -} -func (this *ClusterReplicationConfiguration) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ClusterReplicationConfiguration{`, - `ClusterName:` + fmt.Sprintf("%v", this.ClusterName) + `,`, - `}`, - }, "") - return s -} -func (this *DomainReplicationConfiguration) String() string { - if this == nil { - return "nil" - } - repeatedStringForClusters := "[]*ClusterReplicationConfiguration{" - for _, f := range this.Clusters { - repeatedStringForClusters += strings.Replace(f.String(), "ClusterReplicationConfiguration", "ClusterReplicationConfiguration", 1) + "," - } - repeatedStringForClusters += "}" - s := strings.Join([]string{`&DomainReplicationConfiguration{`, - `ActiveClusterName:` + fmt.Sprintf("%v", this.ActiveClusterName) + `,`, - `Clusters:` + repeatedStringForClusters + `,`, - `}`, - }, "") - return s -} -func (this *BadBinaries) String() string { - if this == nil { - return "nil" - } - keysForBinaries := make([]string, 0, len(this.Binaries)) - for k, _ := range this.Binaries { - keysForBinaries = append(keysForBinaries, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForBinaries) - mapStringForBinaries := "map[string]*BadBinaryInfo{" - for _, k := range keysForBinaries { - mapStringForBinaries += fmt.Sprintf("%v: %v,", k, this.Binaries[k]) - } - mapStringForBinaries += "}" - s := strings.Join([]string{`&BadBinaries{`, - `Binaries:` + mapStringForBinaries + `,`, - `}`, - }, "") - return s -} -func (this *BadBinaryInfo) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&BadBinaryInfo{`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Operator:` + fmt.Sprintf("%v", this.Operator) + `,`, - `CreatedTime:` + strings.Replace(fmt.Sprintf("%v", this.CreatedTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `}`, - }, "") - return s -} -func valueToStringDomain(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *DomainInfo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DomainInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DomainInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthDomain - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthDomain - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - m.Status = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Status |= DomainStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthDomain - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OwnerEmail", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthDomain - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.OwnerEmail = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDomain - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Data == nil { - m.Data = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthDomain - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthDomain - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthDomain - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthDomain - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipDomain(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthDomain - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Data[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipDomain(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthDomain - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthDomain - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy +func (x *BadBinaryInfo) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_domain_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil + return mi.MessageOf(x) } -func (m *DomainConfiguration) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DomainConfiguration: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DomainConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecutionRetentionPeriod", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDomain - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecutionRetentionPeriod == nil { - m.WorkflowExecutionRetentionPeriod = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.WorkflowExecutionRetentionPeriod, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BadBinaries", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDomain - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.BadBinaries == nil { - m.BadBinaries = &BadBinaries{} - } - if err := m.BadBinaries.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HistoryArchivalStatus", wireType) - } - m.HistoryArchivalStatus = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.HistoryArchivalStatus |= ArchivalStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HistoryArchivalUri", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthDomain - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HistoryArchivalUri = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field VisibilityArchivalStatus", wireType) - } - m.VisibilityArchivalStatus = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.VisibilityArchivalStatus |= ArchivalStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VisibilityArchivalUri", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthDomain - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VisibilityArchivalUri = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipDomain(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthDomain - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthDomain - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +// Deprecated: Use BadBinaryInfo.ProtoReflect.Descriptor instead. +func (*BadBinaryInfo) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_domain_proto_rawDescGZIP(), []int{5} } -func (m *ClusterReplicationConfiguration) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClusterReplicationConfiguration: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterReplicationConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthDomain - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipDomain(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthDomain - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthDomain - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *BadBinaryInfo) GetReason() string { + if x != nil { + return x.Reason } - return nil + return "" } -func (m *DomainReplicationConfiguration) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DomainReplicationConfiguration: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DomainReplicationConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActiveClusterName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthDomain - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ActiveClusterName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Clusters", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDomain - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Clusters = append(m.Clusters, &ClusterReplicationConfiguration{}) - if err := m.Clusters[len(m.Clusters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipDomain(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthDomain - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthDomain - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *BadBinaryInfo) GetOperator() string { + if x != nil { + return x.Operator } - return nil + return "" } -func (m *BadBinaries) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BadBinaries: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BadBinaries: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Binaries", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDomain - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Binaries == nil { - m.Binaries = make(map[string]*BadBinaryInfo) - } - var mapkey string - var mapvalue *BadBinaryInfo - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthDomain - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthDomain - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthDomain - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthDomain - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &BadBinaryInfo{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipDomain(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthDomain - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Binaries[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipDomain(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthDomain - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthDomain - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *BadBinaryInfo) GetCreatedTime() *timestamppb.Timestamp { + if x != nil { + return x.CreatedTime } return nil } -func (m *BadBinaryInfo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BadBinaryInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BadBinaryInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthDomain - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthDomain - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Operator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreatedTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDomain - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CreatedTime == nil { - m.CreatedTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.CreatedTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipDomain(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthDomain - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthDomain - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipDomain(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowDomain - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowDomain - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowDomain - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthDomain - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupDomain - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthDomain - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF +var File_uber_cadence_api_v1_domain_proto protoreflect.FileDescriptor + +var file_uber_cadence_api_v1_domain_proto_rawDesc = []byte{ + 0x0a, 0x20, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x13, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa6, 0x02, 0x0a, 0x0a, 0x44, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x39, 0x0a, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x6f, 0x77, 0x6e, 0x65, + 0x72, 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6f, + 0x77, 0x6e, 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x3d, 0x0a, 0x04, 0x64, 0x61, 0x74, + 0x61, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x37, 0x0a, 0x09, 0x44, 0x61, 0x74, 0x61, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, + 0x01, 0x22, 0xee, 0x03, 0x0a, 0x13, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x68, 0x0a, 0x23, 0x77, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x20, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x65, 0x72, + 0x69, 0x6f, 0x64, 0x12, 0x43, 0x0a, 0x0c, 0x62, 0x61, 0x64, 0x5f, 0x62, 0x69, 0x6e, 0x61, 0x72, + 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x42, 0x61, 0x64, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x69, 0x65, 0x73, 0x52, 0x0b, 0x62, 0x61, 0x64, + 0x42, 0x69, 0x6e, 0x61, 0x72, 0x69, 0x65, 0x73, 0x12, 0x5b, 0x0a, 0x17, 0x68, 0x69, 0x73, 0x74, + 0x6f, 0x72, 0x79, 0x5f, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x15, + 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x61, 0x6c, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, + 0x5f, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x61, 0x6c, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x12, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x41, 0x72, 0x63, 0x68, + 0x69, 0x76, 0x61, 0x6c, 0x55, 0x72, 0x69, 0x12, 0x61, 0x0a, 0x1a, 0x76, 0x69, 0x73, 0x69, 0x62, + 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x61, 0x6c, 0x5f, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x52, 0x18, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x41, 0x72, 0x63, 0x68, + 0x69, 0x76, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x76, 0x69, + 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x61, + 0x6c, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x76, 0x69, 0x73, + 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x61, 0x6c, 0x55, + 0x72, 0x69, 0x22, 0x44, 0x0a, 0x1f, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xa2, 0x01, 0x0a, 0x1e, 0x44, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2e, 0x0a, 0x13, 0x61, + 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, + 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x50, 0x0a, 0x08, 0x63, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x22, 0xba, 0x01, + 0x0a, 0x0b, 0x42, 0x61, 0x64, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x69, 0x65, 0x73, 0x12, 0x4a, 0x0a, + 0x08, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x2e, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x64, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x69, 0x65, + 0x73, 0x2e, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, + 0x08, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x69, 0x65, 0x73, 0x1a, 0x5f, 0x0a, 0x0d, 0x42, 0x69, 0x6e, + 0x61, 0x72, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x38, 0x0a, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x42, 0x61, 0x64, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x82, 0x01, 0x0a, 0x0d, 0x42, + 0x61, 0x64, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x0a, 0x06, + 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, + 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, + 0x12, 0x3d, 0x0a, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x52, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x2a, + 0x80, 0x01, 0x0a, 0x0c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x12, 0x19, 0x0a, 0x15, 0x44, 0x4f, 0x4d, 0x41, 0x49, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, + 0x53, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x1c, 0x0a, 0x18, 0x44, + 0x4f, 0x4d, 0x41, 0x49, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x52, 0x45, 0x47, + 0x49, 0x53, 0x54, 0x45, 0x52, 0x45, 0x44, 0x10, 0x01, 0x12, 0x1c, 0x0a, 0x18, 0x44, 0x4f, 0x4d, + 0x41, 0x49, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x44, 0x45, 0x50, 0x52, 0x45, + 0x43, 0x41, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, 0x19, 0x0a, 0x15, 0x44, 0x4f, 0x4d, 0x41, 0x49, + 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x44, + 0x10, 0x03, 0x2a, 0x68, 0x0a, 0x0e, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x61, 0x6c, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x12, 0x1b, 0x0a, 0x17, 0x41, 0x52, 0x43, 0x48, 0x49, 0x56, 0x41, 0x4c, + 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, + 0x00, 0x12, 0x1c, 0x0a, 0x18, 0x41, 0x52, 0x43, 0x48, 0x49, 0x56, 0x41, 0x4c, 0x5f, 0x53, 0x54, + 0x41, 0x54, 0x55, 0x53, 0x5f, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, + 0x1b, 0x0a, 0x17, 0x41, 0x52, 0x43, 0x48, 0x49, 0x56, 0x41, 0x4c, 0x5f, 0x53, 0x54, 0x41, 0x54, + 0x55, 0x53, 0x5f, 0x45, 0x4e, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x42, 0x56, 0x0a, 0x17, + 0x63, 0x6f, 0x6d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x42, 0x08, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, + 0x6f, 0x50, 0x01, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x2e, 0x67, 0x65, + 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x3b, 0x61, + 0x70, 0x69, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - ErrInvalidLengthDomain = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowDomain = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupDomain = fmt.Errorf("proto: unexpected end of group") + file_uber_cadence_api_v1_domain_proto_rawDescOnce sync.Once + file_uber_cadence_api_v1_domain_proto_rawDescData = file_uber_cadence_api_v1_domain_proto_rawDesc ) + +func file_uber_cadence_api_v1_domain_proto_rawDescGZIP() []byte { + file_uber_cadence_api_v1_domain_proto_rawDescOnce.Do(func() { + file_uber_cadence_api_v1_domain_proto_rawDescData = protoimpl.X.CompressGZIP(file_uber_cadence_api_v1_domain_proto_rawDescData) + }) + return file_uber_cadence_api_v1_domain_proto_rawDescData +} + +var file_uber_cadence_api_v1_domain_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_uber_cadence_api_v1_domain_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_uber_cadence_api_v1_domain_proto_goTypes = []interface{}{ + (DomainStatus)(0), // 0: uber.cadence.api.v1.DomainStatus + (ArchivalStatus)(0), // 1: uber.cadence.api.v1.ArchivalStatus + (*DomainInfo)(nil), // 2: uber.cadence.api.v1.DomainInfo + (*DomainConfiguration)(nil), // 3: uber.cadence.api.v1.DomainConfiguration + (*ClusterReplicationConfiguration)(nil), // 4: uber.cadence.api.v1.ClusterReplicationConfiguration + (*DomainReplicationConfiguration)(nil), // 5: uber.cadence.api.v1.DomainReplicationConfiguration + (*BadBinaries)(nil), // 6: uber.cadence.api.v1.BadBinaries + (*BadBinaryInfo)(nil), // 7: uber.cadence.api.v1.BadBinaryInfo + nil, // 8: uber.cadence.api.v1.DomainInfo.DataEntry + nil, // 9: uber.cadence.api.v1.BadBinaries.BinariesEntry + (*durationpb.Duration)(nil), // 10: google.protobuf.Duration + (*timestamppb.Timestamp)(nil), // 11: google.protobuf.Timestamp +} +var file_uber_cadence_api_v1_domain_proto_depIdxs = []int32{ + 0, // 0: uber.cadence.api.v1.DomainInfo.status:type_name -> uber.cadence.api.v1.DomainStatus + 8, // 1: uber.cadence.api.v1.DomainInfo.data:type_name -> uber.cadence.api.v1.DomainInfo.DataEntry + 10, // 2: uber.cadence.api.v1.DomainConfiguration.workflow_execution_retention_period:type_name -> google.protobuf.Duration + 6, // 3: uber.cadence.api.v1.DomainConfiguration.bad_binaries:type_name -> uber.cadence.api.v1.BadBinaries + 1, // 4: uber.cadence.api.v1.DomainConfiguration.history_archival_status:type_name -> uber.cadence.api.v1.ArchivalStatus + 1, // 5: uber.cadence.api.v1.DomainConfiguration.visibility_archival_status:type_name -> uber.cadence.api.v1.ArchivalStatus + 4, // 6: uber.cadence.api.v1.DomainReplicationConfiguration.clusters:type_name -> uber.cadence.api.v1.ClusterReplicationConfiguration + 9, // 7: uber.cadence.api.v1.BadBinaries.binaries:type_name -> uber.cadence.api.v1.BadBinaries.BinariesEntry + 11, // 8: uber.cadence.api.v1.BadBinaryInfo.created_time:type_name -> google.protobuf.Timestamp + 7, // 9: uber.cadence.api.v1.BadBinaries.BinariesEntry.value:type_name -> uber.cadence.api.v1.BadBinaryInfo + 10, // [10:10] is the sub-list for method output_type + 10, // [10:10] is the sub-list for method input_type + 10, // [10:10] is the sub-list for extension type_name + 10, // [10:10] is the sub-list for extension extendee + 0, // [0:10] is the sub-list for field type_name +} + +func init() { file_uber_cadence_api_v1_domain_proto_init() } +func file_uber_cadence_api_v1_domain_proto_init() { + if File_uber_cadence_api_v1_domain_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_uber_cadence_api_v1_domain_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DomainInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_domain_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DomainConfiguration); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_domain_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ClusterReplicationConfiguration); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_domain_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DomainReplicationConfiguration); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_domain_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BadBinaries); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_domain_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BadBinaryInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_uber_cadence_api_v1_domain_proto_rawDesc, + NumEnums: 2, + NumMessages: 8, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_uber_cadence_api_v1_domain_proto_goTypes, + DependencyIndexes: file_uber_cadence_api_v1_domain_proto_depIdxs, + EnumInfos: file_uber_cadence_api_v1_domain_proto_enumTypes, + MessageInfos: file_uber_cadence_api_v1_domain_proto_msgTypes, + }.Build() + File_uber_cadence_api_v1_domain_proto = out.File + file_uber_cadence_api_v1_domain_proto_rawDesc = nil + file_uber_cadence_api_v1_domain_proto_goTypes = nil + file_uber_cadence_api_v1_domain_proto_depIdxs = nil +} diff --git a/.gen/proto/api/v1/error.pb.go b/.gen/proto/api/v1/error.pb.go index 55952898d4a..df88d781eab 100644 --- a/.gen/proto/api/v1/error.pb.go +++ b/.gen/proto/api/v1/error.pb.go @@ -1,215 +1,229 @@ -// The MIT License (MIT) - -// Copyright (c) 2017-2020 Uber Technologies Inc. - +// 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 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. +// 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. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.14.0 // source: uber/cadence/api/v1/error.proto package apiv1 import ( - bytes "bytes" - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" reflect "reflect" - strings "strings" + sync "sync" - proto "github.com/gogo/protobuf/proto" + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// 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 +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type WorkflowExecutionAlreadyStartedError struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + StartRequestId string `protobuf:"bytes,1,opt,name=start_request_id,json=startRequestId,proto3" json:"start_request_id,omitempty"` RunId string `protobuf:"bytes,2,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` } -func (m *WorkflowExecutionAlreadyStartedError) Reset() { *m = WorkflowExecutionAlreadyStartedError{} } -func (*WorkflowExecutionAlreadyStartedError) ProtoMessage() {} -func (*WorkflowExecutionAlreadyStartedError) Descriptor() ([]byte, []int) { - return fileDescriptor_c8f91786c9aff272, []int{0} -} -func (m *WorkflowExecutionAlreadyStartedError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowExecutionAlreadyStartedError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowExecutionAlreadyStartedError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *WorkflowExecutionAlreadyStartedError) Reset() { + *x = WorkflowExecutionAlreadyStartedError{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_error_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *WorkflowExecutionAlreadyStartedError) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowExecutionAlreadyStartedError.Merge(m, src) -} -func (m *WorkflowExecutionAlreadyStartedError) XXX_Size() int { - return m.Size() + +func (x *WorkflowExecutionAlreadyStartedError) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WorkflowExecutionAlreadyStartedError) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowExecutionAlreadyStartedError.DiscardUnknown(m) + +func (*WorkflowExecutionAlreadyStartedError) ProtoMessage() {} + +func (x *WorkflowExecutionAlreadyStartedError) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_error_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WorkflowExecutionAlreadyStartedError proto.InternalMessageInfo +// Deprecated: Use WorkflowExecutionAlreadyStartedError.ProtoReflect.Descriptor instead. +func (*WorkflowExecutionAlreadyStartedError) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_error_proto_rawDescGZIP(), []int{0} +} -func (m *WorkflowExecutionAlreadyStartedError) GetStartRequestId() string { - if m != nil { - return m.StartRequestId +func (x *WorkflowExecutionAlreadyStartedError) GetStartRequestId() string { + if x != nil { + return x.StartRequestId } return "" } -func (m *WorkflowExecutionAlreadyStartedError) GetRunId() string { - if m != nil { - return m.RunId +func (x *WorkflowExecutionAlreadyStartedError) GetRunId() string { + if x != nil { + return x.RunId } return "" } type EntityNotExistsError struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + CurrentCluster string `protobuf:"bytes,1,opt,name=current_cluster,json=currentCluster,proto3" json:"current_cluster,omitempty"` ActiveCluster string `protobuf:"bytes,2,opt,name=active_cluster,json=activeCluster,proto3" json:"active_cluster,omitempty"` } -func (m *EntityNotExistsError) Reset() { *m = EntityNotExistsError{} } -func (*EntityNotExistsError) ProtoMessage() {} -func (*EntityNotExistsError) Descriptor() ([]byte, []int) { - return fileDescriptor_c8f91786c9aff272, []int{1} -} -func (m *EntityNotExistsError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EntityNotExistsError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EntityNotExistsError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *EntityNotExistsError) Reset() { + *x = EntityNotExistsError{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_error_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *EntityNotExistsError) XXX_Merge(src proto.Message) { - xxx_messageInfo_EntityNotExistsError.Merge(m, src) -} -func (m *EntityNotExistsError) XXX_Size() int { - return m.Size() + +func (x *EntityNotExistsError) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *EntityNotExistsError) XXX_DiscardUnknown() { - xxx_messageInfo_EntityNotExistsError.DiscardUnknown(m) + +func (*EntityNotExistsError) ProtoMessage() {} + +func (x *EntityNotExistsError) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_error_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_EntityNotExistsError proto.InternalMessageInfo +// Deprecated: Use EntityNotExistsError.ProtoReflect.Descriptor instead. +func (*EntityNotExistsError) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_error_proto_rawDescGZIP(), []int{1} +} -func (m *EntityNotExistsError) GetCurrentCluster() string { - if m != nil { - return m.CurrentCluster +func (x *EntityNotExistsError) GetCurrentCluster() string { + if x != nil { + return x.CurrentCluster } return "" } -func (m *EntityNotExistsError) GetActiveCluster() string { - if m != nil { - return m.ActiveCluster +func (x *EntityNotExistsError) GetActiveCluster() string { + if x != nil { + return x.ActiveCluster } return "" } type DomainNotActiveError struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` CurrentCluster string `protobuf:"bytes,2,opt,name=current_cluster,json=currentCluster,proto3" json:"current_cluster,omitempty"` ActiveCluster string `protobuf:"bytes,3,opt,name=active_cluster,json=activeCluster,proto3" json:"active_cluster,omitempty"` } -func (m *DomainNotActiveError) Reset() { *m = DomainNotActiveError{} } -func (*DomainNotActiveError) ProtoMessage() {} -func (*DomainNotActiveError) Descriptor() ([]byte, []int) { - return fileDescriptor_c8f91786c9aff272, []int{2} -} -func (m *DomainNotActiveError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DomainNotActiveError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DomainNotActiveError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *DomainNotActiveError) Reset() { + *x = DomainNotActiveError{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_error_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *DomainNotActiveError) XXX_Merge(src proto.Message) { - xxx_messageInfo_DomainNotActiveError.Merge(m, src) -} -func (m *DomainNotActiveError) XXX_Size() int { - return m.Size() + +func (x *DomainNotActiveError) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DomainNotActiveError) XXX_DiscardUnknown() { - xxx_messageInfo_DomainNotActiveError.DiscardUnknown(m) + +func (*DomainNotActiveError) ProtoMessage() {} + +func (x *DomainNotActiveError) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_error_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DomainNotActiveError proto.InternalMessageInfo +// Deprecated: Use DomainNotActiveError.ProtoReflect.Descriptor instead. +func (*DomainNotActiveError) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_error_proto_rawDescGZIP(), []int{2} +} -func (m *DomainNotActiveError) GetDomain() string { - if m != nil { - return m.Domain +func (x *DomainNotActiveError) GetDomain() string { + if x != nil { + return x.Domain } return "" } -func (m *DomainNotActiveError) GetCurrentCluster() string { - if m != nil { - return m.CurrentCluster +func (x *DomainNotActiveError) GetCurrentCluster() string { + if x != nil { + return x.CurrentCluster } return "" } -func (m *DomainNotActiveError) GetActiveCluster() string { - if m != nil { - return m.ActiveCluster +func (x *DomainNotActiveError) GetActiveCluster() string { + if x != nil { + return x.ActiveCluster } return "" } type RetryTaskV2Error struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + DomainId string `protobuf:"bytes,1,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` WorkflowExecution *WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` StartEventId int64 `protobuf:"varint,3,opt,name=start_event_id,json=startEventId,proto3" json:"start_event_id,omitempty"` @@ -218,3145 +232,810 @@ type RetryTaskV2Error struct { EndEventVersion int64 `protobuf:"varint,6,opt,name=end_event_version,json=endEventVersion,proto3" json:"end_event_version,omitempty"` } -func (m *RetryTaskV2Error) Reset() { *m = RetryTaskV2Error{} } -func (*RetryTaskV2Error) ProtoMessage() {} -func (*RetryTaskV2Error) Descriptor() ([]byte, []int) { - return fileDescriptor_c8f91786c9aff272, []int{3} -} -func (m *RetryTaskV2Error) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RetryTaskV2Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RetryTaskV2Error.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RetryTaskV2Error) Reset() { + *x = RetryTaskV2Error{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_error_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RetryTaskV2Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_RetryTaskV2Error.Merge(m, src) -} -func (m *RetryTaskV2Error) XXX_Size() int { - return m.Size() + +func (x *RetryTaskV2Error) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RetryTaskV2Error) XXX_DiscardUnknown() { - xxx_messageInfo_RetryTaskV2Error.DiscardUnknown(m) + +func (*RetryTaskV2Error) ProtoMessage() {} + +func (x *RetryTaskV2Error) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_error_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RetryTaskV2Error proto.InternalMessageInfo +// Deprecated: Use RetryTaskV2Error.ProtoReflect.Descriptor instead. +func (*RetryTaskV2Error) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_error_proto_rawDescGZIP(), []int{3} +} -func (m *RetryTaskV2Error) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *RetryTaskV2Error) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } -func (m *RetryTaskV2Error) GetWorkflowExecution() *WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *RetryTaskV2Error) GetWorkflowExecution() *WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *RetryTaskV2Error) GetStartEventId() int64 { - if m != nil { - return m.StartEventId +func (x *RetryTaskV2Error) GetStartEventId() int64 { + if x != nil { + return x.StartEventId } return 0 } -func (m *RetryTaskV2Error) GetStartEventVersion() int64 { - if m != nil { - return m.StartEventVersion +func (x *RetryTaskV2Error) GetStartEventVersion() int64 { + if x != nil { + return x.StartEventVersion } return 0 } -func (m *RetryTaskV2Error) GetEndEventId() int64 { - if m != nil { - return m.EndEventId +func (x *RetryTaskV2Error) GetEndEventId() int64 { + if x != nil { + return x.EndEventId } return 0 } -func (m *RetryTaskV2Error) GetEndEventVersion() int64 { - if m != nil { - return m.EndEventVersion +func (x *RetryTaskV2Error) GetEndEventVersion() int64 { + if x != nil { + return x.EndEventVersion } return 0 } type ClientVersionNotSupportedError struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + FeatureVersion string `protobuf:"bytes,1,opt,name=feature_version,json=featureVersion,proto3" json:"feature_version,omitempty"` ClientImpl string `protobuf:"bytes,2,opt,name=client_impl,json=clientImpl,proto3" json:"client_impl,omitempty"` SupportedVersions string `protobuf:"bytes,3,opt,name=supported_versions,json=supportedVersions,proto3" json:"supported_versions,omitempty"` } -func (m *ClientVersionNotSupportedError) Reset() { *m = ClientVersionNotSupportedError{} } -func (*ClientVersionNotSupportedError) ProtoMessage() {} -func (*ClientVersionNotSupportedError) Descriptor() ([]byte, []int) { - return fileDescriptor_c8f91786c9aff272, []int{4} -} -func (m *ClientVersionNotSupportedError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ClientVersionNotSupportedError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ClientVersionNotSupportedError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ClientVersionNotSupportedError) Reset() { + *x = ClientVersionNotSupportedError{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_error_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ClientVersionNotSupportedError) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClientVersionNotSupportedError.Merge(m, src) -} -func (m *ClientVersionNotSupportedError) XXX_Size() int { - return m.Size() + +func (x *ClientVersionNotSupportedError) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ClientVersionNotSupportedError) XXX_DiscardUnknown() { - xxx_messageInfo_ClientVersionNotSupportedError.DiscardUnknown(m) + +func (*ClientVersionNotSupportedError) ProtoMessage() {} + +func (x *ClientVersionNotSupportedError) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_error_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ClientVersionNotSupportedError proto.InternalMessageInfo +// Deprecated: Use ClientVersionNotSupportedError.ProtoReflect.Descriptor instead. +func (*ClientVersionNotSupportedError) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_error_proto_rawDescGZIP(), []int{4} +} -func (m *ClientVersionNotSupportedError) GetFeatureVersion() string { - if m != nil { - return m.FeatureVersion +func (x *ClientVersionNotSupportedError) GetFeatureVersion() string { + if x != nil { + return x.FeatureVersion } return "" } -func (m *ClientVersionNotSupportedError) GetClientImpl() string { - if m != nil { - return m.ClientImpl +func (x *ClientVersionNotSupportedError) GetClientImpl() string { + if x != nil { + return x.ClientImpl } return "" } -func (m *ClientVersionNotSupportedError) GetSupportedVersions() string { - if m != nil { - return m.SupportedVersions +func (x *ClientVersionNotSupportedError) GetSupportedVersions() string { + if x != nil { + return x.SupportedVersions } return "" } type CurrentBranchChangedError struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + CurrentBranchToken []byte `protobuf:"bytes,1,opt,name=current_branch_token,json=currentBranchToken,proto3" json:"current_branch_token,omitempty"` } -func (m *CurrentBranchChangedError) Reset() { *m = CurrentBranchChangedError{} } -func (*CurrentBranchChangedError) ProtoMessage() {} -func (*CurrentBranchChangedError) Descriptor() ([]byte, []int) { - return fileDescriptor_c8f91786c9aff272, []int{5} -} -func (m *CurrentBranchChangedError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CurrentBranchChangedError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CurrentBranchChangedError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *CurrentBranchChangedError) Reset() { + *x = CurrentBranchChangedError{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_error_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *CurrentBranchChangedError) XXX_Merge(src proto.Message) { - xxx_messageInfo_CurrentBranchChangedError.Merge(m, src) -} -func (m *CurrentBranchChangedError) XXX_Size() int { - return m.Size() + +func (x *CurrentBranchChangedError) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CurrentBranchChangedError) XXX_DiscardUnknown() { - xxx_messageInfo_CurrentBranchChangedError.DiscardUnknown(m) + +func (*CurrentBranchChangedError) ProtoMessage() {} + +func (x *CurrentBranchChangedError) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_error_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CurrentBranchChangedError proto.InternalMessageInfo +// Deprecated: Use CurrentBranchChangedError.ProtoReflect.Descriptor instead. +func (*CurrentBranchChangedError) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_error_proto_rawDescGZIP(), []int{5} +} -func (m *CurrentBranchChangedError) GetCurrentBranchToken() []byte { - if m != nil { - return m.CurrentBranchToken +func (x *CurrentBranchChangedError) GetCurrentBranchToken() []byte { + if x != nil { + return x.CurrentBranchToken } return nil } type CancellationAlreadyRequestedError struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *CancellationAlreadyRequestedError) Reset() { *m = CancellationAlreadyRequestedError{} } -func (*CancellationAlreadyRequestedError) ProtoMessage() {} -func (*CancellationAlreadyRequestedError) Descriptor() ([]byte, []int) { - return fileDescriptor_c8f91786c9aff272, []int{6} -} -func (m *CancellationAlreadyRequestedError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CancellationAlreadyRequestedError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CancellationAlreadyRequestedError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *CancellationAlreadyRequestedError) Reset() { + *x = CancellationAlreadyRequestedError{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_error_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *CancellationAlreadyRequestedError) XXX_Merge(src proto.Message) { - xxx_messageInfo_CancellationAlreadyRequestedError.Merge(m, src) -} -func (m *CancellationAlreadyRequestedError) XXX_Size() int { - return m.Size() -} -func (m *CancellationAlreadyRequestedError) XXX_DiscardUnknown() { - xxx_messageInfo_CancellationAlreadyRequestedError.DiscardUnknown(m) -} - -var xxx_messageInfo_CancellationAlreadyRequestedError proto.InternalMessageInfo -type DomainAlreadyExistsError struct { +func (x *CancellationAlreadyRequestedError) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DomainAlreadyExistsError) Reset() { *m = DomainAlreadyExistsError{} } -func (*DomainAlreadyExistsError) ProtoMessage() {} -func (*DomainAlreadyExistsError) Descriptor() ([]byte, []int) { - return fileDescriptor_c8f91786c9aff272, []int{7} -} -func (m *DomainAlreadyExistsError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DomainAlreadyExistsError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DomainAlreadyExistsError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*CancellationAlreadyRequestedError) ProtoMessage() {} + +func (x *CancellationAlreadyRequestedError) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_error_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *DomainAlreadyExistsError) XXX_Merge(src proto.Message) { - xxx_messageInfo_DomainAlreadyExistsError.Merge(m, src) -} -func (m *DomainAlreadyExistsError) XXX_Size() int { - return m.Size() -} -func (m *DomainAlreadyExistsError) XXX_DiscardUnknown() { - xxx_messageInfo_DomainAlreadyExistsError.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_DomainAlreadyExistsError proto.InternalMessageInfo +// Deprecated: Use CancellationAlreadyRequestedError.ProtoReflect.Descriptor instead. +func (*CancellationAlreadyRequestedError) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_error_proto_rawDescGZIP(), []int{6} +} -type EventAlreadyStartedError struct { +type DomainAlreadyExistsError struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *EventAlreadyStartedError) Reset() { *m = EventAlreadyStartedError{} } -func (*EventAlreadyStartedError) ProtoMessage() {} -func (*EventAlreadyStartedError) Descriptor() ([]byte, []int) { - return fileDescriptor_c8f91786c9aff272, []int{8} -} -func (m *EventAlreadyStartedError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EventAlreadyStartedError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EventAlreadyStartedError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *DomainAlreadyExistsError) Reset() { + *x = DomainAlreadyExistsError{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_error_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *EventAlreadyStartedError) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventAlreadyStartedError.Merge(m, src) -} -func (m *EventAlreadyStartedError) XXX_Size() int { - return m.Size() -} -func (m *EventAlreadyStartedError) XXX_DiscardUnknown() { - xxx_messageInfo_EventAlreadyStartedError.DiscardUnknown(m) -} -var xxx_messageInfo_EventAlreadyStartedError proto.InternalMessageInfo - -type LimitExceededError struct { +func (x *DomainAlreadyExistsError) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LimitExceededError) Reset() { *m = LimitExceededError{} } -func (*LimitExceededError) ProtoMessage() {} -func (*LimitExceededError) Descriptor() ([]byte, []int) { - return fileDescriptor_c8f91786c9aff272, []int{9} -} -func (m *LimitExceededError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LimitExceededError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LimitExceededError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*DomainAlreadyExistsError) ProtoMessage() {} + +func (x *DomainAlreadyExistsError) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_error_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *LimitExceededError) XXX_Merge(src proto.Message) { - xxx_messageInfo_LimitExceededError.Merge(m, src) -} -func (m *LimitExceededError) XXX_Size() int { - return m.Size() -} -func (m *LimitExceededError) XXX_DiscardUnknown() { - xxx_messageInfo_LimitExceededError.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_LimitExceededError proto.InternalMessageInfo +// Deprecated: Use DomainAlreadyExistsError.ProtoReflect.Descriptor instead. +func (*DomainAlreadyExistsError) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_error_proto_rawDescGZIP(), []int{7} +} -type QueryFailedError struct { +type EventAlreadyStartedError struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *QueryFailedError) Reset() { *m = QueryFailedError{} } -func (*QueryFailedError) ProtoMessage() {} -func (*QueryFailedError) Descriptor() ([]byte, []int) { - return fileDescriptor_c8f91786c9aff272, []int{10} -} -func (m *QueryFailedError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryFailedError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryFailedError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *EventAlreadyStartedError) Reset() { + *x = EventAlreadyStartedError{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_error_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *QueryFailedError) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryFailedError.Merge(m, src) -} -func (m *QueryFailedError) XXX_Size() int { - return m.Size() -} -func (m *QueryFailedError) XXX_DiscardUnknown() { - xxx_messageInfo_QueryFailedError.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryFailedError proto.InternalMessageInfo -type RemoteSyncMatchedError struct { +func (x *EventAlreadyStartedError) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RemoteSyncMatchedError) Reset() { *m = RemoteSyncMatchedError{} } -func (*RemoteSyncMatchedError) ProtoMessage() {} -func (*RemoteSyncMatchedError) Descriptor() ([]byte, []int) { - return fileDescriptor_c8f91786c9aff272, []int{11} -} -func (m *RemoteSyncMatchedError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RemoteSyncMatchedError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RemoteSyncMatchedError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*EventAlreadyStartedError) ProtoMessage() {} + +func (x *EventAlreadyStartedError) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_error_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *RemoteSyncMatchedError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemoteSyncMatchedError.Merge(m, src) -} -func (m *RemoteSyncMatchedError) XXX_Size() int { - return m.Size() -} -func (m *RemoteSyncMatchedError) XXX_DiscardUnknown() { - xxx_messageInfo_RemoteSyncMatchedError.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_RemoteSyncMatchedError proto.InternalMessageInfo +// Deprecated: Use EventAlreadyStartedError.ProtoReflect.Descriptor instead. +func (*EventAlreadyStartedError) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_error_proto_rawDescGZIP(), []int{8} +} -type ServiceBusyError struct { +type LimitExceededError struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ServiceBusyError) Reset() { *m = ServiceBusyError{} } -func (*ServiceBusyError) ProtoMessage() {} -func (*ServiceBusyError) Descriptor() ([]byte, []int) { - return fileDescriptor_c8f91786c9aff272, []int{12} -} -func (m *ServiceBusyError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ServiceBusyError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ServiceBusyError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *LimitExceededError) Reset() { + *x = LimitExceededError{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_error_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ServiceBusyError) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServiceBusyError.Merge(m, src) -} -func (m *ServiceBusyError) XXX_Size() int { - return m.Size() -} -func (m *ServiceBusyError) XXX_DiscardUnknown() { - xxx_messageInfo_ServiceBusyError.DiscardUnknown(m) -} -var xxx_messageInfo_ServiceBusyError proto.InternalMessageInfo - -type ShardOwnershipLostError struct { +func (x *LimitExceededError) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ShardOwnershipLostError) Reset() { *m = ShardOwnershipLostError{} } -func (*ShardOwnershipLostError) ProtoMessage() {} -func (*ShardOwnershipLostError) Descriptor() ([]byte, []int) { - return fileDescriptor_c8f91786c9aff272, []int{13} -} -func (m *ShardOwnershipLostError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ShardOwnershipLostError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ShardOwnershipLostError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*LimitExceededError) ProtoMessage() {} + +func (x *LimitExceededError) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_error_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *ShardOwnershipLostError) XXX_Merge(src proto.Message) { - xxx_messageInfo_ShardOwnershipLostError.Merge(m, src) -} -func (m *ShardOwnershipLostError) XXX_Size() int { - return m.Size() -} -func (m *ShardOwnershipLostError) XXX_DiscardUnknown() { - xxx_messageInfo_ShardOwnershipLostError.DiscardUnknown(m) -} - -var xxx_messageInfo_ShardOwnershipLostError proto.InternalMessageInfo - -func init() { - proto.RegisterType((*WorkflowExecutionAlreadyStartedError)(nil), "uber.cadence.api.v1.WorkflowExecutionAlreadyStartedError") - proto.RegisterType((*EntityNotExistsError)(nil), "uber.cadence.api.v1.EntityNotExistsError") - proto.RegisterType((*DomainNotActiveError)(nil), "uber.cadence.api.v1.DomainNotActiveError") - proto.RegisterType((*RetryTaskV2Error)(nil), "uber.cadence.api.v1.RetryTaskV2Error") - proto.RegisterType((*ClientVersionNotSupportedError)(nil), "uber.cadence.api.v1.ClientVersionNotSupportedError") - proto.RegisterType((*CurrentBranchChangedError)(nil), "uber.cadence.api.v1.CurrentBranchChangedError") - proto.RegisterType((*CancellationAlreadyRequestedError)(nil), "uber.cadence.api.v1.CancellationAlreadyRequestedError") - proto.RegisterType((*DomainAlreadyExistsError)(nil), "uber.cadence.api.v1.DomainAlreadyExistsError") - proto.RegisterType((*EventAlreadyStartedError)(nil), "uber.cadence.api.v1.EventAlreadyStartedError") - proto.RegisterType((*LimitExceededError)(nil), "uber.cadence.api.v1.LimitExceededError") - proto.RegisterType((*QueryFailedError)(nil), "uber.cadence.api.v1.QueryFailedError") - proto.RegisterType((*RemoteSyncMatchedError)(nil), "uber.cadence.api.v1.RemoteSyncMatchedError") - proto.RegisterType((*ServiceBusyError)(nil), "uber.cadence.api.v1.ServiceBusyError") - proto.RegisterType((*ShardOwnershipLostError)(nil), "uber.cadence.api.v1.ShardOwnershipLostError") -} - -func init() { - proto.RegisterFile("github.com/uber/cadence/.gen/proto/api/v1/error.proto", fileDescriptor_c8f91786c9aff272) -} - -var fileDescriptor_c8f91786c9aff272 = []byte{ - // 680 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0xdf, 0x52, 0xd3, 0x40, - 0x14, 0xc6, 0x1b, 0x90, 0x0e, 0x1c, 0x10, 0x68, 0xa8, 0xfc, 0x73, 0x26, 0x60, 0x44, 0x61, 0x9c, - 0xb1, 0x15, 0x7c, 0x02, 0x5a, 0xeb, 0x4c, 0x67, 0x00, 0xb1, 0x45, 0x9c, 0xf1, 0xa6, 0x2e, 0x9b, - 0x03, 0xdd, 0x21, 0xc9, 0xc6, 0xcd, 0xa6, 0xa5, 0x37, 0x8e, 0x8f, 0xe0, 0xad, 0x6f, 0xe0, 0xf8, - 0x24, 0x5e, 0x72, 0xc9, 0xa5, 0x94, 0x1b, 0x2f, 0x79, 0x04, 0x27, 0xbb, 0x1b, 0xda, 0xd1, 0x5e, - 0x78, 0x99, 0xdf, 0xf7, 0xed, 0x77, 0x4e, 0x72, 0xce, 0x06, 0xd6, 0x92, 0x13, 0x14, 0x65, 0x4a, - 0x3c, 0x0c, 0x29, 0x96, 0x49, 0xc4, 0xca, 0x9d, 0xed, 0x32, 0x0a, 0xc1, 0x45, 0x29, 0x12, 0x5c, - 0x72, 0x7b, 0x21, 0x35, 0x94, 0x8c, 0xa1, 0x44, 0x22, 0x56, 0xea, 0x6c, 0xaf, 0xae, 0x8f, 0x3a, - 0x45, 0x79, 0x10, 0xf0, 0x50, 0x1f, 0x73, 0xcf, 0x60, 0xe3, 0x3d, 0x17, 0xe7, 0xa7, 0x3e, 0xef, - 0xd6, 0x2e, 0x90, 0x26, 0x92, 0xf1, 0x70, 0xd7, 0x17, 0x48, 0xbc, 0x5e, 0x53, 0x12, 0x21, 0xd1, - 0xab, 0xa5, 0x45, 0xec, 0x2d, 0x98, 0x8f, 0xd3, 0xe7, 0x96, 0xc0, 0x4f, 0x09, 0xc6, 0xb2, 0xc5, - 0xbc, 0x65, 0x6b, 0xdd, 0xda, 0x9a, 0x6a, 0xcc, 0x2a, 0xde, 0xd0, 0xb8, 0xee, 0xd9, 0x0f, 0x20, - 0x2f, 0x92, 0x30, 0xd5, 0xc7, 0x94, 0x3e, 0x21, 0x92, 0xb0, 0xee, 0xb9, 0xa7, 0x50, 0xac, 0x85, - 0x92, 0xc9, 0xde, 0x01, 0x97, 0xb5, 0x0b, 0x16, 0xcb, 0x58, 0x07, 0x6f, 0xc2, 0x1c, 0x4d, 0x84, - 0xc0, 0x50, 0xb6, 0xa8, 0x9f, 0xc4, 0x12, 0x45, 0x96, 0x6b, 0x70, 0x55, 0x53, 0xfb, 0x09, 0xcc, - 0x12, 0x2a, 0x59, 0x07, 0xef, 0x7c, 0x3a, 0xff, 0xbe, 0xa6, 0xc6, 0xe6, 0x7e, 0x86, 0xe2, 0x2b, - 0x1e, 0x10, 0x16, 0x1e, 0x70, 0xb9, 0xab, 0x14, 0x5d, 0x67, 0x11, 0xf2, 0x9e, 0xe2, 0x26, 0xde, - 0x3c, 0x8d, 0xaa, 0x3f, 0xf6, 0x9f, 0xf5, 0xc7, 0x47, 0xd5, 0xff, 0x31, 0x06, 0xf3, 0x0d, 0x94, - 0xa2, 0x77, 0x44, 0xe2, 0xf3, 0xe3, 0x1d, 0x5d, 0xfc, 0x21, 0x4c, 0xe9, 0x72, 0x83, 0xcf, 0x36, - 0xa9, 0x41, 0xdd, 0xb3, 0xdf, 0x81, 0xdd, 0x35, 0x23, 0x68, 0x61, 0x36, 0x03, 0xd5, 0xc4, 0xf4, - 0xce, 0xd3, 0xd2, 0x88, 0xb1, 0x96, 0xfe, 0x99, 0x58, 0xa3, 0xd0, 0xfd, 0x1b, 0xd9, 0x1b, 0xa0, - 0x27, 0xd3, 0xc2, 0x4e, 0xfa, 0x72, 0xcc, 0x53, 0xfd, 0x8e, 0x37, 0x66, 0x14, 0xad, 0xa5, 0xb0, - 0xee, 0xd9, 0x25, 0x58, 0x18, 0x76, 0x75, 0x50, 0xc4, 0x69, 0xf5, 0x7b, 0xca, 0x5a, 0x18, 0x58, - 0x8f, 0xb5, 0x60, 0xaf, 0xc3, 0x0c, 0x86, 0xde, 0x20, 0x73, 0x42, 0x19, 0x01, 0x43, 0x2f, 0x4b, - 0x7c, 0x06, 0x85, 0x81, 0x23, 0xcb, 0xcb, 0x2b, 0xdb, 0x5c, 0x66, 0x33, 0x69, 0xee, 0x37, 0x0b, - 0x9c, 0xaa, 0xcf, 0x06, 0xe4, 0x80, 0xcb, 0x66, 0x12, 0x45, 0x7c, 0xb0, 0x78, 0x9b, 0x30, 0x77, - 0x8a, 0x44, 0x26, 0x02, 0xef, 0xc2, 0xcc, 0x7e, 0x18, 0x9c, 0x75, 0xb6, 0x06, 0xd3, 0x54, 0x45, - 0xb5, 0x58, 0x10, 0xf9, 0x66, 0x88, 0xa0, 0x51, 0x3d, 0x88, 0x7c, 0xfb, 0x39, 0xd8, 0x71, 0x96, - 0x9d, 0x65, 0xc5, 0x66, 0x88, 0x85, 0x3b, 0xc5, 0xc4, 0xc5, 0xee, 0x3e, 0xac, 0x54, 0xf5, 0x06, - 0x54, 0x04, 0x09, 0x69, 0xbb, 0xda, 0x26, 0xe1, 0x59, 0xd6, 0xd5, 0x0b, 0x28, 0x66, 0x5b, 0x73, - 0xa2, 0xd4, 0x96, 0xe4, 0xe7, 0xa8, 0x5b, 0x9b, 0x69, 0xd8, 0x74, 0xf8, 0xe0, 0x51, 0xaa, 0xb8, - 0x8f, 0xe1, 0x51, 0x95, 0x84, 0x14, 0x7d, 0x9f, 0x0c, 0xdd, 0x31, 0x73, 0x6d, 0x4c, 0xac, 0xbb, - 0x0a, 0xcb, 0x7a, 0x79, 0x8d, 0x3c, 0x74, 0x51, 0x52, 0x4d, 0x7d, 0xbb, 0x11, 0xb7, 0xd3, 0x2d, - 0x82, 0xbd, 0xc7, 0x02, 0x26, 0x6b, 0x17, 0x14, 0xd1, 0xcb, 0xa8, 0x0d, 0xf3, 0x6f, 0x13, 0x14, - 0xbd, 0xd7, 0x84, 0xf9, 0x19, 0x5b, 0x86, 0xc5, 0x06, 0x06, 0x5c, 0x62, 0xb3, 0x17, 0xd2, 0x7d, - 0x22, 0x69, 0x7b, 0xc8, 0xdd, 0x44, 0xd1, 0x61, 0x14, 0x2b, 0x49, 0xdc, 0xd3, 0x6c, 0x05, 0x96, - 0x9a, 0x6d, 0x22, 0xbc, 0x37, 0xdd, 0x10, 0x45, 0xdc, 0x66, 0xd1, 0x1e, 0x8f, 0xa5, 0x92, 0x2a, - 0x1f, 0x2f, 0xaf, 0x9d, 0xdc, 0xd5, 0xb5, 0x93, 0xbb, 0xbd, 0x76, 0xac, 0x2f, 0x7d, 0xc7, 0xfa, - 0xde, 0x77, 0xac, 0x9f, 0x7d, 0xc7, 0xba, 0xec, 0x3b, 0xd6, 0xaf, 0xbe, 0x63, 0xfd, 0xee, 0x3b, - 0xb9, 0xdb, 0xbe, 0x63, 0x7d, 0xbd, 0x71, 0x72, 0x97, 0x37, 0x4e, 0xee, 0xea, 0xc6, 0xc9, 0xc1, - 0x12, 0xe5, 0xc1, 0xa8, 0x95, 0xae, 0x4c, 0xee, 0x46, 0xec, 0x30, 0xfd, 0x23, 0x1d, 0x5a, 0x1f, - 0x26, 0x48, 0xc4, 0x3a, 0xdb, 0x27, 0x79, 0xf5, 0x87, 0x7a, 0xf9, 0x27, 0x00, 0x00, 0xff, 0xff, - 0xde, 0x42, 0x85, 0xc3, 0xfb, 0x04, 0x00, 0x00, -} - -func (this *WorkflowExecutionAlreadyStartedError) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*WorkflowExecutionAlreadyStartedError) - if !ok { - that2, ok := that.(WorkflowExecutionAlreadyStartedError) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.StartRequestId != that1.StartRequestId { - return false - } - if this.RunId != that1.RunId { - return false - } - return true +// Deprecated: Use LimitExceededError.ProtoReflect.Descriptor instead. +func (*LimitExceededError) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_error_proto_rawDescGZIP(), []int{9} } -func (this *EntityNotExistsError) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*EntityNotExistsError) - if !ok { - that2, ok := that.(EntityNotExistsError) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.CurrentCluster != that1.CurrentCluster { - return false - } - if this.ActiveCluster != that1.ActiveCluster { - return false - } - return true +type QueryFailedError struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (this *DomainNotActiveError) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*DomainNotActiveError) - if !ok { - that2, ok := that.(DomainNotActiveError) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false +func (x *QueryFailedError) Reset() { + *x = QueryFailedError{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_error_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if this.CurrentCluster != that1.CurrentCluster { - return false - } - if this.ActiveCluster != that1.ActiveCluster { - return false - } - return true } -func (this *RetryTaskV2Error) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*RetryTaskV2Error) - if !ok { - that2, ok := that.(RetryTaskV2Error) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.DomainId != that1.DomainId { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if this.StartEventId != that1.StartEventId { - return false - } - if this.StartEventVersion != that1.StartEventVersion { - return false - } - if this.EndEventId != that1.EndEventId { - return false - } - if this.EndEventVersion != that1.EndEventVersion { - return false - } - return true +func (x *QueryFailedError) String() string { + return protoimpl.X.MessageStringOf(x) } -func (this *ClientVersionNotSupportedError) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*ClientVersionNotSupportedError) - if !ok { - that2, ok := that.(ClientVersionNotSupportedError) - if ok { - that1 = &that2 - } else { - return false +func (*QueryFailedError) ProtoMessage() {} + +func (x *QueryFailedError) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_error_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.FeatureVersion != that1.FeatureVersion { - return false - } - if this.ClientImpl != that1.ClientImpl { - return false - } - if this.SupportedVersions != that1.SupportedVersions { - return false - } - return true + return mi.MessageOf(x) } -func (this *CurrentBranchChangedError) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*CurrentBranchChangedError) - if !ok { - that2, ok := that.(CurrentBranchChangedError) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !bytes.Equal(this.CurrentBranchToken, that1.CurrentBranchToken) { - return false - } - return true +// Deprecated: Use QueryFailedError.ProtoReflect.Descriptor instead. +func (*QueryFailedError) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_error_proto_rawDescGZIP(), []int{10} } -func (this *CancellationAlreadyRequestedError) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*CancellationAlreadyRequestedError) - if !ok { - that2, ok := that.(CancellationAlreadyRequestedError) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true +type RemoteSyncMatchedError struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (this *DomainAlreadyExistsError) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*DomainAlreadyExistsError) - if !ok { - that2, ok := that.(DomainAlreadyExistsError) - if ok { - that1 = &that2 - } else { - return false - } +func (x *RemoteSyncMatchedError) Reset() { + *x = RemoteSyncMatchedError{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_error_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true } -func (this *EventAlreadyStartedError) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*EventAlreadyStartedError) - if !ok { - that2, ok := that.(EventAlreadyStartedError) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true +func (x *RemoteSyncMatchedError) String() string { + return protoimpl.X.MessageStringOf(x) } -func (this *LimitExceededError) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*LimitExceededError) - if !ok { - that2, ok := that.(LimitExceededError) - if ok { - that1 = &that2 - } else { - return false +func (*RemoteSyncMatchedError) ProtoMessage() {} + +func (x *RemoteSyncMatchedError) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_error_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true + return mi.MessageOf(x) } -func (this *QueryFailedError) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*QueryFailedError) - if !ok { - that2, ok := that.(QueryFailedError) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true +// Deprecated: Use RemoteSyncMatchedError.ProtoReflect.Descriptor instead. +func (*RemoteSyncMatchedError) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_error_proto_rawDescGZIP(), []int{11} } -func (this *RemoteSyncMatchedError) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*RemoteSyncMatchedError) - if !ok { - that2, ok := that.(RemoteSyncMatchedError) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true +type ServiceBusyError struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (this *ServiceBusyError) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*ServiceBusyError) - if !ok { - that2, ok := that.(ServiceBusyError) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false +func (x *ServiceBusyError) Reset() { + *x = ServiceBusyError{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_error_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return true } -func (this *ShardOwnershipLostError) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*ShardOwnershipLostError) - if !ok { - that2, ok := that.(ShardOwnershipLostError) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true +func (x *ServiceBusyError) String() string { + return protoimpl.X.MessageStringOf(x) } -func (this *WorkflowExecutionAlreadyStartedError) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.WorkflowExecutionAlreadyStartedError{") - s = append(s, "StartRequestId: "+fmt.Sprintf("%#v", this.StartRequestId)+",\n") - s = append(s, "RunId: "+fmt.Sprintf("%#v", this.RunId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *EntityNotExistsError) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.EntityNotExistsError{") - s = append(s, "CurrentCluster: "+fmt.Sprintf("%#v", this.CurrentCluster)+",\n") - s = append(s, "ActiveCluster: "+fmt.Sprintf("%#v", this.ActiveCluster)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DomainNotActiveError) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&apiv1.DomainNotActiveError{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - s = append(s, "CurrentCluster: "+fmt.Sprintf("%#v", this.CurrentCluster)+",\n") - s = append(s, "ActiveCluster: "+fmt.Sprintf("%#v", this.ActiveCluster)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RetryTaskV2Error) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 10) - s = append(s, "&apiv1.RetryTaskV2Error{") - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "StartEventId: "+fmt.Sprintf("%#v", this.StartEventId)+",\n") - s = append(s, "StartEventVersion: "+fmt.Sprintf("%#v", this.StartEventVersion)+",\n") - s = append(s, "EndEventId: "+fmt.Sprintf("%#v", this.EndEventId)+",\n") - s = append(s, "EndEventVersion: "+fmt.Sprintf("%#v", this.EndEventVersion)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ClientVersionNotSupportedError) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&apiv1.ClientVersionNotSupportedError{") - s = append(s, "FeatureVersion: "+fmt.Sprintf("%#v", this.FeatureVersion)+",\n") - s = append(s, "ClientImpl: "+fmt.Sprintf("%#v", this.ClientImpl)+",\n") - s = append(s, "SupportedVersions: "+fmt.Sprintf("%#v", this.SupportedVersions)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *CurrentBranchChangedError) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&apiv1.CurrentBranchChangedError{") - s = append(s, "CurrentBranchToken: "+fmt.Sprintf("%#v", this.CurrentBranchToken)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *CancellationAlreadyRequestedError) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&apiv1.CancellationAlreadyRequestedError{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DomainAlreadyExistsError) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&apiv1.DomainAlreadyExistsError{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *EventAlreadyStartedError) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&apiv1.EventAlreadyStartedError{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *LimitExceededError) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&apiv1.LimitExceededError{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *QueryFailedError) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&apiv1.QueryFailedError{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RemoteSyncMatchedError) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&apiv1.RemoteSyncMatchedError{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ServiceBusyError) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&apiv1.ServiceBusyError{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ShardOwnershipLostError) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&apiv1.ShardOwnershipLostError{") - s = append(s, "}") - return strings.Join(s, "") -} -func valueToGoStringError(v interface{}, typ string) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) -} -func (m *WorkflowExecutionAlreadyStartedError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + +func (*ServiceBusyError) ProtoMessage() {} + +func (x *ServiceBusyError) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_error_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return dAtA[:n], nil + return mi.MessageOf(x) } -func (m *WorkflowExecutionAlreadyStartedError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use ServiceBusyError.ProtoReflect.Descriptor instead. +func (*ServiceBusyError) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_error_proto_rawDescGZIP(), []int{12} } -func (m *WorkflowExecutionAlreadyStartedError) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RunId) > 0 { - i -= len(m.RunId) - copy(dAtA[i:], m.RunId) - i = encodeVarintError(dAtA, i, uint64(len(m.RunId))) - i-- - dAtA[i] = 0x12 - } - if len(m.StartRequestId) > 0 { - i -= len(m.StartRequestId) - copy(dAtA[i:], m.StartRequestId) - i = encodeVarintError(dAtA, i, uint64(len(m.StartRequestId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +type ShardOwnershipLostError struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *EntityNotExistsError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *ShardOwnershipLostError) Reset() { + *x = ShardOwnershipLostError{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_error_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return dAtA[:n], nil } -func (m *EntityNotExistsError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *ShardOwnershipLostError) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *EntityNotExistsError) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ActiveCluster) > 0 { - i -= len(m.ActiveCluster) - copy(dAtA[i:], m.ActiveCluster) - i = encodeVarintError(dAtA, i, uint64(len(m.ActiveCluster))) - i-- - dAtA[i] = 0x12 - } - if len(m.CurrentCluster) > 0 { - i -= len(m.CurrentCluster) - copy(dAtA[i:], m.CurrentCluster) - i = encodeVarintError(dAtA, i, uint64(len(m.CurrentCluster))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} +func (*ShardOwnershipLostError) ProtoMessage() {} -func (m *DomainNotActiveError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *ShardOwnershipLostError) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_error_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return dAtA[:n], nil + return mi.MessageOf(x) } -func (m *DomainNotActiveError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DomainNotActiveError) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ActiveCluster) > 0 { - i -= len(m.ActiveCluster) - copy(dAtA[i:], m.ActiveCluster) - i = encodeVarintError(dAtA, i, uint64(len(m.ActiveCluster))) - i-- - dAtA[i] = 0x1a - } - if len(m.CurrentCluster) > 0 { - i -= len(m.CurrentCluster) - copy(dAtA[i:], m.CurrentCluster) - i = encodeVarintError(dAtA, i, uint64(len(m.CurrentCluster))) - i-- - dAtA[i] = 0x12 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintError(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RetryTaskV2Error) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RetryTaskV2Error) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RetryTaskV2Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.EndEventVersion != 0 { - i = encodeVarintError(dAtA, i, uint64(m.EndEventVersion)) - i-- - dAtA[i] = 0x30 - } - if m.EndEventId != 0 { - i = encodeVarintError(dAtA, i, uint64(m.EndEventId)) - i-- - dAtA[i] = 0x28 - } - if m.StartEventVersion != 0 { - i = encodeVarintError(dAtA, i, uint64(m.StartEventVersion)) - i-- - dAtA[i] = 0x20 - } - if m.StartEventId != 0 { - i = encodeVarintError(dAtA, i, uint64(m.StartEventId)) - i-- - dAtA[i] = 0x18 - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintError(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintError(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ClientVersionNotSupportedError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ClientVersionNotSupportedError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ClientVersionNotSupportedError) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.SupportedVersions) > 0 { - i -= len(m.SupportedVersions) - copy(dAtA[i:], m.SupportedVersions) - i = encodeVarintError(dAtA, i, uint64(len(m.SupportedVersions))) - i-- - dAtA[i] = 0x1a - } - if len(m.ClientImpl) > 0 { - i -= len(m.ClientImpl) - copy(dAtA[i:], m.ClientImpl) - i = encodeVarintError(dAtA, i, uint64(len(m.ClientImpl))) - i-- - dAtA[i] = 0x12 - } - if len(m.FeatureVersion) > 0 { - i -= len(m.FeatureVersion) - copy(dAtA[i:], m.FeatureVersion) - i = encodeVarintError(dAtA, i, uint64(len(m.FeatureVersion))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *CurrentBranchChangedError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CurrentBranchChangedError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CurrentBranchChangedError) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.CurrentBranchToken) > 0 { - i -= len(m.CurrentBranchToken) - copy(dAtA[i:], m.CurrentBranchToken) - i = encodeVarintError(dAtA, i, uint64(len(m.CurrentBranchToken))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *CancellationAlreadyRequestedError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CancellationAlreadyRequestedError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CancellationAlreadyRequestedError) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *DomainAlreadyExistsError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DomainAlreadyExistsError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DomainAlreadyExistsError) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *EventAlreadyStartedError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EventAlreadyStartedError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventAlreadyStartedError) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *LimitExceededError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *LimitExceededError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LimitExceededError) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *QueryFailedError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryFailedError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryFailedError) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RemoteSyncMatchedError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RemoteSyncMatchedError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RemoteSyncMatchedError) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *ServiceBusyError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ServiceBusyError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ServiceBusyError) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *ShardOwnershipLostError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ShardOwnershipLostError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ShardOwnershipLostError) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func encodeVarintError(dAtA []byte, offset int, v uint64) int { - offset -= sovError(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *WorkflowExecutionAlreadyStartedError) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.StartRequestId) - if l > 0 { - n += 1 + l + sovError(uint64(l)) - } - l = len(m.RunId) - if l > 0 { - n += 1 + l + sovError(uint64(l)) - } - return n -} - -func (m *EntityNotExistsError) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.CurrentCluster) - if l > 0 { - n += 1 + l + sovError(uint64(l)) - } - l = len(m.ActiveCluster) - if l > 0 { - n += 1 + l + sovError(uint64(l)) - } - return n -} - -func (m *DomainNotActiveError) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovError(uint64(l)) - } - l = len(m.CurrentCluster) - if l > 0 { - n += 1 + l + sovError(uint64(l)) - } - l = len(m.ActiveCluster) - if l > 0 { - n += 1 + l + sovError(uint64(l)) - } - return n -} - -func (m *RetryTaskV2Error) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovError(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovError(uint64(l)) - } - if m.StartEventId != 0 { - n += 1 + sovError(uint64(m.StartEventId)) - } - if m.StartEventVersion != 0 { - n += 1 + sovError(uint64(m.StartEventVersion)) - } - if m.EndEventId != 0 { - n += 1 + sovError(uint64(m.EndEventId)) - } - if m.EndEventVersion != 0 { - n += 1 + sovError(uint64(m.EndEventVersion)) - } - return n -} - -func (m *ClientVersionNotSupportedError) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.FeatureVersion) - if l > 0 { - n += 1 + l + sovError(uint64(l)) - } - l = len(m.ClientImpl) - if l > 0 { - n += 1 + l + sovError(uint64(l)) - } - l = len(m.SupportedVersions) - if l > 0 { - n += 1 + l + sovError(uint64(l)) - } - return n -} - -func (m *CurrentBranchChangedError) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.CurrentBranchToken) - if l > 0 { - n += 1 + l + sovError(uint64(l)) - } - return n -} - -func (m *CancellationAlreadyRequestedError) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *DomainAlreadyExistsError) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *EventAlreadyStartedError) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *LimitExceededError) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *QueryFailedError) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RemoteSyncMatchedError) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *ServiceBusyError) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *ShardOwnershipLostError) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func sovError(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozError(x uint64) (n int) { - return sovError(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *WorkflowExecutionAlreadyStartedError) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&WorkflowExecutionAlreadyStartedError{`, - `StartRequestId:` + fmt.Sprintf("%v", this.StartRequestId) + `,`, - `RunId:` + fmt.Sprintf("%v", this.RunId) + `,`, - `}`, - }, "") - return s -} -func (this *EntityNotExistsError) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&EntityNotExistsError{`, - `CurrentCluster:` + fmt.Sprintf("%v", this.CurrentCluster) + `,`, - `ActiveCluster:` + fmt.Sprintf("%v", this.ActiveCluster) + `,`, - `}`, - }, "") - return s -} -func (this *DomainNotActiveError) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DomainNotActiveError{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `CurrentCluster:` + fmt.Sprintf("%v", this.CurrentCluster) + `,`, - `ActiveCluster:` + fmt.Sprintf("%v", this.ActiveCluster) + `,`, - `}`, - }, "") - return s -} -func (this *RetryTaskV2Error) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RetryTaskV2Error{`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "WorkflowExecution", 1) + `,`, - `StartEventId:` + fmt.Sprintf("%v", this.StartEventId) + `,`, - `StartEventVersion:` + fmt.Sprintf("%v", this.StartEventVersion) + `,`, - `EndEventId:` + fmt.Sprintf("%v", this.EndEventId) + `,`, - `EndEventVersion:` + fmt.Sprintf("%v", this.EndEventVersion) + `,`, - `}`, - }, "") - return s -} -func (this *ClientVersionNotSupportedError) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ClientVersionNotSupportedError{`, - `FeatureVersion:` + fmt.Sprintf("%v", this.FeatureVersion) + `,`, - `ClientImpl:` + fmt.Sprintf("%v", this.ClientImpl) + `,`, - `SupportedVersions:` + fmt.Sprintf("%v", this.SupportedVersions) + `,`, - `}`, - }, "") - return s -} -func (this *CurrentBranchChangedError) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CurrentBranchChangedError{`, - `CurrentBranchToken:` + fmt.Sprintf("%v", this.CurrentBranchToken) + `,`, - `}`, - }, "") - return s -} -func (this *CancellationAlreadyRequestedError) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CancellationAlreadyRequestedError{`, - `}`, - }, "") - return s -} -func (this *DomainAlreadyExistsError) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DomainAlreadyExistsError{`, - `}`, - }, "") - return s -} -func (this *EventAlreadyStartedError) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&EventAlreadyStartedError{`, - `}`, - }, "") - return s -} -func (this *LimitExceededError) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&LimitExceededError{`, - `}`, - }, "") - return s -} -func (this *QueryFailedError) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&QueryFailedError{`, - `}`, - }, "") - return s -} -func (this *RemoteSyncMatchedError) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RemoteSyncMatchedError{`, - `}`, - }, "") - return s -} -func (this *ServiceBusyError) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ServiceBusyError{`, - `}`, - }, "") - return s -} -func (this *ShardOwnershipLostError) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ShardOwnershipLostError{`, - `}`, - }, "") - return s -} -func valueToStringError(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *WorkflowExecutionAlreadyStartedError) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowError - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowExecutionAlreadyStartedError: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowExecutionAlreadyStartedError: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartRequestId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowError - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthError - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthError - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.StartRequestId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RunId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowError - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthError - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthError - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RunId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipError(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthError - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthError - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EntityNotExistsError) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowError - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EntityNotExistsError: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EntityNotExistsError: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentCluster", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowError - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthError - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthError - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CurrentCluster = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActiveCluster", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowError - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthError - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthError - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ActiveCluster = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipError(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthError - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthError - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DomainNotActiveError) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowError - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DomainNotActiveError: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DomainNotActiveError: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowError - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthError - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthError - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentCluster", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowError - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthError - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthError - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CurrentCluster = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActiveCluster", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowError - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthError - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthError - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ActiveCluster = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipError(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthError - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthError - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RetryTaskV2Error) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowError - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RetryTaskV2Error: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RetryTaskV2Error: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowError - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthError - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthError - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowError - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthError - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthError - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartEventId", wireType) - } - m.StartEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowError - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartEventVersion", wireType) - } - m.StartEventVersion = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowError - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartEventVersion |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EndEventId", wireType) - } - m.EndEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowError - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EndEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EndEventVersion", wireType) - } - m.EndEventVersion = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowError - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EndEventVersion |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipError(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthError - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthError - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ClientVersionNotSupportedError) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowError - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClientVersionNotSupportedError: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClientVersionNotSupportedError: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FeatureVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowError - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthError - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthError - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FeatureVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClientImpl", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowError - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthError - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthError - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClientImpl = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SupportedVersions", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowError - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthError - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthError - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SupportedVersions = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipError(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthError - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthError - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CurrentBranchChangedError) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowError - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CurrentBranchChangedError: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CurrentBranchChangedError: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentBranchToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowError - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthError - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthError - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CurrentBranchToken = append(m.CurrentBranchToken[:0], dAtA[iNdEx:postIndex]...) - if m.CurrentBranchToken == nil { - m.CurrentBranchToken = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipError(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthError - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthError - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CancellationAlreadyRequestedError) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowError - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CancellationAlreadyRequestedError: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CancellationAlreadyRequestedError: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipError(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthError - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthError - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DomainAlreadyExistsError) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowError - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DomainAlreadyExistsError: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DomainAlreadyExistsError: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipError(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthError - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthError - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EventAlreadyStartedError) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowError - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EventAlreadyStartedError: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EventAlreadyStartedError: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipError(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthError - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthError - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LimitExceededError) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowError - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LimitExceededError: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LimitExceededError: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipError(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthError - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthError - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryFailedError) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowError - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryFailedError: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryFailedError: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipError(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthError - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthError - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RemoteSyncMatchedError) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowError - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RemoteSyncMatchedError: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RemoteSyncMatchedError: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipError(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthError - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthError - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ServiceBusyError) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowError - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ServiceBusyError: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ServiceBusyError: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipError(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthError - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthError - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ShardOwnershipLostError) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowError - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ShardOwnershipLostError: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ShardOwnershipLostError: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipError(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthError - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthError - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipError(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowError - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowError - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowError - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthError - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupError - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthError - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF +// Deprecated: Use ShardOwnershipLostError.ProtoReflect.Descriptor instead. +func (*ShardOwnershipLostError) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_error_proto_rawDescGZIP(), []int{13} +} + +var File_uber_cadence_api_v1_error_proto protoreflect.FileDescriptor + +var file_uber_cadence_api_v1_error_proto_rawDesc = []byte{ + 0x0a, 0x1f, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x13, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x1a, 0x20, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, + 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x67, 0x0a, 0x24, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x6c, 0x72, + 0x65, 0x61, 0x64, 0x79, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x45, 0x72, 0x72, 0x6f, 0x72, + 0x12, 0x28, 0x0a, 0x10, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x74, 0x61, 0x72, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x75, + 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x75, 0x6e, 0x49, + 0x64, 0x22, 0x66, 0x0a, 0x14, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x4e, 0x6f, 0x74, 0x45, 0x78, + 0x69, 0x73, 0x74, 0x73, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x75, 0x72, + 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x63, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x63, 0x74, 0x69, + 0x76, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x22, 0x7e, 0x0a, 0x14, 0x44, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x4e, 0x6f, 0x74, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x45, 0x72, 0x72, 0x6f, + 0x72, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x75, 0x72, + 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x63, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x63, 0x74, 0x69, + 0x76, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x22, 0xaa, 0x02, 0x0a, 0x10, 0x52, 0x65, + 0x74, 0x72, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x56, 0x32, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1b, + 0x0a, 0x09, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x55, 0x0a, 0x12, 0x77, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x24, 0x0a, 0x0e, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x65, 0x76, 0x65, 0x6e, + 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x72, + 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x13, 0x73, 0x74, 0x61, 0x72, + 0x74, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x73, 0x74, 0x61, 0x72, 0x74, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0c, 0x65, 0x6e, 0x64, 0x5f, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, + 0x65, 0x6e, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x65, 0x6e, + 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x65, 0x6e, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x56, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x99, 0x01, 0x0a, 0x1e, 0x43, 0x6c, 0x69, 0x65, 0x6e, + 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x4e, 0x6f, 0x74, 0x53, 0x75, 0x70, 0x70, 0x6f, + 0x72, 0x74, 0x65, 0x64, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x66, 0x65, 0x61, + 0x74, 0x75, 0x72, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0e, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x6d, 0x70, + 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, + 0x6d, 0x70, 0x6c, 0x12, 0x2d, 0x0a, 0x12, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, + 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x11, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x22, 0x4d, 0x0a, 0x19, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x42, 0x72, 0x61, + 0x6e, 0x63, 0x68, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, + 0x30, 0x0a, 0x14, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, + 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x12, 0x63, + 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x22, 0x23, 0x0a, 0x21, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x41, 0x6c, 0x72, 0x65, 0x61, 0x64, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, + 0x64, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x1a, 0x0a, 0x18, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x41, 0x6c, 0x72, 0x65, 0x61, 0x64, 0x79, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x45, 0x72, 0x72, + 0x6f, 0x72, 0x22, 0x1a, 0x0a, 0x18, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x6c, 0x72, 0x65, 0x61, + 0x64, 0x79, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x14, + 0x0a, 0x12, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x45, 0x78, 0x63, 0x65, 0x65, 0x64, 0x65, 0x64, 0x45, + 0x72, 0x72, 0x6f, 0x72, 0x22, 0x12, 0x0a, 0x10, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x61, 0x69, + 0x6c, 0x65, 0x64, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x18, 0x0a, 0x16, 0x52, 0x65, 0x6d, 0x6f, + 0x74, 0x65, 0x53, 0x79, 0x6e, 0x63, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x45, 0x72, 0x72, + 0x6f, 0x72, 0x22, 0x12, 0x0a, 0x10, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x75, 0x73, + 0x79, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x19, 0x0a, 0x17, 0x53, 0x68, 0x61, 0x72, 0x64, 0x4f, + 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x4c, 0x6f, 0x73, 0x74, 0x45, 0x72, 0x72, 0x6f, + 0x72, 0x42, 0x56, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x42, 0x08, 0x41, 0x70, + 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2f, 0x2e, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x70, 0x69, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( - ErrInvalidLengthError = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowError = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupError = fmt.Errorf("proto: unexpected end of group") + file_uber_cadence_api_v1_error_proto_rawDescOnce sync.Once + file_uber_cadence_api_v1_error_proto_rawDescData = file_uber_cadence_api_v1_error_proto_rawDesc ) + +func file_uber_cadence_api_v1_error_proto_rawDescGZIP() []byte { + file_uber_cadence_api_v1_error_proto_rawDescOnce.Do(func() { + file_uber_cadence_api_v1_error_proto_rawDescData = protoimpl.X.CompressGZIP(file_uber_cadence_api_v1_error_proto_rawDescData) + }) + return file_uber_cadence_api_v1_error_proto_rawDescData +} + +var file_uber_cadence_api_v1_error_proto_msgTypes = make([]protoimpl.MessageInfo, 14) +var file_uber_cadence_api_v1_error_proto_goTypes = []interface{}{ + (*WorkflowExecutionAlreadyStartedError)(nil), // 0: uber.cadence.api.v1.WorkflowExecutionAlreadyStartedError + (*EntityNotExistsError)(nil), // 1: uber.cadence.api.v1.EntityNotExistsError + (*DomainNotActiveError)(nil), // 2: uber.cadence.api.v1.DomainNotActiveError + (*RetryTaskV2Error)(nil), // 3: uber.cadence.api.v1.RetryTaskV2Error + (*ClientVersionNotSupportedError)(nil), // 4: uber.cadence.api.v1.ClientVersionNotSupportedError + (*CurrentBranchChangedError)(nil), // 5: uber.cadence.api.v1.CurrentBranchChangedError + (*CancellationAlreadyRequestedError)(nil), // 6: uber.cadence.api.v1.CancellationAlreadyRequestedError + (*DomainAlreadyExistsError)(nil), // 7: uber.cadence.api.v1.DomainAlreadyExistsError + (*EventAlreadyStartedError)(nil), // 8: uber.cadence.api.v1.EventAlreadyStartedError + (*LimitExceededError)(nil), // 9: uber.cadence.api.v1.LimitExceededError + (*QueryFailedError)(nil), // 10: uber.cadence.api.v1.QueryFailedError + (*RemoteSyncMatchedError)(nil), // 11: uber.cadence.api.v1.RemoteSyncMatchedError + (*ServiceBusyError)(nil), // 12: uber.cadence.api.v1.ServiceBusyError + (*ShardOwnershipLostError)(nil), // 13: uber.cadence.api.v1.ShardOwnershipLostError + (*WorkflowExecution)(nil), // 14: uber.cadence.api.v1.WorkflowExecution +} +var file_uber_cadence_api_v1_error_proto_depIdxs = []int32{ + 14, // 0: uber.cadence.api.v1.RetryTaskV2Error.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_uber_cadence_api_v1_error_proto_init() } +func file_uber_cadence_api_v1_error_proto_init() { + if File_uber_cadence_api_v1_error_proto != nil { + return + } + file_uber_cadence_api_v1_common_proto_init() + if !protoimpl.UnsafeEnabled { + file_uber_cadence_api_v1_error_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowExecutionAlreadyStartedError); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_error_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EntityNotExistsError); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_error_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DomainNotActiveError); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_error_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RetryTaskV2Error); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_error_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ClientVersionNotSupportedError); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_error_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CurrentBranchChangedError); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_error_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CancellationAlreadyRequestedError); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_error_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DomainAlreadyExistsError); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_error_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventAlreadyStartedError); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_error_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LimitExceededError); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_error_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryFailedError); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_error_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemoteSyncMatchedError); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_error_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServiceBusyError); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_error_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ShardOwnershipLostError); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_uber_cadence_api_v1_error_proto_rawDesc, + NumEnums: 0, + NumMessages: 14, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_uber_cadence_api_v1_error_proto_goTypes, + DependencyIndexes: file_uber_cadence_api_v1_error_proto_depIdxs, + MessageInfos: file_uber_cadence_api_v1_error_proto_msgTypes, + }.Build() + File_uber_cadence_api_v1_error_proto = out.File + file_uber_cadence_api_v1_error_proto_rawDesc = nil + file_uber_cadence_api_v1_error_proto_goTypes = nil + file_uber_cadence_api_v1_error_proto_depIdxs = nil +} diff --git a/.gen/proto/api/v1/history.pb.go b/.gen/proto/api/v1/history.pb.go index 3001ae23fec..e16dd2cb0a2 100644 --- a/.gen/proto/api/v1/history.pb.go +++ b/.gen/proto/api/v1/history.pb.go @@ -1,133 +1,159 @@ -// The MIT License (MIT) - -// Copyright (c) 2017-2020 Uber Technologies Inc. - +// 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 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. +// 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. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.14.0 // source: uber/cadence/api/v1/history.proto package apiv1 import ( - bytes "bytes" - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" reflect "reflect" - strconv "strconv" - strings "strings" - time "time" - - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" - _ "github.com/golang/protobuf/ptypes/duration" - _ "github.com/golang/protobuf/ptypes/timestamp" + sync "sync" + + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf -var _ = time.Kitchen +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// 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 +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type EventFilterType int32 const ( - EVENT_FILTER_TYPE_INVALID EventFilterType = 0 - EVENT_FILTER_TYPE_ALL_EVENT EventFilterType = 1 - EVENT_FILTER_TYPE_CLOSE_EVENT EventFilterType = 2 + EventFilterType_EVENT_FILTER_TYPE_INVALID EventFilterType = 0 + EventFilterType_EVENT_FILTER_TYPE_ALL_EVENT EventFilterType = 1 + EventFilterType_EVENT_FILTER_TYPE_CLOSE_EVENT EventFilterType = 2 +) + +// Enum value maps for EventFilterType. +var ( + EventFilterType_name = map[int32]string{ + 0: "EVENT_FILTER_TYPE_INVALID", + 1: "EVENT_FILTER_TYPE_ALL_EVENT", + 2: "EVENT_FILTER_TYPE_CLOSE_EVENT", + } + EventFilterType_value = map[string]int32{ + "EVENT_FILTER_TYPE_INVALID": 0, + "EVENT_FILTER_TYPE_ALL_EVENT": 1, + "EVENT_FILTER_TYPE_CLOSE_EVENT": 2, + } ) -var EventFilterType_name = map[int32]string{ - 0: "EVENT_FILTER_TYPE_INVALID", - 1: "EVENT_FILTER_TYPE_ALL_EVENT", - 2: "EVENT_FILTER_TYPE_CLOSE_EVENT", +func (x EventFilterType) Enum() *EventFilterType { + p := new(EventFilterType) + *p = x + return p +} + +func (x EventFilterType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (EventFilterType) Descriptor() protoreflect.EnumDescriptor { + return file_uber_cadence_api_v1_history_proto_enumTypes[0].Descriptor() +} + +func (EventFilterType) Type() protoreflect.EnumType { + return &file_uber_cadence_api_v1_history_proto_enumTypes[0] } -var EventFilterType_value = map[string]int32{ - "EVENT_FILTER_TYPE_INVALID": 0, - "EVENT_FILTER_TYPE_ALL_EVENT": 1, - "EVENT_FILTER_TYPE_CLOSE_EVENT": 2, +func (x EventFilterType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use EventFilterType.Descriptor instead. func (EventFilterType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{0} + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{0} } type History struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Events []*HistoryEvent `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` } -func (m *History) Reset() { *m = History{} } -func (*History) ProtoMessage() {} -func (*History) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{0} -} -func (m *History) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *History) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_History.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *History) Reset() { + *x = History{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *History) XXX_Merge(src proto.Message) { - xxx_messageInfo_History.Merge(m, src) -} -func (m *History) XXX_Size() int { - return m.Size() + +func (x *History) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *History) XXX_DiscardUnknown() { - xxx_messageInfo_History.DiscardUnknown(m) + +func (*History) ProtoMessage() {} + +func (x *History) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_History proto.InternalMessageInfo +// Deprecated: Use History.ProtoReflect.Descriptor instead. +func (*History) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{0} +} -func (m *History) GetEvents() []*HistoryEvent { - if m != nil { - return m.Events +func (x *History) GetEvents() []*HistoryEvent { + if x != nil { + return x.Events } return nil } type HistoryEvent struct { - EventId int64 `protobuf:"varint,1,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"` - EventTime *time.Time `protobuf:"bytes,2,opt,name=event_time,json=eventTime,proto3,stdtime" json:"event_time,omitempty"` - Version int64 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` - TaskId int64 `protobuf:"varint,4,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` - // Types that are valid to be assigned to Attributes: + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + EventId int64 `protobuf:"varint,1,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"` + EventTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"` + Version int64 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` + TaskId int64 `protobuf:"varint,4,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` + // Types that are assignable to Attributes: // *HistoryEvent_WorkflowExecutionStartedEventAttributes // *HistoryEvent_WorkflowExecutionCompletedEventAttributes // *HistoryEvent_WorkflowExecutionFailedEventAttributes @@ -173,25386 +199,6278 @@ type HistoryEvent struct { Attributes isHistoryEvent_Attributes `protobuf_oneof:"attributes"` } -func (m *HistoryEvent) Reset() { *m = HistoryEvent{} } -func (*HistoryEvent) ProtoMessage() {} -func (*HistoryEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{1} -} -func (m *HistoryEvent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HistoryEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_HistoryEvent.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *HistoryEvent) Reset() { + *x = HistoryEvent{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *HistoryEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_HistoryEvent.Merge(m, src) -} -func (m *HistoryEvent) XXX_Size() int { - return m.Size() -} -func (m *HistoryEvent) XXX_DiscardUnknown() { - xxx_messageInfo_HistoryEvent.DiscardUnknown(m) + +func (x *HistoryEvent) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_HistoryEvent proto.InternalMessageInfo +func (*HistoryEvent) ProtoMessage() {} -type isHistoryEvent_Attributes interface { - isHistoryEvent_Attributes() - Equal(interface{}) bool - MarshalTo([]byte) (int, error) - Size() int +func (x *HistoryEvent) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type HistoryEvent_WorkflowExecutionStartedEventAttributes struct { - WorkflowExecutionStartedEventAttributes *WorkflowExecutionStartedEventAttributes `protobuf:"bytes,5,opt,name=workflow_execution_started_event_attributes,json=workflowExecutionStartedEventAttributes,proto3,oneof" json:"workflow_execution_started_event_attributes,omitempty"` -} -type HistoryEvent_WorkflowExecutionCompletedEventAttributes struct { - WorkflowExecutionCompletedEventAttributes *WorkflowExecutionCompletedEventAttributes `protobuf:"bytes,6,opt,name=workflow_execution_completed_event_attributes,json=workflowExecutionCompletedEventAttributes,proto3,oneof" json:"workflow_execution_completed_event_attributes,omitempty"` -} -type HistoryEvent_WorkflowExecutionFailedEventAttributes struct { - WorkflowExecutionFailedEventAttributes *WorkflowExecutionFailedEventAttributes `protobuf:"bytes,7,opt,name=workflow_execution_failed_event_attributes,json=workflowExecutionFailedEventAttributes,proto3,oneof" json:"workflow_execution_failed_event_attributes,omitempty"` -} -type HistoryEvent_WorkflowExecutionTimedOutEventAttributes struct { - WorkflowExecutionTimedOutEventAttributes *WorkflowExecutionTimedOutEventAttributes `protobuf:"bytes,8,opt,name=workflow_execution_timed_out_event_attributes,json=workflowExecutionTimedOutEventAttributes,proto3,oneof" json:"workflow_execution_timed_out_event_attributes,omitempty"` -} -type HistoryEvent_DecisionTaskScheduledEventAttributes struct { - DecisionTaskScheduledEventAttributes *DecisionTaskScheduledEventAttributes `protobuf:"bytes,9,opt,name=decision_task_scheduled_event_attributes,json=decisionTaskScheduledEventAttributes,proto3,oneof" json:"decision_task_scheduled_event_attributes,omitempty"` -} -type HistoryEvent_DecisionTaskStartedEventAttributes struct { - DecisionTaskStartedEventAttributes *DecisionTaskStartedEventAttributes `protobuf:"bytes,10,opt,name=decision_task_started_event_attributes,json=decisionTaskStartedEventAttributes,proto3,oneof" json:"decision_task_started_event_attributes,omitempty"` -} -type HistoryEvent_DecisionTaskCompletedEventAttributes struct { - DecisionTaskCompletedEventAttributes *DecisionTaskCompletedEventAttributes `protobuf:"bytes,11,opt,name=decision_task_completed_event_attributes,json=decisionTaskCompletedEventAttributes,proto3,oneof" json:"decision_task_completed_event_attributes,omitempty"` -} -type HistoryEvent_DecisionTaskTimedOutEventAttributes struct { - DecisionTaskTimedOutEventAttributes *DecisionTaskTimedOutEventAttributes `protobuf:"bytes,12,opt,name=decision_task_timed_out_event_attributes,json=decisionTaskTimedOutEventAttributes,proto3,oneof" json:"decision_task_timed_out_event_attributes,omitempty"` -} -type HistoryEvent_DecisionTaskFailedEventAttributes struct { - DecisionTaskFailedEventAttributes *DecisionTaskFailedEventAttributes `protobuf:"bytes,13,opt,name=decision_task_failed_event_attributes,json=decisionTaskFailedEventAttributes,proto3,oneof" json:"decision_task_failed_event_attributes,omitempty"` -} -type HistoryEvent_ActivityTaskScheduledEventAttributes struct { - ActivityTaskScheduledEventAttributes *ActivityTaskScheduledEventAttributes `protobuf:"bytes,14,opt,name=activity_task_scheduled_event_attributes,json=activityTaskScheduledEventAttributes,proto3,oneof" json:"activity_task_scheduled_event_attributes,omitempty"` -} -type HistoryEvent_ActivityTaskStartedEventAttributes struct { - ActivityTaskStartedEventAttributes *ActivityTaskStartedEventAttributes `protobuf:"bytes,15,opt,name=activity_task_started_event_attributes,json=activityTaskStartedEventAttributes,proto3,oneof" json:"activity_task_started_event_attributes,omitempty"` -} -type HistoryEvent_ActivityTaskCompletedEventAttributes struct { - ActivityTaskCompletedEventAttributes *ActivityTaskCompletedEventAttributes `protobuf:"bytes,16,opt,name=activity_task_completed_event_attributes,json=activityTaskCompletedEventAttributes,proto3,oneof" json:"activity_task_completed_event_attributes,omitempty"` -} -type HistoryEvent_ActivityTaskFailedEventAttributes struct { - ActivityTaskFailedEventAttributes *ActivityTaskFailedEventAttributes `protobuf:"bytes,17,opt,name=activity_task_failed_event_attributes,json=activityTaskFailedEventAttributes,proto3,oneof" json:"activity_task_failed_event_attributes,omitempty"` -} -type HistoryEvent_ActivityTaskTimedOutEventAttributes struct { - ActivityTaskTimedOutEventAttributes *ActivityTaskTimedOutEventAttributes `protobuf:"bytes,18,opt,name=activity_task_timed_out_event_attributes,json=activityTaskTimedOutEventAttributes,proto3,oneof" json:"activity_task_timed_out_event_attributes,omitempty"` -} -type HistoryEvent_TimerStartedEventAttributes struct { - TimerStartedEventAttributes *TimerStartedEventAttributes `protobuf:"bytes,19,opt,name=timer_started_event_attributes,json=timerStartedEventAttributes,proto3,oneof" json:"timer_started_event_attributes,omitempty"` -} -type HistoryEvent_TimerFiredEventAttributes struct { - TimerFiredEventAttributes *TimerFiredEventAttributes `protobuf:"bytes,20,opt,name=timer_fired_event_attributes,json=timerFiredEventAttributes,proto3,oneof" json:"timer_fired_event_attributes,omitempty"` -} -type HistoryEvent_ActivityTaskCancelRequestedEventAttributes struct { - ActivityTaskCancelRequestedEventAttributes *ActivityTaskCancelRequestedEventAttributes `protobuf:"bytes,21,opt,name=activity_task_cancel_requested_event_attributes,json=activityTaskCancelRequestedEventAttributes,proto3,oneof" json:"activity_task_cancel_requested_event_attributes,omitempty"` -} -type HistoryEvent_RequestCancelActivityTaskFailedEventAttributes struct { - RequestCancelActivityTaskFailedEventAttributes *RequestCancelActivityTaskFailedEventAttributes `protobuf:"bytes,22,opt,name=request_cancel_activity_task_failed_event_attributes,json=requestCancelActivityTaskFailedEventAttributes,proto3,oneof" json:"request_cancel_activity_task_failed_event_attributes,omitempty"` -} -type HistoryEvent_ActivityTaskCanceledEventAttributes struct { - ActivityTaskCanceledEventAttributes *ActivityTaskCanceledEventAttributes `protobuf:"bytes,23,opt,name=activity_task_canceled_event_attributes,json=activityTaskCanceledEventAttributes,proto3,oneof" json:"activity_task_canceled_event_attributes,omitempty"` -} -type HistoryEvent_TimerCanceledEventAttributes struct { - TimerCanceledEventAttributes *TimerCanceledEventAttributes `protobuf:"bytes,24,opt,name=timer_canceled_event_attributes,json=timerCanceledEventAttributes,proto3,oneof" json:"timer_canceled_event_attributes,omitempty"` -} -type HistoryEvent_CancelTimerFailedEventAttributes struct { - CancelTimerFailedEventAttributes *CancelTimerFailedEventAttributes `protobuf:"bytes,25,opt,name=cancel_timer_failed_event_attributes,json=cancelTimerFailedEventAttributes,proto3,oneof" json:"cancel_timer_failed_event_attributes,omitempty"` -} -type HistoryEvent_MarkerRecordedEventAttributes struct { - MarkerRecordedEventAttributes *MarkerRecordedEventAttributes `protobuf:"bytes,26,opt,name=marker_recorded_event_attributes,json=markerRecordedEventAttributes,proto3,oneof" json:"marker_recorded_event_attributes,omitempty"` -} -type HistoryEvent_WorkflowExecutionSignaledEventAttributes struct { - WorkflowExecutionSignaledEventAttributes *WorkflowExecutionSignaledEventAttributes `protobuf:"bytes,27,opt,name=workflow_execution_signaled_event_attributes,json=workflowExecutionSignaledEventAttributes,proto3,oneof" json:"workflow_execution_signaled_event_attributes,omitempty"` -} -type HistoryEvent_WorkflowExecutionTerminatedEventAttributes struct { - WorkflowExecutionTerminatedEventAttributes *WorkflowExecutionTerminatedEventAttributes `protobuf:"bytes,28,opt,name=workflow_execution_terminated_event_attributes,json=workflowExecutionTerminatedEventAttributes,proto3,oneof" json:"workflow_execution_terminated_event_attributes,omitempty"` -} -type HistoryEvent_WorkflowExecutionCancelRequestedEventAttributes struct { - WorkflowExecutionCancelRequestedEventAttributes *WorkflowExecutionCancelRequestedEventAttributes `protobuf:"bytes,29,opt,name=workflow_execution_cancel_requested_event_attributes,json=workflowExecutionCancelRequestedEventAttributes,proto3,oneof" json:"workflow_execution_cancel_requested_event_attributes,omitempty"` -} -type HistoryEvent_WorkflowExecutionCanceledEventAttributes struct { - WorkflowExecutionCanceledEventAttributes *WorkflowExecutionCanceledEventAttributes `protobuf:"bytes,30,opt,name=workflow_execution_canceled_event_attributes,json=workflowExecutionCanceledEventAttributes,proto3,oneof" json:"workflow_execution_canceled_event_attributes,omitempty"` -} -type HistoryEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes struct { - RequestCancelExternalWorkflowExecutionInitiatedEventAttributes *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes `protobuf:"bytes,31,opt,name=request_cancel_external_workflow_execution_initiated_event_attributes,json=requestCancelExternalWorkflowExecutionInitiatedEventAttributes,proto3,oneof" json:"request_cancel_external_workflow_execution_initiated_event_attributes,omitempty"` -} -type HistoryEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes struct { - RequestCancelExternalWorkflowExecutionFailedEventAttributes *RequestCancelExternalWorkflowExecutionFailedEventAttributes `protobuf:"bytes,32,opt,name=request_cancel_external_workflow_execution_failed_event_attributes,json=requestCancelExternalWorkflowExecutionFailedEventAttributes,proto3,oneof" json:"request_cancel_external_workflow_execution_failed_event_attributes,omitempty"` -} -type HistoryEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes struct { - ExternalWorkflowExecutionCancelRequestedEventAttributes *ExternalWorkflowExecutionCancelRequestedEventAttributes `protobuf:"bytes,33,opt,name=external_workflow_execution_cancel_requested_event_attributes,json=externalWorkflowExecutionCancelRequestedEventAttributes,proto3,oneof" json:"external_workflow_execution_cancel_requested_event_attributes,omitempty"` -} -type HistoryEvent_WorkflowExecutionContinuedAsNewEventAttributes struct { - WorkflowExecutionContinuedAsNewEventAttributes *WorkflowExecutionContinuedAsNewEventAttributes `protobuf:"bytes,34,opt,name=workflow_execution_continued_as_new_event_attributes,json=workflowExecutionContinuedAsNewEventAttributes,proto3,oneof" json:"workflow_execution_continued_as_new_event_attributes,omitempty"` -} -type HistoryEvent_StartChildWorkflowExecutionInitiatedEventAttributes struct { - StartChildWorkflowExecutionInitiatedEventAttributes *StartChildWorkflowExecutionInitiatedEventAttributes `protobuf:"bytes,35,opt,name=start_child_workflow_execution_initiated_event_attributes,json=startChildWorkflowExecutionInitiatedEventAttributes,proto3,oneof" json:"start_child_workflow_execution_initiated_event_attributes,omitempty"` -} -type HistoryEvent_StartChildWorkflowExecutionFailedEventAttributes struct { - StartChildWorkflowExecutionFailedEventAttributes *StartChildWorkflowExecutionFailedEventAttributes `protobuf:"bytes,36,opt,name=start_child_workflow_execution_failed_event_attributes,json=startChildWorkflowExecutionFailedEventAttributes,proto3,oneof" json:"start_child_workflow_execution_failed_event_attributes,omitempty"` -} -type HistoryEvent_ChildWorkflowExecutionStartedEventAttributes struct { - ChildWorkflowExecutionStartedEventAttributes *ChildWorkflowExecutionStartedEventAttributes `protobuf:"bytes,37,opt,name=child_workflow_execution_started_event_attributes,json=childWorkflowExecutionStartedEventAttributes,proto3,oneof" json:"child_workflow_execution_started_event_attributes,omitempty"` -} -type HistoryEvent_ChildWorkflowExecutionCompletedEventAttributes struct { - ChildWorkflowExecutionCompletedEventAttributes *ChildWorkflowExecutionCompletedEventAttributes `protobuf:"bytes,38,opt,name=child_workflow_execution_completed_event_attributes,json=childWorkflowExecutionCompletedEventAttributes,proto3,oneof" json:"child_workflow_execution_completed_event_attributes,omitempty"` -} -type HistoryEvent_ChildWorkflowExecutionFailedEventAttributes struct { - ChildWorkflowExecutionFailedEventAttributes *ChildWorkflowExecutionFailedEventAttributes `protobuf:"bytes,39,opt,name=child_workflow_execution_failed_event_attributes,json=childWorkflowExecutionFailedEventAttributes,proto3,oneof" json:"child_workflow_execution_failed_event_attributes,omitempty"` -} -type HistoryEvent_ChildWorkflowExecutionCanceledEventAttributes struct { - ChildWorkflowExecutionCanceledEventAttributes *ChildWorkflowExecutionCanceledEventAttributes `protobuf:"bytes,40,opt,name=child_workflow_execution_canceled_event_attributes,json=childWorkflowExecutionCanceledEventAttributes,proto3,oneof" json:"child_workflow_execution_canceled_event_attributes,omitempty"` -} -type HistoryEvent_ChildWorkflowExecutionTimedOutEventAttributes struct { - ChildWorkflowExecutionTimedOutEventAttributes *ChildWorkflowExecutionTimedOutEventAttributes `protobuf:"bytes,41,opt,name=child_workflow_execution_timed_out_event_attributes,json=childWorkflowExecutionTimedOutEventAttributes,proto3,oneof" json:"child_workflow_execution_timed_out_event_attributes,omitempty"` -} -type HistoryEvent_ChildWorkflowExecutionTerminatedEventAttributes struct { - ChildWorkflowExecutionTerminatedEventAttributes *ChildWorkflowExecutionTerminatedEventAttributes `protobuf:"bytes,42,opt,name=child_workflow_execution_terminated_event_attributes,json=childWorkflowExecutionTerminatedEventAttributes,proto3,oneof" json:"child_workflow_execution_terminated_event_attributes,omitempty"` -} -type HistoryEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes struct { - SignalExternalWorkflowExecutionInitiatedEventAttributes *SignalExternalWorkflowExecutionInitiatedEventAttributes `protobuf:"bytes,43,opt,name=signal_external_workflow_execution_initiated_event_attributes,json=signalExternalWorkflowExecutionInitiatedEventAttributes,proto3,oneof" json:"signal_external_workflow_execution_initiated_event_attributes,omitempty"` -} -type HistoryEvent_SignalExternalWorkflowExecutionFailedEventAttributes struct { - SignalExternalWorkflowExecutionFailedEventAttributes *SignalExternalWorkflowExecutionFailedEventAttributes `protobuf:"bytes,44,opt,name=signal_external_workflow_execution_failed_event_attributes,json=signalExternalWorkflowExecutionFailedEventAttributes,proto3,oneof" json:"signal_external_workflow_execution_failed_event_attributes,omitempty"` -} -type HistoryEvent_ExternalWorkflowExecutionSignaledEventAttributes struct { - ExternalWorkflowExecutionSignaledEventAttributes *ExternalWorkflowExecutionSignaledEventAttributes `protobuf:"bytes,45,opt,name=external_workflow_execution_signaled_event_attributes,json=externalWorkflowExecutionSignaledEventAttributes,proto3,oneof" json:"external_workflow_execution_signaled_event_attributes,omitempty"` -} -type HistoryEvent_UpsertWorkflowSearchAttributesEventAttributes struct { - UpsertWorkflowSearchAttributesEventAttributes *UpsertWorkflowSearchAttributesEventAttributes `protobuf:"bytes,46,opt,name=upsert_workflow_search_attributes_event_attributes,json=upsertWorkflowSearchAttributesEventAttributes,proto3,oneof" json:"upsert_workflow_search_attributes_event_attributes,omitempty"` -} - -func (*HistoryEvent_WorkflowExecutionStartedEventAttributes) isHistoryEvent_Attributes() {} -func (*HistoryEvent_WorkflowExecutionCompletedEventAttributes) isHistoryEvent_Attributes() {} -func (*HistoryEvent_WorkflowExecutionFailedEventAttributes) isHistoryEvent_Attributes() {} -func (*HistoryEvent_WorkflowExecutionTimedOutEventAttributes) isHistoryEvent_Attributes() {} -func (*HistoryEvent_DecisionTaskScheduledEventAttributes) isHistoryEvent_Attributes() {} -func (*HistoryEvent_DecisionTaskStartedEventAttributes) isHistoryEvent_Attributes() {} -func (*HistoryEvent_DecisionTaskCompletedEventAttributes) isHistoryEvent_Attributes() {} -func (*HistoryEvent_DecisionTaskTimedOutEventAttributes) isHistoryEvent_Attributes() {} -func (*HistoryEvent_DecisionTaskFailedEventAttributes) isHistoryEvent_Attributes() {} -func (*HistoryEvent_ActivityTaskScheduledEventAttributes) isHistoryEvent_Attributes() {} -func (*HistoryEvent_ActivityTaskStartedEventAttributes) isHistoryEvent_Attributes() {} -func (*HistoryEvent_ActivityTaskCompletedEventAttributes) isHistoryEvent_Attributes() {} -func (*HistoryEvent_ActivityTaskFailedEventAttributes) isHistoryEvent_Attributes() {} -func (*HistoryEvent_ActivityTaskTimedOutEventAttributes) isHistoryEvent_Attributes() {} -func (*HistoryEvent_TimerStartedEventAttributes) isHistoryEvent_Attributes() {} -func (*HistoryEvent_TimerFiredEventAttributes) isHistoryEvent_Attributes() {} -func (*HistoryEvent_ActivityTaskCancelRequestedEventAttributes) isHistoryEvent_Attributes() {} -func (*HistoryEvent_RequestCancelActivityTaskFailedEventAttributes) isHistoryEvent_Attributes() {} -func (*HistoryEvent_ActivityTaskCanceledEventAttributes) isHistoryEvent_Attributes() {} -func (*HistoryEvent_TimerCanceledEventAttributes) isHistoryEvent_Attributes() {} -func (*HistoryEvent_CancelTimerFailedEventAttributes) isHistoryEvent_Attributes() {} -func (*HistoryEvent_MarkerRecordedEventAttributes) isHistoryEvent_Attributes() {} -func (*HistoryEvent_WorkflowExecutionSignaledEventAttributes) isHistoryEvent_Attributes() {} -func (*HistoryEvent_WorkflowExecutionTerminatedEventAttributes) isHistoryEvent_Attributes() {} -func (*HistoryEvent_WorkflowExecutionCancelRequestedEventAttributes) isHistoryEvent_Attributes() {} -func (*HistoryEvent_WorkflowExecutionCanceledEventAttributes) isHistoryEvent_Attributes() {} -func (*HistoryEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) isHistoryEvent_Attributes() { -} -func (*HistoryEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes) isHistoryEvent_Attributes() { -} -func (*HistoryEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes) isHistoryEvent_Attributes() { -} -func (*HistoryEvent_WorkflowExecutionContinuedAsNewEventAttributes) isHistoryEvent_Attributes() {} -func (*HistoryEvent_StartChildWorkflowExecutionInitiatedEventAttributes) isHistoryEvent_Attributes() { -} -func (*HistoryEvent_StartChildWorkflowExecutionFailedEventAttributes) isHistoryEvent_Attributes() {} -func (*HistoryEvent_ChildWorkflowExecutionStartedEventAttributes) isHistoryEvent_Attributes() {} -func (*HistoryEvent_ChildWorkflowExecutionCompletedEventAttributes) isHistoryEvent_Attributes() {} -func (*HistoryEvent_ChildWorkflowExecutionFailedEventAttributes) isHistoryEvent_Attributes() {} -func (*HistoryEvent_ChildWorkflowExecutionCanceledEventAttributes) isHistoryEvent_Attributes() {} -func (*HistoryEvent_ChildWorkflowExecutionTimedOutEventAttributes) isHistoryEvent_Attributes() {} -func (*HistoryEvent_ChildWorkflowExecutionTerminatedEventAttributes) isHistoryEvent_Attributes() {} -func (*HistoryEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes) isHistoryEvent_Attributes() { -} -func (*HistoryEvent_SignalExternalWorkflowExecutionFailedEventAttributes) isHistoryEvent_Attributes() { +// Deprecated: Use HistoryEvent.ProtoReflect.Descriptor instead. +func (*HistoryEvent) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{1} } -func (*HistoryEvent_ExternalWorkflowExecutionSignaledEventAttributes) isHistoryEvent_Attributes() {} -func (*HistoryEvent_UpsertWorkflowSearchAttributesEventAttributes) isHistoryEvent_Attributes() {} -func (m *HistoryEvent) GetAttributes() isHistoryEvent_Attributes { - if m != nil { - return m.Attributes +func (x *HistoryEvent) GetEventId() int64 { + if x != nil { + return x.EventId } - return nil + return 0 } -func (m *HistoryEvent) GetEventId() int64 { - if m != nil { - return m.EventId +func (x *HistoryEvent) GetEventTime() *timestamppb.Timestamp { + if x != nil { + return x.EventTime } - return 0 + return nil } -func (m *HistoryEvent) GetEventTime() *time.Time { - if m != nil { - return m.EventTime +func (x *HistoryEvent) GetVersion() int64 { + if x != nil { + return x.Version } - return nil + return 0 } -func (m *HistoryEvent) GetVersion() int64 { - if m != nil { - return m.Version +func (x *HistoryEvent) GetTaskId() int64 { + if x != nil { + return x.TaskId } return 0 } -func (m *HistoryEvent) GetTaskId() int64 { +func (m *HistoryEvent) GetAttributes() isHistoryEvent_Attributes { if m != nil { - return m.TaskId + return m.Attributes } - return 0 + return nil } -func (m *HistoryEvent) GetWorkflowExecutionStartedEventAttributes() *WorkflowExecutionStartedEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_WorkflowExecutionStartedEventAttributes); ok { +func (x *HistoryEvent) GetWorkflowExecutionStartedEventAttributes() *WorkflowExecutionStartedEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_WorkflowExecutionStartedEventAttributes); ok { return x.WorkflowExecutionStartedEventAttributes } return nil } -func (m *HistoryEvent) GetWorkflowExecutionCompletedEventAttributes() *WorkflowExecutionCompletedEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_WorkflowExecutionCompletedEventAttributes); ok { +func (x *HistoryEvent) GetWorkflowExecutionCompletedEventAttributes() *WorkflowExecutionCompletedEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_WorkflowExecutionCompletedEventAttributes); ok { return x.WorkflowExecutionCompletedEventAttributes } return nil } -func (m *HistoryEvent) GetWorkflowExecutionFailedEventAttributes() *WorkflowExecutionFailedEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_WorkflowExecutionFailedEventAttributes); ok { +func (x *HistoryEvent) GetWorkflowExecutionFailedEventAttributes() *WorkflowExecutionFailedEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_WorkflowExecutionFailedEventAttributes); ok { return x.WorkflowExecutionFailedEventAttributes } return nil } -func (m *HistoryEvent) GetWorkflowExecutionTimedOutEventAttributes() *WorkflowExecutionTimedOutEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_WorkflowExecutionTimedOutEventAttributes); ok { +func (x *HistoryEvent) GetWorkflowExecutionTimedOutEventAttributes() *WorkflowExecutionTimedOutEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_WorkflowExecutionTimedOutEventAttributes); ok { return x.WorkflowExecutionTimedOutEventAttributes } return nil } -func (m *HistoryEvent) GetDecisionTaskScheduledEventAttributes() *DecisionTaskScheduledEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_DecisionTaskScheduledEventAttributes); ok { +func (x *HistoryEvent) GetDecisionTaskScheduledEventAttributes() *DecisionTaskScheduledEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_DecisionTaskScheduledEventAttributes); ok { return x.DecisionTaskScheduledEventAttributes } return nil } -func (m *HistoryEvent) GetDecisionTaskStartedEventAttributes() *DecisionTaskStartedEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_DecisionTaskStartedEventAttributes); ok { +func (x *HistoryEvent) GetDecisionTaskStartedEventAttributes() *DecisionTaskStartedEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_DecisionTaskStartedEventAttributes); ok { return x.DecisionTaskStartedEventAttributes } return nil } -func (m *HistoryEvent) GetDecisionTaskCompletedEventAttributes() *DecisionTaskCompletedEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_DecisionTaskCompletedEventAttributes); ok { +func (x *HistoryEvent) GetDecisionTaskCompletedEventAttributes() *DecisionTaskCompletedEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_DecisionTaskCompletedEventAttributes); ok { return x.DecisionTaskCompletedEventAttributes } return nil } -func (m *HistoryEvent) GetDecisionTaskTimedOutEventAttributes() *DecisionTaskTimedOutEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_DecisionTaskTimedOutEventAttributes); ok { +func (x *HistoryEvent) GetDecisionTaskTimedOutEventAttributes() *DecisionTaskTimedOutEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_DecisionTaskTimedOutEventAttributes); ok { return x.DecisionTaskTimedOutEventAttributes } return nil } -func (m *HistoryEvent) GetDecisionTaskFailedEventAttributes() *DecisionTaskFailedEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_DecisionTaskFailedEventAttributes); ok { +func (x *HistoryEvent) GetDecisionTaskFailedEventAttributes() *DecisionTaskFailedEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_DecisionTaskFailedEventAttributes); ok { return x.DecisionTaskFailedEventAttributes } return nil } -func (m *HistoryEvent) GetActivityTaskScheduledEventAttributes() *ActivityTaskScheduledEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_ActivityTaskScheduledEventAttributes); ok { +func (x *HistoryEvent) GetActivityTaskScheduledEventAttributes() *ActivityTaskScheduledEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_ActivityTaskScheduledEventAttributes); ok { return x.ActivityTaskScheduledEventAttributes } return nil } -func (m *HistoryEvent) GetActivityTaskStartedEventAttributes() *ActivityTaskStartedEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_ActivityTaskStartedEventAttributes); ok { +func (x *HistoryEvent) GetActivityTaskStartedEventAttributes() *ActivityTaskStartedEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_ActivityTaskStartedEventAttributes); ok { return x.ActivityTaskStartedEventAttributes } return nil } -func (m *HistoryEvent) GetActivityTaskCompletedEventAttributes() *ActivityTaskCompletedEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_ActivityTaskCompletedEventAttributes); ok { +func (x *HistoryEvent) GetActivityTaskCompletedEventAttributes() *ActivityTaskCompletedEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_ActivityTaskCompletedEventAttributes); ok { return x.ActivityTaskCompletedEventAttributes } return nil } -func (m *HistoryEvent) GetActivityTaskFailedEventAttributes() *ActivityTaskFailedEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_ActivityTaskFailedEventAttributes); ok { +func (x *HistoryEvent) GetActivityTaskFailedEventAttributes() *ActivityTaskFailedEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_ActivityTaskFailedEventAttributes); ok { return x.ActivityTaskFailedEventAttributes } return nil } -func (m *HistoryEvent) GetActivityTaskTimedOutEventAttributes() *ActivityTaskTimedOutEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_ActivityTaskTimedOutEventAttributes); ok { +func (x *HistoryEvent) GetActivityTaskTimedOutEventAttributes() *ActivityTaskTimedOutEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_ActivityTaskTimedOutEventAttributes); ok { return x.ActivityTaskTimedOutEventAttributes } return nil } -func (m *HistoryEvent) GetTimerStartedEventAttributes() *TimerStartedEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_TimerStartedEventAttributes); ok { +func (x *HistoryEvent) GetTimerStartedEventAttributes() *TimerStartedEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_TimerStartedEventAttributes); ok { return x.TimerStartedEventAttributes } return nil } -func (m *HistoryEvent) GetTimerFiredEventAttributes() *TimerFiredEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_TimerFiredEventAttributes); ok { +func (x *HistoryEvent) GetTimerFiredEventAttributes() *TimerFiredEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_TimerFiredEventAttributes); ok { return x.TimerFiredEventAttributes } return nil } -func (m *HistoryEvent) GetActivityTaskCancelRequestedEventAttributes() *ActivityTaskCancelRequestedEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_ActivityTaskCancelRequestedEventAttributes); ok { +func (x *HistoryEvent) GetActivityTaskCancelRequestedEventAttributes() *ActivityTaskCancelRequestedEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_ActivityTaskCancelRequestedEventAttributes); ok { return x.ActivityTaskCancelRequestedEventAttributes } return nil } -func (m *HistoryEvent) GetRequestCancelActivityTaskFailedEventAttributes() *RequestCancelActivityTaskFailedEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_RequestCancelActivityTaskFailedEventAttributes); ok { +func (x *HistoryEvent) GetRequestCancelActivityTaskFailedEventAttributes() *RequestCancelActivityTaskFailedEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_RequestCancelActivityTaskFailedEventAttributes); ok { return x.RequestCancelActivityTaskFailedEventAttributes } return nil } -func (m *HistoryEvent) GetActivityTaskCanceledEventAttributes() *ActivityTaskCanceledEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_ActivityTaskCanceledEventAttributes); ok { +func (x *HistoryEvent) GetActivityTaskCanceledEventAttributes() *ActivityTaskCanceledEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_ActivityTaskCanceledEventAttributes); ok { return x.ActivityTaskCanceledEventAttributes } return nil } -func (m *HistoryEvent) GetTimerCanceledEventAttributes() *TimerCanceledEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_TimerCanceledEventAttributes); ok { +func (x *HistoryEvent) GetTimerCanceledEventAttributes() *TimerCanceledEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_TimerCanceledEventAttributes); ok { return x.TimerCanceledEventAttributes } return nil } -func (m *HistoryEvent) GetCancelTimerFailedEventAttributes() *CancelTimerFailedEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_CancelTimerFailedEventAttributes); ok { +func (x *HistoryEvent) GetCancelTimerFailedEventAttributes() *CancelTimerFailedEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_CancelTimerFailedEventAttributes); ok { return x.CancelTimerFailedEventAttributes } return nil } -func (m *HistoryEvent) GetMarkerRecordedEventAttributes() *MarkerRecordedEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_MarkerRecordedEventAttributes); ok { +func (x *HistoryEvent) GetMarkerRecordedEventAttributes() *MarkerRecordedEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_MarkerRecordedEventAttributes); ok { return x.MarkerRecordedEventAttributes } return nil } -func (m *HistoryEvent) GetWorkflowExecutionSignaledEventAttributes() *WorkflowExecutionSignaledEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_WorkflowExecutionSignaledEventAttributes); ok { +func (x *HistoryEvent) GetWorkflowExecutionSignaledEventAttributes() *WorkflowExecutionSignaledEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_WorkflowExecutionSignaledEventAttributes); ok { return x.WorkflowExecutionSignaledEventAttributes } return nil } -func (m *HistoryEvent) GetWorkflowExecutionTerminatedEventAttributes() *WorkflowExecutionTerminatedEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_WorkflowExecutionTerminatedEventAttributes); ok { +func (x *HistoryEvent) GetWorkflowExecutionTerminatedEventAttributes() *WorkflowExecutionTerminatedEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_WorkflowExecutionTerminatedEventAttributes); ok { return x.WorkflowExecutionTerminatedEventAttributes } return nil } -func (m *HistoryEvent) GetWorkflowExecutionCancelRequestedEventAttributes() *WorkflowExecutionCancelRequestedEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_WorkflowExecutionCancelRequestedEventAttributes); ok { +func (x *HistoryEvent) GetWorkflowExecutionCancelRequestedEventAttributes() *WorkflowExecutionCancelRequestedEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_WorkflowExecutionCancelRequestedEventAttributes); ok { return x.WorkflowExecutionCancelRequestedEventAttributes } return nil } -func (m *HistoryEvent) GetWorkflowExecutionCanceledEventAttributes() *WorkflowExecutionCanceledEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_WorkflowExecutionCanceledEventAttributes); ok { +func (x *HistoryEvent) GetWorkflowExecutionCanceledEventAttributes() *WorkflowExecutionCanceledEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_WorkflowExecutionCanceledEventAttributes); ok { return x.WorkflowExecutionCanceledEventAttributes } return nil } -func (m *HistoryEvent) GetRequestCancelExternalWorkflowExecutionInitiatedEventAttributes() *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes); ok { +func (x *HistoryEvent) GetRequestCancelExternalWorkflowExecutionInitiatedEventAttributes() *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes); ok { return x.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes } return nil } -func (m *HistoryEvent) GetRequestCancelExternalWorkflowExecutionFailedEventAttributes() *RequestCancelExternalWorkflowExecutionFailedEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes); ok { +func (x *HistoryEvent) GetRequestCancelExternalWorkflowExecutionFailedEventAttributes() *RequestCancelExternalWorkflowExecutionFailedEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes); ok { return x.RequestCancelExternalWorkflowExecutionFailedEventAttributes } return nil } -func (m *HistoryEvent) GetExternalWorkflowExecutionCancelRequestedEventAttributes() *ExternalWorkflowExecutionCancelRequestedEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes); ok { +func (x *HistoryEvent) GetExternalWorkflowExecutionCancelRequestedEventAttributes() *ExternalWorkflowExecutionCancelRequestedEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes); ok { return x.ExternalWorkflowExecutionCancelRequestedEventAttributes } return nil } -func (m *HistoryEvent) GetWorkflowExecutionContinuedAsNewEventAttributes() *WorkflowExecutionContinuedAsNewEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_WorkflowExecutionContinuedAsNewEventAttributes); ok { +func (x *HistoryEvent) GetWorkflowExecutionContinuedAsNewEventAttributes() *WorkflowExecutionContinuedAsNewEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_WorkflowExecutionContinuedAsNewEventAttributes); ok { return x.WorkflowExecutionContinuedAsNewEventAttributes } return nil } -func (m *HistoryEvent) GetStartChildWorkflowExecutionInitiatedEventAttributes() *StartChildWorkflowExecutionInitiatedEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_StartChildWorkflowExecutionInitiatedEventAttributes); ok { +func (x *HistoryEvent) GetStartChildWorkflowExecutionInitiatedEventAttributes() *StartChildWorkflowExecutionInitiatedEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_StartChildWorkflowExecutionInitiatedEventAttributes); ok { return x.StartChildWorkflowExecutionInitiatedEventAttributes } return nil } -func (m *HistoryEvent) GetStartChildWorkflowExecutionFailedEventAttributes() *StartChildWorkflowExecutionFailedEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_StartChildWorkflowExecutionFailedEventAttributes); ok { +func (x *HistoryEvent) GetStartChildWorkflowExecutionFailedEventAttributes() *StartChildWorkflowExecutionFailedEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_StartChildWorkflowExecutionFailedEventAttributes); ok { return x.StartChildWorkflowExecutionFailedEventAttributes } return nil } -func (m *HistoryEvent) GetChildWorkflowExecutionStartedEventAttributes() *ChildWorkflowExecutionStartedEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_ChildWorkflowExecutionStartedEventAttributes); ok { +func (x *HistoryEvent) GetChildWorkflowExecutionStartedEventAttributes() *ChildWorkflowExecutionStartedEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_ChildWorkflowExecutionStartedEventAttributes); ok { return x.ChildWorkflowExecutionStartedEventAttributes } return nil } -func (m *HistoryEvent) GetChildWorkflowExecutionCompletedEventAttributes() *ChildWorkflowExecutionCompletedEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_ChildWorkflowExecutionCompletedEventAttributes); ok { +func (x *HistoryEvent) GetChildWorkflowExecutionCompletedEventAttributes() *ChildWorkflowExecutionCompletedEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_ChildWorkflowExecutionCompletedEventAttributes); ok { return x.ChildWorkflowExecutionCompletedEventAttributes } return nil } -func (m *HistoryEvent) GetChildWorkflowExecutionFailedEventAttributes() *ChildWorkflowExecutionFailedEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_ChildWorkflowExecutionFailedEventAttributes); ok { +func (x *HistoryEvent) GetChildWorkflowExecutionFailedEventAttributes() *ChildWorkflowExecutionFailedEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_ChildWorkflowExecutionFailedEventAttributes); ok { return x.ChildWorkflowExecutionFailedEventAttributes } return nil } -func (m *HistoryEvent) GetChildWorkflowExecutionCanceledEventAttributes() *ChildWorkflowExecutionCanceledEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_ChildWorkflowExecutionCanceledEventAttributes); ok { +func (x *HistoryEvent) GetChildWorkflowExecutionCanceledEventAttributes() *ChildWorkflowExecutionCanceledEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_ChildWorkflowExecutionCanceledEventAttributes); ok { return x.ChildWorkflowExecutionCanceledEventAttributes } return nil } -func (m *HistoryEvent) GetChildWorkflowExecutionTimedOutEventAttributes() *ChildWorkflowExecutionTimedOutEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_ChildWorkflowExecutionTimedOutEventAttributes); ok { +func (x *HistoryEvent) GetChildWorkflowExecutionTimedOutEventAttributes() *ChildWorkflowExecutionTimedOutEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_ChildWorkflowExecutionTimedOutEventAttributes); ok { return x.ChildWorkflowExecutionTimedOutEventAttributes } return nil } -func (m *HistoryEvent) GetChildWorkflowExecutionTerminatedEventAttributes() *ChildWorkflowExecutionTerminatedEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_ChildWorkflowExecutionTerminatedEventAttributes); ok { +func (x *HistoryEvent) GetChildWorkflowExecutionTerminatedEventAttributes() *ChildWorkflowExecutionTerminatedEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_ChildWorkflowExecutionTerminatedEventAttributes); ok { return x.ChildWorkflowExecutionTerminatedEventAttributes } return nil } -func (m *HistoryEvent) GetSignalExternalWorkflowExecutionInitiatedEventAttributes() *SignalExternalWorkflowExecutionInitiatedEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes); ok { +func (x *HistoryEvent) GetSignalExternalWorkflowExecutionInitiatedEventAttributes() *SignalExternalWorkflowExecutionInitiatedEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes); ok { return x.SignalExternalWorkflowExecutionInitiatedEventAttributes } return nil } -func (m *HistoryEvent) GetSignalExternalWorkflowExecutionFailedEventAttributes() *SignalExternalWorkflowExecutionFailedEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_SignalExternalWorkflowExecutionFailedEventAttributes); ok { +func (x *HistoryEvent) GetSignalExternalWorkflowExecutionFailedEventAttributes() *SignalExternalWorkflowExecutionFailedEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_SignalExternalWorkflowExecutionFailedEventAttributes); ok { return x.SignalExternalWorkflowExecutionFailedEventAttributes } return nil } -func (m *HistoryEvent) GetExternalWorkflowExecutionSignaledEventAttributes() *ExternalWorkflowExecutionSignaledEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_ExternalWorkflowExecutionSignaledEventAttributes); ok { +func (x *HistoryEvent) GetExternalWorkflowExecutionSignaledEventAttributes() *ExternalWorkflowExecutionSignaledEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_ExternalWorkflowExecutionSignaledEventAttributes); ok { return x.ExternalWorkflowExecutionSignaledEventAttributes } return nil } -func (m *HistoryEvent) GetUpsertWorkflowSearchAttributesEventAttributes() *UpsertWorkflowSearchAttributesEventAttributes { - if x, ok := m.GetAttributes().(*HistoryEvent_UpsertWorkflowSearchAttributesEventAttributes); ok { +func (x *HistoryEvent) GetUpsertWorkflowSearchAttributesEventAttributes() *UpsertWorkflowSearchAttributesEventAttributes { + if x, ok := x.GetAttributes().(*HistoryEvent_UpsertWorkflowSearchAttributesEventAttributes); ok { return x.UpsertWorkflowSearchAttributesEventAttributes } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*HistoryEvent) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*HistoryEvent_WorkflowExecutionStartedEventAttributes)(nil), - (*HistoryEvent_WorkflowExecutionCompletedEventAttributes)(nil), - (*HistoryEvent_WorkflowExecutionFailedEventAttributes)(nil), - (*HistoryEvent_WorkflowExecutionTimedOutEventAttributes)(nil), - (*HistoryEvent_DecisionTaskScheduledEventAttributes)(nil), - (*HistoryEvent_DecisionTaskStartedEventAttributes)(nil), - (*HistoryEvent_DecisionTaskCompletedEventAttributes)(nil), - (*HistoryEvent_DecisionTaskTimedOutEventAttributes)(nil), - (*HistoryEvent_DecisionTaskFailedEventAttributes)(nil), - (*HistoryEvent_ActivityTaskScheduledEventAttributes)(nil), - (*HistoryEvent_ActivityTaskStartedEventAttributes)(nil), - (*HistoryEvent_ActivityTaskCompletedEventAttributes)(nil), - (*HistoryEvent_ActivityTaskFailedEventAttributes)(nil), - (*HistoryEvent_ActivityTaskTimedOutEventAttributes)(nil), - (*HistoryEvent_TimerStartedEventAttributes)(nil), - (*HistoryEvent_TimerFiredEventAttributes)(nil), - (*HistoryEvent_ActivityTaskCancelRequestedEventAttributes)(nil), - (*HistoryEvent_RequestCancelActivityTaskFailedEventAttributes)(nil), - (*HistoryEvent_ActivityTaskCanceledEventAttributes)(nil), - (*HistoryEvent_TimerCanceledEventAttributes)(nil), - (*HistoryEvent_CancelTimerFailedEventAttributes)(nil), - (*HistoryEvent_MarkerRecordedEventAttributes)(nil), - (*HistoryEvent_WorkflowExecutionSignaledEventAttributes)(nil), - (*HistoryEvent_WorkflowExecutionTerminatedEventAttributes)(nil), - (*HistoryEvent_WorkflowExecutionCancelRequestedEventAttributes)(nil), - (*HistoryEvent_WorkflowExecutionCanceledEventAttributes)(nil), - (*HistoryEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes)(nil), - (*HistoryEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes)(nil), - (*HistoryEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes)(nil), - (*HistoryEvent_WorkflowExecutionContinuedAsNewEventAttributes)(nil), - (*HistoryEvent_StartChildWorkflowExecutionInitiatedEventAttributes)(nil), - (*HistoryEvent_StartChildWorkflowExecutionFailedEventAttributes)(nil), - (*HistoryEvent_ChildWorkflowExecutionStartedEventAttributes)(nil), - (*HistoryEvent_ChildWorkflowExecutionCompletedEventAttributes)(nil), - (*HistoryEvent_ChildWorkflowExecutionFailedEventAttributes)(nil), - (*HistoryEvent_ChildWorkflowExecutionCanceledEventAttributes)(nil), - (*HistoryEvent_ChildWorkflowExecutionTimedOutEventAttributes)(nil), - (*HistoryEvent_ChildWorkflowExecutionTerminatedEventAttributes)(nil), - (*HistoryEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes)(nil), - (*HistoryEvent_SignalExternalWorkflowExecutionFailedEventAttributes)(nil), - (*HistoryEvent_ExternalWorkflowExecutionSignaledEventAttributes)(nil), - (*HistoryEvent_UpsertWorkflowSearchAttributesEventAttributes)(nil), - } +type isHistoryEvent_Attributes interface { + isHistoryEvent_Attributes() } -type WorkflowExecutionStartedEventAttributes struct { - WorkflowType *WorkflowType `protobuf:"bytes,1,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` - ParentWorkflowDomain string `protobuf:"bytes,2,opt,name=parent_workflow_domain,json=parentWorkflowDomain,proto3" json:"parent_workflow_domain,omitempty"` - ParentWorkflowExecution *WorkflowExecution `protobuf:"bytes,3,opt,name=parent_workflow_execution,json=parentWorkflowExecution,proto3" json:"parent_workflow_execution,omitempty"` - ParentInitiatedEventId int64 `protobuf:"varint,4,opt,name=parent_initiated_event_id,json=parentInitiatedEventId,proto3" json:"parent_initiated_event_id,omitempty"` - TaskList *TaskList `protobuf:"bytes,5,opt,name=task_list,json=taskList,proto3" json:"task_list,omitempty"` - Input *Payload `protobuf:"bytes,6,opt,name=input,proto3" json:"input,omitempty"` - ExecutionStartToCloseTimeout *time.Duration `protobuf:"bytes,7,opt,name=execution_start_to_close_timeout,json=executionStartToCloseTimeout,proto3,stdduration" json:"execution_start_to_close_timeout,omitempty"` - TaskStartToCloseTimeout *time.Duration `protobuf:"bytes,8,opt,name=task_start_to_close_timeout,json=taskStartToCloseTimeout,proto3,stdduration" json:"task_start_to_close_timeout,omitempty"` - ContinuedExecutionRunId string `protobuf:"bytes,9,opt,name=continued_execution_run_id,json=continuedExecutionRunId,proto3" json:"continued_execution_run_id,omitempty"` - Initiator ContinueAsNewInitiator `protobuf:"varint,10,opt,name=initiator,proto3,enum=uber.cadence.api.v1.ContinueAsNewInitiator" json:"initiator,omitempty"` - ContinuedFailure *Failure `protobuf:"bytes,11,opt,name=continued_failure,json=continuedFailure,proto3" json:"continued_failure,omitempty"` - LastCompletionResult *Payload `protobuf:"bytes,12,opt,name=last_completion_result,json=lastCompletionResult,proto3" json:"last_completion_result,omitempty"` - // This is the previous runID of ContinueAsNew. - OriginalExecutionRunId string `protobuf:"bytes,13,opt,name=original_execution_run_id,json=originalExecutionRunId,proto3" json:"original_execution_run_id,omitempty"` - Identity string `protobuf:"bytes,14,opt,name=identity,proto3" json:"identity,omitempty"` - // This is the very first runID along the chain of ContinueAsNew and Reset. - FirstExecutionRunId string `protobuf:"bytes,15,opt,name=first_execution_run_id,json=firstExecutionRunId,proto3" json:"first_execution_run_id,omitempty"` - RetryPolicy *RetryPolicy `protobuf:"bytes,16,opt,name=retry_policy,json=retryPolicy,proto3" json:"retry_policy,omitempty"` - Attempt int32 `protobuf:"varint,17,opt,name=attempt,proto3" json:"attempt,omitempty"` - ExpirationTime *time.Time `protobuf:"bytes,19,opt,name=expiration_time,json=expirationTime,proto3,stdtime" json:"expiration_time,omitempty"` - CronSchedule string `protobuf:"bytes,20,opt,name=cron_schedule,json=cronSchedule,proto3" json:"cron_schedule,omitempty"` - FirstDecisionTaskBackoff *time.Duration `protobuf:"bytes,21,opt,name=first_decision_task_backoff,json=firstDecisionTaskBackoff,proto3,stdduration" json:"first_decision_task_backoff,omitempty"` - Memo *Memo `protobuf:"bytes,22,opt,name=memo,proto3" json:"memo,omitempty"` - SearchAttributes *SearchAttributes `protobuf:"bytes,23,opt,name=search_attributes,json=searchAttributes,proto3" json:"search_attributes,omitempty"` - PrevAutoResetPoints *ResetPoints `protobuf:"bytes,24,opt,name=prev_auto_reset_points,json=prevAutoResetPoints,proto3" json:"prev_auto_reset_points,omitempty"` - Header *Header `protobuf:"bytes,25,opt,name=header,proto3" json:"header,omitempty"` +type HistoryEvent_WorkflowExecutionStartedEventAttributes struct { + WorkflowExecutionStartedEventAttributes *WorkflowExecutionStartedEventAttributes `protobuf:"bytes,5,opt,name=workflow_execution_started_event_attributes,json=workflowExecutionStartedEventAttributes,proto3,oneof"` } -func (m *WorkflowExecutionStartedEventAttributes) Reset() { - *m = WorkflowExecutionStartedEventAttributes{} -} -func (*WorkflowExecutionStartedEventAttributes) ProtoMessage() {} -func (*WorkflowExecutionStartedEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{2} -} -func (m *WorkflowExecutionStartedEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowExecutionStartedEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowExecutionStartedEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +type HistoryEvent_WorkflowExecutionCompletedEventAttributes struct { + WorkflowExecutionCompletedEventAttributes *WorkflowExecutionCompletedEventAttributes `protobuf:"bytes,6,opt,name=workflow_execution_completed_event_attributes,json=workflowExecutionCompletedEventAttributes,proto3,oneof"` } -func (m *WorkflowExecutionStartedEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowExecutionStartedEventAttributes.Merge(m, src) + +type HistoryEvent_WorkflowExecutionFailedEventAttributes struct { + WorkflowExecutionFailedEventAttributes *WorkflowExecutionFailedEventAttributes `protobuf:"bytes,7,opt,name=workflow_execution_failed_event_attributes,json=workflowExecutionFailedEventAttributes,proto3,oneof"` } -func (m *WorkflowExecutionStartedEventAttributes) XXX_Size() int { - return m.Size() + +type HistoryEvent_WorkflowExecutionTimedOutEventAttributes struct { + WorkflowExecutionTimedOutEventAttributes *WorkflowExecutionTimedOutEventAttributes `protobuf:"bytes,8,opt,name=workflow_execution_timed_out_event_attributes,json=workflowExecutionTimedOutEventAttributes,proto3,oneof"` } -func (m *WorkflowExecutionStartedEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowExecutionStartedEventAttributes.DiscardUnknown(m) + +type HistoryEvent_DecisionTaskScheduledEventAttributes struct { + DecisionTaskScheduledEventAttributes *DecisionTaskScheduledEventAttributes `protobuf:"bytes,9,opt,name=decision_task_scheduled_event_attributes,json=decisionTaskScheduledEventAttributes,proto3,oneof"` } -var xxx_messageInfo_WorkflowExecutionStartedEventAttributes proto.InternalMessageInfo +type HistoryEvent_DecisionTaskStartedEventAttributes struct { + DecisionTaskStartedEventAttributes *DecisionTaskStartedEventAttributes `protobuf:"bytes,10,opt,name=decision_task_started_event_attributes,json=decisionTaskStartedEventAttributes,proto3,oneof"` +} -func (m *WorkflowExecutionStartedEventAttributes) GetWorkflowType() *WorkflowType { - if m != nil { - return m.WorkflowType - } - return nil +type HistoryEvent_DecisionTaskCompletedEventAttributes struct { + DecisionTaskCompletedEventAttributes *DecisionTaskCompletedEventAttributes `protobuf:"bytes,11,opt,name=decision_task_completed_event_attributes,json=decisionTaskCompletedEventAttributes,proto3,oneof"` } -func (m *WorkflowExecutionStartedEventAttributes) GetParentWorkflowDomain() string { - if m != nil { - return m.ParentWorkflowDomain - } - return "" +type HistoryEvent_DecisionTaskTimedOutEventAttributes struct { + DecisionTaskTimedOutEventAttributes *DecisionTaskTimedOutEventAttributes `protobuf:"bytes,12,opt,name=decision_task_timed_out_event_attributes,json=decisionTaskTimedOutEventAttributes,proto3,oneof"` } -func (m *WorkflowExecutionStartedEventAttributes) GetParentWorkflowExecution() *WorkflowExecution { - if m != nil { - return m.ParentWorkflowExecution - } - return nil +type HistoryEvent_DecisionTaskFailedEventAttributes struct { + DecisionTaskFailedEventAttributes *DecisionTaskFailedEventAttributes `protobuf:"bytes,13,opt,name=decision_task_failed_event_attributes,json=decisionTaskFailedEventAttributes,proto3,oneof"` } -func (m *WorkflowExecutionStartedEventAttributes) GetParentInitiatedEventId() int64 { - if m != nil { - return m.ParentInitiatedEventId - } - return 0 +type HistoryEvent_ActivityTaskScheduledEventAttributes struct { + ActivityTaskScheduledEventAttributes *ActivityTaskScheduledEventAttributes `protobuf:"bytes,14,opt,name=activity_task_scheduled_event_attributes,json=activityTaskScheduledEventAttributes,proto3,oneof"` } -func (m *WorkflowExecutionStartedEventAttributes) GetTaskList() *TaskList { - if m != nil { - return m.TaskList - } - return nil +type HistoryEvent_ActivityTaskStartedEventAttributes struct { + ActivityTaskStartedEventAttributes *ActivityTaskStartedEventAttributes `protobuf:"bytes,15,opt,name=activity_task_started_event_attributes,json=activityTaskStartedEventAttributes,proto3,oneof"` } -func (m *WorkflowExecutionStartedEventAttributes) GetInput() *Payload { - if m != nil { - return m.Input - } - return nil +type HistoryEvent_ActivityTaskCompletedEventAttributes struct { + ActivityTaskCompletedEventAttributes *ActivityTaskCompletedEventAttributes `protobuf:"bytes,16,opt,name=activity_task_completed_event_attributes,json=activityTaskCompletedEventAttributes,proto3,oneof"` } -func (m *WorkflowExecutionStartedEventAttributes) GetExecutionStartToCloseTimeout() *time.Duration { - if m != nil { - return m.ExecutionStartToCloseTimeout - } - return nil +type HistoryEvent_ActivityTaskFailedEventAttributes struct { + ActivityTaskFailedEventAttributes *ActivityTaskFailedEventAttributes `protobuf:"bytes,17,opt,name=activity_task_failed_event_attributes,json=activityTaskFailedEventAttributes,proto3,oneof"` } -func (m *WorkflowExecutionStartedEventAttributes) GetTaskStartToCloseTimeout() *time.Duration { - if m != nil { - return m.TaskStartToCloseTimeout - } - return nil +type HistoryEvent_ActivityTaskTimedOutEventAttributes struct { + ActivityTaskTimedOutEventAttributes *ActivityTaskTimedOutEventAttributes `protobuf:"bytes,18,opt,name=activity_task_timed_out_event_attributes,json=activityTaskTimedOutEventAttributes,proto3,oneof"` } -func (m *WorkflowExecutionStartedEventAttributes) GetContinuedExecutionRunId() string { - if m != nil { - return m.ContinuedExecutionRunId - } - return "" +type HistoryEvent_TimerStartedEventAttributes struct { + TimerStartedEventAttributes *TimerStartedEventAttributes `protobuf:"bytes,19,opt,name=timer_started_event_attributes,json=timerStartedEventAttributes,proto3,oneof"` } -func (m *WorkflowExecutionStartedEventAttributes) GetInitiator() ContinueAsNewInitiator { - if m != nil { - return m.Initiator - } - return CONTINUE_AS_NEW_INITIATOR_INVALID +type HistoryEvent_TimerFiredEventAttributes struct { + TimerFiredEventAttributes *TimerFiredEventAttributes `protobuf:"bytes,20,opt,name=timer_fired_event_attributes,json=timerFiredEventAttributes,proto3,oneof"` } -func (m *WorkflowExecutionStartedEventAttributes) GetContinuedFailure() *Failure { - if m != nil { - return m.ContinuedFailure - } - return nil +type HistoryEvent_ActivityTaskCancelRequestedEventAttributes struct { + ActivityTaskCancelRequestedEventAttributes *ActivityTaskCancelRequestedEventAttributes `protobuf:"bytes,21,opt,name=activity_task_cancel_requested_event_attributes,json=activityTaskCancelRequestedEventAttributes,proto3,oneof"` } -func (m *WorkflowExecutionStartedEventAttributes) GetLastCompletionResult() *Payload { - if m != nil { - return m.LastCompletionResult - } - return nil +type HistoryEvent_RequestCancelActivityTaskFailedEventAttributes struct { + RequestCancelActivityTaskFailedEventAttributes *RequestCancelActivityTaskFailedEventAttributes `protobuf:"bytes,22,opt,name=request_cancel_activity_task_failed_event_attributes,json=requestCancelActivityTaskFailedEventAttributes,proto3,oneof"` } -func (m *WorkflowExecutionStartedEventAttributes) GetOriginalExecutionRunId() string { - if m != nil { - return m.OriginalExecutionRunId - } - return "" +type HistoryEvent_ActivityTaskCanceledEventAttributes struct { + ActivityTaskCanceledEventAttributes *ActivityTaskCanceledEventAttributes `protobuf:"bytes,23,opt,name=activity_task_canceled_event_attributes,json=activityTaskCanceledEventAttributes,proto3,oneof"` } -func (m *WorkflowExecutionStartedEventAttributes) GetIdentity() string { - if m != nil { - return m.Identity - } - return "" +type HistoryEvent_TimerCanceledEventAttributes struct { + TimerCanceledEventAttributes *TimerCanceledEventAttributes `protobuf:"bytes,24,opt,name=timer_canceled_event_attributes,json=timerCanceledEventAttributes,proto3,oneof"` } -func (m *WorkflowExecutionStartedEventAttributes) GetFirstExecutionRunId() string { - if m != nil { - return m.FirstExecutionRunId - } - return "" +type HistoryEvent_CancelTimerFailedEventAttributes struct { + CancelTimerFailedEventAttributes *CancelTimerFailedEventAttributes `protobuf:"bytes,25,opt,name=cancel_timer_failed_event_attributes,json=cancelTimerFailedEventAttributes,proto3,oneof"` } -func (m *WorkflowExecutionStartedEventAttributes) GetRetryPolicy() *RetryPolicy { - if m != nil { - return m.RetryPolicy - } - return nil +type HistoryEvent_MarkerRecordedEventAttributes struct { + MarkerRecordedEventAttributes *MarkerRecordedEventAttributes `protobuf:"bytes,26,opt,name=marker_recorded_event_attributes,json=markerRecordedEventAttributes,proto3,oneof"` } -func (m *WorkflowExecutionStartedEventAttributes) GetAttempt() int32 { - if m != nil { - return m.Attempt - } - return 0 +type HistoryEvent_WorkflowExecutionSignaledEventAttributes struct { + WorkflowExecutionSignaledEventAttributes *WorkflowExecutionSignaledEventAttributes `protobuf:"bytes,27,opt,name=workflow_execution_signaled_event_attributes,json=workflowExecutionSignaledEventAttributes,proto3,oneof"` } -func (m *WorkflowExecutionStartedEventAttributes) GetExpirationTime() *time.Time { - if m != nil { - return m.ExpirationTime - } - return nil +type HistoryEvent_WorkflowExecutionTerminatedEventAttributes struct { + WorkflowExecutionTerminatedEventAttributes *WorkflowExecutionTerminatedEventAttributes `protobuf:"bytes,28,opt,name=workflow_execution_terminated_event_attributes,json=workflowExecutionTerminatedEventAttributes,proto3,oneof"` } -func (m *WorkflowExecutionStartedEventAttributes) GetCronSchedule() string { - if m != nil { - return m.CronSchedule - } - return "" +type HistoryEvent_WorkflowExecutionCancelRequestedEventAttributes struct { + WorkflowExecutionCancelRequestedEventAttributes *WorkflowExecutionCancelRequestedEventAttributes `protobuf:"bytes,29,opt,name=workflow_execution_cancel_requested_event_attributes,json=workflowExecutionCancelRequestedEventAttributes,proto3,oneof"` } -func (m *WorkflowExecutionStartedEventAttributes) GetFirstDecisionTaskBackoff() *time.Duration { - if m != nil { - return m.FirstDecisionTaskBackoff - } - return nil +type HistoryEvent_WorkflowExecutionCanceledEventAttributes struct { + WorkflowExecutionCanceledEventAttributes *WorkflowExecutionCanceledEventAttributes `protobuf:"bytes,30,opt,name=workflow_execution_canceled_event_attributes,json=workflowExecutionCanceledEventAttributes,proto3,oneof"` } -func (m *WorkflowExecutionStartedEventAttributes) GetMemo() *Memo { - if m != nil { - return m.Memo - } - return nil +type HistoryEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes struct { + RequestCancelExternalWorkflowExecutionInitiatedEventAttributes *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes `protobuf:"bytes,31,opt,name=request_cancel_external_workflow_execution_initiated_event_attributes,json=requestCancelExternalWorkflowExecutionInitiatedEventAttributes,proto3,oneof"` } -func (m *WorkflowExecutionStartedEventAttributes) GetSearchAttributes() *SearchAttributes { - if m != nil { - return m.SearchAttributes - } - return nil +type HistoryEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes struct { + RequestCancelExternalWorkflowExecutionFailedEventAttributes *RequestCancelExternalWorkflowExecutionFailedEventAttributes `protobuf:"bytes,32,opt,name=request_cancel_external_workflow_execution_failed_event_attributes,json=requestCancelExternalWorkflowExecutionFailedEventAttributes,proto3,oneof"` } -func (m *WorkflowExecutionStartedEventAttributes) GetPrevAutoResetPoints() *ResetPoints { - if m != nil { - return m.PrevAutoResetPoints - } - return nil +type HistoryEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes struct { + ExternalWorkflowExecutionCancelRequestedEventAttributes *ExternalWorkflowExecutionCancelRequestedEventAttributes `protobuf:"bytes,33,opt,name=external_workflow_execution_cancel_requested_event_attributes,json=externalWorkflowExecutionCancelRequestedEventAttributes,proto3,oneof"` } -func (m *WorkflowExecutionStartedEventAttributes) GetHeader() *Header { - if m != nil { - return m.Header - } - return nil +type HistoryEvent_WorkflowExecutionContinuedAsNewEventAttributes struct { + WorkflowExecutionContinuedAsNewEventAttributes *WorkflowExecutionContinuedAsNewEventAttributes `protobuf:"bytes,34,opt,name=workflow_execution_continued_as_new_event_attributes,json=workflowExecutionContinuedAsNewEventAttributes,proto3,oneof"` } -type WorkflowExecutionCompletedEventAttributes struct { - Result *Payload `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` - DecisionTaskCompletedEventId int64 `protobuf:"varint,2,opt,name=decision_task_completed_event_id,json=decisionTaskCompletedEventId,proto3" json:"decision_task_completed_event_id,omitempty"` +type HistoryEvent_StartChildWorkflowExecutionInitiatedEventAttributes struct { + StartChildWorkflowExecutionInitiatedEventAttributes *StartChildWorkflowExecutionInitiatedEventAttributes `protobuf:"bytes,35,opt,name=start_child_workflow_execution_initiated_event_attributes,json=startChildWorkflowExecutionInitiatedEventAttributes,proto3,oneof"` } -func (m *WorkflowExecutionCompletedEventAttributes) Reset() { - *m = WorkflowExecutionCompletedEventAttributes{} +type HistoryEvent_StartChildWorkflowExecutionFailedEventAttributes struct { + StartChildWorkflowExecutionFailedEventAttributes *StartChildWorkflowExecutionFailedEventAttributes `protobuf:"bytes,36,opt,name=start_child_workflow_execution_failed_event_attributes,json=startChildWorkflowExecutionFailedEventAttributes,proto3,oneof"` } -func (*WorkflowExecutionCompletedEventAttributes) ProtoMessage() {} -func (*WorkflowExecutionCompletedEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{3} -} -func (m *WorkflowExecutionCompletedEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowExecutionCompletedEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowExecutionCompletedEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + +type HistoryEvent_ChildWorkflowExecutionStartedEventAttributes struct { + ChildWorkflowExecutionStartedEventAttributes *ChildWorkflowExecutionStartedEventAttributes `protobuf:"bytes,37,opt,name=child_workflow_execution_started_event_attributes,json=childWorkflowExecutionStartedEventAttributes,proto3,oneof"` } -func (m *WorkflowExecutionCompletedEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowExecutionCompletedEventAttributes.Merge(m, src) + +type HistoryEvent_ChildWorkflowExecutionCompletedEventAttributes struct { + ChildWorkflowExecutionCompletedEventAttributes *ChildWorkflowExecutionCompletedEventAttributes `protobuf:"bytes,38,opt,name=child_workflow_execution_completed_event_attributes,json=childWorkflowExecutionCompletedEventAttributes,proto3,oneof"` } -func (m *WorkflowExecutionCompletedEventAttributes) XXX_Size() int { - return m.Size() + +type HistoryEvent_ChildWorkflowExecutionFailedEventAttributes struct { + ChildWorkflowExecutionFailedEventAttributes *ChildWorkflowExecutionFailedEventAttributes `protobuf:"bytes,39,opt,name=child_workflow_execution_failed_event_attributes,json=childWorkflowExecutionFailedEventAttributes,proto3,oneof"` } -func (m *WorkflowExecutionCompletedEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowExecutionCompletedEventAttributes.DiscardUnknown(m) + +type HistoryEvent_ChildWorkflowExecutionCanceledEventAttributes struct { + ChildWorkflowExecutionCanceledEventAttributes *ChildWorkflowExecutionCanceledEventAttributes `protobuf:"bytes,40,opt,name=child_workflow_execution_canceled_event_attributes,json=childWorkflowExecutionCanceledEventAttributes,proto3,oneof"` } -var xxx_messageInfo_WorkflowExecutionCompletedEventAttributes proto.InternalMessageInfo +type HistoryEvent_ChildWorkflowExecutionTimedOutEventAttributes struct { + ChildWorkflowExecutionTimedOutEventAttributes *ChildWorkflowExecutionTimedOutEventAttributes `protobuf:"bytes,41,opt,name=child_workflow_execution_timed_out_event_attributes,json=childWorkflowExecutionTimedOutEventAttributes,proto3,oneof"` +} -func (m *WorkflowExecutionCompletedEventAttributes) GetResult() *Payload { - if m != nil { - return m.Result - } - return nil +type HistoryEvent_ChildWorkflowExecutionTerminatedEventAttributes struct { + ChildWorkflowExecutionTerminatedEventAttributes *ChildWorkflowExecutionTerminatedEventAttributes `protobuf:"bytes,42,opt,name=child_workflow_execution_terminated_event_attributes,json=childWorkflowExecutionTerminatedEventAttributes,proto3,oneof"` } -func (m *WorkflowExecutionCompletedEventAttributes) GetDecisionTaskCompletedEventId() int64 { - if m != nil { - return m.DecisionTaskCompletedEventId - } - return 0 +type HistoryEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes struct { + SignalExternalWorkflowExecutionInitiatedEventAttributes *SignalExternalWorkflowExecutionInitiatedEventAttributes `protobuf:"bytes,43,opt,name=signal_external_workflow_execution_initiated_event_attributes,json=signalExternalWorkflowExecutionInitiatedEventAttributes,proto3,oneof"` } -type WorkflowExecutionFailedEventAttributes struct { - Failure *Failure `protobuf:"bytes,1,opt,name=failure,proto3" json:"failure,omitempty"` - DecisionTaskCompletedEventId int64 `protobuf:"varint,2,opt,name=decision_task_completed_event_id,json=decisionTaskCompletedEventId,proto3" json:"decision_task_completed_event_id,omitempty"` +type HistoryEvent_SignalExternalWorkflowExecutionFailedEventAttributes struct { + SignalExternalWorkflowExecutionFailedEventAttributes *SignalExternalWorkflowExecutionFailedEventAttributes `protobuf:"bytes,44,opt,name=signal_external_workflow_execution_failed_event_attributes,json=signalExternalWorkflowExecutionFailedEventAttributes,proto3,oneof"` } -func (m *WorkflowExecutionFailedEventAttributes) Reset() { - *m = WorkflowExecutionFailedEventAttributes{} +type HistoryEvent_ExternalWorkflowExecutionSignaledEventAttributes struct { + ExternalWorkflowExecutionSignaledEventAttributes *ExternalWorkflowExecutionSignaledEventAttributes `protobuf:"bytes,45,opt,name=external_workflow_execution_signaled_event_attributes,json=externalWorkflowExecutionSignaledEventAttributes,proto3,oneof"` } -func (*WorkflowExecutionFailedEventAttributes) ProtoMessage() {} -func (*WorkflowExecutionFailedEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{4} -} -func (m *WorkflowExecutionFailedEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowExecutionFailedEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowExecutionFailedEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + +type HistoryEvent_UpsertWorkflowSearchAttributesEventAttributes struct { + UpsertWorkflowSearchAttributesEventAttributes *UpsertWorkflowSearchAttributesEventAttributes `protobuf:"bytes,46,opt,name=upsert_workflow_search_attributes_event_attributes,json=upsertWorkflowSearchAttributesEventAttributes,proto3,oneof"` } -func (m *WorkflowExecutionFailedEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowExecutionFailedEventAttributes.Merge(m, src) + +func (*HistoryEvent_WorkflowExecutionStartedEventAttributes) isHistoryEvent_Attributes() {} + +func (*HistoryEvent_WorkflowExecutionCompletedEventAttributes) isHistoryEvent_Attributes() {} + +func (*HistoryEvent_WorkflowExecutionFailedEventAttributes) isHistoryEvent_Attributes() {} + +func (*HistoryEvent_WorkflowExecutionTimedOutEventAttributes) isHistoryEvent_Attributes() {} + +func (*HistoryEvent_DecisionTaskScheduledEventAttributes) isHistoryEvent_Attributes() {} + +func (*HistoryEvent_DecisionTaskStartedEventAttributes) isHistoryEvent_Attributes() {} + +func (*HistoryEvent_DecisionTaskCompletedEventAttributes) isHistoryEvent_Attributes() {} + +func (*HistoryEvent_DecisionTaskTimedOutEventAttributes) isHistoryEvent_Attributes() {} + +func (*HistoryEvent_DecisionTaskFailedEventAttributes) isHistoryEvent_Attributes() {} + +func (*HistoryEvent_ActivityTaskScheduledEventAttributes) isHistoryEvent_Attributes() {} + +func (*HistoryEvent_ActivityTaskStartedEventAttributes) isHistoryEvent_Attributes() {} + +func (*HistoryEvent_ActivityTaskCompletedEventAttributes) isHistoryEvent_Attributes() {} + +func (*HistoryEvent_ActivityTaskFailedEventAttributes) isHistoryEvent_Attributes() {} + +func (*HistoryEvent_ActivityTaskTimedOutEventAttributes) isHistoryEvent_Attributes() {} + +func (*HistoryEvent_TimerStartedEventAttributes) isHistoryEvent_Attributes() {} + +func (*HistoryEvent_TimerFiredEventAttributes) isHistoryEvent_Attributes() {} + +func (*HistoryEvent_ActivityTaskCancelRequestedEventAttributes) isHistoryEvent_Attributes() {} + +func (*HistoryEvent_RequestCancelActivityTaskFailedEventAttributes) isHistoryEvent_Attributes() {} + +func (*HistoryEvent_ActivityTaskCanceledEventAttributes) isHistoryEvent_Attributes() {} + +func (*HistoryEvent_TimerCanceledEventAttributes) isHistoryEvent_Attributes() {} + +func (*HistoryEvent_CancelTimerFailedEventAttributes) isHistoryEvent_Attributes() {} + +func (*HistoryEvent_MarkerRecordedEventAttributes) isHistoryEvent_Attributes() {} + +func (*HistoryEvent_WorkflowExecutionSignaledEventAttributes) isHistoryEvent_Attributes() {} + +func (*HistoryEvent_WorkflowExecutionTerminatedEventAttributes) isHistoryEvent_Attributes() {} + +func (*HistoryEvent_WorkflowExecutionCancelRequestedEventAttributes) isHistoryEvent_Attributes() {} + +func (*HistoryEvent_WorkflowExecutionCanceledEventAttributes) isHistoryEvent_Attributes() {} + +func (*HistoryEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) isHistoryEvent_Attributes() { } -func (m *WorkflowExecutionFailedEventAttributes) XXX_Size() int { - return m.Size() + +func (*HistoryEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes) isHistoryEvent_Attributes() { } -func (m *WorkflowExecutionFailedEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowExecutionFailedEventAttributes.DiscardUnknown(m) + +func (*HistoryEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes) isHistoryEvent_Attributes() { } -var xxx_messageInfo_WorkflowExecutionFailedEventAttributes proto.InternalMessageInfo +func (*HistoryEvent_WorkflowExecutionContinuedAsNewEventAttributes) isHistoryEvent_Attributes() {} -func (m *WorkflowExecutionFailedEventAttributes) GetFailure() *Failure { - if m != nil { - return m.Failure - } - return nil +func (*HistoryEvent_StartChildWorkflowExecutionInitiatedEventAttributes) isHistoryEvent_Attributes() { } -func (m *WorkflowExecutionFailedEventAttributes) GetDecisionTaskCompletedEventId() int64 { - if m != nil { - return m.DecisionTaskCompletedEventId - } - return 0 +func (*HistoryEvent_StartChildWorkflowExecutionFailedEventAttributes) isHistoryEvent_Attributes() {} + +func (*HistoryEvent_ChildWorkflowExecutionStartedEventAttributes) isHistoryEvent_Attributes() {} + +func (*HistoryEvent_ChildWorkflowExecutionCompletedEventAttributes) isHistoryEvent_Attributes() {} + +func (*HistoryEvent_ChildWorkflowExecutionFailedEventAttributes) isHistoryEvent_Attributes() {} + +func (*HistoryEvent_ChildWorkflowExecutionCanceledEventAttributes) isHistoryEvent_Attributes() {} + +func (*HistoryEvent_ChildWorkflowExecutionTimedOutEventAttributes) isHistoryEvent_Attributes() {} + +func (*HistoryEvent_ChildWorkflowExecutionTerminatedEventAttributes) isHistoryEvent_Attributes() {} + +func (*HistoryEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes) isHistoryEvent_Attributes() { } -type WorkflowExecutionTimedOutEventAttributes struct { - TimeoutType TimeoutType `protobuf:"varint,1,opt,name=timeout_type,json=timeoutType,proto3,enum=uber.cadence.api.v1.TimeoutType" json:"timeout_type,omitempty"` +func (*HistoryEvent_SignalExternalWorkflowExecutionFailedEventAttributes) isHistoryEvent_Attributes() { } -func (m *WorkflowExecutionTimedOutEventAttributes) Reset() { - *m = WorkflowExecutionTimedOutEventAttributes{} +func (*HistoryEvent_ExternalWorkflowExecutionSignaledEventAttributes) isHistoryEvent_Attributes() {} + +func (*HistoryEvent_UpsertWorkflowSearchAttributesEventAttributes) isHistoryEvent_Attributes() {} + +type WorkflowExecutionStartedEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + WorkflowType *WorkflowType `protobuf:"bytes,1,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` + ParentWorkflowDomain string `protobuf:"bytes,2,opt,name=parent_workflow_domain,json=parentWorkflowDomain,proto3" json:"parent_workflow_domain,omitempty"` + ParentWorkflowExecution *WorkflowExecution `protobuf:"bytes,3,opt,name=parent_workflow_execution,json=parentWorkflowExecution,proto3" json:"parent_workflow_execution,omitempty"` + ParentInitiatedEventId int64 `protobuf:"varint,4,opt,name=parent_initiated_event_id,json=parentInitiatedEventId,proto3" json:"parent_initiated_event_id,omitempty"` + TaskList *TaskList `protobuf:"bytes,5,opt,name=task_list,json=taskList,proto3" json:"task_list,omitempty"` + Input *Payload `protobuf:"bytes,6,opt,name=input,proto3" json:"input,omitempty"` + ExecutionStartToCloseTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=execution_start_to_close_timeout,json=executionStartToCloseTimeout,proto3" json:"execution_start_to_close_timeout,omitempty"` + TaskStartToCloseTimeout *durationpb.Duration `protobuf:"bytes,8,opt,name=task_start_to_close_timeout,json=taskStartToCloseTimeout,proto3" json:"task_start_to_close_timeout,omitempty"` + ContinuedExecutionRunId string `protobuf:"bytes,9,opt,name=continued_execution_run_id,json=continuedExecutionRunId,proto3" json:"continued_execution_run_id,omitempty"` + Initiator ContinueAsNewInitiator `protobuf:"varint,10,opt,name=initiator,proto3,enum=uber.cadence.api.v1.ContinueAsNewInitiator" json:"initiator,omitempty"` + ContinuedFailure *Failure `protobuf:"bytes,11,opt,name=continued_failure,json=continuedFailure,proto3" json:"continued_failure,omitempty"` + LastCompletionResult *Payload `protobuf:"bytes,12,opt,name=last_completion_result,json=lastCompletionResult,proto3" json:"last_completion_result,omitempty"` + // This is the previous runID of ContinueAsNew. + OriginalExecutionRunId string `protobuf:"bytes,13,opt,name=original_execution_run_id,json=originalExecutionRunId,proto3" json:"original_execution_run_id,omitempty"` + Identity string `protobuf:"bytes,14,opt,name=identity,proto3" json:"identity,omitempty"` + // This is the very first runID along the chain of ContinueAsNew and Reset. + FirstExecutionRunId string `protobuf:"bytes,15,opt,name=first_execution_run_id,json=firstExecutionRunId,proto3" json:"first_execution_run_id,omitempty"` + RetryPolicy *RetryPolicy `protobuf:"bytes,16,opt,name=retry_policy,json=retryPolicy,proto3" json:"retry_policy,omitempty"` + Attempt int32 `protobuf:"varint,17,opt,name=attempt,proto3" json:"attempt,omitempty"` + ExpirationTime *timestamppb.Timestamp `protobuf:"bytes,19,opt,name=expiration_time,json=expirationTime,proto3" json:"expiration_time,omitempty"` + CronSchedule string `protobuf:"bytes,20,opt,name=cron_schedule,json=cronSchedule,proto3" json:"cron_schedule,omitempty"` + FirstDecisionTaskBackoff *durationpb.Duration `protobuf:"bytes,21,opt,name=first_decision_task_backoff,json=firstDecisionTaskBackoff,proto3" json:"first_decision_task_backoff,omitempty"` + Memo *Memo `protobuf:"bytes,22,opt,name=memo,proto3" json:"memo,omitempty"` + SearchAttributes *SearchAttributes `protobuf:"bytes,23,opt,name=search_attributes,json=searchAttributes,proto3" json:"search_attributes,omitempty"` + PrevAutoResetPoints *ResetPoints `protobuf:"bytes,24,opt,name=prev_auto_reset_points,json=prevAutoResetPoints,proto3" json:"prev_auto_reset_points,omitempty"` + Header *Header `protobuf:"bytes,25,opt,name=header,proto3" json:"header,omitempty"` } -func (*WorkflowExecutionTimedOutEventAttributes) ProtoMessage() {} -func (*WorkflowExecutionTimedOutEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{5} -} -func (m *WorkflowExecutionTimedOutEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowExecutionTimedOutEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowExecutionTimedOutEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + +func (x *WorkflowExecutionStartedEventAttributes) Reset() { + *x = WorkflowExecutionStartedEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *WorkflowExecutionTimedOutEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowExecutionTimedOutEventAttributes.Merge(m, src) -} -func (m *WorkflowExecutionTimedOutEventAttributes) XXX_Size() int { - return m.Size() -} -func (m *WorkflowExecutionTimedOutEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowExecutionTimedOutEventAttributes.DiscardUnknown(m) + +func (x *WorkflowExecutionStartedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_WorkflowExecutionTimedOutEventAttributes proto.InternalMessageInfo +func (*WorkflowExecutionStartedEventAttributes) ProtoMessage() {} -func (m *WorkflowExecutionTimedOutEventAttributes) GetTimeoutType() TimeoutType { - if m != nil { - return m.TimeoutType +func (x *WorkflowExecutionStartedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return TIMEOUT_TYPE_INVALID + return mi.MessageOf(x) } -type DecisionTaskScheduledEventAttributes struct { - TaskList *TaskList `protobuf:"bytes,1,opt,name=task_list,json=taskList,proto3" json:"task_list,omitempty"` - StartToCloseTimeout *time.Duration `protobuf:"bytes,2,opt,name=start_to_close_timeout,json=startToCloseTimeout,proto3,stdduration" json:"start_to_close_timeout,omitempty"` - Attempt int32 `protobuf:"varint,3,opt,name=attempt,proto3" json:"attempt,omitempty"` +// Deprecated: Use WorkflowExecutionStartedEventAttributes.ProtoReflect.Descriptor instead. +func (*WorkflowExecutionStartedEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{2} } -func (m *DecisionTaskScheduledEventAttributes) Reset() { *m = DecisionTaskScheduledEventAttributes{} } -func (*DecisionTaskScheduledEventAttributes) ProtoMessage() {} -func (*DecisionTaskScheduledEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{6} -} -func (m *DecisionTaskScheduledEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DecisionTaskScheduledEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DecisionTaskScheduledEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *WorkflowExecutionStartedEventAttributes) GetWorkflowType() *WorkflowType { + if x != nil { + return x.WorkflowType } -} -func (m *DecisionTaskScheduledEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_DecisionTaskScheduledEventAttributes.Merge(m, src) -} -func (m *DecisionTaskScheduledEventAttributes) XXX_Size() int { - return m.Size() -} -func (m *DecisionTaskScheduledEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_DecisionTaskScheduledEventAttributes.DiscardUnknown(m) + return nil } -var xxx_messageInfo_DecisionTaskScheduledEventAttributes proto.InternalMessageInfo - -func (m *DecisionTaskScheduledEventAttributes) GetTaskList() *TaskList { - if m != nil { - return m.TaskList +func (x *WorkflowExecutionStartedEventAttributes) GetParentWorkflowDomain() string { + if x != nil { + return x.ParentWorkflowDomain } - return nil + return "" } -func (m *DecisionTaskScheduledEventAttributes) GetStartToCloseTimeout() *time.Duration { - if m != nil { - return m.StartToCloseTimeout +func (x *WorkflowExecutionStartedEventAttributes) GetParentWorkflowExecution() *WorkflowExecution { + if x != nil { + return x.ParentWorkflowExecution } return nil } -func (m *DecisionTaskScheduledEventAttributes) GetAttempt() int32 { - if m != nil { - return m.Attempt +func (x *WorkflowExecutionStartedEventAttributes) GetParentInitiatedEventId() int64 { + if x != nil { + return x.ParentInitiatedEventId } return 0 } -type DecisionTaskStartedEventAttributes struct { - ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` - Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` - RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` +func (x *WorkflowExecutionStartedEventAttributes) GetTaskList() *TaskList { + if x != nil { + return x.TaskList + } + return nil } -func (m *DecisionTaskStartedEventAttributes) Reset() { *m = DecisionTaskStartedEventAttributes{} } -func (*DecisionTaskStartedEventAttributes) ProtoMessage() {} -func (*DecisionTaskStartedEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{7} -} -func (m *DecisionTaskStartedEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DecisionTaskStartedEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DecisionTaskStartedEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *WorkflowExecutionStartedEventAttributes) GetInput() *Payload { + if x != nil { + return x.Input } + return nil } -func (m *DecisionTaskStartedEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_DecisionTaskStartedEventAttributes.Merge(m, src) -} -func (m *DecisionTaskStartedEventAttributes) XXX_Size() int { - return m.Size() -} -func (m *DecisionTaskStartedEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_DecisionTaskStartedEventAttributes.DiscardUnknown(m) -} - -var xxx_messageInfo_DecisionTaskStartedEventAttributes proto.InternalMessageInfo -func (m *DecisionTaskStartedEventAttributes) GetScheduledEventId() int64 { - if m != nil { - return m.ScheduledEventId +func (x *WorkflowExecutionStartedEventAttributes) GetExecutionStartToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.ExecutionStartToCloseTimeout } - return 0 + return nil } -func (m *DecisionTaskStartedEventAttributes) GetIdentity() string { - if m != nil { - return m.Identity +func (x *WorkflowExecutionStartedEventAttributes) GetTaskStartToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.TaskStartToCloseTimeout } - return "" + return nil } -func (m *DecisionTaskStartedEventAttributes) GetRequestId() string { - if m != nil { - return m.RequestId +func (x *WorkflowExecutionStartedEventAttributes) GetContinuedExecutionRunId() string { + if x != nil { + return x.ContinuedExecutionRunId } return "" } -type DecisionTaskCompletedEventAttributes struct { - ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` - StartedEventId int64 `protobuf:"varint,2,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` - Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` - BinaryChecksum string `protobuf:"bytes,4,opt,name=binary_checksum,json=binaryChecksum,proto3" json:"binary_checksum,omitempty"` - ExecutionContext []byte `protobuf:"bytes,5,opt,name=execution_context,json=executionContext,proto3" json:"execution_context,omitempty"` +func (x *WorkflowExecutionStartedEventAttributes) GetInitiator() ContinueAsNewInitiator { + if x != nil { + return x.Initiator + } + return ContinueAsNewInitiator_CONTINUE_AS_NEW_INITIATOR_INVALID } -func (m *DecisionTaskCompletedEventAttributes) Reset() { *m = DecisionTaskCompletedEventAttributes{} } -func (*DecisionTaskCompletedEventAttributes) ProtoMessage() {} -func (*DecisionTaskCompletedEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{8} -} -func (m *DecisionTaskCompletedEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DecisionTaskCompletedEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DecisionTaskCompletedEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *WorkflowExecutionStartedEventAttributes) GetContinuedFailure() *Failure { + if x != nil { + return x.ContinuedFailure } + return nil } -func (m *DecisionTaskCompletedEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_DecisionTaskCompletedEventAttributes.Merge(m, src) -} -func (m *DecisionTaskCompletedEventAttributes) XXX_Size() int { - return m.Size() -} -func (m *DecisionTaskCompletedEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_DecisionTaskCompletedEventAttributes.DiscardUnknown(m) -} - -var xxx_messageInfo_DecisionTaskCompletedEventAttributes proto.InternalMessageInfo -func (m *DecisionTaskCompletedEventAttributes) GetScheduledEventId() int64 { - if m != nil { - return m.ScheduledEventId +func (x *WorkflowExecutionStartedEventAttributes) GetLastCompletionResult() *Payload { + if x != nil { + return x.LastCompletionResult } - return 0 + return nil } -func (m *DecisionTaskCompletedEventAttributes) GetStartedEventId() int64 { - if m != nil { - return m.StartedEventId +func (x *WorkflowExecutionStartedEventAttributes) GetOriginalExecutionRunId() string { + if x != nil { + return x.OriginalExecutionRunId } - return 0 + return "" } -func (m *DecisionTaskCompletedEventAttributes) GetIdentity() string { - if m != nil { - return m.Identity +func (x *WorkflowExecutionStartedEventAttributes) GetIdentity() string { + if x != nil { + return x.Identity } return "" } -func (m *DecisionTaskCompletedEventAttributes) GetBinaryChecksum() string { - if m != nil { - return m.BinaryChecksum +func (x *WorkflowExecutionStartedEventAttributes) GetFirstExecutionRunId() string { + if x != nil { + return x.FirstExecutionRunId } return "" } -func (m *DecisionTaskCompletedEventAttributes) GetExecutionContext() []byte { - if m != nil { - return m.ExecutionContext +func (x *WorkflowExecutionStartedEventAttributes) GetRetryPolicy() *RetryPolicy { + if x != nil { + return x.RetryPolicy } return nil } -type DecisionTaskTimedOutEventAttributes struct { - ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` - StartedEventId int64 `protobuf:"varint,2,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` - TimeoutType TimeoutType `protobuf:"varint,3,opt,name=timeout_type,json=timeoutType,proto3,enum=uber.cadence.api.v1.TimeoutType" json:"timeout_type,omitempty"` -} - -func (m *DecisionTaskTimedOutEventAttributes) Reset() { *m = DecisionTaskTimedOutEventAttributes{} } -func (*DecisionTaskTimedOutEventAttributes) ProtoMessage() {} -func (*DecisionTaskTimedOutEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{9} -} -func (m *DecisionTaskTimedOutEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DecisionTaskTimedOutEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DecisionTaskTimedOutEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *WorkflowExecutionStartedEventAttributes) GetAttempt() int32 { + if x != nil { + return x.Attempt } + return 0 } -func (m *DecisionTaskTimedOutEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_DecisionTaskTimedOutEventAttributes.Merge(m, src) + +func (x *WorkflowExecutionStartedEventAttributes) GetExpirationTime() *timestamppb.Timestamp { + if x != nil { + return x.ExpirationTime + } + return nil } -func (m *DecisionTaskTimedOutEventAttributes) XXX_Size() int { - return m.Size() + +func (x *WorkflowExecutionStartedEventAttributes) GetCronSchedule() string { + if x != nil { + return x.CronSchedule + } + return "" } -func (m *DecisionTaskTimedOutEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_DecisionTaskTimedOutEventAttributes.DiscardUnknown(m) + +func (x *WorkflowExecutionStartedEventAttributes) GetFirstDecisionTaskBackoff() *durationpb.Duration { + if x != nil { + return x.FirstDecisionTaskBackoff + } + return nil } -var xxx_messageInfo_DecisionTaskTimedOutEventAttributes proto.InternalMessageInfo +func (x *WorkflowExecutionStartedEventAttributes) GetMemo() *Memo { + if x != nil { + return x.Memo + } + return nil +} -func (m *DecisionTaskTimedOutEventAttributes) GetScheduledEventId() int64 { - if m != nil { - return m.ScheduledEventId +func (x *WorkflowExecutionStartedEventAttributes) GetSearchAttributes() *SearchAttributes { + if x != nil { + return x.SearchAttributes } - return 0 + return nil } -func (m *DecisionTaskTimedOutEventAttributes) GetStartedEventId() int64 { - if m != nil { - return m.StartedEventId +func (x *WorkflowExecutionStartedEventAttributes) GetPrevAutoResetPoints() *ResetPoints { + if x != nil { + return x.PrevAutoResetPoints } - return 0 + return nil } -func (m *DecisionTaskTimedOutEventAttributes) GetTimeoutType() TimeoutType { - if m != nil { - return m.TimeoutType +func (x *WorkflowExecutionStartedEventAttributes) GetHeader() *Header { + if x != nil { + return x.Header } - return TIMEOUT_TYPE_INVALID + return nil } -type DecisionTaskFailedEventAttributes struct { - ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` - StartedEventId int64 `protobuf:"varint,2,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` - Cause DecisionTaskFailedCause `protobuf:"varint,3,opt,name=cause,proto3,enum=uber.cadence.api.v1.DecisionTaskFailedCause" json:"cause,omitempty"` - Failure *Failure `protobuf:"bytes,4,opt,name=failure,proto3" json:"failure,omitempty"` - Identity string `protobuf:"bytes,5,opt,name=identity,proto3" json:"identity,omitempty"` - // For reset workflow. - BaseRunId string `protobuf:"bytes,6,opt,name=base_run_id,json=baseRunId,proto3" json:"base_run_id,omitempty"` - NewRunId string `protobuf:"bytes,7,opt,name=new_run_id,json=newRunId,proto3" json:"new_run_id,omitempty"` - ForkEventVersion int64 `protobuf:"varint,8,opt,name=fork_event_version,json=forkEventVersion,proto3" json:"fork_event_version,omitempty"` - BinaryChecksum string `protobuf:"bytes,9,opt,name=binary_checksum,json=binaryChecksum,proto3" json:"binary_checksum,omitempty"` +type WorkflowExecutionCompletedEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Result *Payload `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` + DecisionTaskCompletedEventId int64 `protobuf:"varint,2,opt,name=decision_task_completed_event_id,json=decisionTaskCompletedEventId,proto3" json:"decision_task_completed_event_id,omitempty"` } -func (m *DecisionTaskFailedEventAttributes) Reset() { *m = DecisionTaskFailedEventAttributes{} } -func (*DecisionTaskFailedEventAttributes) ProtoMessage() {} -func (*DecisionTaskFailedEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{10} -} -func (m *DecisionTaskFailedEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DecisionTaskFailedEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DecisionTaskFailedEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *WorkflowExecutionCompletedEventAttributes) Reset() { + *x = WorkflowExecutionCompletedEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *DecisionTaskFailedEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_DecisionTaskFailedEventAttributes.Merge(m, src) -} -func (m *DecisionTaskFailedEventAttributes) XXX_Size() int { - return m.Size() + +func (x *WorkflowExecutionCompletedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DecisionTaskFailedEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_DecisionTaskFailedEventAttributes.DiscardUnknown(m) + +func (*WorkflowExecutionCompletedEventAttributes) ProtoMessage() {} + +func (x *WorkflowExecutionCompletedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DecisionTaskFailedEventAttributes proto.InternalMessageInfo +// Deprecated: Use WorkflowExecutionCompletedEventAttributes.ProtoReflect.Descriptor instead. +func (*WorkflowExecutionCompletedEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{3} +} -func (m *DecisionTaskFailedEventAttributes) GetScheduledEventId() int64 { - if m != nil { - return m.ScheduledEventId +func (x *WorkflowExecutionCompletedEventAttributes) GetResult() *Payload { + if x != nil { + return x.Result } - return 0 + return nil } -func (m *DecisionTaskFailedEventAttributes) GetStartedEventId() int64 { - if m != nil { - return m.StartedEventId +func (x *WorkflowExecutionCompletedEventAttributes) GetDecisionTaskCompletedEventId() int64 { + if x != nil { + return x.DecisionTaskCompletedEventId } return 0 } -func (m *DecisionTaskFailedEventAttributes) GetCause() DecisionTaskFailedCause { - if m != nil { - return m.Cause - } - return DECISION_TASK_FAILED_CAUSE_INVALID +type WorkflowExecutionFailedEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Failure *Failure `protobuf:"bytes,1,opt,name=failure,proto3" json:"failure,omitempty"` + DecisionTaskCompletedEventId int64 `protobuf:"varint,2,opt,name=decision_task_completed_event_id,json=decisionTaskCompletedEventId,proto3" json:"decision_task_completed_event_id,omitempty"` } -func (m *DecisionTaskFailedEventAttributes) GetFailure() *Failure { - if m != nil { - return m.Failure +func (x *WorkflowExecutionFailedEventAttributes) Reset() { + *x = WorkflowExecutionFailedEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *DecisionTaskFailedEventAttributes) GetIdentity() string { - if m != nil { - return m.Identity - } - return "" +func (x *WorkflowExecutionFailedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DecisionTaskFailedEventAttributes) GetBaseRunId() string { - if m != nil { - return m.BaseRunId +func (*WorkflowExecutionFailedEventAttributes) ProtoMessage() {} + +func (x *WorkflowExecutionFailedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -func (m *DecisionTaskFailedEventAttributes) GetNewRunId() string { - if m != nil { - return m.NewRunId +// Deprecated: Use WorkflowExecutionFailedEventAttributes.ProtoReflect.Descriptor instead. +func (*WorkflowExecutionFailedEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{4} +} + +func (x *WorkflowExecutionFailedEventAttributes) GetFailure() *Failure { + if x != nil { + return x.Failure } - return "" + return nil } -func (m *DecisionTaskFailedEventAttributes) GetForkEventVersion() int64 { - if m != nil { - return m.ForkEventVersion +func (x *WorkflowExecutionFailedEventAttributes) GetDecisionTaskCompletedEventId() int64 { + if x != nil { + return x.DecisionTaskCompletedEventId } return 0 } -func (m *DecisionTaskFailedEventAttributes) GetBinaryChecksum() string { - if m != nil { - return m.BinaryChecksum - } - return "" +type WorkflowExecutionTimedOutEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TimeoutType TimeoutType `protobuf:"varint,1,opt,name=timeout_type,json=timeoutType,proto3,enum=uber.cadence.api.v1.TimeoutType" json:"timeout_type,omitempty"` } -type ActivityTaskScheduledEventAttributes struct { - ActivityId string `protobuf:"bytes,1,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` - ActivityType *ActivityType `protobuf:"bytes,2,opt,name=activity_type,json=activityType,proto3" json:"activity_type,omitempty"` - Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"` - TaskList *TaskList `protobuf:"bytes,4,opt,name=task_list,json=taskList,proto3" json:"task_list,omitempty"` - Input *Payload `protobuf:"bytes,6,opt,name=input,proto3" json:"input,omitempty"` - ScheduleToCloseTimeout *time.Duration `protobuf:"bytes,7,opt,name=schedule_to_close_timeout,json=scheduleToCloseTimeout,proto3,stdduration" json:"schedule_to_close_timeout,omitempty"` - ScheduleToStartTimeout *time.Duration `protobuf:"bytes,8,opt,name=schedule_to_start_timeout,json=scheduleToStartTimeout,proto3,stdduration" json:"schedule_to_start_timeout,omitempty"` - StartToCloseTimeout *time.Duration `protobuf:"bytes,9,opt,name=start_to_close_timeout,json=startToCloseTimeout,proto3,stdduration" json:"start_to_close_timeout,omitempty"` - HeartbeatTimeout *time.Duration `protobuf:"bytes,10,opt,name=heartbeat_timeout,json=heartbeatTimeout,proto3,stdduration" json:"heartbeat_timeout,omitempty"` - DecisionTaskCompletedEventId int64 `protobuf:"varint,11,opt,name=decision_task_completed_event_id,json=decisionTaskCompletedEventId,proto3" json:"decision_task_completed_event_id,omitempty"` - RetryPolicy *RetryPolicy `protobuf:"bytes,12,opt,name=retry_policy,json=retryPolicy,proto3" json:"retry_policy,omitempty"` - Header *Header `protobuf:"bytes,13,opt,name=header,proto3" json:"header,omitempty"` -} - -func (m *ActivityTaskScheduledEventAttributes) Reset() { *m = ActivityTaskScheduledEventAttributes{} } -func (*ActivityTaskScheduledEventAttributes) ProtoMessage() {} -func (*ActivityTaskScheduledEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{11} -} -func (m *ActivityTaskScheduledEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ActivityTaskScheduledEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ActivityTaskScheduledEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *WorkflowExecutionTimedOutEventAttributes) Reset() { + *x = WorkflowExecutionTimedOutEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ActivityTaskScheduledEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_ActivityTaskScheduledEventAttributes.Merge(m, src) -} -func (m *ActivityTaskScheduledEventAttributes) XXX_Size() int { - return m.Size() -} -func (m *ActivityTaskScheduledEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_ActivityTaskScheduledEventAttributes.DiscardUnknown(m) + +func (x *WorkflowExecutionTimedOutEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ActivityTaskScheduledEventAttributes proto.InternalMessageInfo +func (*WorkflowExecutionTimedOutEventAttributes) ProtoMessage() {} -func (m *ActivityTaskScheduledEventAttributes) GetActivityId() string { - if m != nil { - return m.ActivityId +func (x *WorkflowExecutionTimedOutEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -func (m *ActivityTaskScheduledEventAttributes) GetActivityType() *ActivityType { - if m != nil { - return m.ActivityType - } - return nil +// Deprecated: Use WorkflowExecutionTimedOutEventAttributes.ProtoReflect.Descriptor instead. +func (*WorkflowExecutionTimedOutEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{5} } -func (m *ActivityTaskScheduledEventAttributes) GetDomain() string { - if m != nil { - return m.Domain +func (x *WorkflowExecutionTimedOutEventAttributes) GetTimeoutType() TimeoutType { + if x != nil { + return x.TimeoutType } - return "" + return TimeoutType_TIMEOUT_TYPE_INVALID } -func (m *ActivityTaskScheduledEventAttributes) GetTaskList() *TaskList { - if m != nil { - return m.TaskList - } - return nil +type DecisionTaskScheduledEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TaskList *TaskList `protobuf:"bytes,1,opt,name=task_list,json=taskList,proto3" json:"task_list,omitempty"` + StartToCloseTimeout *durationpb.Duration `protobuf:"bytes,2,opt,name=start_to_close_timeout,json=startToCloseTimeout,proto3" json:"start_to_close_timeout,omitempty"` + Attempt int32 `protobuf:"varint,3,opt,name=attempt,proto3" json:"attempt,omitempty"` } -func (m *ActivityTaskScheduledEventAttributes) GetInput() *Payload { - if m != nil { - return m.Input +func (x *DecisionTaskScheduledEventAttributes) Reset() { + *x = DecisionTaskScheduledEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *ActivityTaskScheduledEventAttributes) GetScheduleToCloseTimeout() *time.Duration { - if m != nil { - return m.ScheduleToCloseTimeout - } - return nil +func (x *DecisionTaskScheduledEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ActivityTaskScheduledEventAttributes) GetScheduleToStartTimeout() *time.Duration { - if m != nil { - return m.ScheduleToStartTimeout +func (*DecisionTaskScheduledEventAttributes) ProtoMessage() {} + +func (x *DecisionTaskScheduledEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *ActivityTaskScheduledEventAttributes) GetStartToCloseTimeout() *time.Duration { - if m != nil { - return m.StartToCloseTimeout +// Deprecated: Use DecisionTaskScheduledEventAttributes.ProtoReflect.Descriptor instead. +func (*DecisionTaskScheduledEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{6} +} + +func (x *DecisionTaskScheduledEventAttributes) GetTaskList() *TaskList { + if x != nil { + return x.TaskList } return nil } -func (m *ActivityTaskScheduledEventAttributes) GetHeartbeatTimeout() *time.Duration { - if m != nil { - return m.HeartbeatTimeout +func (x *DecisionTaskScheduledEventAttributes) GetStartToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.StartToCloseTimeout } return nil } -func (m *ActivityTaskScheduledEventAttributes) GetDecisionTaskCompletedEventId() int64 { - if m != nil { - return m.DecisionTaskCompletedEventId +func (x *DecisionTaskScheduledEventAttributes) GetAttempt() int32 { + if x != nil { + return x.Attempt } return 0 } -func (m *ActivityTaskScheduledEventAttributes) GetRetryPolicy() *RetryPolicy { - if m != nil { - return m.RetryPolicy - } - return nil +type DecisionTaskStartedEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` + Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` + RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` } -func (m *ActivityTaskScheduledEventAttributes) GetHeader() *Header { - if m != nil { - return m.Header +func (x *DecisionTaskStartedEventAttributes) Reset() { + *x = DecisionTaskStartedEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type ActivityTaskStartedEventAttributes struct { - ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` - Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` - RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` - Attempt int32 `protobuf:"varint,4,opt,name=attempt,proto3" json:"attempt,omitempty"` - LastFailure *Failure `protobuf:"bytes,5,opt,name=last_failure,json=lastFailure,proto3" json:"last_failure,omitempty"` +func (x *DecisionTaskStartedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ActivityTaskStartedEventAttributes) Reset() { *m = ActivityTaskStartedEventAttributes{} } -func (*ActivityTaskStartedEventAttributes) ProtoMessage() {} -func (*ActivityTaskStartedEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{12} -} -func (m *ActivityTaskStartedEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ActivityTaskStartedEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ActivityTaskStartedEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*DecisionTaskStartedEventAttributes) ProtoMessage() {} + +func (x *DecisionTaskStartedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ActivityTaskStartedEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_ActivityTaskStartedEventAttributes.Merge(m, src) -} -func (m *ActivityTaskStartedEventAttributes) XXX_Size() int { - return m.Size() -} -func (m *ActivityTaskStartedEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_ActivityTaskStartedEventAttributes.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ActivityTaskStartedEventAttributes proto.InternalMessageInfo +// Deprecated: Use DecisionTaskStartedEventAttributes.ProtoReflect.Descriptor instead. +func (*DecisionTaskStartedEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{7} +} -func (m *ActivityTaskStartedEventAttributes) GetScheduledEventId() int64 { - if m != nil { - return m.ScheduledEventId +func (x *DecisionTaskStartedEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.ScheduledEventId } return 0 } -func (m *ActivityTaskStartedEventAttributes) GetIdentity() string { - if m != nil { - return m.Identity +func (x *DecisionTaskStartedEventAttributes) GetIdentity() string { + if x != nil { + return x.Identity } return "" } -func (m *ActivityTaskStartedEventAttributes) GetRequestId() string { - if m != nil { - return m.RequestId +func (x *DecisionTaskStartedEventAttributes) GetRequestId() string { + if x != nil { + return x.RequestId } return "" } -func (m *ActivityTaskStartedEventAttributes) GetAttempt() int32 { - if m != nil { - return m.Attempt - } - return 0 +type DecisionTaskCompletedEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` + StartedEventId int64 `protobuf:"varint,2,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` + Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` + BinaryChecksum string `protobuf:"bytes,4,opt,name=binary_checksum,json=binaryChecksum,proto3" json:"binary_checksum,omitempty"` + ExecutionContext []byte `protobuf:"bytes,5,opt,name=execution_context,json=executionContext,proto3" json:"execution_context,omitempty"` } -func (m *ActivityTaskStartedEventAttributes) GetLastFailure() *Failure { - if m != nil { - return m.LastFailure +func (x *DecisionTaskCompletedEventAttributes) Reset() { + *x = DecisionTaskCompletedEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type ActivityTaskCompletedEventAttributes struct { - Result *Payload `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` - ScheduledEventId int64 `protobuf:"varint,2,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` - StartedEventId int64 `protobuf:"varint,3,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` - Identity string `protobuf:"bytes,4,opt,name=identity,proto3" json:"identity,omitempty"` +func (x *DecisionTaskCompletedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ActivityTaskCompletedEventAttributes) Reset() { *m = ActivityTaskCompletedEventAttributes{} } -func (*ActivityTaskCompletedEventAttributes) ProtoMessage() {} -func (*ActivityTaskCompletedEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{13} -} -func (m *ActivityTaskCompletedEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ActivityTaskCompletedEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ActivityTaskCompletedEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*DecisionTaskCompletedEventAttributes) ProtoMessage() {} + +func (x *DecisionTaskCompletedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *ActivityTaskCompletedEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_ActivityTaskCompletedEventAttributes.Merge(m, src) -} -func (m *ActivityTaskCompletedEventAttributes) XXX_Size() int { - return m.Size() -} -func (m *ActivityTaskCompletedEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_ActivityTaskCompletedEventAttributes.DiscardUnknown(m) -} - -var xxx_messageInfo_ActivityTaskCompletedEventAttributes proto.InternalMessageInfo -func (m *ActivityTaskCompletedEventAttributes) GetResult() *Payload { - if m != nil { - return m.Result - } - return nil +// Deprecated: Use DecisionTaskCompletedEventAttributes.ProtoReflect.Descriptor instead. +func (*DecisionTaskCompletedEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{8} } -func (m *ActivityTaskCompletedEventAttributes) GetScheduledEventId() int64 { - if m != nil { - return m.ScheduledEventId +func (x *DecisionTaskCompletedEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.ScheduledEventId } return 0 } -func (m *ActivityTaskCompletedEventAttributes) GetStartedEventId() int64 { - if m != nil { - return m.StartedEventId +func (x *DecisionTaskCompletedEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.StartedEventId } return 0 } -func (m *ActivityTaskCompletedEventAttributes) GetIdentity() string { - if m != nil { - return m.Identity +func (x *DecisionTaskCompletedEventAttributes) GetIdentity() string { + if x != nil { + return x.Identity } return "" } -type ActivityTaskFailedEventAttributes struct { - Failure *Failure `protobuf:"bytes,1,opt,name=failure,proto3" json:"failure,omitempty"` - ScheduledEventId int64 `protobuf:"varint,2,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` - StartedEventId int64 `protobuf:"varint,3,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` - Identity string `protobuf:"bytes,4,opt,name=identity,proto3" json:"identity,omitempty"` +func (x *DecisionTaskCompletedEventAttributes) GetBinaryChecksum() string { + if x != nil { + return x.BinaryChecksum + } + return "" } -func (m *ActivityTaskFailedEventAttributes) Reset() { *m = ActivityTaskFailedEventAttributes{} } -func (*ActivityTaskFailedEventAttributes) ProtoMessage() {} -func (*ActivityTaskFailedEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{14} -} -func (m *ActivityTaskFailedEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ActivityTaskFailedEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ActivityTaskFailedEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *DecisionTaskCompletedEventAttributes) GetExecutionContext() []byte { + if x != nil { + return x.ExecutionContext } + return nil } -func (m *ActivityTaskFailedEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_ActivityTaskFailedEventAttributes.Merge(m, src) + +type DecisionTaskTimedOutEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` + StartedEventId int64 `protobuf:"varint,2,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` + TimeoutType TimeoutType `protobuf:"varint,3,opt,name=timeout_type,json=timeoutType,proto3,enum=uber.cadence.api.v1.TimeoutType" json:"timeout_type,omitempty"` } -func (m *ActivityTaskFailedEventAttributes) XXX_Size() int { - return m.Size() + +func (x *DecisionTaskTimedOutEventAttributes) Reset() { + *x = DecisionTaskTimedOutEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ActivityTaskFailedEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_ActivityTaskFailedEventAttributes.DiscardUnknown(m) + +func (x *DecisionTaskTimedOutEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ActivityTaskFailedEventAttributes proto.InternalMessageInfo +func (*DecisionTaskTimedOutEventAttributes) ProtoMessage() {} -func (m *ActivityTaskFailedEventAttributes) GetFailure() *Failure { - if m != nil { - return m.Failure +func (x *DecisionTaskTimedOutEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *ActivityTaskFailedEventAttributes) GetScheduledEventId() int64 { - if m != nil { - return m.ScheduledEventId +// Deprecated: Use DecisionTaskTimedOutEventAttributes.ProtoReflect.Descriptor instead. +func (*DecisionTaskTimedOutEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{9} +} + +func (x *DecisionTaskTimedOutEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.ScheduledEventId } return 0 } -func (m *ActivityTaskFailedEventAttributes) GetStartedEventId() int64 { - if m != nil { - return m.StartedEventId +func (x *DecisionTaskTimedOutEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.StartedEventId } return 0 } -func (m *ActivityTaskFailedEventAttributes) GetIdentity() string { - if m != nil { - return m.Identity +func (x *DecisionTaskTimedOutEventAttributes) GetTimeoutType() TimeoutType { + if x != nil { + return x.TimeoutType } - return "" + return TimeoutType_TIMEOUT_TYPE_INVALID } -type ActivityTaskTimedOutEventAttributes struct { - Details *Payload `protobuf:"bytes,1,opt,name=details,proto3" json:"details,omitempty"` - ScheduledEventId int64 `protobuf:"varint,2,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` - StartedEventId int64 `protobuf:"varint,3,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` - TimeoutType TimeoutType `protobuf:"varint,4,opt,name=timeout_type,json=timeoutType,proto3,enum=uber.cadence.api.v1.TimeoutType" json:"timeout_type,omitempty"` - // For retry activity, it may have a failure before timeout. It's important to keep those information for debug. - // Client can also provide the info for making next decision - LastFailure *Failure `protobuf:"bytes,5,opt,name=last_failure,json=lastFailure,proto3" json:"last_failure,omitempty"` +type DecisionTaskFailedEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` + StartedEventId int64 `protobuf:"varint,2,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` + Cause DecisionTaskFailedCause `protobuf:"varint,3,opt,name=cause,proto3,enum=uber.cadence.api.v1.DecisionTaskFailedCause" json:"cause,omitempty"` + Failure *Failure `protobuf:"bytes,4,opt,name=failure,proto3" json:"failure,omitempty"` + Identity string `protobuf:"bytes,5,opt,name=identity,proto3" json:"identity,omitempty"` + // For reset workflow. + BaseRunId string `protobuf:"bytes,6,opt,name=base_run_id,json=baseRunId,proto3" json:"base_run_id,omitempty"` + NewRunId string `protobuf:"bytes,7,opt,name=new_run_id,json=newRunId,proto3" json:"new_run_id,omitempty"` + ForkEventVersion int64 `protobuf:"varint,8,opt,name=fork_event_version,json=forkEventVersion,proto3" json:"fork_event_version,omitempty"` + BinaryChecksum string `protobuf:"bytes,9,opt,name=binary_checksum,json=binaryChecksum,proto3" json:"binary_checksum,omitempty"` } -func (m *ActivityTaskTimedOutEventAttributes) Reset() { *m = ActivityTaskTimedOutEventAttributes{} } -func (*ActivityTaskTimedOutEventAttributes) ProtoMessage() {} -func (*ActivityTaskTimedOutEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{15} -} -func (m *ActivityTaskTimedOutEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ActivityTaskTimedOutEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ActivityTaskTimedOutEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *DecisionTaskFailedEventAttributes) Reset() { + *x = DecisionTaskFailedEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ActivityTaskTimedOutEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_ActivityTaskTimedOutEventAttributes.Merge(m, src) -} -func (m *ActivityTaskTimedOutEventAttributes) XXX_Size() int { - return m.Size() -} -func (m *ActivityTaskTimedOutEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_ActivityTaskTimedOutEventAttributes.DiscardUnknown(m) + +func (x *DecisionTaskFailedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ActivityTaskTimedOutEventAttributes proto.InternalMessageInfo +func (*DecisionTaskFailedEventAttributes) ProtoMessage() {} -func (m *ActivityTaskTimedOutEventAttributes) GetDetails() *Payload { - if m != nil { - return m.Details +func (x *DecisionTaskFailedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *ActivityTaskTimedOutEventAttributes) GetScheduledEventId() int64 { - if m != nil { - return m.ScheduledEventId +// Deprecated: Use DecisionTaskFailedEventAttributes.ProtoReflect.Descriptor instead. +func (*DecisionTaskFailedEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{10} +} + +func (x *DecisionTaskFailedEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.ScheduledEventId } return 0 } -func (m *ActivityTaskTimedOutEventAttributes) GetStartedEventId() int64 { - if m != nil { - return m.StartedEventId +func (x *DecisionTaskFailedEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.StartedEventId } return 0 } -func (m *ActivityTaskTimedOutEventAttributes) GetTimeoutType() TimeoutType { - if m != nil { - return m.TimeoutType +func (x *DecisionTaskFailedEventAttributes) GetCause() DecisionTaskFailedCause { + if x != nil { + return x.Cause } - return TIMEOUT_TYPE_INVALID + return DecisionTaskFailedCause_DECISION_TASK_FAILED_CAUSE_INVALID } -func (m *ActivityTaskTimedOutEventAttributes) GetLastFailure() *Failure { - if m != nil { - return m.LastFailure +func (x *DecisionTaskFailedEventAttributes) GetFailure() *Failure { + if x != nil { + return x.Failure } return nil } -type ActivityTaskCancelRequestedEventAttributes struct { - ActivityId string `protobuf:"bytes,1,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` - DecisionTaskCompletedEventId int64 `protobuf:"varint,2,opt,name=decision_task_completed_event_id,json=decisionTaskCompletedEventId,proto3" json:"decision_task_completed_event_id,omitempty"` +func (x *DecisionTaskFailedEventAttributes) GetIdentity() string { + if x != nil { + return x.Identity + } + return "" } -func (m *ActivityTaskCancelRequestedEventAttributes) Reset() { - *m = ActivityTaskCancelRequestedEventAttributes{} -} -func (*ActivityTaskCancelRequestedEventAttributes) ProtoMessage() {} -func (*ActivityTaskCancelRequestedEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{16} -} -func (m *ActivityTaskCancelRequestedEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ActivityTaskCancelRequestedEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ActivityTaskCancelRequestedEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *DecisionTaskFailedEventAttributes) GetBaseRunId() string { + if x != nil { + return x.BaseRunId } -} -func (m *ActivityTaskCancelRequestedEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_ActivityTaskCancelRequestedEventAttributes.Merge(m, src) -} -func (m *ActivityTaskCancelRequestedEventAttributes) XXX_Size() int { - return m.Size() -} -func (m *ActivityTaskCancelRequestedEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_ActivityTaskCancelRequestedEventAttributes.DiscardUnknown(m) + return "" } -var xxx_messageInfo_ActivityTaskCancelRequestedEventAttributes proto.InternalMessageInfo - -func (m *ActivityTaskCancelRequestedEventAttributes) GetActivityId() string { - if m != nil { - return m.ActivityId +func (x *DecisionTaskFailedEventAttributes) GetNewRunId() string { + if x != nil { + return x.NewRunId } return "" } -func (m *ActivityTaskCancelRequestedEventAttributes) GetDecisionTaskCompletedEventId() int64 { - if m != nil { - return m.DecisionTaskCompletedEventId +func (x *DecisionTaskFailedEventAttributes) GetForkEventVersion() int64 { + if x != nil { + return x.ForkEventVersion } return 0 } -type RequestCancelActivityTaskFailedEventAttributes struct { - ActivityId string `protobuf:"bytes,1,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` - Cause string `protobuf:"bytes,2,opt,name=cause,proto3" json:"cause,omitempty"` - DecisionTaskCompletedEventId int64 `protobuf:"varint,3,opt,name=decision_task_completed_event_id,json=decisionTaskCompletedEventId,proto3" json:"decision_task_completed_event_id,omitempty"` +func (x *DecisionTaskFailedEventAttributes) GetBinaryChecksum() string { + if x != nil { + return x.BinaryChecksum + } + return "" } -func (m *RequestCancelActivityTaskFailedEventAttributes) Reset() { - *m = RequestCancelActivityTaskFailedEventAttributes{} +type ActivityTaskScheduledEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ActivityId string `protobuf:"bytes,1,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` + ActivityType *ActivityType `protobuf:"bytes,2,opt,name=activity_type,json=activityType,proto3" json:"activity_type,omitempty"` + Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"` + TaskList *TaskList `protobuf:"bytes,4,opt,name=task_list,json=taskList,proto3" json:"task_list,omitempty"` + Input *Payload `protobuf:"bytes,6,opt,name=input,proto3" json:"input,omitempty"` + ScheduleToCloseTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=schedule_to_close_timeout,json=scheduleToCloseTimeout,proto3" json:"schedule_to_close_timeout,omitempty"` + ScheduleToStartTimeout *durationpb.Duration `protobuf:"bytes,8,opt,name=schedule_to_start_timeout,json=scheduleToStartTimeout,proto3" json:"schedule_to_start_timeout,omitempty"` + StartToCloseTimeout *durationpb.Duration `protobuf:"bytes,9,opt,name=start_to_close_timeout,json=startToCloseTimeout,proto3" json:"start_to_close_timeout,omitempty"` + HeartbeatTimeout *durationpb.Duration `protobuf:"bytes,10,opt,name=heartbeat_timeout,json=heartbeatTimeout,proto3" json:"heartbeat_timeout,omitempty"` + DecisionTaskCompletedEventId int64 `protobuf:"varint,11,opt,name=decision_task_completed_event_id,json=decisionTaskCompletedEventId,proto3" json:"decision_task_completed_event_id,omitempty"` + RetryPolicy *RetryPolicy `protobuf:"bytes,12,opt,name=retry_policy,json=retryPolicy,proto3" json:"retry_policy,omitempty"` + Header *Header `protobuf:"bytes,13,opt,name=header,proto3" json:"header,omitempty"` } -func (*RequestCancelActivityTaskFailedEventAttributes) ProtoMessage() {} -func (*RequestCancelActivityTaskFailedEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{17} -} -func (m *RequestCancelActivityTaskFailedEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RequestCancelActivityTaskFailedEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RequestCancelActivityTaskFailedEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + +func (x *ActivityTaskScheduledEventAttributes) Reset() { + *x = ActivityTaskScheduledEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RequestCancelActivityTaskFailedEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequestCancelActivityTaskFailedEventAttributes.Merge(m, src) -} -func (m *RequestCancelActivityTaskFailedEventAttributes) XXX_Size() int { - return m.Size() -} -func (m *RequestCancelActivityTaskFailedEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_RequestCancelActivityTaskFailedEventAttributes.DiscardUnknown(m) + +func (x *ActivityTaskScheduledEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_RequestCancelActivityTaskFailedEventAttributes proto.InternalMessageInfo +func (*ActivityTaskScheduledEventAttributes) ProtoMessage() {} -func (m *RequestCancelActivityTaskFailedEventAttributes) GetActivityId() string { - if m != nil { - return m.ActivityId +func (x *ActivityTaskScheduledEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -func (m *RequestCancelActivityTaskFailedEventAttributes) GetCause() string { - if m != nil { - return m.Cause +// Deprecated: Use ActivityTaskScheduledEventAttributes.ProtoReflect.Descriptor instead. +func (*ActivityTaskScheduledEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{11} +} + +func (x *ActivityTaskScheduledEventAttributes) GetActivityId() string { + if x != nil { + return x.ActivityId } return "" } -func (m *RequestCancelActivityTaskFailedEventAttributes) GetDecisionTaskCompletedEventId() int64 { - if m != nil { - return m.DecisionTaskCompletedEventId +func (x *ActivityTaskScheduledEventAttributes) GetActivityType() *ActivityType { + if x != nil { + return x.ActivityType } - return 0 + return nil } -type ActivityTaskCanceledEventAttributes struct { - Details *Payload `protobuf:"bytes,1,opt,name=details,proto3" json:"details,omitempty"` - LatestCancelRequestedEventId int64 `protobuf:"varint,2,opt,name=latest_cancel_requested_event_id,json=latestCancelRequestedEventId,proto3" json:"latest_cancel_requested_event_id,omitempty"` - ScheduledEventId int64 `protobuf:"varint,3,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` - StartedEventId int64 `protobuf:"varint,4,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` - Identity string `protobuf:"bytes,5,opt,name=identity,proto3" json:"identity,omitempty"` +func (x *ActivityTaskScheduledEventAttributes) GetDomain() string { + if x != nil { + return x.Domain + } + return "" } -func (m *ActivityTaskCanceledEventAttributes) Reset() { *m = ActivityTaskCanceledEventAttributes{} } -func (*ActivityTaskCanceledEventAttributes) ProtoMessage() {} -func (*ActivityTaskCanceledEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{18} -} -func (m *ActivityTaskCanceledEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ActivityTaskCanceledEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ActivityTaskCanceledEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ActivityTaskScheduledEventAttributes) GetTaskList() *TaskList { + if x != nil { + return x.TaskList } + return nil } -func (m *ActivityTaskCanceledEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_ActivityTaskCanceledEventAttributes.Merge(m, src) -} -func (m *ActivityTaskCanceledEventAttributes) XXX_Size() int { - return m.Size() + +func (x *ActivityTaskScheduledEventAttributes) GetInput() *Payload { + if x != nil { + return x.Input + } + return nil } -func (m *ActivityTaskCanceledEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_ActivityTaskCanceledEventAttributes.DiscardUnknown(m) + +func (x *ActivityTaskScheduledEventAttributes) GetScheduleToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.ScheduleToCloseTimeout + } + return nil } -var xxx_messageInfo_ActivityTaskCanceledEventAttributes proto.InternalMessageInfo +func (x *ActivityTaskScheduledEventAttributes) GetScheduleToStartTimeout() *durationpb.Duration { + if x != nil { + return x.ScheduleToStartTimeout + } + return nil +} -func (m *ActivityTaskCanceledEventAttributes) GetDetails() *Payload { - if m != nil { - return m.Details +func (x *ActivityTaskScheduledEventAttributes) GetStartToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.StartToCloseTimeout } return nil } -func (m *ActivityTaskCanceledEventAttributes) GetLatestCancelRequestedEventId() int64 { - if m != nil { - return m.LatestCancelRequestedEventId +func (x *ActivityTaskScheduledEventAttributes) GetHeartbeatTimeout() *durationpb.Duration { + if x != nil { + return x.HeartbeatTimeout } - return 0 + return nil } -func (m *ActivityTaskCanceledEventAttributes) GetScheduledEventId() int64 { - if m != nil { - return m.ScheduledEventId +func (x *ActivityTaskScheduledEventAttributes) GetDecisionTaskCompletedEventId() int64 { + if x != nil { + return x.DecisionTaskCompletedEventId } return 0 } -func (m *ActivityTaskCanceledEventAttributes) GetStartedEventId() int64 { - if m != nil { - return m.StartedEventId +func (x *ActivityTaskScheduledEventAttributes) GetRetryPolicy() *RetryPolicy { + if x != nil { + return x.RetryPolicy } - return 0 + return nil } -func (m *ActivityTaskCanceledEventAttributes) GetIdentity() string { - if m != nil { - return m.Identity +func (x *ActivityTaskScheduledEventAttributes) GetHeader() *Header { + if x != nil { + return x.Header } - return "" + return nil } -type TimerStartedEventAttributes struct { - TimerId string `protobuf:"bytes,1,opt,name=timer_id,json=timerId,proto3" json:"timer_id,omitempty"` - StartToFireTimeout *time.Duration `protobuf:"bytes,2,opt,name=start_to_fire_timeout,json=startToFireTimeout,proto3,stdduration" json:"start_to_fire_timeout,omitempty"` - DecisionTaskCompletedEventId int64 `protobuf:"varint,3,opt,name=decision_task_completed_event_id,json=decisionTaskCompletedEventId,proto3" json:"decision_task_completed_event_id,omitempty"` +type ActivityTaskStartedEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` + Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` + RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + Attempt int32 `protobuf:"varint,4,opt,name=attempt,proto3" json:"attempt,omitempty"` + LastFailure *Failure `protobuf:"bytes,5,opt,name=last_failure,json=lastFailure,proto3" json:"last_failure,omitempty"` } -func (m *TimerStartedEventAttributes) Reset() { *m = TimerStartedEventAttributes{} } -func (*TimerStartedEventAttributes) ProtoMessage() {} -func (*TimerStartedEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{19} -} -func (m *TimerStartedEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TimerStartedEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TimerStartedEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ActivityTaskStartedEventAttributes) Reset() { + *x = ActivityTaskStartedEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *TimerStartedEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_TimerStartedEventAttributes.Merge(m, src) -} -func (m *TimerStartedEventAttributes) XXX_Size() int { - return m.Size() -} -func (m *TimerStartedEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_TimerStartedEventAttributes.DiscardUnknown(m) + +func (x *ActivityTaskStartedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_TimerStartedEventAttributes proto.InternalMessageInfo +func (*ActivityTaskStartedEventAttributes) ProtoMessage() {} -func (m *TimerStartedEventAttributes) GetTimerId() string { - if m != nil { - return m.TimerId +func (x *ActivityTaskStartedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -func (m *TimerStartedEventAttributes) GetStartToFireTimeout() *time.Duration { - if m != nil { - return m.StartToFireTimeout - } - return nil +// Deprecated: Use ActivityTaskStartedEventAttributes.ProtoReflect.Descriptor instead. +func (*ActivityTaskStartedEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{12} } -func (m *TimerStartedEventAttributes) GetDecisionTaskCompletedEventId() int64 { - if m != nil { - return m.DecisionTaskCompletedEventId +func (x *ActivityTaskStartedEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.ScheduledEventId } return 0 } -type TimerFiredEventAttributes struct { - TimerId string `protobuf:"bytes,1,opt,name=timer_id,json=timerId,proto3" json:"timer_id,omitempty"` - StartedEventId int64 `protobuf:"varint,2,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` +func (x *ActivityTaskStartedEventAttributes) GetIdentity() string { + if x != nil { + return x.Identity + } + return "" } -func (m *TimerFiredEventAttributes) Reset() { *m = TimerFiredEventAttributes{} } -func (*TimerFiredEventAttributes) ProtoMessage() {} -func (*TimerFiredEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{20} -} -func (m *TimerFiredEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TimerFiredEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TimerFiredEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ActivityTaskStartedEventAttributes) GetRequestId() string { + if x != nil { + return x.RequestId } + return "" } -func (m *TimerFiredEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_TimerFiredEventAttributes.Merge(m, src) -} -func (m *TimerFiredEventAttributes) XXX_Size() int { - return m.Size() + +func (x *ActivityTaskStartedEventAttributes) GetAttempt() int32 { + if x != nil { + return x.Attempt + } + return 0 } -func (m *TimerFiredEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_TimerFiredEventAttributes.DiscardUnknown(m) + +func (x *ActivityTaskStartedEventAttributes) GetLastFailure() *Failure { + if x != nil { + return x.LastFailure + } + return nil } -var xxx_messageInfo_TimerFiredEventAttributes proto.InternalMessageInfo +type ActivityTaskCompletedEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *TimerFiredEventAttributes) GetTimerId() string { - if m != nil { - return m.TimerId - } - return "" + Result *Payload `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` + ScheduledEventId int64 `protobuf:"varint,2,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` + StartedEventId int64 `protobuf:"varint,3,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` + Identity string `protobuf:"bytes,4,opt,name=identity,proto3" json:"identity,omitempty"` } -func (m *TimerFiredEventAttributes) GetStartedEventId() int64 { - if m != nil { - return m.StartedEventId +func (x *ActivityTaskCompletedEventAttributes) Reset() { + *x = ActivityTaskCompletedEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return 0 } -type TimerCanceledEventAttributes struct { - TimerId string `protobuf:"bytes,1,opt,name=timer_id,json=timerId,proto3" json:"timer_id,omitempty"` - StartedEventId int64 `protobuf:"varint,2,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` - DecisionTaskCompletedEventId int64 `protobuf:"varint,3,opt,name=decision_task_completed_event_id,json=decisionTaskCompletedEventId,proto3" json:"decision_task_completed_event_id,omitempty"` - Identity string `protobuf:"bytes,4,opt,name=identity,proto3" json:"identity,omitempty"` +func (x *ActivityTaskCompletedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TimerCanceledEventAttributes) Reset() { *m = TimerCanceledEventAttributes{} } -func (*TimerCanceledEventAttributes) ProtoMessage() {} -func (*TimerCanceledEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{21} -} -func (m *TimerCanceledEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TimerCanceledEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TimerCanceledEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*ActivityTaskCompletedEventAttributes) ProtoMessage() {} + +func (x *ActivityTaskCompletedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *TimerCanceledEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_TimerCanceledEventAttributes.Merge(m, src) -} -func (m *TimerCanceledEventAttributes) XXX_Size() int { - return m.Size() -} -func (m *TimerCanceledEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_TimerCanceledEventAttributes.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_TimerCanceledEventAttributes proto.InternalMessageInfo +// Deprecated: Use ActivityTaskCompletedEventAttributes.ProtoReflect.Descriptor instead. +func (*ActivityTaskCompletedEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{13} +} -func (m *TimerCanceledEventAttributes) GetTimerId() string { - if m != nil { - return m.TimerId +func (x *ActivityTaskCompletedEventAttributes) GetResult() *Payload { + if x != nil { + return x.Result } - return "" + return nil } -func (m *TimerCanceledEventAttributes) GetStartedEventId() int64 { - if m != nil { - return m.StartedEventId +func (x *ActivityTaskCompletedEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.ScheduledEventId } return 0 } -func (m *TimerCanceledEventAttributes) GetDecisionTaskCompletedEventId() int64 { - if m != nil { - return m.DecisionTaskCompletedEventId +func (x *ActivityTaskCompletedEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.StartedEventId } return 0 } -func (m *TimerCanceledEventAttributes) GetIdentity() string { - if m != nil { - return m.Identity +func (x *ActivityTaskCompletedEventAttributes) GetIdentity() string { + if x != nil { + return x.Identity } return "" } -type CancelTimerFailedEventAttributes struct { - TimerId string `protobuf:"bytes,1,opt,name=timer_id,json=timerId,proto3" json:"timer_id,omitempty"` - Cause string `protobuf:"bytes,2,opt,name=cause,proto3" json:"cause,omitempty"` - DecisionTaskCompletedEventId int64 `protobuf:"varint,3,opt,name=decision_task_completed_event_id,json=decisionTaskCompletedEventId,proto3" json:"decision_task_completed_event_id,omitempty"` - Identity string `protobuf:"bytes,4,opt,name=identity,proto3" json:"identity,omitempty"` +type ActivityTaskFailedEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Failure *Failure `protobuf:"bytes,1,opt,name=failure,proto3" json:"failure,omitempty"` + ScheduledEventId int64 `protobuf:"varint,2,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` + StartedEventId int64 `protobuf:"varint,3,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` + Identity string `protobuf:"bytes,4,opt,name=identity,proto3" json:"identity,omitempty"` } -func (m *CancelTimerFailedEventAttributes) Reset() { *m = CancelTimerFailedEventAttributes{} } -func (*CancelTimerFailedEventAttributes) ProtoMessage() {} -func (*CancelTimerFailedEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{22} -} -func (m *CancelTimerFailedEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CancelTimerFailedEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CancelTimerFailedEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ActivityTaskFailedEventAttributes) Reset() { + *x = ActivityTaskFailedEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *CancelTimerFailedEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_CancelTimerFailedEventAttributes.Merge(m, src) -} -func (m *CancelTimerFailedEventAttributes) XXX_Size() int { - return m.Size() -} -func (m *CancelTimerFailedEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_CancelTimerFailedEventAttributes.DiscardUnknown(m) + +func (x *ActivityTaskFailedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_CancelTimerFailedEventAttributes proto.InternalMessageInfo +func (*ActivityTaskFailedEventAttributes) ProtoMessage() {} -func (m *CancelTimerFailedEventAttributes) GetTimerId() string { - if m != nil { - return m.TimerId +func (x *ActivityTaskFailedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -func (m *CancelTimerFailedEventAttributes) GetCause() string { - if m != nil { - return m.Cause - } - return "" +// Deprecated: Use ActivityTaskFailedEventAttributes.ProtoReflect.Descriptor instead. +func (*ActivityTaskFailedEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{14} } -func (m *CancelTimerFailedEventAttributes) GetDecisionTaskCompletedEventId() int64 { - if m != nil { - return m.DecisionTaskCompletedEventId +func (x *ActivityTaskFailedEventAttributes) GetFailure() *Failure { + if x != nil { + return x.Failure } - return 0 + return nil } -func (m *CancelTimerFailedEventAttributes) GetIdentity() string { - if m != nil { - return m.Identity +func (x *ActivityTaskFailedEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.ScheduledEventId } - return "" + return 0 } -type WorkflowExecutionContinuedAsNewEventAttributes struct { - NewExecutionRunId string `protobuf:"bytes,1,opt,name=new_execution_run_id,json=newExecutionRunId,proto3" json:"new_execution_run_id,omitempty"` - WorkflowType *WorkflowType `protobuf:"bytes,2,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` - TaskList *TaskList `protobuf:"bytes,3,opt,name=task_list,json=taskList,proto3" json:"task_list,omitempty"` - Input *Payload `protobuf:"bytes,4,opt,name=input,proto3" json:"input,omitempty"` - ExecutionStartToCloseTimeout *time.Duration `protobuf:"bytes,5,opt,name=execution_start_to_close_timeout,json=executionStartToCloseTimeout,proto3,stdduration" json:"execution_start_to_close_timeout,omitempty"` - TaskStartToCloseTimeout *time.Duration `protobuf:"bytes,6,opt,name=task_start_to_close_timeout,json=taskStartToCloseTimeout,proto3,stdduration" json:"task_start_to_close_timeout,omitempty"` - DecisionTaskCompletedEventId int64 `protobuf:"varint,7,opt,name=decision_task_completed_event_id,json=decisionTaskCompletedEventId,proto3" json:"decision_task_completed_event_id,omitempty"` - BackoffStartInterval *time.Duration `protobuf:"bytes,8,opt,name=backoff_start_interval,json=backoffStartInterval,proto3,stdduration" json:"backoff_start_interval,omitempty"` - Initiator ContinueAsNewInitiator `protobuf:"varint,9,opt,name=initiator,proto3,enum=uber.cadence.api.v1.ContinueAsNewInitiator" json:"initiator,omitempty"` - Failure *Failure `protobuf:"bytes,10,opt,name=failure,proto3" json:"failure,omitempty"` - LastCompletionResult *Payload `protobuf:"bytes,11,opt,name=last_completion_result,json=lastCompletionResult,proto3" json:"last_completion_result,omitempty"` - Header *Header `protobuf:"bytes,12,opt,name=header,proto3" json:"header,omitempty"` - Memo *Memo `protobuf:"bytes,13,opt,name=memo,proto3" json:"memo,omitempty"` - SearchAttributes *SearchAttributes `protobuf:"bytes,14,opt,name=search_attributes,json=searchAttributes,proto3" json:"search_attributes,omitempty"` +func (x *ActivityTaskFailedEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.StartedEventId + } + return 0 } -func (m *WorkflowExecutionContinuedAsNewEventAttributes) Reset() { - *m = WorkflowExecutionContinuedAsNewEventAttributes{} -} -func (*WorkflowExecutionContinuedAsNewEventAttributes) ProtoMessage() {} -func (*WorkflowExecutionContinuedAsNewEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{23} -} -func (m *WorkflowExecutionContinuedAsNewEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowExecutionContinuedAsNewEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowExecutionContinuedAsNewEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ActivityTaskFailedEventAttributes) GetIdentity() string { + if x != nil { + return x.Identity } -} -func (m *WorkflowExecutionContinuedAsNewEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowExecutionContinuedAsNewEventAttributes.Merge(m, src) -} -func (m *WorkflowExecutionContinuedAsNewEventAttributes) XXX_Size() int { - return m.Size() -} -func (m *WorkflowExecutionContinuedAsNewEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowExecutionContinuedAsNewEventAttributes.DiscardUnknown(m) + return "" } -var xxx_messageInfo_WorkflowExecutionContinuedAsNewEventAttributes proto.InternalMessageInfo +type ActivityTaskTimedOutEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *WorkflowExecutionContinuedAsNewEventAttributes) GetNewExecutionRunId() string { - if m != nil { - return m.NewExecutionRunId - } - return "" + Details *Payload `protobuf:"bytes,1,opt,name=details,proto3" json:"details,omitempty"` + ScheduledEventId int64 `protobuf:"varint,2,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` + StartedEventId int64 `protobuf:"varint,3,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` + TimeoutType TimeoutType `protobuf:"varint,4,opt,name=timeout_type,json=timeoutType,proto3,enum=uber.cadence.api.v1.TimeoutType" json:"timeout_type,omitempty"` + // For retry activity, it may have a failure before timeout. It's important to keep those information for debug. + // Client can also provide the info for making next decision + LastFailure *Failure `protobuf:"bytes,5,opt,name=last_failure,json=lastFailure,proto3" json:"last_failure,omitempty"` } -func (m *WorkflowExecutionContinuedAsNewEventAttributes) GetWorkflowType() *WorkflowType { - if m != nil { - return m.WorkflowType +func (x *ActivityTaskTimedOutEventAttributes) Reset() { + *x = ActivityTaskTimedOutEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *WorkflowExecutionContinuedAsNewEventAttributes) GetTaskList() *TaskList { - if m != nil { - return m.TaskList - } - return nil +func (x *ActivityTaskTimedOutEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WorkflowExecutionContinuedAsNewEventAttributes) GetInput() *Payload { - if m != nil { - return m.Input +func (*ActivityTaskTimedOutEventAttributes) ProtoMessage() {} + +func (x *ActivityTaskTimedOutEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *WorkflowExecutionContinuedAsNewEventAttributes) GetExecutionStartToCloseTimeout() *time.Duration { - if m != nil { - return m.ExecutionStartToCloseTimeout - } - return nil +// Deprecated: Use ActivityTaskTimedOutEventAttributes.ProtoReflect.Descriptor instead. +func (*ActivityTaskTimedOutEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{15} } -func (m *WorkflowExecutionContinuedAsNewEventAttributes) GetTaskStartToCloseTimeout() *time.Duration { - if m != nil { - return m.TaskStartToCloseTimeout +func (x *ActivityTaskTimedOutEventAttributes) GetDetails() *Payload { + if x != nil { + return x.Details } return nil } -func (m *WorkflowExecutionContinuedAsNewEventAttributes) GetDecisionTaskCompletedEventId() int64 { - if m != nil { - return m.DecisionTaskCompletedEventId +func (x *ActivityTaskTimedOutEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.ScheduledEventId } return 0 } -func (m *WorkflowExecutionContinuedAsNewEventAttributes) GetBackoffStartInterval() *time.Duration { - if m != nil { - return m.BackoffStartInterval +func (x *ActivityTaskTimedOutEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.StartedEventId } - return nil + return 0 } -func (m *WorkflowExecutionContinuedAsNewEventAttributes) GetInitiator() ContinueAsNewInitiator { - if m != nil { - return m.Initiator +func (x *ActivityTaskTimedOutEventAttributes) GetTimeoutType() TimeoutType { + if x != nil { + return x.TimeoutType } - return CONTINUE_AS_NEW_INITIATOR_INVALID + return TimeoutType_TIMEOUT_TYPE_INVALID } -func (m *WorkflowExecutionContinuedAsNewEventAttributes) GetFailure() *Failure { - if m != nil { - return m.Failure +func (x *ActivityTaskTimedOutEventAttributes) GetLastFailure() *Failure { + if x != nil { + return x.LastFailure } return nil } -func (m *WorkflowExecutionContinuedAsNewEventAttributes) GetLastCompletionResult() *Payload { - if m != nil { - return m.LastCompletionResult - } - return nil -} +type ActivityTaskCancelRequestedEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *WorkflowExecutionContinuedAsNewEventAttributes) GetHeader() *Header { - if m != nil { - return m.Header - } - return nil + ActivityId string `protobuf:"bytes,1,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` + DecisionTaskCompletedEventId int64 `protobuf:"varint,2,opt,name=decision_task_completed_event_id,json=decisionTaskCompletedEventId,proto3" json:"decision_task_completed_event_id,omitempty"` } -func (m *WorkflowExecutionContinuedAsNewEventAttributes) GetMemo() *Memo { - if m != nil { - return m.Memo +func (x *ActivityTaskCancelRequestedEventAttributes) Reset() { + *x = ActivityTaskCancelRequestedEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *WorkflowExecutionContinuedAsNewEventAttributes) GetSearchAttributes() *SearchAttributes { - if m != nil { - return m.SearchAttributes - } - return nil +func (x *ActivityTaskCancelRequestedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -type WorkflowExecutionCancelRequestedEventAttributes struct { - Cause string `protobuf:"bytes,1,opt,name=cause,proto3" json:"cause,omitempty"` - ExternalInitiatedEventId int64 `protobuf:"varint,2,opt,name=external_initiated_event_id,json=externalInitiatedEventId,proto3" json:"external_initiated_event_id,omitempty"` - ExternalWorkflowExecution *WorkflowExecution `protobuf:"bytes,3,opt,name=external_workflow_execution,json=externalWorkflowExecution,proto3" json:"external_workflow_execution,omitempty"` - Identity string `protobuf:"bytes,4,opt,name=identity,proto3" json:"identity,omitempty"` -} +func (*ActivityTaskCancelRequestedEventAttributes) ProtoMessage() {} -func (m *WorkflowExecutionCancelRequestedEventAttributes) Reset() { - *m = WorkflowExecutionCancelRequestedEventAttributes{} -} -func (*WorkflowExecutionCancelRequestedEventAttributes) ProtoMessage() {} -func (*WorkflowExecutionCancelRequestedEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{24} -} -func (m *WorkflowExecutionCancelRequestedEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowExecutionCancelRequestedEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowExecutionCancelRequestedEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *ActivityTaskCancelRequestedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *WorkflowExecutionCancelRequestedEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowExecutionCancelRequestedEventAttributes.Merge(m, src) -} -func (m *WorkflowExecutionCancelRequestedEventAttributes) XXX_Size() int { - return m.Size() -} -func (m *WorkflowExecutionCancelRequestedEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowExecutionCancelRequestedEventAttributes.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_WorkflowExecutionCancelRequestedEventAttributes proto.InternalMessageInfo +// Deprecated: Use ActivityTaskCancelRequestedEventAttributes.ProtoReflect.Descriptor instead. +func (*ActivityTaskCancelRequestedEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{16} +} -func (m *WorkflowExecutionCancelRequestedEventAttributes) GetCause() string { - if m != nil { - return m.Cause +func (x *ActivityTaskCancelRequestedEventAttributes) GetActivityId() string { + if x != nil { + return x.ActivityId } return "" } -func (m *WorkflowExecutionCancelRequestedEventAttributes) GetExternalInitiatedEventId() int64 { - if m != nil { - return m.ExternalInitiatedEventId +func (x *ActivityTaskCancelRequestedEventAttributes) GetDecisionTaskCompletedEventId() int64 { + if x != nil { + return x.DecisionTaskCompletedEventId } return 0 } -func (m *WorkflowExecutionCancelRequestedEventAttributes) GetExternalWorkflowExecution() *WorkflowExecution { - if m != nil { - return m.ExternalWorkflowExecution - } - return nil +type RequestCancelActivityTaskFailedEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ActivityId string `protobuf:"bytes,1,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` + Cause string `protobuf:"bytes,2,opt,name=cause,proto3" json:"cause,omitempty"` + DecisionTaskCompletedEventId int64 `protobuf:"varint,3,opt,name=decision_task_completed_event_id,json=decisionTaskCompletedEventId,proto3" json:"decision_task_completed_event_id,omitempty"` } -func (m *WorkflowExecutionCancelRequestedEventAttributes) GetIdentity() string { - if m != nil { - return m.Identity +func (x *RequestCancelActivityTaskFailedEventAttributes) Reset() { + *x = RequestCancelActivityTaskFailedEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -type WorkflowExecutionCanceledEventAttributes struct { - DecisionTaskCompletedEventId int64 `protobuf:"varint,1,opt,name=decision_task_completed_event_id,json=decisionTaskCompletedEventId,proto3" json:"decision_task_completed_event_id,omitempty"` - Details *Payload `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"` +func (x *RequestCancelActivityTaskFailedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WorkflowExecutionCanceledEventAttributes) Reset() { - *m = WorkflowExecutionCanceledEventAttributes{} -} -func (*WorkflowExecutionCanceledEventAttributes) ProtoMessage() {} -func (*WorkflowExecutionCanceledEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{25} -} -func (m *WorkflowExecutionCanceledEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowExecutionCanceledEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowExecutionCanceledEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*RequestCancelActivityTaskFailedEventAttributes) ProtoMessage() {} + +func (x *RequestCancelActivityTaskFailedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *WorkflowExecutionCanceledEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowExecutionCanceledEventAttributes.Merge(m, src) -} -func (m *WorkflowExecutionCanceledEventAttributes) XXX_Size() int { - return m.Size() + +// Deprecated: Use RequestCancelActivityTaskFailedEventAttributes.ProtoReflect.Descriptor instead. +func (*RequestCancelActivityTaskFailedEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{17} } -func (m *WorkflowExecutionCanceledEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowExecutionCanceledEventAttributes.DiscardUnknown(m) + +func (x *RequestCancelActivityTaskFailedEventAttributes) GetActivityId() string { + if x != nil { + return x.ActivityId + } + return "" } -var xxx_messageInfo_WorkflowExecutionCanceledEventAttributes proto.InternalMessageInfo +func (x *RequestCancelActivityTaskFailedEventAttributes) GetCause() string { + if x != nil { + return x.Cause + } + return "" +} -func (m *WorkflowExecutionCanceledEventAttributes) GetDecisionTaskCompletedEventId() int64 { - if m != nil { - return m.DecisionTaskCompletedEventId +func (x *RequestCancelActivityTaskFailedEventAttributes) GetDecisionTaskCompletedEventId() int64 { + if x != nil { + return x.DecisionTaskCompletedEventId } return 0 } -func (m *WorkflowExecutionCanceledEventAttributes) GetDetails() *Payload { - if m != nil { - return m.Details +type ActivityTaskCanceledEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Details *Payload `protobuf:"bytes,1,opt,name=details,proto3" json:"details,omitempty"` + LatestCancelRequestedEventId int64 `protobuf:"varint,2,opt,name=latest_cancel_requested_event_id,json=latestCancelRequestedEventId,proto3" json:"latest_cancel_requested_event_id,omitempty"` + ScheduledEventId int64 `protobuf:"varint,3,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` + StartedEventId int64 `protobuf:"varint,4,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` + Identity string `protobuf:"bytes,5,opt,name=identity,proto3" json:"identity,omitempty"` +} + +func (x *ActivityTaskCanceledEventAttributes) Reset() { + *x = ActivityTaskCanceledEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type MarkerRecordedEventAttributes struct { - MarkerName string `protobuf:"bytes,1,opt,name=marker_name,json=markerName,proto3" json:"marker_name,omitempty"` - Details *Payload `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"` - DecisionTaskCompletedEventId int64 `protobuf:"varint,3,opt,name=decision_task_completed_event_id,json=decisionTaskCompletedEventId,proto3" json:"decision_task_completed_event_id,omitempty"` - Header *Header `protobuf:"bytes,4,opt,name=header,proto3" json:"header,omitempty"` +func (x *ActivityTaskCanceledEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MarkerRecordedEventAttributes) Reset() { *m = MarkerRecordedEventAttributes{} } -func (*MarkerRecordedEventAttributes) ProtoMessage() {} -func (*MarkerRecordedEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{26} -} -func (m *MarkerRecordedEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MarkerRecordedEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MarkerRecordedEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*ActivityTaskCanceledEventAttributes) ProtoMessage() {} + +func (x *ActivityTaskCanceledEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *MarkerRecordedEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_MarkerRecordedEventAttributes.Merge(m, src) -} -func (m *MarkerRecordedEventAttributes) XXX_Size() int { - return m.Size() -} -func (m *MarkerRecordedEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_MarkerRecordedEventAttributes.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_MarkerRecordedEventAttributes proto.InternalMessageInfo +// Deprecated: Use ActivityTaskCanceledEventAttributes.ProtoReflect.Descriptor instead. +func (*ActivityTaskCanceledEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{18} +} -func (m *MarkerRecordedEventAttributes) GetMarkerName() string { - if m != nil { - return m.MarkerName +func (x *ActivityTaskCanceledEventAttributes) GetDetails() *Payload { + if x != nil { + return x.Details } - return "" + return nil } -func (m *MarkerRecordedEventAttributes) GetDetails() *Payload { - if m != nil { - return m.Details +func (x *ActivityTaskCanceledEventAttributes) GetLatestCancelRequestedEventId() int64 { + if x != nil { + return x.LatestCancelRequestedEventId } - return nil + return 0 } -func (m *MarkerRecordedEventAttributes) GetDecisionTaskCompletedEventId() int64 { - if m != nil { - return m.DecisionTaskCompletedEventId +func (x *ActivityTaskCanceledEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.ScheduledEventId } return 0 } -func (m *MarkerRecordedEventAttributes) GetHeader() *Header { - if m != nil { - return m.Header +func (x *ActivityTaskCanceledEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.StartedEventId } - return nil + return 0 } -type WorkflowExecutionSignaledEventAttributes struct { - SignalName string `protobuf:"bytes,1,opt,name=signal_name,json=signalName,proto3" json:"signal_name,omitempty"` - Input *Payload `protobuf:"bytes,2,opt,name=input,proto3" json:"input,omitempty"` - Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` +func (x *ActivityTaskCanceledEventAttributes) GetIdentity() string { + if x != nil { + return x.Identity + } + return "" } -func (m *WorkflowExecutionSignaledEventAttributes) Reset() { - *m = WorkflowExecutionSignaledEventAttributes{} +type TimerStartedEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TimerId string `protobuf:"bytes,1,opt,name=timer_id,json=timerId,proto3" json:"timer_id,omitempty"` + StartToFireTimeout *durationpb.Duration `protobuf:"bytes,2,opt,name=start_to_fire_timeout,json=startToFireTimeout,proto3" json:"start_to_fire_timeout,omitempty"` + DecisionTaskCompletedEventId int64 `protobuf:"varint,3,opt,name=decision_task_completed_event_id,json=decisionTaskCompletedEventId,proto3" json:"decision_task_completed_event_id,omitempty"` } -func (*WorkflowExecutionSignaledEventAttributes) ProtoMessage() {} -func (*WorkflowExecutionSignaledEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{27} -} -func (m *WorkflowExecutionSignaledEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowExecutionSignaledEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowExecutionSignaledEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + +func (x *TimerStartedEventAttributes) Reset() { + *x = TimerStartedEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *WorkflowExecutionSignaledEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowExecutionSignaledEventAttributes.Merge(m, src) -} -func (m *WorkflowExecutionSignaledEventAttributes) XXX_Size() int { - return m.Size() + +func (x *TimerStartedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WorkflowExecutionSignaledEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowExecutionSignaledEventAttributes.DiscardUnknown(m) + +func (*TimerStartedEventAttributes) ProtoMessage() {} + +func (x *TimerStartedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WorkflowExecutionSignaledEventAttributes proto.InternalMessageInfo +// Deprecated: Use TimerStartedEventAttributes.ProtoReflect.Descriptor instead. +func (*TimerStartedEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{19} +} -func (m *WorkflowExecutionSignaledEventAttributes) GetSignalName() string { - if m != nil { - return m.SignalName +func (x *TimerStartedEventAttributes) GetTimerId() string { + if x != nil { + return x.TimerId } return "" } -func (m *WorkflowExecutionSignaledEventAttributes) GetInput() *Payload { - if m != nil { - return m.Input +func (x *TimerStartedEventAttributes) GetStartToFireTimeout() *durationpb.Duration { + if x != nil { + return x.StartToFireTimeout } return nil } -func (m *WorkflowExecutionSignaledEventAttributes) GetIdentity() string { - if m != nil { - return m.Identity +func (x *TimerStartedEventAttributes) GetDecisionTaskCompletedEventId() int64 { + if x != nil { + return x.DecisionTaskCompletedEventId } - return "" + return 0 } -type WorkflowExecutionTerminatedEventAttributes struct { - Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"` - Details *Payload `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"` - Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` -} +type TimerFiredEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *WorkflowExecutionTerminatedEventAttributes) Reset() { - *m = WorkflowExecutionTerminatedEventAttributes{} + TimerId string `protobuf:"bytes,1,opt,name=timer_id,json=timerId,proto3" json:"timer_id,omitempty"` + StartedEventId int64 `protobuf:"varint,2,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` } -func (*WorkflowExecutionTerminatedEventAttributes) ProtoMessage() {} -func (*WorkflowExecutionTerminatedEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{28} -} -func (m *WorkflowExecutionTerminatedEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowExecutionTerminatedEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowExecutionTerminatedEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + +func (x *TimerFiredEventAttributes) Reset() { + *x = TimerFiredEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *WorkflowExecutionTerminatedEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowExecutionTerminatedEventAttributes.Merge(m, src) -} -func (m *WorkflowExecutionTerminatedEventAttributes) XXX_Size() int { - return m.Size() -} -func (m *WorkflowExecutionTerminatedEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowExecutionTerminatedEventAttributes.DiscardUnknown(m) + +func (x *TimerFiredEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_WorkflowExecutionTerminatedEventAttributes proto.InternalMessageInfo +func (*TimerFiredEventAttributes) ProtoMessage() {} -func (m *WorkflowExecutionTerminatedEventAttributes) GetReason() string { - if m != nil { - return m.Reason +func (x *TimerFiredEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -func (m *WorkflowExecutionTerminatedEventAttributes) GetDetails() *Payload { - if m != nil { - return m.Details - } - return nil +// Deprecated: Use TimerFiredEventAttributes.ProtoReflect.Descriptor instead. +func (*TimerFiredEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{20} } -func (m *WorkflowExecutionTerminatedEventAttributes) GetIdentity() string { - if m != nil { - return m.Identity +func (x *TimerFiredEventAttributes) GetTimerId() string { + if x != nil { + return x.TimerId } return "" } -type RequestCancelExternalWorkflowExecutionInitiatedEventAttributes struct { - DecisionTaskCompletedEventId int64 `protobuf:"varint,1,opt,name=decision_task_completed_event_id,json=decisionTaskCompletedEventId,proto3" json:"decision_task_completed_event_id,omitempty"` - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` - WorkflowExecution *WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` - Control []byte `protobuf:"bytes,4,opt,name=control,proto3" json:"control,omitempty"` - ChildWorkflowOnly bool `protobuf:"varint,5,opt,name=child_workflow_only,json=childWorkflowOnly,proto3" json:"child_workflow_only,omitempty"` +func (x *TimerFiredEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.StartedEventId + } + return 0 } -func (m *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) Reset() { - *m = RequestCancelExternalWorkflowExecutionInitiatedEventAttributes{} +type TimerCanceledEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TimerId string `protobuf:"bytes,1,opt,name=timer_id,json=timerId,proto3" json:"timer_id,omitempty"` + StartedEventId int64 `protobuf:"varint,2,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` + DecisionTaskCompletedEventId int64 `protobuf:"varint,3,opt,name=decision_task_completed_event_id,json=decisionTaskCompletedEventId,proto3" json:"decision_task_completed_event_id,omitempty"` + Identity string `protobuf:"bytes,4,opt,name=identity,proto3" json:"identity,omitempty"` } -func (*RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) ProtoMessage() {} -func (*RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{29} -} -func (m *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + +func (x *TimerCanceledEventAttributes) Reset() { + *x = TimerCanceledEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Merge(m, src) -} -func (m *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) XXX_Size() int { - return m.Size() -} -func (m *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.DiscardUnknown(m) + +func (x *TimerCanceledEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes proto.InternalMessageInfo +func (*TimerCanceledEventAttributes) ProtoMessage() {} -func (m *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GetDecisionTaskCompletedEventId() int64 { - if m != nil { - return m.DecisionTaskCompletedEventId +func (x *TimerCanceledEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return 0 + return mi.MessageOf(x) } -func (m *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GetDomain() string { - if m != nil { - return m.Domain +// Deprecated: Use TimerCanceledEventAttributes.ProtoReflect.Descriptor instead. +func (*TimerCanceledEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{21} +} + +func (x *TimerCanceledEventAttributes) GetTimerId() string { + if x != nil { + return x.TimerId } return "" } -func (m *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GetWorkflowExecution() *WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *TimerCanceledEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.StartedEventId } - return nil + return 0 } -func (m *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GetControl() []byte { - if m != nil { - return m.Control +func (x *TimerCanceledEventAttributes) GetDecisionTaskCompletedEventId() int64 { + if x != nil { + return x.DecisionTaskCompletedEventId } - return nil + return 0 } -func (m *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GetChildWorkflowOnly() bool { - if m != nil { - return m.ChildWorkflowOnly +func (x *TimerCanceledEventAttributes) GetIdentity() string { + if x != nil { + return x.Identity } - return false + return "" } -type RequestCancelExternalWorkflowExecutionFailedEventAttributes struct { - Cause CancelExternalWorkflowExecutionFailedCause `protobuf:"varint,1,opt,name=cause,proto3,enum=uber.cadence.api.v1.CancelExternalWorkflowExecutionFailedCause" json:"cause,omitempty"` - DecisionTaskCompletedEventId int64 `protobuf:"varint,2,opt,name=decision_task_completed_event_id,json=decisionTaskCompletedEventId,proto3" json:"decision_task_completed_event_id,omitempty"` - Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"` - WorkflowExecution *WorkflowExecution `protobuf:"bytes,4,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` - InitiatedEventId int64 `protobuf:"varint,5,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` - Control []byte `protobuf:"bytes,6,opt,name=control,proto3" json:"control,omitempty"` -} +type CancelTimerFailedEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *RequestCancelExternalWorkflowExecutionFailedEventAttributes) Reset() { - *m = RequestCancelExternalWorkflowExecutionFailedEventAttributes{} + TimerId string `protobuf:"bytes,1,opt,name=timer_id,json=timerId,proto3" json:"timer_id,omitempty"` + Cause string `protobuf:"bytes,2,opt,name=cause,proto3" json:"cause,omitempty"` + DecisionTaskCompletedEventId int64 `protobuf:"varint,3,opt,name=decision_task_completed_event_id,json=decisionTaskCompletedEventId,proto3" json:"decision_task_completed_event_id,omitempty"` + Identity string `protobuf:"bytes,4,opt,name=identity,proto3" json:"identity,omitempty"` } -func (*RequestCancelExternalWorkflowExecutionFailedEventAttributes) ProtoMessage() {} -func (*RequestCancelExternalWorkflowExecutionFailedEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{30} -} -func (m *RequestCancelExternalWorkflowExecutionFailedEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RequestCancelExternalWorkflowExecutionFailedEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RequestCancelExternalWorkflowExecutionFailedEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + +func (x *CancelTimerFailedEventAttributes) Reset() { + *x = CancelTimerFailedEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RequestCancelExternalWorkflowExecutionFailedEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequestCancelExternalWorkflowExecutionFailedEventAttributes.Merge(m, src) -} -func (m *RequestCancelExternalWorkflowExecutionFailedEventAttributes) XXX_Size() int { - return m.Size() -} -func (m *RequestCancelExternalWorkflowExecutionFailedEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_RequestCancelExternalWorkflowExecutionFailedEventAttributes.DiscardUnknown(m) + +func (x *CancelTimerFailedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_RequestCancelExternalWorkflowExecutionFailedEventAttributes proto.InternalMessageInfo +func (*CancelTimerFailedEventAttributes) ProtoMessage() {} -func (m *RequestCancelExternalWorkflowExecutionFailedEventAttributes) GetCause() CancelExternalWorkflowExecutionFailedCause { - if m != nil { - return m.Cause +func (x *CancelTimerFailedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_INVALID + return mi.MessageOf(x) } -func (m *RequestCancelExternalWorkflowExecutionFailedEventAttributes) GetDecisionTaskCompletedEventId() int64 { - if m != nil { - return m.DecisionTaskCompletedEventId - } - return 0 +// Deprecated: Use CancelTimerFailedEventAttributes.ProtoReflect.Descriptor instead. +func (*CancelTimerFailedEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{22} } -func (m *RequestCancelExternalWorkflowExecutionFailedEventAttributes) GetDomain() string { - if m != nil { - return m.Domain +func (x *CancelTimerFailedEventAttributes) GetTimerId() string { + if x != nil { + return x.TimerId } return "" } -func (m *RequestCancelExternalWorkflowExecutionFailedEventAttributes) GetWorkflowExecution() *WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *CancelTimerFailedEventAttributes) GetCause() string { + if x != nil { + return x.Cause } - return nil + return "" } -func (m *RequestCancelExternalWorkflowExecutionFailedEventAttributes) GetInitiatedEventId() int64 { - if m != nil { - return m.InitiatedEventId +func (x *CancelTimerFailedEventAttributes) GetDecisionTaskCompletedEventId() int64 { + if x != nil { + return x.DecisionTaskCompletedEventId } return 0 } -func (m *RequestCancelExternalWorkflowExecutionFailedEventAttributes) GetControl() []byte { - if m != nil { - return m.Control +func (x *CancelTimerFailedEventAttributes) GetIdentity() string { + if x != nil { + return x.Identity } - return nil + return "" } -type ExternalWorkflowExecutionCancelRequestedEventAttributes struct { - InitiatedEventId int64 `protobuf:"varint,1,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` - WorkflowExecution *WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` -} +type WorkflowExecutionContinuedAsNewEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ExternalWorkflowExecutionCancelRequestedEventAttributes) Reset() { - *m = ExternalWorkflowExecutionCancelRequestedEventAttributes{} + NewExecutionRunId string `protobuf:"bytes,1,opt,name=new_execution_run_id,json=newExecutionRunId,proto3" json:"new_execution_run_id,omitempty"` + WorkflowType *WorkflowType `protobuf:"bytes,2,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` + TaskList *TaskList `protobuf:"bytes,3,opt,name=task_list,json=taskList,proto3" json:"task_list,omitempty"` + Input *Payload `protobuf:"bytes,4,opt,name=input,proto3" json:"input,omitempty"` + ExecutionStartToCloseTimeout *durationpb.Duration `protobuf:"bytes,5,opt,name=execution_start_to_close_timeout,json=executionStartToCloseTimeout,proto3" json:"execution_start_to_close_timeout,omitempty"` + TaskStartToCloseTimeout *durationpb.Duration `protobuf:"bytes,6,opt,name=task_start_to_close_timeout,json=taskStartToCloseTimeout,proto3" json:"task_start_to_close_timeout,omitempty"` + DecisionTaskCompletedEventId int64 `protobuf:"varint,7,opt,name=decision_task_completed_event_id,json=decisionTaskCompletedEventId,proto3" json:"decision_task_completed_event_id,omitempty"` + BackoffStartInterval *durationpb.Duration `protobuf:"bytes,8,opt,name=backoff_start_interval,json=backoffStartInterval,proto3" json:"backoff_start_interval,omitempty"` + Initiator ContinueAsNewInitiator `protobuf:"varint,9,opt,name=initiator,proto3,enum=uber.cadence.api.v1.ContinueAsNewInitiator" json:"initiator,omitempty"` + Failure *Failure `protobuf:"bytes,10,opt,name=failure,proto3" json:"failure,omitempty"` + LastCompletionResult *Payload `protobuf:"bytes,11,opt,name=last_completion_result,json=lastCompletionResult,proto3" json:"last_completion_result,omitempty"` + Header *Header `protobuf:"bytes,12,opt,name=header,proto3" json:"header,omitempty"` + Memo *Memo `protobuf:"bytes,13,opt,name=memo,proto3" json:"memo,omitempty"` + SearchAttributes *SearchAttributes `protobuf:"bytes,14,opt,name=search_attributes,json=searchAttributes,proto3" json:"search_attributes,omitempty"` } -func (*ExternalWorkflowExecutionCancelRequestedEventAttributes) ProtoMessage() {} -func (*ExternalWorkflowExecutionCancelRequestedEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{31} -} -func (m *ExternalWorkflowExecutionCancelRequestedEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExternalWorkflowExecutionCancelRequestedEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ExternalWorkflowExecutionCancelRequestedEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) Reset() { + *x = WorkflowExecutionContinuedAsNewEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ExternalWorkflowExecutionCancelRequestedEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExternalWorkflowExecutionCancelRequestedEventAttributes.Merge(m, src) -} -func (m *ExternalWorkflowExecutionCancelRequestedEventAttributes) XXX_Size() int { - return m.Size() -} -func (m *ExternalWorkflowExecutionCancelRequestedEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_ExternalWorkflowExecutionCancelRequestedEventAttributes.DiscardUnknown(m) + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ExternalWorkflowExecutionCancelRequestedEventAttributes proto.InternalMessageInfo +func (*WorkflowExecutionContinuedAsNewEventAttributes) ProtoMessage() {} -func (m *ExternalWorkflowExecutionCancelRequestedEventAttributes) GetInitiatedEventId() int64 { - if m != nil { - return m.InitiatedEventId +func (x *WorkflowExecutionContinuedAsNewEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return 0 + return mi.MessageOf(x) } -func (m *ExternalWorkflowExecutionCancelRequestedEventAttributes) GetDomain() string { - if m != nil { - return m.Domain +// Deprecated: Use WorkflowExecutionContinuedAsNewEventAttributes.ProtoReflect.Descriptor instead. +func (*WorkflowExecutionContinuedAsNewEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{23} +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetNewExecutionRunId() string { + if x != nil { + return x.NewExecutionRunId } return "" } -func (m *ExternalWorkflowExecutionCancelRequestedEventAttributes) GetWorkflowExecution() *WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetWorkflowType() *WorkflowType { + if x != nil { + return x.WorkflowType } return nil } -type SignalExternalWorkflowExecutionInitiatedEventAttributes struct { - DecisionTaskCompletedEventId int64 `protobuf:"varint,1,opt,name=decision_task_completed_event_id,json=decisionTaskCompletedEventId,proto3" json:"decision_task_completed_event_id,omitempty"` - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` - WorkflowExecution *WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` - SignalName string `protobuf:"bytes,4,opt,name=signal_name,json=signalName,proto3" json:"signal_name,omitempty"` - Input *Payload `protobuf:"bytes,5,opt,name=input,proto3" json:"input,omitempty"` - Control []byte `protobuf:"bytes,6,opt,name=control,proto3" json:"control,omitempty"` - ChildWorkflowOnly bool `protobuf:"varint,7,opt,name=child_workflow_only,json=childWorkflowOnly,proto3" json:"child_workflow_only,omitempty"` +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetTaskList() *TaskList { + if x != nil { + return x.TaskList + } + return nil } -func (m *SignalExternalWorkflowExecutionInitiatedEventAttributes) Reset() { - *m = SignalExternalWorkflowExecutionInitiatedEventAttributes{} -} -func (*SignalExternalWorkflowExecutionInitiatedEventAttributes) ProtoMessage() {} -func (*SignalExternalWorkflowExecutionInitiatedEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{32} -} -func (m *SignalExternalWorkflowExecutionInitiatedEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SignalExternalWorkflowExecutionInitiatedEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SignalExternalWorkflowExecutionInitiatedEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetInput() *Payload { + if x != nil { + return x.Input } + return nil } -func (m *SignalExternalWorkflowExecutionInitiatedEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_SignalExternalWorkflowExecutionInitiatedEventAttributes.Merge(m, src) -} -func (m *SignalExternalWorkflowExecutionInitiatedEventAttributes) XXX_Size() int { - return m.Size() -} -func (m *SignalExternalWorkflowExecutionInitiatedEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_SignalExternalWorkflowExecutionInitiatedEventAttributes.DiscardUnknown(m) + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetExecutionStartToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.ExecutionStartToCloseTimeout + } + return nil } -var xxx_messageInfo_SignalExternalWorkflowExecutionInitiatedEventAttributes proto.InternalMessageInfo +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetTaskStartToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.TaskStartToCloseTimeout + } + return nil +} -func (m *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetDecisionTaskCompletedEventId() int64 { - if m != nil { - return m.DecisionTaskCompletedEventId +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetDecisionTaskCompletedEventId() int64 { + if x != nil { + return x.DecisionTaskCompletedEventId } return 0 } -func (m *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetDomain() string { - if m != nil { - return m.Domain +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetBackoffStartInterval() *durationpb.Duration { + if x != nil { + return x.BackoffStartInterval } - return "" + return nil } -func (m *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetWorkflowExecution() *WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetInitiator() ContinueAsNewInitiator { + if x != nil { + return x.Initiator } - return nil + return ContinueAsNewInitiator_CONTINUE_AS_NEW_INITIATOR_INVALID } -func (m *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetSignalName() string { - if m != nil { - return m.SignalName +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetFailure() *Failure { + if x != nil { + return x.Failure } - return "" + return nil } -func (m *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetInput() *Payload { - if m != nil { - return m.Input +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetLastCompletionResult() *Payload { + if x != nil { + return x.LastCompletionResult } return nil } -func (m *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetControl() []byte { - if m != nil { - return m.Control +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetHeader() *Header { + if x != nil { + return x.Header } return nil } -func (m *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetChildWorkflowOnly() bool { - if m != nil { - return m.ChildWorkflowOnly +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetMemo() *Memo { + if x != nil { + return x.Memo } - return false + return nil } -type SignalExternalWorkflowExecutionFailedEventAttributes struct { - Cause SignalExternalWorkflowExecutionFailedCause `protobuf:"varint,1,opt,name=cause,proto3,enum=uber.cadence.api.v1.SignalExternalWorkflowExecutionFailedCause" json:"cause,omitempty"` - DecisionTaskCompletedEventId int64 `protobuf:"varint,2,opt,name=decision_task_completed_event_id,json=decisionTaskCompletedEventId,proto3" json:"decision_task_completed_event_id,omitempty"` - Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"` - WorkflowExecution *WorkflowExecution `protobuf:"bytes,4,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` - InitiatedEventId int64 `protobuf:"varint,5,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` - Control []byte `protobuf:"bytes,6,opt,name=control,proto3" json:"control,omitempty"` +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetSearchAttributes() *SearchAttributes { + if x != nil { + return x.SearchAttributes + } + return nil } -func (m *SignalExternalWorkflowExecutionFailedEventAttributes) Reset() { - *m = SignalExternalWorkflowExecutionFailedEventAttributes{} +type WorkflowExecutionCancelRequestedEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Cause string `protobuf:"bytes,1,opt,name=cause,proto3" json:"cause,omitempty"` + ExternalInitiatedEventId int64 `protobuf:"varint,2,opt,name=external_initiated_event_id,json=externalInitiatedEventId,proto3" json:"external_initiated_event_id,omitempty"` + ExternalWorkflowExecution *WorkflowExecution `protobuf:"bytes,3,opt,name=external_workflow_execution,json=externalWorkflowExecution,proto3" json:"external_workflow_execution,omitempty"` + Identity string `protobuf:"bytes,4,opt,name=identity,proto3" json:"identity,omitempty"` } -func (*SignalExternalWorkflowExecutionFailedEventAttributes) ProtoMessage() {} -func (*SignalExternalWorkflowExecutionFailedEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{33} -} -func (m *SignalExternalWorkflowExecutionFailedEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SignalExternalWorkflowExecutionFailedEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SignalExternalWorkflowExecutionFailedEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + +func (x *WorkflowExecutionCancelRequestedEventAttributes) Reset() { + *x = WorkflowExecutionCancelRequestedEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *SignalExternalWorkflowExecutionFailedEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_SignalExternalWorkflowExecutionFailedEventAttributes.Merge(m, src) -} -func (m *SignalExternalWorkflowExecutionFailedEventAttributes) XXX_Size() int { - return m.Size() -} -func (m *SignalExternalWorkflowExecutionFailedEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_SignalExternalWorkflowExecutionFailedEventAttributes.DiscardUnknown(m) + +func (x *WorkflowExecutionCancelRequestedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_SignalExternalWorkflowExecutionFailedEventAttributes proto.InternalMessageInfo +func (*WorkflowExecutionCancelRequestedEventAttributes) ProtoMessage() {} -func (m *SignalExternalWorkflowExecutionFailedEventAttributes) GetCause() SignalExternalWorkflowExecutionFailedCause { - if m != nil { - return m.Cause +func (x *WorkflowExecutionCancelRequestedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_INVALID + return mi.MessageOf(x) } -func (m *SignalExternalWorkflowExecutionFailedEventAttributes) GetDecisionTaskCompletedEventId() int64 { - if m != nil { - return m.DecisionTaskCompletedEventId - } - return 0 +// Deprecated: Use WorkflowExecutionCancelRequestedEventAttributes.ProtoReflect.Descriptor instead. +func (*WorkflowExecutionCancelRequestedEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{24} } -func (m *SignalExternalWorkflowExecutionFailedEventAttributes) GetDomain() string { - if m != nil { - return m.Domain +func (x *WorkflowExecutionCancelRequestedEventAttributes) GetCause() string { + if x != nil { + return x.Cause } return "" } -func (m *SignalExternalWorkflowExecutionFailedEventAttributes) GetWorkflowExecution() *WorkflowExecution { - if m != nil { - return m.WorkflowExecution - } - return nil -} - -func (m *SignalExternalWorkflowExecutionFailedEventAttributes) GetInitiatedEventId() int64 { - if m != nil { - return m.InitiatedEventId +func (x *WorkflowExecutionCancelRequestedEventAttributes) GetExternalInitiatedEventId() int64 { + if x != nil { + return x.ExternalInitiatedEventId } return 0 } -func (m *SignalExternalWorkflowExecutionFailedEventAttributes) GetControl() []byte { - if m != nil { - return m.Control +func (x *WorkflowExecutionCancelRequestedEventAttributes) GetExternalWorkflowExecution() *WorkflowExecution { + if x != nil { + return x.ExternalWorkflowExecution } return nil } -type ExternalWorkflowExecutionSignaledEventAttributes struct { - InitiatedEventId int64 `protobuf:"varint,1,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` - WorkflowExecution *WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` - Control []byte `protobuf:"bytes,4,opt,name=control,proto3" json:"control,omitempty"` +func (x *WorkflowExecutionCancelRequestedEventAttributes) GetIdentity() string { + if x != nil { + return x.Identity + } + return "" } -func (m *ExternalWorkflowExecutionSignaledEventAttributes) Reset() { - *m = ExternalWorkflowExecutionSignaledEventAttributes{} +type WorkflowExecutionCanceledEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DecisionTaskCompletedEventId int64 `protobuf:"varint,1,opt,name=decision_task_completed_event_id,json=decisionTaskCompletedEventId,proto3" json:"decision_task_completed_event_id,omitempty"` + Details *Payload `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"` } -func (*ExternalWorkflowExecutionSignaledEventAttributes) ProtoMessage() {} -func (*ExternalWorkflowExecutionSignaledEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{34} -} -func (m *ExternalWorkflowExecutionSignaledEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExternalWorkflowExecutionSignaledEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ExternalWorkflowExecutionSignaledEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + +func (x *WorkflowExecutionCanceledEventAttributes) Reset() { + *x = WorkflowExecutionCanceledEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ExternalWorkflowExecutionSignaledEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExternalWorkflowExecutionSignaledEventAttributes.Merge(m, src) -} -func (m *ExternalWorkflowExecutionSignaledEventAttributes) XXX_Size() int { - return m.Size() -} -func (m *ExternalWorkflowExecutionSignaledEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_ExternalWorkflowExecutionSignaledEventAttributes.DiscardUnknown(m) + +func (x *WorkflowExecutionCanceledEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ExternalWorkflowExecutionSignaledEventAttributes proto.InternalMessageInfo +func (*WorkflowExecutionCanceledEventAttributes) ProtoMessage() {} -func (m *ExternalWorkflowExecutionSignaledEventAttributes) GetInitiatedEventId() int64 { - if m != nil { - return m.InitiatedEventId +func (x *WorkflowExecutionCanceledEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return 0 + return mi.MessageOf(x) } -func (m *ExternalWorkflowExecutionSignaledEventAttributes) GetDomain() string { - if m != nil { - return m.Domain - } - return "" +// Deprecated: Use WorkflowExecutionCanceledEventAttributes.ProtoReflect.Descriptor instead. +func (*WorkflowExecutionCanceledEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{25} } -func (m *ExternalWorkflowExecutionSignaledEventAttributes) GetWorkflowExecution() *WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *WorkflowExecutionCanceledEventAttributes) GetDecisionTaskCompletedEventId() int64 { + if x != nil { + return x.DecisionTaskCompletedEventId } - return nil + return 0 } -func (m *ExternalWorkflowExecutionSignaledEventAttributes) GetControl() []byte { - if m != nil { - return m.Control +func (x *WorkflowExecutionCanceledEventAttributes) GetDetails() *Payload { + if x != nil { + return x.Details } return nil } -type UpsertWorkflowSearchAttributesEventAttributes struct { - DecisionTaskCompletedEventId int64 `protobuf:"varint,1,opt,name=decision_task_completed_event_id,json=decisionTaskCompletedEventId,proto3" json:"decision_task_completed_event_id,omitempty"` - SearchAttributes *SearchAttributes `protobuf:"bytes,2,opt,name=search_attributes,json=searchAttributes,proto3" json:"search_attributes,omitempty"` +type MarkerRecordedEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MarkerName string `protobuf:"bytes,1,opt,name=marker_name,json=markerName,proto3" json:"marker_name,omitempty"` + Details *Payload `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"` + DecisionTaskCompletedEventId int64 `protobuf:"varint,3,opt,name=decision_task_completed_event_id,json=decisionTaskCompletedEventId,proto3" json:"decision_task_completed_event_id,omitempty"` + Header *Header `protobuf:"bytes,4,opt,name=header,proto3" json:"header,omitempty"` } -func (m *UpsertWorkflowSearchAttributesEventAttributes) Reset() { - *m = UpsertWorkflowSearchAttributesEventAttributes{} +func (x *MarkerRecordedEventAttributes) Reset() { + *x = MarkerRecordedEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (*UpsertWorkflowSearchAttributesEventAttributes) ProtoMessage() {} -func (*UpsertWorkflowSearchAttributesEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{35} -} -func (m *UpsertWorkflowSearchAttributesEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UpsertWorkflowSearchAttributesEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UpsertWorkflowSearchAttributesEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *MarkerRecordedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MarkerRecordedEventAttributes) ProtoMessage() {} + +func (x *MarkerRecordedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *UpsertWorkflowSearchAttributesEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpsertWorkflowSearchAttributesEventAttributes.Merge(m, src) -} -func (m *UpsertWorkflowSearchAttributesEventAttributes) XXX_Size() int { - return m.Size() + +// Deprecated: Use MarkerRecordedEventAttributes.ProtoReflect.Descriptor instead. +func (*MarkerRecordedEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{26} } -func (m *UpsertWorkflowSearchAttributesEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_UpsertWorkflowSearchAttributesEventAttributes.DiscardUnknown(m) + +func (x *MarkerRecordedEventAttributes) GetMarkerName() string { + if x != nil { + return x.MarkerName + } + return "" } -var xxx_messageInfo_UpsertWorkflowSearchAttributesEventAttributes proto.InternalMessageInfo +func (x *MarkerRecordedEventAttributes) GetDetails() *Payload { + if x != nil { + return x.Details + } + return nil +} -func (m *UpsertWorkflowSearchAttributesEventAttributes) GetDecisionTaskCompletedEventId() int64 { - if m != nil { - return m.DecisionTaskCompletedEventId +func (x *MarkerRecordedEventAttributes) GetDecisionTaskCompletedEventId() int64 { + if x != nil { + return x.DecisionTaskCompletedEventId } return 0 } -func (m *UpsertWorkflowSearchAttributesEventAttributes) GetSearchAttributes() *SearchAttributes { - if m != nil { - return m.SearchAttributes +func (x *MarkerRecordedEventAttributes) GetHeader() *Header { + if x != nil { + return x.Header } return nil } -type StartChildWorkflowExecutionInitiatedEventAttributes struct { - Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` - WorkflowId string `protobuf:"bytes,2,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` - WorkflowType *WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` - TaskList *TaskList `protobuf:"bytes,4,opt,name=task_list,json=taskList,proto3" json:"task_list,omitempty"` - Input *Payload `protobuf:"bytes,5,opt,name=input,proto3" json:"input,omitempty"` - ExecutionStartToCloseTimeout *time.Duration `protobuf:"bytes,6,opt,name=execution_start_to_close_timeout,json=executionStartToCloseTimeout,proto3,stdduration" json:"execution_start_to_close_timeout,omitempty"` - TaskStartToCloseTimeout *time.Duration `protobuf:"bytes,7,opt,name=task_start_to_close_timeout,json=taskStartToCloseTimeout,proto3,stdduration" json:"task_start_to_close_timeout,omitempty"` - ParentClosePolicy ParentClosePolicy `protobuf:"varint,8,opt,name=parent_close_policy,json=parentClosePolicy,proto3,enum=uber.cadence.api.v1.ParentClosePolicy" json:"parent_close_policy,omitempty"` - Control []byte `protobuf:"bytes,9,opt,name=control,proto3" json:"control,omitempty"` - DecisionTaskCompletedEventId int64 `protobuf:"varint,10,opt,name=decision_task_completed_event_id,json=decisionTaskCompletedEventId,proto3" json:"decision_task_completed_event_id,omitempty"` - WorkflowIdReusePolicy WorkflowIdReusePolicy `protobuf:"varint,11,opt,name=workflow_id_reuse_policy,json=workflowIdReusePolicy,proto3,enum=uber.cadence.api.v1.WorkflowIdReusePolicy" json:"workflow_id_reuse_policy,omitempty"` - RetryPolicy *RetryPolicy `protobuf:"bytes,13,opt,name=retry_policy,json=retryPolicy,proto3" json:"retry_policy,omitempty"` - CronSchedule string `protobuf:"bytes,14,opt,name=cron_schedule,json=cronSchedule,proto3" json:"cron_schedule,omitempty"` - Header *Header `protobuf:"bytes,15,opt,name=header,proto3" json:"header,omitempty"` - Memo *Memo `protobuf:"bytes,16,opt,name=memo,proto3" json:"memo,omitempty"` - SearchAttributes *SearchAttributes `protobuf:"bytes,17,opt,name=search_attributes,json=searchAttributes,proto3" json:"search_attributes,omitempty"` -} +type WorkflowExecutionSignaledEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *StartChildWorkflowExecutionInitiatedEventAttributes) Reset() { - *m = StartChildWorkflowExecutionInitiatedEventAttributes{} + SignalName string `protobuf:"bytes,1,opt,name=signal_name,json=signalName,proto3" json:"signal_name,omitempty"` + Input *Payload `protobuf:"bytes,2,opt,name=input,proto3" json:"input,omitempty"` + Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` } -func (*StartChildWorkflowExecutionInitiatedEventAttributes) ProtoMessage() {} -func (*StartChildWorkflowExecutionInitiatedEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{36} -} -func (m *StartChildWorkflowExecutionInitiatedEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StartChildWorkflowExecutionInitiatedEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StartChildWorkflowExecutionInitiatedEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + +func (x *WorkflowExecutionSignaledEventAttributes) Reset() { + *x = WorkflowExecutionSignaledEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *StartChildWorkflowExecutionInitiatedEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_StartChildWorkflowExecutionInitiatedEventAttributes.Merge(m, src) -} -func (m *StartChildWorkflowExecutionInitiatedEventAttributes) XXX_Size() int { - return m.Size() -} -func (m *StartChildWorkflowExecutionInitiatedEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_StartChildWorkflowExecutionInitiatedEventAttributes.DiscardUnknown(m) + +func (x *WorkflowExecutionSignaledEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_StartChildWorkflowExecutionInitiatedEventAttributes proto.InternalMessageInfo +func (*WorkflowExecutionSignaledEventAttributes) ProtoMessage() {} -func (m *StartChildWorkflowExecutionInitiatedEventAttributes) GetDomain() string { - if m != nil { - return m.Domain +func (x *WorkflowExecutionSignaledEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -func (m *StartChildWorkflowExecutionInitiatedEventAttributes) GetWorkflowId() string { - if m != nil { - return m.WorkflowId - } - return "" +// Deprecated: Use WorkflowExecutionSignaledEventAttributes.ProtoReflect.Descriptor instead. +func (*WorkflowExecutionSignaledEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{27} } -func (m *StartChildWorkflowExecutionInitiatedEventAttributes) GetWorkflowType() *WorkflowType { - if m != nil { - return m.WorkflowType +func (x *WorkflowExecutionSignaledEventAttributes) GetSignalName() string { + if x != nil { + return x.SignalName } - return nil + return "" } -func (m *StartChildWorkflowExecutionInitiatedEventAttributes) GetTaskList() *TaskList { - if m != nil { - return m.TaskList +func (x *WorkflowExecutionSignaledEventAttributes) GetInput() *Payload { + if x != nil { + return x.Input } return nil } -func (m *StartChildWorkflowExecutionInitiatedEventAttributes) GetInput() *Payload { - if m != nil { - return m.Input +func (x *WorkflowExecutionSignaledEventAttributes) GetIdentity() string { + if x != nil { + return x.Identity } - return nil + return "" } -func (m *StartChildWorkflowExecutionInitiatedEventAttributes) GetExecutionStartToCloseTimeout() *time.Duration { - if m != nil { - return m.ExecutionStartToCloseTimeout - } - return nil +type WorkflowExecutionTerminatedEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"` + Details *Payload `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"` + Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` } -func (m *StartChildWorkflowExecutionInitiatedEventAttributes) GetTaskStartToCloseTimeout() *time.Duration { - if m != nil { - return m.TaskStartToCloseTimeout +func (x *WorkflowExecutionTerminatedEventAttributes) Reset() { + *x = WorkflowExecutionTerminatedEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *StartChildWorkflowExecutionInitiatedEventAttributes) GetParentClosePolicy() ParentClosePolicy { - if m != nil { - return m.ParentClosePolicy - } - return PARENT_CLOSE_POLICY_INVALID +func (x *WorkflowExecutionTerminatedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *StartChildWorkflowExecutionInitiatedEventAttributes) GetControl() []byte { - if m != nil { - return m.Control +func (*WorkflowExecutionTerminatedEventAttributes) ProtoMessage() {} + +func (x *WorkflowExecutionTerminatedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[28] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *StartChildWorkflowExecutionInitiatedEventAttributes) GetDecisionTaskCompletedEventId() int64 { - if m != nil { - return m.DecisionTaskCompletedEventId - } - return 0 +// Deprecated: Use WorkflowExecutionTerminatedEventAttributes.ProtoReflect.Descriptor instead. +func (*WorkflowExecutionTerminatedEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{28} } -func (m *StartChildWorkflowExecutionInitiatedEventAttributes) GetWorkflowIdReusePolicy() WorkflowIdReusePolicy { - if m != nil { - return m.WorkflowIdReusePolicy +func (x *WorkflowExecutionTerminatedEventAttributes) GetReason() string { + if x != nil { + return x.Reason } - return WORKFLOW_ID_REUSE_POLICY_INVALID + return "" } -func (m *StartChildWorkflowExecutionInitiatedEventAttributes) GetRetryPolicy() *RetryPolicy { - if m != nil { - return m.RetryPolicy +func (x *WorkflowExecutionTerminatedEventAttributes) GetDetails() *Payload { + if x != nil { + return x.Details } return nil } -func (m *StartChildWorkflowExecutionInitiatedEventAttributes) GetCronSchedule() string { - if m != nil { - return m.CronSchedule +func (x *WorkflowExecutionTerminatedEventAttributes) GetIdentity() string { + if x != nil { + return x.Identity } return "" } -func (m *StartChildWorkflowExecutionInitiatedEventAttributes) GetHeader() *Header { - if m != nil { - return m.Header - } - return nil -} +type RequestCancelExternalWorkflowExecutionInitiatedEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *StartChildWorkflowExecutionInitiatedEventAttributes) GetMemo() *Memo { - if m != nil { - return m.Memo - } - return nil + DecisionTaskCompletedEventId int64 `protobuf:"varint,1,opt,name=decision_task_completed_event_id,json=decisionTaskCompletedEventId,proto3" json:"decision_task_completed_event_id,omitempty"` + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + WorkflowExecution *WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` + Control []byte `protobuf:"bytes,4,opt,name=control,proto3" json:"control,omitempty"` + ChildWorkflowOnly bool `protobuf:"varint,5,opt,name=child_workflow_only,json=childWorkflowOnly,proto3" json:"child_workflow_only,omitempty"` } -func (m *StartChildWorkflowExecutionInitiatedEventAttributes) GetSearchAttributes() *SearchAttributes { - if m != nil { - return m.SearchAttributes +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) Reset() { + *x = RequestCancelExternalWorkflowExecutionInitiatedEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type StartChildWorkflowExecutionFailedEventAttributes struct { - Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` - WorkflowId string `protobuf:"bytes,2,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` - WorkflowType *WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` - Cause ChildWorkflowExecutionFailedCause `protobuf:"varint,4,opt,name=cause,proto3,enum=uber.cadence.api.v1.ChildWorkflowExecutionFailedCause" json:"cause,omitempty"` - Control []byte `protobuf:"bytes,5,opt,name=control,proto3" json:"control,omitempty"` - InitiatedEventId int64 `protobuf:"varint,6,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` - DecisionTaskCompletedEventId int64 `protobuf:"varint,7,opt,name=decision_task_completed_event_id,json=decisionTaskCompletedEventId,proto3" json:"decision_task_completed_event_id,omitempty"` +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *StartChildWorkflowExecutionFailedEventAttributes) Reset() { - *m = StartChildWorkflowExecutionFailedEventAttributes{} -} -func (*StartChildWorkflowExecutionFailedEventAttributes) ProtoMessage() {} -func (*StartChildWorkflowExecutionFailedEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{37} -} -func (m *StartChildWorkflowExecutionFailedEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StartChildWorkflowExecutionFailedEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StartChildWorkflowExecutionFailedEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) ProtoMessage() {} + +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[29] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *StartChildWorkflowExecutionFailedEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_StartChildWorkflowExecutionFailedEventAttributes.Merge(m, src) -} -func (m *StartChildWorkflowExecutionFailedEventAttributes) XXX_Size() int { - return m.Size() -} -func (m *StartChildWorkflowExecutionFailedEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_StartChildWorkflowExecutionFailedEventAttributes.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_StartChildWorkflowExecutionFailedEventAttributes proto.InternalMessageInfo +// Deprecated: Use RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.ProtoReflect.Descriptor instead. +func (*RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{29} +} -func (m *StartChildWorkflowExecutionFailedEventAttributes) GetDomain() string { - if m != nil { - return m.Domain +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GetDecisionTaskCompletedEventId() int64 { + if x != nil { + return x.DecisionTaskCompletedEventId } - return "" + return 0 } -func (m *StartChildWorkflowExecutionFailedEventAttributes) GetWorkflowId() string { - if m != nil { - return m.WorkflowId +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GetDomain() string { + if x != nil { + return x.Domain } return "" } -func (m *StartChildWorkflowExecutionFailedEventAttributes) GetWorkflowType() *WorkflowType { - if m != nil { - return m.WorkflowType +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GetWorkflowExecution() *WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *StartChildWorkflowExecutionFailedEventAttributes) GetCause() ChildWorkflowExecutionFailedCause { - if m != nil { - return m.Cause +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GetControl() []byte { + if x != nil { + return x.Control } - return CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_INVALID + return nil } -func (m *StartChildWorkflowExecutionFailedEventAttributes) GetControl() []byte { - if m != nil { - return m.Control +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GetChildWorkflowOnly() bool { + if x != nil { + return x.ChildWorkflowOnly } - return nil + return false } -func (m *StartChildWorkflowExecutionFailedEventAttributes) GetInitiatedEventId() int64 { - if m != nil { - return m.InitiatedEventId - } - return 0 +type RequestCancelExternalWorkflowExecutionFailedEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Cause CancelExternalWorkflowExecutionFailedCause `protobuf:"varint,1,opt,name=cause,proto3,enum=uber.cadence.api.v1.CancelExternalWorkflowExecutionFailedCause" json:"cause,omitempty"` + DecisionTaskCompletedEventId int64 `protobuf:"varint,2,opt,name=decision_task_completed_event_id,json=decisionTaskCompletedEventId,proto3" json:"decision_task_completed_event_id,omitempty"` + Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"` + WorkflowExecution *WorkflowExecution `protobuf:"bytes,4,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` + InitiatedEventId int64 `protobuf:"varint,5,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` + Control []byte `protobuf:"bytes,6,opt,name=control,proto3" json:"control,omitempty"` } -func (m *StartChildWorkflowExecutionFailedEventAttributes) GetDecisionTaskCompletedEventId() int64 { - if m != nil { - return m.DecisionTaskCompletedEventId +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) Reset() { + *x = RequestCancelExternalWorkflowExecutionFailedEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return 0 } -type ChildWorkflowExecutionStartedEventAttributes struct { - Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` - WorkflowExecution *WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` - WorkflowType *WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` - InitiatedEventId int64 `protobuf:"varint,4,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` - Header *Header `protobuf:"bytes,5,opt,name=header,proto3" json:"header,omitempty"` +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ChildWorkflowExecutionStartedEventAttributes) Reset() { - *m = ChildWorkflowExecutionStartedEventAttributes{} -} -func (*ChildWorkflowExecutionStartedEventAttributes) ProtoMessage() {} -func (*ChildWorkflowExecutionStartedEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{38} -} -func (m *ChildWorkflowExecutionStartedEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ChildWorkflowExecutionStartedEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ChildWorkflowExecutionStartedEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*RequestCancelExternalWorkflowExecutionFailedEventAttributes) ProtoMessage() {} + +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[30] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *ChildWorkflowExecutionStartedEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChildWorkflowExecutionStartedEventAttributes.Merge(m, src) -} -func (m *ChildWorkflowExecutionStartedEventAttributes) XXX_Size() int { - return m.Size() -} -func (m *ChildWorkflowExecutionStartedEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_ChildWorkflowExecutionStartedEventAttributes.DiscardUnknown(m) + +// Deprecated: Use RequestCancelExternalWorkflowExecutionFailedEventAttributes.ProtoReflect.Descriptor instead. +func (*RequestCancelExternalWorkflowExecutionFailedEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{30} } -var xxx_messageInfo_ChildWorkflowExecutionStartedEventAttributes proto.InternalMessageInfo +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) GetCause() CancelExternalWorkflowExecutionFailedCause { + if x != nil { + return x.Cause + } + return CancelExternalWorkflowExecutionFailedCause_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_INVALID +} -func (m *ChildWorkflowExecutionStartedEventAttributes) GetDomain() string { - if m != nil { - return m.Domain +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) GetDecisionTaskCompletedEventId() int64 { + if x != nil { + return x.DecisionTaskCompletedEventId } - return "" + return 0 } -func (m *ChildWorkflowExecutionStartedEventAttributes) GetWorkflowExecution() *WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) GetDomain() string { + if x != nil { + return x.Domain } - return nil + return "" } -func (m *ChildWorkflowExecutionStartedEventAttributes) GetWorkflowType() *WorkflowType { - if m != nil { - return m.WorkflowType +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) GetWorkflowExecution() *WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *ChildWorkflowExecutionStartedEventAttributes) GetInitiatedEventId() int64 { - if m != nil { - return m.InitiatedEventId +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) GetInitiatedEventId() int64 { + if x != nil { + return x.InitiatedEventId } return 0 } -func (m *ChildWorkflowExecutionStartedEventAttributes) GetHeader() *Header { - if m != nil { - return m.Header +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) GetControl() []byte { + if x != nil { + return x.Control } return nil } -type ChildWorkflowExecutionCompletedEventAttributes struct { - Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` - WorkflowExecution *WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` - WorkflowType *WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` - InitiatedEventId int64 `protobuf:"varint,4,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` - StartedEventId int64 `protobuf:"varint,5,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` - Result *Payload `protobuf:"bytes,6,opt,name=result,proto3" json:"result,omitempty"` -} +type ExternalWorkflowExecutionCancelRequestedEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ChildWorkflowExecutionCompletedEventAttributes) Reset() { - *m = ChildWorkflowExecutionCompletedEventAttributes{} + InitiatedEventId int64 `protobuf:"varint,1,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + WorkflowExecution *WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` } -func (*ChildWorkflowExecutionCompletedEventAttributes) ProtoMessage() {} -func (*ChildWorkflowExecutionCompletedEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{39} -} -func (m *ChildWorkflowExecutionCompletedEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ChildWorkflowExecutionCompletedEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ChildWorkflowExecutionCompletedEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + +func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) Reset() { + *x = ExternalWorkflowExecutionCancelRequestedEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ChildWorkflowExecutionCompletedEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChildWorkflowExecutionCompletedEventAttributes.Merge(m, src) -} -func (m *ChildWorkflowExecutionCompletedEventAttributes) XXX_Size() int { - return m.Size() -} -func (m *ChildWorkflowExecutionCompletedEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_ChildWorkflowExecutionCompletedEventAttributes.DiscardUnknown(m) -} - -var xxx_messageInfo_ChildWorkflowExecutionCompletedEventAttributes proto.InternalMessageInfo -func (m *ChildWorkflowExecutionCompletedEventAttributes) GetDomain() string { - if m != nil { - return m.Domain - } - return "" +func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ChildWorkflowExecutionCompletedEventAttributes) GetWorkflowExecution() *WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (*ExternalWorkflowExecutionCancelRequestedEventAttributes) ProtoMessage() {} + +func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[31] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *ChildWorkflowExecutionCompletedEventAttributes) GetWorkflowType() *WorkflowType { - if m != nil { - return m.WorkflowType - } - return nil +// Deprecated: Use ExternalWorkflowExecutionCancelRequestedEventAttributes.ProtoReflect.Descriptor instead. +func (*ExternalWorkflowExecutionCancelRequestedEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{31} } -func (m *ChildWorkflowExecutionCompletedEventAttributes) GetInitiatedEventId() int64 { - if m != nil { - return m.InitiatedEventId +func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) GetInitiatedEventId() int64 { + if x != nil { + return x.InitiatedEventId } return 0 } -func (m *ChildWorkflowExecutionCompletedEventAttributes) GetStartedEventId() int64 { - if m != nil { - return m.StartedEventId +func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) GetDomain() string { + if x != nil { + return x.Domain } - return 0 + return "" } -func (m *ChildWorkflowExecutionCompletedEventAttributes) GetResult() *Payload { - if m != nil { - return m.Result +func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) GetWorkflowExecution() *WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -type ChildWorkflowExecutionFailedEventAttributes struct { - Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` - WorkflowExecution *WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` - WorkflowType *WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` - InitiatedEventId int64 `protobuf:"varint,4,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` - StartedEventId int64 `protobuf:"varint,5,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` - Failure *Failure `protobuf:"bytes,6,opt,name=failure,proto3" json:"failure,omitempty"` +type SignalExternalWorkflowExecutionInitiatedEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DecisionTaskCompletedEventId int64 `protobuf:"varint,1,opt,name=decision_task_completed_event_id,json=decisionTaskCompletedEventId,proto3" json:"decision_task_completed_event_id,omitempty"` + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + WorkflowExecution *WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` + SignalName string `protobuf:"bytes,4,opt,name=signal_name,json=signalName,proto3" json:"signal_name,omitempty"` + Input *Payload `protobuf:"bytes,5,opt,name=input,proto3" json:"input,omitempty"` + Control []byte `protobuf:"bytes,6,opt,name=control,proto3" json:"control,omitempty"` + ChildWorkflowOnly bool `protobuf:"varint,7,opt,name=child_workflow_only,json=childWorkflowOnly,proto3" json:"child_workflow_only,omitempty"` } -func (m *ChildWorkflowExecutionFailedEventAttributes) Reset() { - *m = ChildWorkflowExecutionFailedEventAttributes{} +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) Reset() { + *x = SignalExternalWorkflowExecutionInitiatedEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (*ChildWorkflowExecutionFailedEventAttributes) ProtoMessage() {} -func (*ChildWorkflowExecutionFailedEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{40} -} -func (m *ChildWorkflowExecutionFailedEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ChildWorkflowExecutionFailedEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ChildWorkflowExecutionFailedEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignalExternalWorkflowExecutionInitiatedEventAttributes) ProtoMessage() {} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[32] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *ChildWorkflowExecutionFailedEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChildWorkflowExecutionFailedEventAttributes.Merge(m, src) + +// Deprecated: Use SignalExternalWorkflowExecutionInitiatedEventAttributes.ProtoReflect.Descriptor instead. +func (*SignalExternalWorkflowExecutionInitiatedEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{32} } -func (m *ChildWorkflowExecutionFailedEventAttributes) XXX_Size() int { - return m.Size() + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetDecisionTaskCompletedEventId() int64 { + if x != nil { + return x.DecisionTaskCompletedEventId + } + return 0 } -func (m *ChildWorkflowExecutionFailedEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_ChildWorkflowExecutionFailedEventAttributes.DiscardUnknown(m) + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetDomain() string { + if x != nil { + return x.Domain + } + return "" } -var xxx_messageInfo_ChildWorkflowExecutionFailedEventAttributes proto.InternalMessageInfo +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetWorkflowExecution() *WorkflowExecution { + if x != nil { + return x.WorkflowExecution + } + return nil +} -func (m *ChildWorkflowExecutionFailedEventAttributes) GetDomain() string { - if m != nil { - return m.Domain +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetSignalName() string { + if x != nil { + return x.SignalName } return "" } -func (m *ChildWorkflowExecutionFailedEventAttributes) GetWorkflowExecution() *WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetInput() *Payload { + if x != nil { + return x.Input } return nil } -func (m *ChildWorkflowExecutionFailedEventAttributes) GetWorkflowType() *WorkflowType { - if m != nil { - return m.WorkflowType +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetControl() []byte { + if x != nil { + return x.Control } return nil } -func (m *ChildWorkflowExecutionFailedEventAttributes) GetInitiatedEventId() int64 { - if m != nil { - return m.InitiatedEventId +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetChildWorkflowOnly() bool { + if x != nil { + return x.ChildWorkflowOnly } - return 0 + return false } -func (m *ChildWorkflowExecutionFailedEventAttributes) GetStartedEventId() int64 { - if m != nil { - return m.StartedEventId - } - return 0 +type SignalExternalWorkflowExecutionFailedEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Cause SignalExternalWorkflowExecutionFailedCause `protobuf:"varint,1,opt,name=cause,proto3,enum=uber.cadence.api.v1.SignalExternalWorkflowExecutionFailedCause" json:"cause,omitempty"` + DecisionTaskCompletedEventId int64 `protobuf:"varint,2,opt,name=decision_task_completed_event_id,json=decisionTaskCompletedEventId,proto3" json:"decision_task_completed_event_id,omitempty"` + Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"` + WorkflowExecution *WorkflowExecution `protobuf:"bytes,4,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` + InitiatedEventId int64 `protobuf:"varint,5,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` + Control []byte `protobuf:"bytes,6,opt,name=control,proto3" json:"control,omitempty"` } -func (m *ChildWorkflowExecutionFailedEventAttributes) GetFailure() *Failure { - if m != nil { - return m.Failure +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) Reset() { + *x = SignalExternalWorkflowExecutionFailedEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type ChildWorkflowExecutionCanceledEventAttributes struct { - Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` - WorkflowExecution *WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` - WorkflowType *WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` - InitiatedEventId int64 `protobuf:"varint,4,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` - StartedEventId int64 `protobuf:"varint,5,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` - Details *Payload `protobuf:"bytes,6,opt,name=details,proto3" json:"details,omitempty"` +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ChildWorkflowExecutionCanceledEventAttributes) Reset() { - *m = ChildWorkflowExecutionCanceledEventAttributes{} -} -func (*ChildWorkflowExecutionCanceledEventAttributes) ProtoMessage() {} -func (*ChildWorkflowExecutionCanceledEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{41} -} -func (m *ChildWorkflowExecutionCanceledEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ChildWorkflowExecutionCanceledEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ChildWorkflowExecutionCanceledEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*SignalExternalWorkflowExecutionFailedEventAttributes) ProtoMessage() {} + +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[33] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ChildWorkflowExecutionCanceledEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChildWorkflowExecutionCanceledEventAttributes.Merge(m, src) -} -func (m *ChildWorkflowExecutionCanceledEventAttributes) XXX_Size() int { - return m.Size() -} -func (m *ChildWorkflowExecutionCanceledEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_ChildWorkflowExecutionCanceledEventAttributes.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ChildWorkflowExecutionCanceledEventAttributes proto.InternalMessageInfo +// Deprecated: Use SignalExternalWorkflowExecutionFailedEventAttributes.ProtoReflect.Descriptor instead. +func (*SignalExternalWorkflowExecutionFailedEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{33} +} -func (m *ChildWorkflowExecutionCanceledEventAttributes) GetDomain() string { - if m != nil { - return m.Domain +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) GetCause() SignalExternalWorkflowExecutionFailedCause { + if x != nil { + return x.Cause } - return "" + return SignalExternalWorkflowExecutionFailedCause_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_INVALID } -func (m *ChildWorkflowExecutionCanceledEventAttributes) GetWorkflowExecution() *WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) GetDecisionTaskCompletedEventId() int64 { + if x != nil { + return x.DecisionTaskCompletedEventId } - return nil + return 0 } -func (m *ChildWorkflowExecutionCanceledEventAttributes) GetWorkflowType() *WorkflowType { - if m != nil { - return m.WorkflowType +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) GetDomain() string { + if x != nil { + return x.Domain } - return nil + return "" } -func (m *ChildWorkflowExecutionCanceledEventAttributes) GetInitiatedEventId() int64 { - if m != nil { - return m.InitiatedEventId +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) GetWorkflowExecution() *WorkflowExecution { + if x != nil { + return x.WorkflowExecution } - return 0 + return nil } -func (m *ChildWorkflowExecutionCanceledEventAttributes) GetStartedEventId() int64 { - if m != nil { - return m.StartedEventId +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) GetInitiatedEventId() int64 { + if x != nil { + return x.InitiatedEventId } return 0 } -func (m *ChildWorkflowExecutionCanceledEventAttributes) GetDetails() *Payload { - if m != nil { - return m.Details +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) GetControl() []byte { + if x != nil { + return x.Control } return nil } -type ChildWorkflowExecutionTimedOutEventAttributes struct { - Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` - WorkflowExecution *WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` - WorkflowType *WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` - InitiatedEventId int64 `protobuf:"varint,4,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` - StartedEventId int64 `protobuf:"varint,5,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` - TimeoutType TimeoutType `protobuf:"varint,6,opt,name=timeout_type,json=timeoutType,proto3,enum=uber.cadence.api.v1.TimeoutType" json:"timeout_type,omitempty"` -} +type ExternalWorkflowExecutionSignaledEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ChildWorkflowExecutionTimedOutEventAttributes) Reset() { - *m = ChildWorkflowExecutionTimedOutEventAttributes{} + InitiatedEventId int64 `protobuf:"varint,1,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + WorkflowExecution *WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` + Control []byte `protobuf:"bytes,4,opt,name=control,proto3" json:"control,omitempty"` } -func (*ChildWorkflowExecutionTimedOutEventAttributes) ProtoMessage() {} -func (*ChildWorkflowExecutionTimedOutEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{42} -} -func (m *ChildWorkflowExecutionTimedOutEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ChildWorkflowExecutionTimedOutEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ChildWorkflowExecutionTimedOutEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + +func (x *ExternalWorkflowExecutionSignaledEventAttributes) Reset() { + *x = ExternalWorkflowExecutionSignaledEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ChildWorkflowExecutionTimedOutEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChildWorkflowExecutionTimedOutEventAttributes.Merge(m, src) + +func (x *ExternalWorkflowExecutionSignaledEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ChildWorkflowExecutionTimedOutEventAttributes) XXX_Size() int { - return m.Size() + +func (*ExternalWorkflowExecutionSignaledEventAttributes) ProtoMessage() {} + +func (x *ExternalWorkflowExecutionSignaledEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[34] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *ChildWorkflowExecutionTimedOutEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_ChildWorkflowExecutionTimedOutEventAttributes.DiscardUnknown(m) + +// Deprecated: Use ExternalWorkflowExecutionSignaledEventAttributes.ProtoReflect.Descriptor instead. +func (*ExternalWorkflowExecutionSignaledEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{34} } -var xxx_messageInfo_ChildWorkflowExecutionTimedOutEventAttributes proto.InternalMessageInfo +func (x *ExternalWorkflowExecutionSignaledEventAttributes) GetInitiatedEventId() int64 { + if x != nil { + return x.InitiatedEventId + } + return 0 +} -func (m *ChildWorkflowExecutionTimedOutEventAttributes) GetDomain() string { - if m != nil { - return m.Domain +func (x *ExternalWorkflowExecutionSignaledEventAttributes) GetDomain() string { + if x != nil { + return x.Domain } return "" } -func (m *ChildWorkflowExecutionTimedOutEventAttributes) GetWorkflowExecution() *WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *ExternalWorkflowExecutionSignaledEventAttributes) GetWorkflowExecution() *WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *ChildWorkflowExecutionTimedOutEventAttributes) GetWorkflowType() *WorkflowType { - if m != nil { - return m.WorkflowType +func (x *ExternalWorkflowExecutionSignaledEventAttributes) GetControl() []byte { + if x != nil { + return x.Control } return nil } -func (m *ChildWorkflowExecutionTimedOutEventAttributes) GetInitiatedEventId() int64 { - if m != nil { - return m.InitiatedEventId +type UpsertWorkflowSearchAttributesEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DecisionTaskCompletedEventId int64 `protobuf:"varint,1,opt,name=decision_task_completed_event_id,json=decisionTaskCompletedEventId,proto3" json:"decision_task_completed_event_id,omitempty"` + SearchAttributes *SearchAttributes `protobuf:"bytes,2,opt,name=search_attributes,json=searchAttributes,proto3" json:"search_attributes,omitempty"` +} + +func (x *UpsertWorkflowSearchAttributesEventAttributes) Reset() { + *x = UpsertWorkflowSearchAttributesEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return 0 } -func (m *ChildWorkflowExecutionTimedOutEventAttributes) GetStartedEventId() int64 { - if m != nil { - return m.StartedEventId +func (x *UpsertWorkflowSearchAttributesEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpsertWorkflowSearchAttributesEventAttributes) ProtoMessage() {} + +func (x *UpsertWorkflowSearchAttributesEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[35] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return 0 + return mi.MessageOf(x) } -func (m *ChildWorkflowExecutionTimedOutEventAttributes) GetTimeoutType() TimeoutType { - if m != nil { - return m.TimeoutType +// Deprecated: Use UpsertWorkflowSearchAttributesEventAttributes.ProtoReflect.Descriptor instead. +func (*UpsertWorkflowSearchAttributesEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{35} +} + +func (x *UpsertWorkflowSearchAttributesEventAttributes) GetDecisionTaskCompletedEventId() int64 { + if x != nil { + return x.DecisionTaskCompletedEventId } - return TIMEOUT_TYPE_INVALID + return 0 } -type ChildWorkflowExecutionTerminatedEventAttributes struct { - Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` - WorkflowExecution *WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` - WorkflowType *WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` - InitiatedEventId int64 `protobuf:"varint,4,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` - StartedEventId int64 `protobuf:"varint,5,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` +func (x *UpsertWorkflowSearchAttributesEventAttributes) GetSearchAttributes() *SearchAttributes { + if x != nil { + return x.SearchAttributes + } + return nil } -func (m *ChildWorkflowExecutionTerminatedEventAttributes) Reset() { - *m = ChildWorkflowExecutionTerminatedEventAttributes{} +type StartChildWorkflowExecutionInitiatedEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` + WorkflowId string `protobuf:"bytes,2,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` + WorkflowType *WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` + TaskList *TaskList `protobuf:"bytes,4,opt,name=task_list,json=taskList,proto3" json:"task_list,omitempty"` + Input *Payload `protobuf:"bytes,5,opt,name=input,proto3" json:"input,omitempty"` + ExecutionStartToCloseTimeout *durationpb.Duration `protobuf:"bytes,6,opt,name=execution_start_to_close_timeout,json=executionStartToCloseTimeout,proto3" json:"execution_start_to_close_timeout,omitempty"` + TaskStartToCloseTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=task_start_to_close_timeout,json=taskStartToCloseTimeout,proto3" json:"task_start_to_close_timeout,omitempty"` + ParentClosePolicy ParentClosePolicy `protobuf:"varint,8,opt,name=parent_close_policy,json=parentClosePolicy,proto3,enum=uber.cadence.api.v1.ParentClosePolicy" json:"parent_close_policy,omitempty"` + Control []byte `protobuf:"bytes,9,opt,name=control,proto3" json:"control,omitempty"` + DecisionTaskCompletedEventId int64 `protobuf:"varint,10,opt,name=decision_task_completed_event_id,json=decisionTaskCompletedEventId,proto3" json:"decision_task_completed_event_id,omitempty"` + WorkflowIdReusePolicy WorkflowIdReusePolicy `protobuf:"varint,11,opt,name=workflow_id_reuse_policy,json=workflowIdReusePolicy,proto3,enum=uber.cadence.api.v1.WorkflowIdReusePolicy" json:"workflow_id_reuse_policy,omitempty"` + RetryPolicy *RetryPolicy `protobuf:"bytes,13,opt,name=retry_policy,json=retryPolicy,proto3" json:"retry_policy,omitempty"` + CronSchedule string `protobuf:"bytes,14,opt,name=cron_schedule,json=cronSchedule,proto3" json:"cron_schedule,omitempty"` + Header *Header `protobuf:"bytes,15,opt,name=header,proto3" json:"header,omitempty"` + Memo *Memo `protobuf:"bytes,16,opt,name=memo,proto3" json:"memo,omitempty"` + SearchAttributes *SearchAttributes `protobuf:"bytes,17,opt,name=search_attributes,json=searchAttributes,proto3" json:"search_attributes,omitempty"` } -func (*ChildWorkflowExecutionTerminatedEventAttributes) ProtoMessage() {} -func (*ChildWorkflowExecutionTerminatedEventAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8237ca6511ad6c62, []int{43} -} -func (m *ChildWorkflowExecutionTerminatedEventAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ChildWorkflowExecutionTerminatedEventAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ChildWorkflowExecutionTerminatedEventAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) Reset() { + *x = StartChildWorkflowExecutionInitiatedEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ChildWorkflowExecutionTerminatedEventAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChildWorkflowExecutionTerminatedEventAttributes.Merge(m, src) + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ChildWorkflowExecutionTerminatedEventAttributes) XXX_Size() int { - return m.Size() + +func (*StartChildWorkflowExecutionInitiatedEventAttributes) ProtoMessage() {} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[36] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *ChildWorkflowExecutionTerminatedEventAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_ChildWorkflowExecutionTerminatedEventAttributes.DiscardUnknown(m) + +// Deprecated: Use StartChildWorkflowExecutionInitiatedEventAttributes.ProtoReflect.Descriptor instead. +func (*StartChildWorkflowExecutionInitiatedEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{36} } -var xxx_messageInfo_ChildWorkflowExecutionTerminatedEventAttributes proto.InternalMessageInfo +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetDomain() string { + if x != nil { + return x.Domain + } + return "" +} -func (m *ChildWorkflowExecutionTerminatedEventAttributes) GetDomain() string { - if m != nil { - return m.Domain +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetWorkflowId() string { + if x != nil { + return x.WorkflowId } return "" } -func (m *ChildWorkflowExecutionTerminatedEventAttributes) GetWorkflowExecution() *WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetWorkflowType() *WorkflowType { + if x != nil { + return x.WorkflowType } return nil } -func (m *ChildWorkflowExecutionTerminatedEventAttributes) GetWorkflowType() *WorkflowType { - if m != nil { - return m.WorkflowType +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetTaskList() *TaskList { + if x != nil { + return x.TaskList } return nil } -func (m *ChildWorkflowExecutionTerminatedEventAttributes) GetInitiatedEventId() int64 { - if m != nil { - return m.InitiatedEventId +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetInput() *Payload { + if x != nil { + return x.Input } - return 0 + return nil } -func (m *ChildWorkflowExecutionTerminatedEventAttributes) GetStartedEventId() int64 { - if m != nil { - return m.StartedEventId +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetExecutionStartToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.ExecutionStartToCloseTimeout } - return 0 + return nil } -func init() { - proto.RegisterEnum("uber.cadence.api.v1.EventFilterType", EventFilterType_name, EventFilterType_value) - proto.RegisterType((*History)(nil), "uber.cadence.api.v1.History") - proto.RegisterType((*HistoryEvent)(nil), "uber.cadence.api.v1.HistoryEvent") - proto.RegisterType((*WorkflowExecutionStartedEventAttributes)(nil), "uber.cadence.api.v1.WorkflowExecutionStartedEventAttributes") - proto.RegisterType((*WorkflowExecutionCompletedEventAttributes)(nil), "uber.cadence.api.v1.WorkflowExecutionCompletedEventAttributes") - proto.RegisterType((*WorkflowExecutionFailedEventAttributes)(nil), "uber.cadence.api.v1.WorkflowExecutionFailedEventAttributes") - proto.RegisterType((*WorkflowExecutionTimedOutEventAttributes)(nil), "uber.cadence.api.v1.WorkflowExecutionTimedOutEventAttributes") - proto.RegisterType((*DecisionTaskScheduledEventAttributes)(nil), "uber.cadence.api.v1.DecisionTaskScheduledEventAttributes") - proto.RegisterType((*DecisionTaskStartedEventAttributes)(nil), "uber.cadence.api.v1.DecisionTaskStartedEventAttributes") - proto.RegisterType((*DecisionTaskCompletedEventAttributes)(nil), "uber.cadence.api.v1.DecisionTaskCompletedEventAttributes") - proto.RegisterType((*DecisionTaskTimedOutEventAttributes)(nil), "uber.cadence.api.v1.DecisionTaskTimedOutEventAttributes") - proto.RegisterType((*DecisionTaskFailedEventAttributes)(nil), "uber.cadence.api.v1.DecisionTaskFailedEventAttributes") - proto.RegisterType((*ActivityTaskScheduledEventAttributes)(nil), "uber.cadence.api.v1.ActivityTaskScheduledEventAttributes") - proto.RegisterType((*ActivityTaskStartedEventAttributes)(nil), "uber.cadence.api.v1.ActivityTaskStartedEventAttributes") - proto.RegisterType((*ActivityTaskCompletedEventAttributes)(nil), "uber.cadence.api.v1.ActivityTaskCompletedEventAttributes") - proto.RegisterType((*ActivityTaskFailedEventAttributes)(nil), "uber.cadence.api.v1.ActivityTaskFailedEventAttributes") - proto.RegisterType((*ActivityTaskTimedOutEventAttributes)(nil), "uber.cadence.api.v1.ActivityTaskTimedOutEventAttributes") - proto.RegisterType((*ActivityTaskCancelRequestedEventAttributes)(nil), "uber.cadence.api.v1.ActivityTaskCancelRequestedEventAttributes") - proto.RegisterType((*RequestCancelActivityTaskFailedEventAttributes)(nil), "uber.cadence.api.v1.RequestCancelActivityTaskFailedEventAttributes") - proto.RegisterType((*ActivityTaskCanceledEventAttributes)(nil), "uber.cadence.api.v1.ActivityTaskCanceledEventAttributes") - proto.RegisterType((*TimerStartedEventAttributes)(nil), "uber.cadence.api.v1.TimerStartedEventAttributes") - proto.RegisterType((*TimerFiredEventAttributes)(nil), "uber.cadence.api.v1.TimerFiredEventAttributes") - proto.RegisterType((*TimerCanceledEventAttributes)(nil), "uber.cadence.api.v1.TimerCanceledEventAttributes") - proto.RegisterType((*CancelTimerFailedEventAttributes)(nil), "uber.cadence.api.v1.CancelTimerFailedEventAttributes") - proto.RegisterType((*WorkflowExecutionContinuedAsNewEventAttributes)(nil), "uber.cadence.api.v1.WorkflowExecutionContinuedAsNewEventAttributes") - proto.RegisterType((*WorkflowExecutionCancelRequestedEventAttributes)(nil), "uber.cadence.api.v1.WorkflowExecutionCancelRequestedEventAttributes") - proto.RegisterType((*WorkflowExecutionCanceledEventAttributes)(nil), "uber.cadence.api.v1.WorkflowExecutionCanceledEventAttributes") - proto.RegisterType((*MarkerRecordedEventAttributes)(nil), "uber.cadence.api.v1.MarkerRecordedEventAttributes") - proto.RegisterType((*WorkflowExecutionSignaledEventAttributes)(nil), "uber.cadence.api.v1.WorkflowExecutionSignaledEventAttributes") - proto.RegisterType((*WorkflowExecutionTerminatedEventAttributes)(nil), "uber.cadence.api.v1.WorkflowExecutionTerminatedEventAttributes") - proto.RegisterType((*RequestCancelExternalWorkflowExecutionInitiatedEventAttributes)(nil), "uber.cadence.api.v1.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes") - proto.RegisterType((*RequestCancelExternalWorkflowExecutionFailedEventAttributes)(nil), "uber.cadence.api.v1.RequestCancelExternalWorkflowExecutionFailedEventAttributes") - proto.RegisterType((*ExternalWorkflowExecutionCancelRequestedEventAttributes)(nil), "uber.cadence.api.v1.ExternalWorkflowExecutionCancelRequestedEventAttributes") - proto.RegisterType((*SignalExternalWorkflowExecutionInitiatedEventAttributes)(nil), "uber.cadence.api.v1.SignalExternalWorkflowExecutionInitiatedEventAttributes") - proto.RegisterType((*SignalExternalWorkflowExecutionFailedEventAttributes)(nil), "uber.cadence.api.v1.SignalExternalWorkflowExecutionFailedEventAttributes") - proto.RegisterType((*ExternalWorkflowExecutionSignaledEventAttributes)(nil), "uber.cadence.api.v1.ExternalWorkflowExecutionSignaledEventAttributes") - proto.RegisterType((*UpsertWorkflowSearchAttributesEventAttributes)(nil), "uber.cadence.api.v1.UpsertWorkflowSearchAttributesEventAttributes") - proto.RegisterType((*StartChildWorkflowExecutionInitiatedEventAttributes)(nil), "uber.cadence.api.v1.StartChildWorkflowExecutionInitiatedEventAttributes") - proto.RegisterType((*StartChildWorkflowExecutionFailedEventAttributes)(nil), "uber.cadence.api.v1.StartChildWorkflowExecutionFailedEventAttributes") - proto.RegisterType((*ChildWorkflowExecutionStartedEventAttributes)(nil), "uber.cadence.api.v1.ChildWorkflowExecutionStartedEventAttributes") - proto.RegisterType((*ChildWorkflowExecutionCompletedEventAttributes)(nil), "uber.cadence.api.v1.ChildWorkflowExecutionCompletedEventAttributes") - proto.RegisterType((*ChildWorkflowExecutionFailedEventAttributes)(nil), "uber.cadence.api.v1.ChildWorkflowExecutionFailedEventAttributes") - proto.RegisterType((*ChildWorkflowExecutionCanceledEventAttributes)(nil), "uber.cadence.api.v1.ChildWorkflowExecutionCanceledEventAttributes") - proto.RegisterType((*ChildWorkflowExecutionTimedOutEventAttributes)(nil), "uber.cadence.api.v1.ChildWorkflowExecutionTimedOutEventAttributes") - proto.RegisterType((*ChildWorkflowExecutionTerminatedEventAttributes)(nil), "uber.cadence.api.v1.ChildWorkflowExecutionTerminatedEventAttributes") -} - -func init() { - proto.RegisterFile("github.com/uber/cadence/.gen/proto/api/v1/history.proto", fileDescriptor_8237ca6511ad6c62) -} - -var fileDescriptor_8237ca6511ad6c62 = []byte{ - // 3641 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5b, 0x5f, 0x68, 0x1c, 0xc7, - 0x19, 0xd7, 0xdc, 0x9d, 0x4e, 0xba, 0x4f, 0xb2, 0x2c, 0x8d, 0x1c, 0x59, 0xb2, 0xe4, 0x93, 0x7c, - 0x76, 0x6c, 0xc5, 0x96, 0x4f, 0xfe, 0x17, 0xbb, 0x8e, 0x9b, 0xa4, 0x92, 0x2c, 0x91, 0x03, 0xd5, - 0x31, 0x6b, 0xd9, 0xa5, 0x81, 0xf6, 0xb2, 0xba, 0x1d, 0xd9, 0x8b, 0xee, 0x6e, 0x2f, 0xbb, 0x7b, - 0x3a, 0xab, 0x50, 0x28, 0xf4, 0xa1, 0x10, 0x1a, 0x92, 0x10, 0x0a, 0x09, 0x2d, 0xb4, 0x14, 0x5a, - 0x92, 0x52, 0x48, 0x69, 0x09, 0x6d, 0xe9, 0x4b, 0x1b, 0x28, 0x0d, 0x14, 0x5a, 0x53, 0x4a, 0x09, - 0xf4, 0x21, 0x8d, 0xd3, 0x87, 0xf4, 0x29, 0x79, 0x68, 0xfa, 0x5c, 0x76, 0x76, 0xf6, 0xfe, 0xec, - 0xcd, 0xec, 0xce, 0xde, 0x9d, 0x9d, 0x96, 0xf8, 0xed, 0x76, 0xf7, 0x9b, 0x6f, 0x7e, 0x33, 0xf3, - 0xfd, 0x9b, 0xef, 0xfb, 0x0e, 0x0e, 0x55, 0x37, 0x89, 0xb9, 0x58, 0x50, 0x35, 0x52, 0x2e, 0x90, - 0x45, 0xb5, 0xa2, 0x2f, 0xee, 0x9c, 0x5e, 0xbc, 0xa5, 0x5b, 0xb6, 0x61, 0xee, 0x66, 0x2b, 0xa6, - 0x61, 0x1b, 0x78, 0xdc, 0x21, 0xc9, 0x32, 0x92, 0xac, 0x5a, 0xd1, 0xb3, 0x3b, 0xa7, 0x0f, 0xa4, - 0x6f, 0x1a, 0xc6, 0xcd, 0x22, 0x59, 0xa4, 0x24, 0x9b, 0xd5, 0xad, 0x45, 0xad, 0x6a, 0xaa, 0xb6, - 0x6e, 0x94, 0xdd, 0x41, 0x07, 0x66, 0xfd, 0xdf, 0x6d, 0xbd, 0x44, 0x2c, 0x5b, 0x2d, 0x55, 0x18, - 0xc1, 0x8c, 0x46, 0x2a, 0xa4, 0xec, 0xf0, 0xd4, 0x89, 0xb5, 0x78, 0xd3, 0xb8, 0x69, 0xd0, 0xf7, - 0xec, 0xeb, 0x1c, 0x0f, 0x56, 0xc1, 0x28, 0x95, 0xea, 0x13, 0x64, 0x78, 0x14, 0xb6, 0x6a, 0x6d, - 0x17, 0x75, 0xcb, 0x0e, 0xa2, 0xa9, 0x19, 0xe6, 0xf6, 0x56, 0xd1, 0xa8, 0xb9, 0x34, 0x99, 0xcb, - 0x30, 0xf0, 0x94, 0xbb, 0x5c, 0x7c, 0x11, 0x92, 0x64, 0x87, 0x94, 0x6d, 0x6b, 0x12, 0xcd, 0xc5, - 0xe7, 0x87, 0xce, 0x1c, 0xca, 0x72, 0x56, 0x9e, 0x65, 0xd4, 0xab, 0x0e, 0xa5, 0xc2, 0x06, 0x64, - 0x3e, 0xba, 0x00, 0xc3, 0xcd, 0x1f, 0xf0, 0x14, 0x0c, 0xd2, 0x4f, 0x79, 0x5d, 0x9b, 0x44, 0x73, - 0x68, 0x3e, 0xae, 0x0c, 0xd0, 0xe7, 0x9c, 0x86, 0x9f, 0x04, 0x70, 0x3f, 0x39, 0x5b, 0x32, 0x19, - 0x9b, 0x43, 0xf3, 0x43, 0x67, 0x0e, 0x64, 0xdd, 0xfd, 0xca, 0x7a, 0xfb, 0x95, 0xdd, 0xf0, 0xf6, - 0x6b, 0x39, 0xf1, 0xd2, 0x7b, 0xb3, 0x48, 0x49, 0xd1, 0x31, 0xce, 0x5b, 0x3c, 0x09, 0x03, 0x3b, - 0xc4, 0xb4, 0x74, 0xa3, 0x3c, 0x19, 0x77, 0x59, 0xb3, 0x47, 0xbc, 0x1f, 0x06, 0x9c, 0x2d, 0x70, - 0x26, 0x4d, 0xd0, 0x2f, 0x49, 0xe7, 0x31, 0xa7, 0xe1, 0xef, 0x21, 0x38, 0xe1, 0x2d, 0x3c, 0x4f, - 0x6e, 0x93, 0x42, 0xd5, 0x39, 0xab, 0xbc, 0x65, 0xab, 0xa6, 0x4d, 0xb4, 0xbc, 0x8b, 0x47, 0xb5, - 0x6d, 0x53, 0xdf, 0xac, 0xda, 0xc4, 0x9a, 0xec, 0xa7, 0xa8, 0x3e, 0xcf, 0xdd, 0x80, 0x2f, 0x31, - 0x3e, 0xab, 0x1e, 0x9b, 0x6b, 0x2e, 0x17, 0xba, 0xf0, 0xa5, 0x3a, 0x8f, 0xa7, 0xfa, 0x94, 0x63, - 0x35, 0x39, 0x52, 0xfc, 0x43, 0x04, 0x27, 0x39, 0xf0, 0x0a, 0x46, 0xa9, 0x52, 0x24, 0x5c, 0x80, - 0x49, 0x0a, 0xf0, 0x09, 0x39, 0x80, 0x2b, 0x1e, 0x9f, 0x76, 0x88, 0x8f, 0xd4, 0x64, 0x89, 0xf1, - 0x6b, 0x08, 0x8e, 0x73, 0x40, 0x6e, 0xa9, 0x7a, 0x91, 0x87, 0x70, 0x80, 0x22, 0xbc, 0x24, 0x87, - 0x70, 0x8d, 0x32, 0x69, 0x87, 0x77, 0xb4, 0x26, 0x45, 0x89, 0x7f, 0xc0, 0xdf, 0x40, 0x47, 0xc2, - 0xb4, 0xbc, 0x51, 0xb5, 0xdb, 0xe1, 0x0d, 0x52, 0x78, 0x8f, 0xcb, 0xc1, 0x73, 0xc4, 0x4e, 0x7b, - 0xba, 0x6a, 0xb7, 0x03, 0x9c, 0xaf, 0x49, 0xd2, 0xe2, 0x57, 0x10, 0xcc, 0x6b, 0xa4, 0xa0, 0x5b, - 0x14, 0x98, 0x23, 0xa5, 0x56, 0xe1, 0x16, 0xd1, 0xaa, 0xdc, 0xcd, 0x4b, 0x51, 0x74, 0x17, 0xb9, - 0xe8, 0x2e, 0x33, 0x26, 0x1b, 0xaa, 0xb5, 0x7d, 0xcd, 0x63, 0xd1, 0x8e, 0xec, 0x88, 0x26, 0x41, - 0x87, 0x5f, 0x40, 0x70, 0xd4, 0x87, 0x4a, 0xa4, 0x13, 0x40, 0x31, 0x5d, 0x08, 0xc7, 0x24, 0x52, - 0x87, 0x8c, 0x16, 0x4a, 0xc5, 0xd9, 0xa5, 0x00, 0x25, 0x18, 0x92, 0xdc, 0xa5, 0x00, 0xf9, 0x6f, - 0xd9, 0x25, 0xa1, 0xe8, 0xbf, 0xdc, 0x86, 0x2a, 0x40, 0xb2, 0x86, 0x29, 0xaa, 0xcf, 0x85, 0xa2, - 0x12, 0x0b, 0xd5, 0x61, 0x2d, 0x9c, 0x0c, 0x3f, 0x8f, 0xe0, 0xe1, 0x56, 0x4c, 0x22, 0x4d, 0xdc, - 0x43, 0x01, 0x9d, 0x0f, 0x05, 0x24, 0x52, 0xc2, 0x43, 0x5a, 0x18, 0x11, 0x3d, 0x36, 0xb5, 0x60, - 0xeb, 0x3b, 0xba, 0xbd, 0x1b, 0x2a, 0xdc, 0x23, 0x01, 0xc7, 0xb6, 0xc4, 0x98, 0x84, 0x09, 0xb7, - 0x2a, 0x41, 0x47, 0x85, 0xdb, 0x87, 0x4a, 0x24, 0xdc, 0x7b, 0x03, 0x84, 0xbb, 0x05, 0x93, 0x50, - 0xb8, 0xd5, 0x50, 0x2a, 0xce, 0x2e, 0x05, 0x08, 0xf7, 0xa8, 0xe4, 0x2e, 0x05, 0x09, 0xb7, 0x2a, - 0x41, 0x47, 0x05, 0xa9, 0x15, 0x95, 0x48, 0x90, 0xc6, 0x02, 0x04, 0xa9, 0x19, 0x92, 0x50, 0x90, - 0xd4, 0x30, 0x22, 0xaa, 0x69, 0xad, 0x60, 0x02, 0x34, 0x0d, 0x07, 0x68, 0x5a, 0x33, 0x9e, 0x00, - 0x4d, 0x53, 0xc3, 0xc9, 0x70, 0x0d, 0xd2, 0x0e, 0x08, 0x53, 0x2c, 0x3d, 0xe3, 0x14, 0xc8, 0x29, - 0x2e, 0x10, 0x87, 0xab, 0x29, 0x14, 0x9b, 0x69, 0x5b, 0xfc, 0x19, 0x3f, 0x07, 0x33, 0xee, 0xc4, - 0x5b, 0xba, 0xc9, 0x9b, 0x76, 0x1f, 0x9d, 0x36, 0x2b, 0x9e, 0x76, 0xcd, 0x19, 0xd7, 0x3e, 0xe9, - 0x94, 0x2d, 0xfa, 0x88, 0x7f, 0x8c, 0x60, 0xd1, 0x27, 0xa2, 0x6a, 0xb9, 0x40, 0x8a, 0x79, 0x93, - 0x3c, 0x57, 0x25, 0x16, 0x77, 0xf5, 0x0f, 0x51, 0x18, 0x4f, 0x86, 0x4b, 0x2a, 0xe5, 0xa4, 0x78, - 0x8c, 0xda, 0x71, 0x1d, 0x57, 0xa5, 0xa9, 0xf1, 0x2f, 0x10, 0x9c, 0x63, 0x98, 0x3c, 0x88, 0x72, - 0x42, 0x3c, 0x41, 0xd1, 0xae, 0x70, 0xd1, 0xb2, 0xd9, 0xdc, 0xa9, 0x65, 0x24, 0x3a, 0x6b, 0x46, - 0x1a, 0x81, 0x5f, 0x42, 0x70, 0x8c, 0xb7, 0xbd, 0x3c, 0xa0, 0xfb, 0x25, 0xa5, 0x7b, 0x85, 0x71, - 0x08, 0x91, 0x6e, 0x01, 0x19, 0xfe, 0x1a, 0xcc, 0xba, 0x42, 0x26, 0x46, 0x32, 0x49, 0x91, 0x9c, - 0x16, 0xcb, 0x99, 0x18, 0x82, 0x2b, 0xc0, 0xa2, 0xb9, 0xbf, 0x85, 0xe0, 0x08, 0x3b, 0x3c, 0x26, - 0xe8, 0x82, 0x43, 0x9b, 0xa2, 0x08, 0x1e, 0xe5, 0x22, 0x70, 0x99, 0xbb, 0xf2, 0x2e, 0x38, 0xa6, - 0xb9, 0x42, 0x08, 0x0d, 0xfe, 0x3a, 0xcc, 0x95, 0x54, 0x73, 0x9b, 0x98, 0x79, 0x93, 0x14, 0x0c, - 0x53, 0xe3, 0x81, 0x38, 0x40, 0x41, 0x9c, 0xe1, 0x82, 0xf8, 0x22, 0x1d, 0xac, 0xb0, 0xb1, 0xed, - 0x08, 0x0e, 0x96, 0x82, 0x08, 0xf0, 0xf7, 0x11, 0x2c, 0xf0, 0xee, 0x27, 0xfa, 0xcd, 0xb2, 0xca, - 0xdd, 0x90, 0xe9, 0x28, 0xe1, 0xeb, 0x35, 0xc6, 0x46, 0x26, 0x7c, 0x15, 0xd0, 0xe2, 0x1f, 0x21, - 0xc8, 0xf2, 0x22, 0x6c, 0x62, 0x96, 0xf4, 0xb2, 0xca, 0xb5, 0x0b, 0x33, 0x01, 0x76, 0xa1, 0x3d, - 0xc4, 0xae, 0x33, 0xe2, 0xd8, 0x85, 0x9a, 0x34, 0x35, 0x7e, 0x0b, 0xc1, 0x39, 0xde, 0x55, 0x2a, - 0xd4, 0x8a, 0x1d, 0xa4, 0x68, 0x2f, 0x4b, 0xde, 0xa8, 0xc2, 0x4c, 0xd9, 0x62, 0x2d, 0xda, 0x10, - 0x91, 0x04, 0x88, 0x95, 0x32, 0x1d, 0x45, 0x02, 0xc4, 0x0a, 0x3a, 0x5f, 0x93, 0xa4, 0xc5, 0xff, - 0x44, 0xb0, 0xea, 0xb3, 0xb8, 0xe4, 0xb6, 0x4d, 0xcc, 0xb2, 0x5a, 0xcc, 0x73, 0x90, 0xeb, 0x65, - 0xdd, 0xd6, 0xf9, 0x82, 0x31, 0x4b, 0xa1, 0x5f, 0x0b, 0x37, 0xc1, 0xab, 0x8c, 0x7f, 0xdb, 0x7a, - 0x72, 0x1e, 0xf3, 0xf6, 0x05, 0x3d, 0x61, 0x76, 0xc5, 0x01, 0xff, 0x1d, 0xc1, 0x72, 0x84, 0x65, - 0x8a, 0x2c, 0xd6, 0x1c, 0x5d, 0xe3, 0xd5, 0x2e, 0xd6, 0x28, 0x32, 0x66, 0x97, 0xcc, 0xce, 0x87, - 0xe3, 0x3f, 0x21, 0x78, 0x3c, 0x68, 0x39, 0xe1, 0x7a, 0x72, 0x88, 0x2e, 0x6c, 0x9d, 0xbb, 0x30, - 0x21, 0x98, 0x50, 0x7d, 0xb9, 0x40, 0x3a, 0x1b, 0x4a, 0xe3, 0x00, 0x6e, 0xea, 0xa4, 0x6c, 0xeb, - 0xe5, 0x2a, 0xd1, 0xf2, 0xaa, 0x95, 0x2f, 0x93, 0x5a, 0xfb, 0x3a, 0x32, 0x01, 0x71, 0x00, 0x27, - 0x83, 0xc2, 0xd8, 0x2d, 0x59, 0x57, 0x48, 0x8d, 0x13, 0x07, 0xd4, 0x22, 0x8d, 0xc0, 0x6f, 0x23, - 0xb8, 0x48, 0xa3, 0xc9, 0x7c, 0xe1, 0x96, 0x5e, 0xd4, 0x22, 0xea, 0xcf, 0x61, 0x0a, 0xfd, 0x29, - 0x2e, 0x74, 0x1a, 0x4a, 0xae, 0x38, 0x4c, 0xa3, 0x28, 0xcd, 0x59, 0x2b, 0xfa, 0x30, 0xfc, 0x6b, - 0x04, 0xe7, 0x43, 0x16, 0x21, 0xd2, 0x8e, 0x23, 0x74, 0x05, 0xab, 0x51, 0x57, 0x20, 0x52, 0x89, - 0x53, 0x56, 0xc4, 0x31, 0xf8, 0xa7, 0x08, 0x4e, 0x0b, 0x51, 0x0b, 0xe3, 0xfc, 0x87, 0x29, 0xec, - 0x25, 0x7e, 0x18, 0xc2, 0x9d, 0x5d, 0x18, 0xf8, 0x2f, 0x14, 0x22, 0xd0, 0xe3, 0x9f, 0x23, 0x38, - 0x2b, 0x84, 0x1b, 0x70, 0x89, 0x3c, 0x1a, 0x20, 0xe4, 0x7c, 0xc0, 0x01, 0xd7, 0xc9, 0x6c, 0x21, - 0xd2, 0x08, 0xfc, 0x06, 0x82, 0x53, 0x91, 0x25, 0xe3, 0x18, 0x45, 0xfc, 0x85, 0x08, 0x88, 0x45, - 0x42, 0x71, 0xa2, 0x10, 0x41, 0x1e, 0xde, 0x44, 0x70, 0x46, 0xbc, 0xc1, 0x42, 0x27, 0x3c, 0x4f, - 0xd1, 0x2e, 0x47, 0xd9, 0x5f, 0xa1, 0x27, 0x3e, 0x59, 0x88, 0x32, 0x00, 0xff, 0x2c, 0x48, 0x24, - 0x02, 0x2e, 0xcd, 0x8f, 0x44, 0x86, 0x2c, 0xbe, 0x3e, 0x0b, 0x20, 0x8b, 0x2e, 0xd2, 0x4e, 0x6c, - 0x26, 0x86, 0x1c, 0x10, 0x49, 0x1e, 0x0f, 0x88, 0xcd, 0x04, 0x98, 0x03, 0xc2, 0xc9, 0xc5, 0x42, - 0xb4, 0x21, 0xd4, 0x69, 0xba, 0xa1, 0x78, 0xa7, 0x11, 0xcf, 0x89, 0x00, 0xa7, 0xe9, 0x46, 0xdc, - 0x9d, 0x84, 0x3a, 0x17, 0xac, 0xce, 0x86, 0xe2, 0xdf, 0x23, 0x78, 0x4c, 0x62, 0x41, 0x22, 0x1d, - 0x5d, 0xa0, 0xab, 0xc9, 0x75, 0xb2, 0x1a, 0x91, 0xb2, 0x9e, 0xb3, 0x3a, 0x18, 0x87, 0x7f, 0x85, - 0xe0, 0xd1, 0xa0, 0x05, 0x88, 0xef, 0x4f, 0x27, 0x03, 0x1c, 0x90, 0x10, 0x84, 0xf8, 0x1e, 0x75, - 0x8a, 0x44, 0x1c, 0x43, 0x0d, 0x4e, 0xb5, 0x62, 0x11, 0xd3, 0x6e, 0x00, 0xb7, 0x88, 0x6a, 0x16, - 0x6e, 0x35, 0xc1, 0x6c, 0xc7, 0x9d, 0x0d, 0xd0, 0xde, 0xeb, 0x94, 0x9d, 0x87, 0xe0, 0x1a, 0x65, - 0xd6, 0x98, 0x91, 0xa3, 0xbd, 0xd5, 0x28, 0x03, 0x96, 0x87, 0x01, 0x1a, 0x40, 0x32, 0x1f, 0x0d, - 0xc3, 0x31, 0x59, 0xef, 0xb5, 0x06, 0x7b, 0xea, 0x6b, 0xb4, 0x77, 0x2b, 0x84, 0x56, 0x04, 0x45, - 0xf5, 0x45, 0x8f, 0xe9, 0xc6, 0x6e, 0x85, 0x28, 0xc3, 0xb5, 0xa6, 0x27, 0x7c, 0x0e, 0x26, 0x2a, - 0xaa, 0xe9, 0xec, 0x48, 0x9d, 0x9d, 0x66, 0x94, 0x54, 0xbd, 0x4c, 0xab, 0x88, 0x29, 0x65, 0x9f, - 0xfb, 0xd5, 0xe3, 0x70, 0x99, 0x7e, 0xc3, 0x9b, 0x30, 0xe5, 0x1f, 0x55, 0x97, 0x10, 0x5a, 0x40, - 0x1c, 0x3a, 0x73, 0x54, 0x2e, 0x0a, 0x54, 0xf6, 0xb7, 0x4e, 0x50, 0xff, 0x80, 0x2f, 0xd6, 0xe7, - 0xf0, 0x1b, 0x81, 0x7a, 0x29, 0x92, 0x41, 0x6f, 0xd5, 0xc9, 0x9c, 0x86, 0x1f, 0x83, 0x14, 0x4d, - 0x04, 0x15, 0x75, 0xcb, 0x66, 0x75, 0xc7, 0x83, 0xfc, 0x4c, 0x8b, 0x6a, 0x6d, 0xaf, 0xeb, 0x96, - 0xad, 0x0c, 0xda, 0xec, 0x17, 0x3e, 0x03, 0xfd, 0x7a, 0xb9, 0x52, 0xb5, 0x59, 0x39, 0x70, 0x86, - 0x3b, 0xee, 0xaa, 0xba, 0x5b, 0x34, 0x54, 0x4d, 0x71, 0x49, 0xf1, 0x4d, 0x98, 0xf3, 0x45, 0x3a, - 0x79, 0xdb, 0xc8, 0x17, 0x8a, 0x86, 0x45, 0xa8, 0xdb, 0x30, 0xaa, 0x36, 0xab, 0xdd, 0x4d, 0xb5, - 0x15, 0x65, 0x2f, 0xb3, 0x22, 0xf7, 0x72, 0xe2, 0xd5, 0xf7, 0x66, 0x91, 0x32, 0x43, 0x5a, 0x0e, - 0x7e, 0xc3, 0x58, 0x71, 0xb8, 0x6c, 0xb8, 0x4c, 0xf0, 0x57, 0x60, 0xba, 0x91, 0x73, 0x6f, 0x9f, - 0x63, 0x50, 0x6e, 0x8e, 0xfd, 0xb6, 0x97, 0x4f, 0xf7, 0xb1, 0xbf, 0x04, 0x07, 0x1a, 0x41, 0x7e, - 0x63, 0x45, 0x66, 0xb5, 0xec, 0xec, 0x79, 0x8a, 0x0a, 0xc4, 0xfe, 0x3a, 0x45, 0xe3, 0x0c, 0xab, - 0xe5, 0x9c, 0x86, 0x73, 0x90, 0x62, 0x07, 0x65, 0x98, 0xb4, 0xb0, 0x35, 0x72, 0xe6, 0x04, 0xdf, - 0xbb, 0x30, 0x06, 0x34, 0x8a, 0xcf, 0x79, 0x43, 0x94, 0xc6, 0x68, 0x9c, 0x83, 0xb1, 0x06, 0x0e, - 0xc7, 0x62, 0x56, 0x4d, 0xc2, 0x2a, 0x53, 0xfc, 0xf3, 0x58, 0x73, 0x69, 0x94, 0xd1, 0xfa, 0x30, - 0xf6, 0x06, 0x2b, 0x30, 0x51, 0x54, 0x9d, 0x6b, 0xa7, 0x1b, 0x51, 0xd1, 0xe5, 0x10, 0xab, 0x5a, - 0xb4, 0x59, 0x4d, 0x29, 0xf8, 0x7c, 0xf7, 0x39, 0x63, 0x57, 0xea, 0x43, 0x15, 0x3a, 0xd2, 0x91, - 0x4c, 0xc3, 0xd4, 0x6f, 0xea, 0xae, 0xad, 0xf7, 0xed, 0xd2, 0x1e, 0xba, 0x4b, 0x13, 0x1e, 0x81, - 0x6f, 0x93, 0x0e, 0xc0, 0xa0, 0xae, 0x91, 0xb2, 0xad, 0xdb, 0xbb, 0xb4, 0x66, 0x93, 0x52, 0xea, - 0xcf, 0xf8, 0x2c, 0x4c, 0x6c, 0xe9, 0xa6, 0x65, 0xb7, 0xf3, 0xdc, 0x4b, 0x29, 0xc7, 0xe9, 0x57, - 0x1f, 0xc3, 0x15, 0x18, 0x36, 0x89, 0x6d, 0xee, 0xe6, 0x2b, 0x46, 0x51, 0x2f, 0xec, 0xb2, 0x12, - 0xc7, 0x9c, 0xe0, 0x8e, 0x6c, 0x9b, 0xbb, 0x57, 0x29, 0x9d, 0x32, 0x64, 0x36, 0x1e, 0xf0, 0x24, - 0x0c, 0xa8, 0xb6, 0x4d, 0x4a, 0x15, 0x9b, 0xd6, 0x23, 0xfa, 0x15, 0xef, 0x11, 0xe7, 0x60, 0x2f, - 0xb9, 0x5d, 0xd1, 0x5d, 0xf1, 0x71, 0xbb, 0x0b, 0xc6, 0x25, 0xbb, 0x0b, 0x46, 0x1a, 0x03, 0x69, - 0x8b, 0xc1, 0x61, 0xd8, 0x53, 0x30, 0x1d, 0xfd, 0x60, 0xa5, 0x25, 0x9a, 0x6a, 0x4f, 0x29, 0xc3, - 0xce, 0x4b, 0xaf, 0xdc, 0x84, 0xbf, 0x0a, 0xd3, 0xee, 0x1e, 0xb4, 0x96, 0xe1, 0x36, 0xd5, 0xc2, - 0xb6, 0xb1, 0xb5, 0xc5, 0xd2, 0xe2, 0xa1, 0x02, 0x3e, 0x49, 0x79, 0x34, 0xd7, 0xe1, 0x96, 0x5d, - 0x06, 0xf8, 0x24, 0x24, 0x4a, 0xa4, 0x64, 0xb0, 0x8c, 0xf5, 0x14, 0x3f, 0xef, 0x48, 0x4a, 0x86, - 0x42, 0xc9, 0xb0, 0x02, 0x63, 0x6d, 0x0e, 0x84, 0x25, 0x91, 0x1f, 0xe6, 0xbb, 0x6a, 0x9f, 0xc1, - 0x57, 0x46, 0x2d, 0xdf, 0x1b, 0x7c, 0x1d, 0x26, 0x2a, 0x26, 0xd9, 0xc9, 0xab, 0x55, 0xdb, 0x70, - 0x64, 0x91, 0xd8, 0xf9, 0x8a, 0xa1, 0x97, 0x6d, 0x2f, 0x27, 0x2c, 0x3a, 0x3b, 0x8b, 0xd8, 0x57, - 0x29, 0x9d, 0x32, 0xee, 0x8c, 0x5f, 0xaa, 0xda, 0x46, 0xd3, 0x4b, 0x7c, 0x16, 0x92, 0xb7, 0x88, - 0xaa, 0x11, 0x93, 0x25, 0x76, 0xa7, 0xf9, 0x9d, 0x26, 0x94, 0x44, 0x61, 0xa4, 0x99, 0x37, 0x10, - 0x3c, 0x22, 0x7f, 0xf9, 0x38, 0x07, 0x49, 0xa6, 0x3b, 0x48, 0x42, 0x77, 0x18, 0x2d, 0x5e, 0x83, - 0xb9, 0xe0, 0xea, 0xb3, 0xae, 0x51, 0x5f, 0x13, 0x57, 0x66, 0xc4, 0x85, 0xe3, 0x9c, 0x96, 0x79, - 0x1d, 0xc1, 0x51, 0xc9, 0x18, 0xe6, 0x3c, 0x0c, 0x78, 0x56, 0x03, 0x49, 0x58, 0x0d, 0x8f, 0xb8, - 0x67, 0x50, 0x0d, 0x98, 0x97, 0x0e, 0xe0, 0x57, 0x60, 0x98, 0x99, 0xef, 0x86, 0x1f, 0x1f, 0x11, - 0x08, 0x01, 0xb3, 0xd3, 0xd4, 0x8d, 0x0f, 0xd9, 0x8d, 0x87, 0xcc, 0x5f, 0x10, 0x1c, 0x91, 0xe9, - 0x61, 0x68, 0xf5, 0x8c, 0x28, 0x9a, 0x67, 0xdc, 0x80, 0x09, 0x81, 0xdf, 0x89, 0xc9, 0xa9, 0xe5, - 0xb8, 0xc5, 0xf1, 0x39, 0x4d, 0xb6, 0x27, 0xde, 0x62, 0x7b, 0x32, 0x2f, 0x20, 0xc8, 0x84, 0x37, - 0x41, 0xe0, 0x05, 0xc0, 0xfe, 0xc2, 0x78, 0xbd, 0x41, 0x6a, 0xd4, 0x6a, 0xd9, 0x08, 0x9f, 0x01, - 0x8e, 0xf9, 0x0c, 0xf0, 0x41, 0x00, 0x2f, 0x4b, 0xa9, 0x6b, 0x14, 0x4d, 0x4a, 0x49, 0xb1, 0x37, - 0x39, 0x2d, 0xf3, 0xb1, 0x6f, 0x93, 0x85, 0x7a, 0x12, 0x0d, 0xd1, 0x3c, 0x8c, 0xb6, 0x26, 0x47, - 0xea, 0x42, 0x36, 0x62, 0x35, 0xad, 0xd8, 0x87, 0x3d, 0xee, 0xc3, 0x7e, 0x0c, 0xf6, 0x6e, 0xea, - 0x65, 0xd5, 0xdc, 0xcd, 0x17, 0x6e, 0x91, 0xc2, 0xb6, 0x55, 0x2d, 0xd1, 0x18, 0x29, 0xa5, 0x8c, - 0xb8, 0xaf, 0x57, 0xd8, 0x5b, 0x7c, 0x02, 0xc6, 0x5a, 0x53, 0x7a, 0xe4, 0xb6, 0x1b, 0x23, 0x0d, - 0x2b, 0xa3, 0xa4, 0x39, 0xd3, 0x46, 0x6e, 0xdb, 0x99, 0xb7, 0x11, 0x1c, 0x96, 0xe8, 0xaf, 0xb8, - 0x67, 0x2b, 0xf6, 0x2b, 0x47, 0xbc, 0x13, 0xe5, 0x78, 0x3d, 0x0e, 0x87, 0x42, 0x7b, 0x32, 0xee, - 0xd9, 0x12, 0x96, 0xa1, 0xbf, 0xa0, 0x56, 0x2d, 0x0f, 0xfb, 0x82, 0x64, 0xcb, 0xc8, 0x8a, 0x33, - 0x46, 0x71, 0x87, 0x36, 0xdb, 0xb3, 0x44, 0x14, 0x7b, 0xd6, 0x2c, 0x30, 0xfd, 0x3e, 0x81, 0x49, - 0xc3, 0xd0, 0xa6, 0x6a, 0x11, 0x2f, 0xc4, 0x48, 0xba, 0xd2, 0xee, 0xbc, 0x72, 0x03, 0x8b, 0x19, - 0x80, 0x32, 0xa9, 0x79, 0x9f, 0x07, 0xdc, 0xd1, 0x65, 0x52, 0x73, 0xbf, 0x2e, 0x00, 0xde, 0x32, - 0xcc, 0x6d, 0xb6, 0x78, 0xaf, 0x75, 0x70, 0xd0, 0xdd, 0x2d, 0xe7, 0x0b, 0x5d, 0xfe, 0x0d, 0xd6, - 0x43, 0xc8, 0x11, 0xce, 0x14, 0x4f, 0x38, 0x33, 0x6f, 0x25, 0xe1, 0x88, 0x4c, 0xbb, 0x0a, 0x9e, - 0x85, 0xa1, 0x7a, 0xcd, 0x97, 0x1d, 0x53, 0x4a, 0x01, 0xef, 0x55, 0x4e, 0x73, 0xee, 0x47, 0x8d, - 0xa2, 0xb0, 0x23, 0x3a, 0xb1, 0x80, 0xfb, 0x51, 0x7d, 0x4a, 0x7a, 0x3f, 0x52, 0x9b, 0x9e, 0xf0, - 0x04, 0x24, 0xd9, 0x7d, 0xc8, 0xd5, 0x38, 0xf6, 0xd4, 0x6a, 0x48, 0x13, 0xf7, 0xfe, 0x8a, 0xf1, - 0x0c, 0x4c, 0x79, 0x42, 0xd8, 0xf1, 0xdd, 0x62, 0xc2, 0xe3, 0xe0, 0x33, 0xc1, 0x3e, 0xde, 0xcc, - 0xc8, 0x47, 0xbb, 0x53, 0x34, 0xf1, 0x76, 0x6f, 0x16, 0x8c, 0xb7, 0xd8, 0x69, 0xa4, 0xba, 0x70, - 0x1a, 0xeb, 0x30, 0x76, 0x8b, 0xa8, 0xa6, 0xbd, 0x49, 0xd4, 0x06, 0x52, 0x90, 0x63, 0x38, 0x5a, - 0x1f, 0xe9, 0x71, 0x93, 0x71, 0xfb, 0x43, 0xe1, 0x6e, 0xbf, 0x2d, 0x16, 0x1f, 0xee, 0x24, 0x16, - 0x6f, 0xc4, 0x71, 0x7b, 0xe4, 0xe3, 0xb8, 0x0f, 0x11, 0x64, 0xc2, 0x5b, 0xaa, 0xee, 0x9b, 0xab, - 0x6c, 0x76, 0xea, 0x89, 0xd6, 0x0b, 0xc5, 0x93, 0x30, 0x4c, 0xef, 0x63, 0x9e, 0x3d, 0xeb, 0x97, - 0xb0, 0x67, 0x43, 0xce, 0x08, 0xf6, 0x90, 0xb9, 0x83, 0x5a, 0x4d, 0x44, 0x8f, 0xa3, 0x55, 0xfe, - 0x16, 0xc5, 0x22, 0xb8, 0x81, 0x78, 0xa8, 0xef, 0x4e, 0xb4, 0x6e, 0x66, 0xe6, 0xcf, 0x08, 0x0e, - 0x85, 0xf7, 0xb9, 0x74, 0x1a, 0xd4, 0x7e, 0x1a, 0x2b, 0xfa, 0x4d, 0x0c, 0x0e, 0x4b, 0x74, 0x8b, - 0x39, 0x6b, 0xd2, 0x88, 0xad, 0xea, 0x45, 0x4b, 0xea, 0x90, 0x3c, 0xe2, 0x7b, 0xb6, 0x26, 0x7f, - 0xbc, 0x91, 0xe8, 0x20, 0xde, 0xe8, 0x5e, 0xc4, 0xbf, 0x83, 0xe0, 0xb8, 0x7c, 0x93, 0x97, 0x8c, - 0x2f, 0xec, 0xcd, 0xb5, 0xe6, 0x4d, 0x04, 0x11, 0xdb, 0xb9, 0xc2, 0xb1, 0xed, 0xf3, 0xc2, 0x23, - 0xd7, 0xc2, 0xb0, 0x80, 0x47, 0x06, 0x71, 0x5c, 0x02, 0xf1, 0x6b, 0x3e, 0x39, 0x14, 0x15, 0x7e, - 0x3a, 0x95, 0xc3, 0x35, 0x98, 0x2b, 0xaa, 0x76, 0x53, 0x5b, 0x83, 0xbf, 0xc8, 0xdf, 0xd8, 0x59, - 0x97, 0x8e, 0x77, 0x94, 0x6e, 0x38, 0xc5, 0x91, 0xe7, 0x78, 0x04, 0x79, 0x4e, 0x84, 0xea, 0xa8, - 0x2f, 0x00, 0xcc, 0xfc, 0x15, 0xc1, 0x74, 0x40, 0x23, 0x25, 0x9e, 0x82, 0x41, 0xb7, 0x81, 0xac, - 0x7e, 0x6e, 0x03, 0xf4, 0x39, 0xa7, 0x61, 0x05, 0x1e, 0xaa, 0x3b, 0xf5, 0x2d, 0xdd, 0x8c, 0x7c, - 0x11, 0xc4, 0xcc, 0xa7, 0xaf, 0xe9, 0x26, 0x89, 0xe2, 0x84, 0x65, 0x8e, 0xfc, 0x59, 0x98, 0x12, - 0xf6, 0x69, 0x06, 0xad, 0x49, 0x3a, 0xa2, 0xcf, 0xfc, 0x01, 0xc1, 0x4c, 0x50, 0x8b, 0x5e, 0x4f, - 0x66, 0xe9, 0xd5, 0x7e, 0x04, 0x9a, 0xe9, 0x5f, 0x22, 0x98, 0x0b, 0x6b, 0xf5, 0x0b, 0x5a, 0xcd, - 0x3d, 0x55, 0xde, 0x40, 0xe4, 0x2f, 0x0e, 0x42, 0xc4, 0x8e, 0x12, 0xbc, 0x08, 0xfb, 0x68, 0xd3, - 0x8a, 0x3f, 0xb9, 0xea, 0xae, 0x69, 0xac, 0x4c, 0x6a, 0xbe, 0xd4, 0x6a, 0x5b, 0x89, 0x25, 0xd6, - 0x59, 0x89, 0xa5, 0xe5, 0xaa, 0x10, 0xef, 0xf0, 0xaa, 0x90, 0xe8, 0x6d, 0x35, 0xa2, 0xff, 0x3e, - 0x54, 0x23, 0x92, 0x5d, 0x56, 0x23, 0x64, 0xe4, 0x68, 0x40, 0x42, 0x8e, 0xae, 0xc3, 0x04, 0xcb, - 0x1f, 0x33, 0xa4, 0x7a, 0xd9, 0x26, 0xe6, 0x8e, 0x5a, 0x94, 0xbd, 0xdb, 0xec, 0x63, 0xc3, 0x29, - 0xc8, 0x1c, 0x1b, 0xdc, 0x5a, 0xef, 0x48, 0x75, 0x55, 0xef, 0x68, 0x0a, 0xed, 0x20, 0x4a, 0x68, - 0x27, 0x2e, 0x6e, 0x0c, 0x75, 0x5c, 0xdc, 0x68, 0xdc, 0x3f, 0x86, 0xa5, 0xef, 0x1f, 0xf5, 0xb4, - 0xfa, 0x9e, 0x2e, 0xd2, 0xea, 0x23, 0x5d, 0xa5, 0xd5, 0x33, 0xcf, 0xc7, 0x60, 0x31, 0x6a, 0xa3, - 0x5b, 0xdd, 0x7e, 0xa1, 0x66, 0xfb, 0xf5, 0x38, 0x4c, 0xd7, 0x0b, 0xe0, 0x9c, 0xd2, 0xa3, 0x6b, - 0xae, 0x27, 0x3d, 0x92, 0xb6, 0xe2, 0xe3, 0x56, 0xd3, 0xf0, 0xae, 0xab, 0xa3, 0x53, 0xc2, 0x22, - 0x78, 0xa0, 0x79, 0xfc, 0x09, 0xe2, 0x64, 0xa0, 0x45, 0xee, 0x4a, 0x46, 0xcf, 0x90, 0x84, 0x9e, - 0x35, 0x05, 0x51, 0xb1, 0x08, 0x41, 0x54, 0xe6, 0x13, 0x04, 0x07, 0x03, 0x7b, 0xbd, 0x9d, 0x28, - 0x92, 0x75, 0x92, 0x97, 0xd5, 0x92, 0x77, 0x5a, 0xe0, 0xbe, 0xba, 0xa2, 0x96, 0x48, 0xa7, 0x53, - 0xf7, 0xcc, 0x55, 0x35, 0x94, 0x26, 0x21, 0x7f, 0x69, 0xff, 0x2e, 0xef, 0x90, 0x44, 0xbd, 0x0d, - 0xb3, 0x30, 0xc4, 0xba, 0x4b, 0x9a, 0xb7, 0xc0, 0x7d, 0x45, 0xb7, 0xa0, 0xee, 0x29, 0x62, 0xf2, - 0x9e, 0x22, 0x20, 0xa1, 0x9c, 0x79, 0x15, 0xc1, 0xf1, 0x08, 0xfd, 0x3c, 0x13, 0xce, 0x6d, 0x5b, - 0xb5, 0x8c, 0x32, 0x83, 0xc6, 0x9e, 0x3a, 0x3e, 0x99, 0x20, 0x68, 0xbf, 0x8b, 0xc1, 0x13, 0xdd, - 0xf5, 0x34, 0xf7, 0x4c, 0xe6, 0x1b, 0xe9, 0xc1, 0x58, 0x4b, 0x7a, 0xf0, 0x3a, 0xe0, 0xae, 0x75, - 0x7f, 0xac, 0xad, 0x01, 0x16, 0x4f, 0xc2, 0x40, 0xc1, 0x28, 0xdb, 0xa6, 0x51, 0xa4, 0x82, 0x36, - 0xac, 0x78, 0x8f, 0x38, 0x0b, 0xe3, 0xbe, 0x36, 0x30, 0xa3, 0x5c, 0x74, 0x83, 0xfe, 0x41, 0x65, - 0xac, 0xa5, 0x3b, 0xeb, 0xe9, 0x72, 0x71, 0x37, 0xf3, 0x4a, 0x1c, 0x2e, 0x75, 0xd1, 0x33, 0x8d, - 0xaf, 0x37, 0x9b, 0xce, 0x11, 0xc1, 0x3f, 0x12, 0xa4, 0x38, 0xb7, 0x64, 0xba, 0x7b, 0x74, 0x55, - 0x15, 0xa6, 0x6d, 0xf9, 0xe7, 0x92, 0xe8, 0xf6, 0x5c, 0x16, 0x00, 0x73, 0x3c, 0x45, 0xbf, 0x7b, - 0x7f, 0xd3, 0xfd, 0x1e, 0xa2, 0xe9, 0x14, 0x93, 0x2d, 0xa7, 0x98, 0xf9, 0x1b, 0x82, 0x0b, 0x1d, - 0x36, 0x7c, 0x0b, 0x30, 0x20, 0x01, 0x86, 0xfb, 0x2b, 0xb8, 0x99, 0x17, 0xe3, 0x70, 0xa1, 0xc3, - 0xa6, 0xbc, 0xff, 0x57, 0x5d, 0xf5, 0x59, 0xec, 0x84, 0xd8, 0x62, 0xf7, 0xcb, 0x5b, 0x6c, 0xa1, - 0xe8, 0x88, 0x0c, 0xc0, 0x80, 0xc8, 0x00, 0x7c, 0x3b, 0x0e, 0xe7, 0x3a, 0x69, 0x2c, 0x94, 0xd3, - 0x7c, 0x29, 0xce, 0x0f, 0x34, 0xbf, 0xa1, 0xf9, 0xff, 0x42, 0x70, 0x2a, 0x6a, 0x93, 0xe4, 0xff, - 0xb4, 0xca, 0x8b, 0x7d, 0x55, 0xe6, 0x8f, 0x08, 0x4e, 0x46, 0x6a, 0xac, 0xec, 0x99, 0x09, 0xe0, - 0x5e, 0x3c, 0x62, 0xdd, 0x5d, 0x3c, 0xde, 0x1c, 0x84, 0xb3, 0x1d, 0xfc, 0x43, 0xa4, 0xe9, 0x38, - 0x50, 0xcb, 0x71, 0xcc, 0xc2, 0x50, 0xfd, 0x38, 0x98, 0xcc, 0xa7, 0x14, 0xf0, 0x5e, 0xf1, 0xf2, - 0x12, 0xf1, 0x1e, 0xe4, 0x25, 0x3a, 0x2d, 0x61, 0xf6, 0xf7, 0x36, 0x2f, 0x91, 0xbc, 0x0f, 0x79, - 0x89, 0x81, 0x2e, 0xf3, 0x12, 0x37, 0x60, 0x9c, 0x35, 0xa6, 0xba, 0x7c, 0x59, 0xb5, 0x6f, 0x90, - 0x9a, 0xc3, 0xa3, 0x82, 0x9d, 0x70, 0xe8, 0x29, 0x17, 0x56, 0xf3, 0x1b, 0xab, 0xf8, 0x5f, 0x35, - 0x2b, 0x4c, 0xaa, 0xd5, 0xb6, 0xcb, 0x88, 0x3f, 0x48, 0x88, 0x7f, 0x01, 0x26, 0x9b, 0x44, 0x2b, - 0x6f, 0x92, 0x6a, 0x03, 0xfe, 0x10, 0x85, 0x7f, 0x3c, 0x50, 0x88, 0x72, 0x9a, 0xe2, 0x0c, 0x61, - 0x4b, 0x78, 0xa8, 0xc6, 0x7b, 0xdd, 0x56, 0x05, 0xdd, 0xd3, 0x49, 0x15, 0xb4, 0xad, 0x59, 0x70, - 0x84, 0xd3, 0x2c, 0xd8, 0xb8, 0x75, 0xed, 0x8d, 0x9e, 0xaa, 0x18, 0xed, 0x22, 0x55, 0x31, 0xd6, - 0x9d, 0xc5, 0x78, 0x39, 0x0e, 0xa7, 0xa2, 0xfe, 0x23, 0xeb, 0xd3, 0x37, 0x17, 0xeb, 0x9e, 0xdf, - 0x77, 0x8b, 0x62, 0xe7, 0x23, 0xff, 0x9d, 0xa8, 0xc5, 0xdd, 0x37, 0x09, 0x7b, 0x7f, 0xab, 0xb0, - 0xf3, 0x9d, 0x5a, 0x52, 0xe0, 0xd4, 0x7a, 0x94, 0x24, 0xcc, 0xbc, 0x13, 0x83, 0x85, 0x28, 0x7f, - 0x37, 0x13, 0x9e, 0x07, 0xdf, 0x9b, 0xc6, 0xba, 0xf5, 0xa6, 0xbd, 0x3a, 0x45, 0xfe, 0xee, 0x26, - 0x04, 0xbb, 0xdb, 0xd0, 0xb0, 0x7e, 0xf9, 0xbc, 0xc6, 0x27, 0x31, 0x88, 0xf8, 0x47, 0xb8, 0xcf, - 0xc6, 0x66, 0xf2, 0x6a, 0x3f, 0xfd, 0xdc, 0xda, 0x4f, 0xa3, 0x75, 0x21, 0x29, 0xdf, 0xba, 0x90, - 0xf9, 0x77, 0x0c, 0x4e, 0xf4, 0xc2, 0xa2, 0x7c, 0x46, 0x37, 0xbd, 0x29, 0x09, 0x9f, 0x8c, 0x90, - 0x84, 0xcf, 0xfc, 0x27, 0x06, 0x27, 0x23, 0xfd, 0x2f, 0xf1, 0xc1, 0xc6, 0xb7, 0x6d, 0xbc, 0x97, - 0x22, 0x4c, 0x46, 0xc9, 0x1b, 0x7f, 0x33, 0x2e, 0xda, 0x78, 0x51, 0xbb, 0xc9, 0x83, 0x8d, 0x0f, - 0xec, 0x76, 0x49, 0x76, 0xd2, 0x5d, 0xfb, 0xdb, 0x18, 0x2c, 0x46, 0xfc, 0xbf, 0xe8, 0x83, 0x73, - 0x68, 0x39, 0x87, 0xe3, 0x36, 0xec, 0xa5, 0x3f, 0xd7, 0xf4, 0xa2, 0x4d, 0x4c, 0x3a, 0xd5, 0x41, - 0x98, 0x5a, 0xbd, 0xb1, 0x7a, 0x65, 0x23, 0xbf, 0x96, 0x5b, 0xdf, 0x58, 0x55, 0xf2, 0x1b, 0x5f, - 0xbe, 0xba, 0x9a, 0xcf, 0x5d, 0xb9, 0xb1, 0xb4, 0x9e, 0xbb, 0x3c, 0xda, 0x87, 0x67, 0x61, 0xba, - 0xfd, 0xf3, 0xd2, 0xfa, 0x7a, 0x9e, 0xbe, 0x1d, 0x45, 0xf8, 0x10, 0x1c, 0x6c, 0x27, 0x58, 0x59, - 0x7f, 0xfa, 0xda, 0x2a, 0x23, 0x89, 0x2d, 0x3f, 0x7b, 0xe7, 0xfd, 0x74, 0xdf, 0xbb, 0xef, 0xa7, - 0xfb, 0x3e, 0x7e, 0x3f, 0x8d, 0xbe, 0x71, 0x37, 0x8d, 0x5e, 0xbf, 0x9b, 0x46, 0xef, 0xdc, 0x4d, - 0xa3, 0x3b, 0x77, 0xd3, 0xe8, 0x1f, 0x77, 0xd3, 0xe8, 0xc3, 0xbb, 0xe9, 0xbe, 0x8f, 0xef, 0xa6, - 0xd1, 0x4b, 0x1f, 0xa4, 0xfb, 0xee, 0x7c, 0x90, 0xee, 0x7b, 0xf7, 0x83, 0x74, 0x1f, 0xec, 0x2f, - 0x18, 0x25, 0xde, 0xbe, 0x2d, 0x0f, 0x2e, 0x55, 0xf4, 0xab, 0xce, 0x55, 0xea, 0x2a, 0x7a, 0xa6, - 0x5f, 0xad, 0xe8, 0x3b, 0xa7, 0x37, 0x93, 0xf4, 0x6a, 0x75, 0xf6, 0xbf, 0x01, 0x00, 0x00, 0xff, - 0xff, 0x9b, 0x39, 0xdb, 0xee, 0x11, 0x56, 0x00, 0x00, +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetTaskStartToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.TaskStartToCloseTimeout + } + return nil } -func (x EventFilterType) String() string { - s, ok := EventFilterType_name[int32(x)] - if ok { - return s +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetParentClosePolicy() ParentClosePolicy { + if x != nil { + return x.ParentClosePolicy } - return strconv.Itoa(int(x)) + return ParentClosePolicy_PARENT_CLOSE_POLICY_INVALID } -func (this *History) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*History) - if !ok { - that2, ok := that.(History) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if len(this.Events) != len(that1.Events) { - return false - } - for i := range this.Events { - if !this.Events[i].Equal(that1.Events[i]) { - return false - } +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetControl() []byte { + if x != nil { + return x.Control } - return true + return nil } -func (this *HistoryEvent) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent) - if !ok { - that2, ok := that.(HistoryEvent) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.EventId != that1.EventId { - return false - } - if that1.EventTime == nil { - if this.EventTime != nil { - return false - } - } else if !this.EventTime.Equal(*that1.EventTime) { - return false +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetDecisionTaskCompletedEventId() int64 { + if x != nil { + return x.DecisionTaskCompletedEventId } - if this.Version != that1.Version { - return false - } - if this.TaskId != that1.TaskId { - return false - } - if that1.Attributes == nil { - if this.Attributes != nil { - return false - } - } else if this.Attributes == nil { - return false - } else if !this.Attributes.Equal(that1.Attributes) { - return false - } - return true + return 0 } -func (this *HistoryEvent_WorkflowExecutionStartedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_WorkflowExecutionStartedEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_WorkflowExecutionStartedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetWorkflowIdReusePolicy() WorkflowIdReusePolicy { + if x != nil { + return x.WorkflowIdReusePolicy } - if !this.WorkflowExecutionStartedEventAttributes.Equal(that1.WorkflowExecutionStartedEventAttributes) { - return false - } - return true + return WorkflowIdReusePolicy_WORKFLOW_ID_REUSE_POLICY_INVALID } -func (this *HistoryEvent_WorkflowExecutionCompletedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_WorkflowExecutionCompletedEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_WorkflowExecutionCompletedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetRetryPolicy() *RetryPolicy { + if x != nil { + return x.RetryPolicy } - if !this.WorkflowExecutionCompletedEventAttributes.Equal(that1.WorkflowExecutionCompletedEventAttributes) { - return false - } - return true + return nil } -func (this *HistoryEvent_WorkflowExecutionFailedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_WorkflowExecutionFailedEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_WorkflowExecutionFailedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetCronSchedule() string { + if x != nil { + return x.CronSchedule } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.WorkflowExecutionFailedEventAttributes.Equal(that1.WorkflowExecutionFailedEventAttributes) { - return false - } - return true + return "" } -func (this *HistoryEvent_WorkflowExecutionTimedOutEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_WorkflowExecutionTimedOutEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_WorkflowExecutionTimedOutEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetHeader() *Header { + if x != nil { + return x.Header } - if !this.WorkflowExecutionTimedOutEventAttributes.Equal(that1.WorkflowExecutionTimedOutEventAttributes) { - return false - } - return true + return nil } -func (this *HistoryEvent_DecisionTaskScheduledEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_DecisionTaskScheduledEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_DecisionTaskScheduledEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.DecisionTaskScheduledEventAttributes.Equal(that1.DecisionTaskScheduledEventAttributes) { - return false +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetMemo() *Memo { + if x != nil { + return x.Memo } - return true + return nil } -func (this *HistoryEvent_DecisionTaskStartedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_DecisionTaskStartedEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_DecisionTaskStartedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetSearchAttributes() *SearchAttributes { + if x != nil { + return x.SearchAttributes } - if !this.DecisionTaskStartedEventAttributes.Equal(that1.DecisionTaskStartedEventAttributes) { - return false - } - return true + return nil } -func (this *HistoryEvent_DecisionTaskCompletedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_DecisionTaskCompletedEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_DecisionTaskCompletedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.DecisionTaskCompletedEventAttributes.Equal(that1.DecisionTaskCompletedEventAttributes) { - return false - } - return true +type StartChildWorkflowExecutionFailedEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` + WorkflowId string `protobuf:"bytes,2,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` + WorkflowType *WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` + Cause ChildWorkflowExecutionFailedCause `protobuf:"varint,4,opt,name=cause,proto3,enum=uber.cadence.api.v1.ChildWorkflowExecutionFailedCause" json:"cause,omitempty"` + Control []byte `protobuf:"bytes,5,opt,name=control,proto3" json:"control,omitempty"` + InitiatedEventId int64 `protobuf:"varint,6,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` + DecisionTaskCompletedEventId int64 `protobuf:"varint,7,opt,name=decision_task_completed_event_id,json=decisionTaskCompletedEventId,proto3" json:"decision_task_completed_event_id,omitempty"` } -func (this *HistoryEvent_DecisionTaskTimedOutEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_DecisionTaskTimedOutEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_DecisionTaskTimedOutEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.DecisionTaskTimedOutEventAttributes.Equal(that1.DecisionTaskTimedOutEventAttributes) { - return false +func (x *StartChildWorkflowExecutionFailedEventAttributes) Reset() { + *x = StartChildWorkflowExecutionFailedEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return true } -func (this *HistoryEvent_DecisionTaskFailedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_DecisionTaskFailedEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_DecisionTaskFailedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.DecisionTaskFailedEventAttributes.Equal(that1.DecisionTaskFailedEventAttributes) { - return false - } - return true +func (x *StartChildWorkflowExecutionFailedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -func (this *HistoryEvent_ActivityTaskScheduledEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_ActivityTaskScheduledEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_ActivityTaskScheduledEventAttributes) - if ok { - that1 = &that2 - } else { - return false +func (*StartChildWorkflowExecutionFailedEventAttributes) ProtoMessage() {} + +func (x *StartChildWorkflowExecutionFailedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[37] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.ActivityTaskScheduledEventAttributes.Equal(that1.ActivityTaskScheduledEventAttributes) { - return false - } - return true + return mi.MessageOf(x) } -func (this *HistoryEvent_ActivityTaskStartedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_ActivityTaskStartedEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_ActivityTaskStartedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.ActivityTaskStartedEventAttributes.Equal(that1.ActivityTaskStartedEventAttributes) { - return false - } - return true +// Deprecated: Use StartChildWorkflowExecutionFailedEventAttributes.ProtoReflect.Descriptor instead. +func (*StartChildWorkflowExecutionFailedEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{37} } -func (this *HistoryEvent_ActivityTaskCompletedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_ActivityTaskCompletedEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_ActivityTaskCompletedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.ActivityTaskCompletedEventAttributes.Equal(that1.ActivityTaskCompletedEventAttributes) { - return false +func (x *StartChildWorkflowExecutionFailedEventAttributes) GetDomain() string { + if x != nil { + return x.Domain } - return true + return "" } -func (this *HistoryEvent_ActivityTaskFailedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_ActivityTaskFailedEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_ActivityTaskFailedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false +func (x *StartChildWorkflowExecutionFailedEventAttributes) GetWorkflowId() string { + if x != nil { + return x.WorkflowId } - if !this.ActivityTaskFailedEventAttributes.Equal(that1.ActivityTaskFailedEventAttributes) { - return false - } - return true + return "" } -func (this *HistoryEvent_ActivityTaskTimedOutEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_ActivityTaskTimedOutEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_ActivityTaskTimedOutEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } +func (x *StartChildWorkflowExecutionFailedEventAttributes) GetWorkflowType() *WorkflowType { + if x != nil { + return x.WorkflowType } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.ActivityTaskTimedOutEventAttributes.Equal(that1.ActivityTaskTimedOutEventAttributes) { - return false - } - return true + return nil } -func (this *HistoryEvent_TimerStartedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_TimerStartedEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_TimerStartedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false +func (x *StartChildWorkflowExecutionFailedEventAttributes) GetCause() ChildWorkflowExecutionFailedCause { + if x != nil { + return x.Cause } - if !this.TimerStartedEventAttributes.Equal(that1.TimerStartedEventAttributes) { - return false - } - return true + return ChildWorkflowExecutionFailedCause_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_INVALID } -func (this *HistoryEvent_TimerFiredEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_TimerFiredEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_TimerFiredEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false +func (x *StartChildWorkflowExecutionFailedEventAttributes) GetControl() []byte { + if x != nil { + return x.Control } - if !this.TimerFiredEventAttributes.Equal(that1.TimerFiredEventAttributes) { - return false - } - return true + return nil } -func (this *HistoryEvent_ActivityTaskCancelRequestedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_ActivityTaskCancelRequestedEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_ActivityTaskCancelRequestedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.ActivityTaskCancelRequestedEventAttributes.Equal(that1.ActivityTaskCancelRequestedEventAttributes) { - return false +func (x *StartChildWorkflowExecutionFailedEventAttributes) GetInitiatedEventId() int64 { + if x != nil { + return x.InitiatedEventId } - return true + return 0 } -func (this *HistoryEvent_RequestCancelActivityTaskFailedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_RequestCancelActivityTaskFailedEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_RequestCancelActivityTaskFailedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false +func (x *StartChildWorkflowExecutionFailedEventAttributes) GetDecisionTaskCompletedEventId() int64 { + if x != nil { + return x.DecisionTaskCompletedEventId } - if !this.RequestCancelActivityTaskFailedEventAttributes.Equal(that1.RequestCancelActivityTaskFailedEventAttributes) { - return false - } - return true + return 0 } -func (this *HistoryEvent_ActivityTaskCanceledEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_ActivityTaskCanceledEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_ActivityTaskCanceledEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.ActivityTaskCanceledEventAttributes.Equal(that1.ActivityTaskCanceledEventAttributes) { - return false - } - return true +type ChildWorkflowExecutionStartedEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` + WorkflowExecution *WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` + WorkflowType *WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` + InitiatedEventId int64 `protobuf:"varint,4,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` + Header *Header `protobuf:"bytes,5,opt,name=header,proto3" json:"header,omitempty"` } -func (this *HistoryEvent_TimerCanceledEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_TimerCanceledEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_TimerCanceledEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } +func (x *ChildWorkflowExecutionStartedEventAttributes) Reset() { + *x = ChildWorkflowExecutionStartedEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.TimerCanceledEventAttributes.Equal(that1.TimerCanceledEventAttributes) { - return false - } - return true } -func (this *HistoryEvent_CancelTimerFailedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_CancelTimerFailedEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_CancelTimerFailedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.CancelTimerFailedEventAttributes.Equal(that1.CancelTimerFailedEventAttributes) { - return false - } - return true +func (x *ChildWorkflowExecutionStartedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -func (this *HistoryEvent_MarkerRecordedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_MarkerRecordedEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_MarkerRecordedEventAttributes) - if ok { - that1 = &that2 - } else { - return false +func (*ChildWorkflowExecutionStartedEventAttributes) ProtoMessage() {} + +func (x *ChildWorkflowExecutionStartedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[38] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.MarkerRecordedEventAttributes.Equal(that1.MarkerRecordedEventAttributes) { - return false - } - return true + return mi.MessageOf(x) } -func (this *HistoryEvent_WorkflowExecutionSignaledEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_WorkflowExecutionSignaledEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_WorkflowExecutionSignaledEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.WorkflowExecutionSignaledEventAttributes.Equal(that1.WorkflowExecutionSignaledEventAttributes) { - return false - } - return true +// Deprecated: Use ChildWorkflowExecutionStartedEventAttributes.ProtoReflect.Descriptor instead. +func (*ChildWorkflowExecutionStartedEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{38} } -func (this *HistoryEvent_WorkflowExecutionTerminatedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_WorkflowExecutionTerminatedEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_WorkflowExecutionTerminatedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } +func (x *ChildWorkflowExecutionStartedEventAttributes) GetDomain() string { + if x != nil { + return x.Domain } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.WorkflowExecutionTerminatedEventAttributes.Equal(that1.WorkflowExecutionTerminatedEventAttributes) { - return false - } - return true + return "" } -func (this *HistoryEvent_WorkflowExecutionCancelRequestedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_WorkflowExecutionCancelRequestedEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_WorkflowExecutionCancelRequestedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false +func (x *ChildWorkflowExecutionStartedEventAttributes) GetWorkflowExecution() *WorkflowExecution { + if x != nil { + return x.WorkflowExecution } - if !this.WorkflowExecutionCancelRequestedEventAttributes.Equal(that1.WorkflowExecutionCancelRequestedEventAttributes) { - return false - } - return true + return nil } -func (this *HistoryEvent_WorkflowExecutionCanceledEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_WorkflowExecutionCanceledEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_WorkflowExecutionCanceledEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.WorkflowExecutionCanceledEventAttributes.Equal(that1.WorkflowExecutionCanceledEventAttributes) { - return false +func (x *ChildWorkflowExecutionStartedEventAttributes) GetWorkflowType() *WorkflowType { + if x != nil { + return x.WorkflowType } - return true + return nil } -func (this *HistoryEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false +func (x *ChildWorkflowExecutionStartedEventAttributes) GetInitiatedEventId() int64 { + if x != nil { + return x.InitiatedEventId } - if !this.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Equal(that1.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) { - return false - } - return true + return 0 } -func (this *HistoryEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } +func (x *ChildWorkflowExecutionStartedEventAttributes) GetHeader() *Header { + if x != nil { + return x.Header } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.RequestCancelExternalWorkflowExecutionFailedEventAttributes.Equal(that1.RequestCancelExternalWorkflowExecutionFailedEventAttributes) { - return false - } - return true + return nil } -func (this *HistoryEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.ExternalWorkflowExecutionCancelRequestedEventAttributes.Equal(that1.ExternalWorkflowExecutionCancelRequestedEventAttributes) { - return false - } - return true +type ChildWorkflowExecutionCompletedEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` + WorkflowExecution *WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` + WorkflowType *WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` + InitiatedEventId int64 `protobuf:"varint,4,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` + StartedEventId int64 `protobuf:"varint,5,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` + Result *Payload `protobuf:"bytes,6,opt,name=result,proto3" json:"result,omitempty"` } -func (this *HistoryEvent_WorkflowExecutionContinuedAsNewEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_WorkflowExecutionContinuedAsNewEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_WorkflowExecutionContinuedAsNewEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.WorkflowExecutionContinuedAsNewEventAttributes.Equal(that1.WorkflowExecutionContinuedAsNewEventAttributes) { - return false +func (x *ChildWorkflowExecutionCompletedEventAttributes) Reset() { + *x = ChildWorkflowExecutionCompletedEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return true } -func (this *HistoryEvent_StartChildWorkflowExecutionInitiatedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_StartChildWorkflowExecutionInitiatedEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_StartChildWorkflowExecutionInitiatedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.StartChildWorkflowExecutionInitiatedEventAttributes.Equal(that1.StartChildWorkflowExecutionInitiatedEventAttributes) { - return false - } - return true +func (x *ChildWorkflowExecutionCompletedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -func (this *HistoryEvent_StartChildWorkflowExecutionFailedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_StartChildWorkflowExecutionFailedEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_StartChildWorkflowExecutionFailedEventAttributes) - if ok { - that1 = &that2 - } else { - return false +func (*ChildWorkflowExecutionCompletedEventAttributes) ProtoMessage() {} + +func (x *ChildWorkflowExecutionCompletedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[39] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.StartChildWorkflowExecutionFailedEventAttributes.Equal(that1.StartChildWorkflowExecutionFailedEventAttributes) { - return false - } - return true + return mi.MessageOf(x) } -func (this *HistoryEvent_ChildWorkflowExecutionStartedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_ChildWorkflowExecutionStartedEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_ChildWorkflowExecutionStartedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.ChildWorkflowExecutionStartedEventAttributes.Equal(that1.ChildWorkflowExecutionStartedEventAttributes) { - return false - } - return true +// Deprecated: Use ChildWorkflowExecutionCompletedEventAttributes.ProtoReflect.Descriptor instead. +func (*ChildWorkflowExecutionCompletedEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{39} } -func (this *HistoryEvent_ChildWorkflowExecutionCompletedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_ChildWorkflowExecutionCompletedEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_ChildWorkflowExecutionCompletedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.ChildWorkflowExecutionCompletedEventAttributes.Equal(that1.ChildWorkflowExecutionCompletedEventAttributes) { - return false +func (x *ChildWorkflowExecutionCompletedEventAttributes) GetDomain() string { + if x != nil { + return x.Domain } - return true + return "" } -func (this *HistoryEvent_ChildWorkflowExecutionFailedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_ChildWorkflowExecutionFailedEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_ChildWorkflowExecutionFailedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false +func (x *ChildWorkflowExecutionCompletedEventAttributes) GetWorkflowExecution() *WorkflowExecution { + if x != nil { + return x.WorkflowExecution } - if !this.ChildWorkflowExecutionFailedEventAttributes.Equal(that1.ChildWorkflowExecutionFailedEventAttributes) { - return false - } - return true + return nil } -func (this *HistoryEvent_ChildWorkflowExecutionCanceledEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_ChildWorkflowExecutionCanceledEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_ChildWorkflowExecutionCanceledEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } +func (x *ChildWorkflowExecutionCompletedEventAttributes) GetWorkflowType() *WorkflowType { + if x != nil { + return x.WorkflowType } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.ChildWorkflowExecutionCanceledEventAttributes.Equal(that1.ChildWorkflowExecutionCanceledEventAttributes) { - return false - } - return true + return nil } -func (this *HistoryEvent_ChildWorkflowExecutionTimedOutEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_ChildWorkflowExecutionTimedOutEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_ChildWorkflowExecutionTimedOutEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false +func (x *ChildWorkflowExecutionCompletedEventAttributes) GetInitiatedEventId() int64 { + if x != nil { + return x.InitiatedEventId } - if !this.ChildWorkflowExecutionTimedOutEventAttributes.Equal(that1.ChildWorkflowExecutionTimedOutEventAttributes) { - return false - } - return true + return 0 } -func (this *HistoryEvent_ChildWorkflowExecutionTerminatedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_ChildWorkflowExecutionTerminatedEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_ChildWorkflowExecutionTerminatedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.ChildWorkflowExecutionTerminatedEventAttributes.Equal(that1.ChildWorkflowExecutionTerminatedEventAttributes) { - return false +func (x *ChildWorkflowExecutionCompletedEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.StartedEventId } - return true + return 0 } -func (this *HistoryEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false +func (x *ChildWorkflowExecutionCompletedEventAttributes) GetResult() *Payload { + if x != nil { + return x.Result } - if !this.SignalExternalWorkflowExecutionInitiatedEventAttributes.Equal(that1.SignalExternalWorkflowExecutionInitiatedEventAttributes) { - return false - } - return true + return nil +} + +type ChildWorkflowExecutionFailedEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` + WorkflowExecution *WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` + WorkflowType *WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` + InitiatedEventId int64 `protobuf:"varint,4,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` + StartedEventId int64 `protobuf:"varint,5,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` + Failure *Failure `protobuf:"bytes,6,opt,name=failure,proto3" json:"failure,omitempty"` } -func (this *HistoryEvent_SignalExternalWorkflowExecutionFailedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil + +func (x *ChildWorkflowExecutionFailedEventAttributes) Reset() { + *x = ChildWorkflowExecutionFailedEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } +} + +func (x *ChildWorkflowExecutionFailedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} - that1, ok := that.(*HistoryEvent_SignalExternalWorkflowExecutionFailedEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_SignalExternalWorkflowExecutionFailedEventAttributes) - if ok { - that1 = &that2 - } else { - return false +func (*ChildWorkflowExecutionFailedEventAttributes) ProtoMessage() {} + +func (x *ChildWorkflowExecutionFailedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[40] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if that1 == nil { - return this == nil - } else if this == nil { - return false + return mi.MessageOf(x) +} + +// Deprecated: Use ChildWorkflowExecutionFailedEventAttributes.ProtoReflect.Descriptor instead. +func (*ChildWorkflowExecutionFailedEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{40} +} + +func (x *ChildWorkflowExecutionFailedEventAttributes) GetDomain() string { + if x != nil { + return x.Domain } - if !this.SignalExternalWorkflowExecutionFailedEventAttributes.Equal(that1.SignalExternalWorkflowExecutionFailedEventAttributes) { - return false + return "" +} + +func (x *ChildWorkflowExecutionFailedEventAttributes) GetWorkflowExecution() *WorkflowExecution { + if x != nil { + return x.WorkflowExecution } - return true + return nil } -func (this *HistoryEvent_ExternalWorkflowExecutionSignaledEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil + +func (x *ChildWorkflowExecutionFailedEventAttributes) GetWorkflowType() *WorkflowType { + if x != nil { + return x.WorkflowType } + return nil +} - that1, ok := that.(*HistoryEvent_ExternalWorkflowExecutionSignaledEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_ExternalWorkflowExecutionSignaledEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } +func (x *ChildWorkflowExecutionFailedEventAttributes) GetInitiatedEventId() int64 { + if x != nil { + return x.InitiatedEventId } - if that1 == nil { - return this == nil - } else if this == nil { - return false + return 0 +} + +func (x *ChildWorkflowExecutionFailedEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.StartedEventId } - if !this.ExternalWorkflowExecutionSignaledEventAttributes.Equal(that1.ExternalWorkflowExecutionSignaledEventAttributes) { - return false + return 0 +} + +func (x *ChildWorkflowExecutionFailedEventAttributes) GetFailure() *Failure { + if x != nil { + return x.Failure } - return true + return nil +} + +type ChildWorkflowExecutionCanceledEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` + WorkflowExecution *WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` + WorkflowType *WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` + InitiatedEventId int64 `protobuf:"varint,4,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` + StartedEventId int64 `protobuf:"varint,5,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` + Details *Payload `protobuf:"bytes,6,opt,name=details,proto3" json:"details,omitempty"` } -func (this *HistoryEvent_UpsertWorkflowSearchAttributesEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil + +func (x *ChildWorkflowExecutionCanceledEventAttributes) Reset() { + *x = ChildWorkflowExecutionCanceledEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } +} + +func (x *ChildWorkflowExecutionCanceledEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} - that1, ok := that.(*HistoryEvent_UpsertWorkflowSearchAttributesEventAttributes) - if !ok { - that2, ok := that.(HistoryEvent_UpsertWorkflowSearchAttributesEventAttributes) - if ok { - that1 = &that2 - } else { - return false +func (*ChildWorkflowExecutionCanceledEventAttributes) ProtoMessage() {} + +func (x *ChildWorkflowExecutionCanceledEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[41] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.UpsertWorkflowSearchAttributesEventAttributes.Equal(that1.UpsertWorkflowSearchAttributesEventAttributes) { - return false + return mi.MessageOf(x) +} + +// Deprecated: Use ChildWorkflowExecutionCanceledEventAttributes.ProtoReflect.Descriptor instead. +func (*ChildWorkflowExecutionCanceledEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{41} +} + +func (x *ChildWorkflowExecutionCanceledEventAttributes) GetDomain() string { + if x != nil { + return x.Domain } - return true + return "" } -func (this *WorkflowExecutionStartedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil + +func (x *ChildWorkflowExecutionCanceledEventAttributes) GetWorkflowExecution() *WorkflowExecution { + if x != nil { + return x.WorkflowExecution } + return nil +} - that1, ok := that.(*WorkflowExecutionStartedEventAttributes) - if !ok { - that2, ok := that.(WorkflowExecutionStartedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } +func (x *ChildWorkflowExecutionCanceledEventAttributes) GetWorkflowType() *WorkflowType { + if x != nil { + return x.WorkflowType } - if that1 == nil { - return this == nil - } else if this == nil { - return false + return nil +} + +func (x *ChildWorkflowExecutionCanceledEventAttributes) GetInitiatedEventId() int64 { + if x != nil { + return x.InitiatedEventId } - if !this.WorkflowType.Equal(that1.WorkflowType) { - return false - } - if this.ParentWorkflowDomain != that1.ParentWorkflowDomain { - return false - } - if !this.ParentWorkflowExecution.Equal(that1.ParentWorkflowExecution) { - return false - } - if this.ParentInitiatedEventId != that1.ParentInitiatedEventId { - return false - } - if !this.TaskList.Equal(that1.TaskList) { - return false - } - if !this.Input.Equal(that1.Input) { - return false - } - if this.ExecutionStartToCloseTimeout != nil && that1.ExecutionStartToCloseTimeout != nil { - if *this.ExecutionStartToCloseTimeout != *that1.ExecutionStartToCloseTimeout { - return false - } - } else if this.ExecutionStartToCloseTimeout != nil { - return false - } else if that1.ExecutionStartToCloseTimeout != nil { - return false - } - if this.TaskStartToCloseTimeout != nil && that1.TaskStartToCloseTimeout != nil { - if *this.TaskStartToCloseTimeout != *that1.TaskStartToCloseTimeout { - return false - } - } else if this.TaskStartToCloseTimeout != nil { - return false - } else if that1.TaskStartToCloseTimeout != nil { - return false - } - if this.ContinuedExecutionRunId != that1.ContinuedExecutionRunId { - return false - } - if this.Initiator != that1.Initiator { - return false - } - if !this.ContinuedFailure.Equal(that1.ContinuedFailure) { - return false - } - if !this.LastCompletionResult.Equal(that1.LastCompletionResult) { - return false - } - if this.OriginalExecutionRunId != that1.OriginalExecutionRunId { - return false - } - if this.Identity != that1.Identity { - return false - } - if this.FirstExecutionRunId != that1.FirstExecutionRunId { - return false - } - if !this.RetryPolicy.Equal(that1.RetryPolicy) { - return false - } - if this.Attempt != that1.Attempt { - return false - } - if that1.ExpirationTime == nil { - if this.ExpirationTime != nil { - return false - } - } else if !this.ExpirationTime.Equal(*that1.ExpirationTime) { - return false - } - if this.CronSchedule != that1.CronSchedule { - return false - } - if this.FirstDecisionTaskBackoff != nil && that1.FirstDecisionTaskBackoff != nil { - if *this.FirstDecisionTaskBackoff != *that1.FirstDecisionTaskBackoff { - return false - } - } else if this.FirstDecisionTaskBackoff != nil { - return false - } else if that1.FirstDecisionTaskBackoff != nil { - return false - } - if !this.Memo.Equal(that1.Memo) { - return false - } - if !this.SearchAttributes.Equal(that1.SearchAttributes) { - return false - } - if !this.PrevAutoResetPoints.Equal(that1.PrevAutoResetPoints) { - return false - } - if !this.Header.Equal(that1.Header) { - return false - } - return true + return 0 } -func (this *WorkflowExecutionCompletedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*WorkflowExecutionCompletedEventAttributes) - if !ok { - that2, ok := that.(WorkflowExecutionCompletedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.Result.Equal(that1.Result) { - return false +func (x *ChildWorkflowExecutionCanceledEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.StartedEventId } - if this.DecisionTaskCompletedEventId != that1.DecisionTaskCompletedEventId { - return false - } - return true + return 0 } -func (this *WorkflowExecutionFailedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*WorkflowExecutionFailedEventAttributes) - if !ok { - that2, ok := that.(WorkflowExecutionFailedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } +func (x *ChildWorkflowExecutionCanceledEventAttributes) GetDetails() *Payload { + if x != nil { + return x.Details } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.Failure.Equal(that1.Failure) { - return false - } - if this.DecisionTaskCompletedEventId != that1.DecisionTaskCompletedEventId { - return false - } - return true + return nil } -func (this *WorkflowExecutionTimedOutEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*WorkflowExecutionTimedOutEventAttributes) - if !ok { - that2, ok := that.(WorkflowExecutionTimedOutEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.TimeoutType != that1.TimeoutType { - return false - } - return true -} -func (this *DecisionTaskScheduledEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } +type ChildWorkflowExecutionTimedOutEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields - that1, ok := that.(*DecisionTaskScheduledEventAttributes) - if !ok { - that2, ok := that.(DecisionTaskScheduledEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.TaskList.Equal(that1.TaskList) { - return false - } - if this.StartToCloseTimeout != nil && that1.StartToCloseTimeout != nil { - if *this.StartToCloseTimeout != *that1.StartToCloseTimeout { - return false - } - } else if this.StartToCloseTimeout != nil { - return false - } else if that1.StartToCloseTimeout != nil { - return false - } - if this.Attempt != that1.Attempt { - return false - } - return true + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` + WorkflowExecution *WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` + WorkflowType *WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` + InitiatedEventId int64 `protobuf:"varint,4,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` + StartedEventId int64 `protobuf:"varint,5,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` + TimeoutType TimeoutType `protobuf:"varint,6,opt,name=timeout_type,json=timeoutType,proto3,enum=uber.cadence.api.v1.TimeoutType" json:"timeout_type,omitempty"` } -func (this *DecisionTaskStartedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*DecisionTaskStartedEventAttributes) - if !ok { - that2, ok := that.(DecisionTaskStartedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false +func (x *ChildWorkflowExecutionTimedOutEventAttributes) Reset() { + *x = ChildWorkflowExecutionTimedOutEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if this.ScheduledEventId != that1.ScheduledEventId { - return false - } - if this.Identity != that1.Identity { - return false - } - if this.RequestId != that1.RequestId { - return false - } - return true } -func (this *DecisionTaskCompletedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*DecisionTaskCompletedEventAttributes) - if !ok { - that2, ok := that.(DecisionTaskCompletedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.ScheduledEventId != that1.ScheduledEventId { - return false - } - if this.StartedEventId != that1.StartedEventId { - return false - } - if this.Identity != that1.Identity { - return false - } - if this.BinaryChecksum != that1.BinaryChecksum { - return false - } - if !bytes.Equal(this.ExecutionContext, that1.ExecutionContext) { - return false - } - return true +func (x *ChildWorkflowExecutionTimedOutEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -func (this *DecisionTaskTimedOutEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*DecisionTaskTimedOutEventAttributes) - if !ok { - that2, ok := that.(DecisionTaskTimedOutEventAttributes) - if ok { - that1 = &that2 - } else { - return false +func (*ChildWorkflowExecutionTimedOutEventAttributes) ProtoMessage() {} + +func (x *ChildWorkflowExecutionTimedOutEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[42] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.ScheduledEventId != that1.ScheduledEventId { - return false - } - if this.StartedEventId != that1.StartedEventId { - return false - } - if this.TimeoutType != that1.TimeoutType { - return false - } - return true + return mi.MessageOf(x) } -func (this *DecisionTaskFailedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*DecisionTaskFailedEventAttributes) - if !ok { - that2, ok := that.(DecisionTaskFailedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.ScheduledEventId != that1.ScheduledEventId { - return false - } - if this.StartedEventId != that1.StartedEventId { - return false - } - if this.Cause != that1.Cause { - return false - } - if !this.Failure.Equal(that1.Failure) { - return false - } - if this.Identity != that1.Identity { - return false - } - if this.BaseRunId != that1.BaseRunId { - return false - } - if this.NewRunId != that1.NewRunId { - return false - } - if this.ForkEventVersion != that1.ForkEventVersion { - return false - } - if this.BinaryChecksum != that1.BinaryChecksum { - return false - } - return true +// Deprecated: Use ChildWorkflowExecutionTimedOutEventAttributes.ProtoReflect.Descriptor instead. +func (*ChildWorkflowExecutionTimedOutEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{42} } -func (this *ActivityTaskScheduledEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*ActivityTaskScheduledEventAttributes) - if !ok { - that2, ok := that.(ActivityTaskScheduledEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.ActivityId != that1.ActivityId { - return false - } - if !this.ActivityType.Equal(that1.ActivityType) { - return false - } - if this.Domain != that1.Domain { - return false - } - if !this.TaskList.Equal(that1.TaskList) { - return false - } - if !this.Input.Equal(that1.Input) { - return false - } - if this.ScheduleToCloseTimeout != nil && that1.ScheduleToCloseTimeout != nil { - if *this.ScheduleToCloseTimeout != *that1.ScheduleToCloseTimeout { - return false - } - } else if this.ScheduleToCloseTimeout != nil { - return false - } else if that1.ScheduleToCloseTimeout != nil { - return false - } - if this.ScheduleToStartTimeout != nil && that1.ScheduleToStartTimeout != nil { - if *this.ScheduleToStartTimeout != *that1.ScheduleToStartTimeout { - return false - } - } else if this.ScheduleToStartTimeout != nil { - return false - } else if that1.ScheduleToStartTimeout != nil { - return false - } - if this.StartToCloseTimeout != nil && that1.StartToCloseTimeout != nil { - if *this.StartToCloseTimeout != *that1.StartToCloseTimeout { - return false - } - } else if this.StartToCloseTimeout != nil { - return false - } else if that1.StartToCloseTimeout != nil { - return false - } - if this.HeartbeatTimeout != nil && that1.HeartbeatTimeout != nil { - if *this.HeartbeatTimeout != *that1.HeartbeatTimeout { - return false - } - } else if this.HeartbeatTimeout != nil { - return false - } else if that1.HeartbeatTimeout != nil { - return false - } - if this.DecisionTaskCompletedEventId != that1.DecisionTaskCompletedEventId { - return false - } - if !this.RetryPolicy.Equal(that1.RetryPolicy) { - return false +func (x *ChildWorkflowExecutionTimedOutEventAttributes) GetDomain() string { + if x != nil { + return x.Domain } - if !this.Header.Equal(that1.Header) { - return false - } - return true + return "" } -func (this *ActivityTaskStartedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*ActivityTaskStartedEventAttributes) - if !ok { - that2, ok := that.(ActivityTaskStartedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.ScheduledEventId != that1.ScheduledEventId { - return false - } - if this.Identity != that1.Identity { - return false - } - if this.RequestId != that1.RequestId { - return false +func (x *ChildWorkflowExecutionTimedOutEventAttributes) GetWorkflowExecution() *WorkflowExecution { + if x != nil { + return x.WorkflowExecution } - if this.Attempt != that1.Attempt { - return false - } - if !this.LastFailure.Equal(that1.LastFailure) { - return false - } - return true + return nil } -func (this *ActivityTaskCompletedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*ActivityTaskCompletedEventAttributes) - if !ok { - that2, ok := that.(ActivityTaskCompletedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.Result.Equal(that1.Result) { - return false - } - if this.ScheduledEventId != that1.ScheduledEventId { - return false +func (x *ChildWorkflowExecutionTimedOutEventAttributes) GetWorkflowType() *WorkflowType { + if x != nil { + return x.WorkflowType } - if this.StartedEventId != that1.StartedEventId { - return false - } - if this.Identity != that1.Identity { - return false - } - return true + return nil } -func (this *ActivityTaskFailedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*ActivityTaskFailedEventAttributes) - if !ok { - that2, ok := that.(ActivityTaskFailedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.Failure.Equal(that1.Failure) { - return false - } - if this.ScheduledEventId != that1.ScheduledEventId { - return false +func (x *ChildWorkflowExecutionTimedOutEventAttributes) GetInitiatedEventId() int64 { + if x != nil { + return x.InitiatedEventId } - if this.StartedEventId != that1.StartedEventId { - return false - } - if this.Identity != that1.Identity { - return false - } - return true + return 0 } -func (this *ActivityTaskTimedOutEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*ActivityTaskTimedOutEventAttributes) - if !ok { - that2, ok := that.(ActivityTaskTimedOutEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.Details.Equal(that1.Details) { - return false - } - if this.ScheduledEventId != that1.ScheduledEventId { - return false +func (x *ChildWorkflowExecutionTimedOutEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.StartedEventId } - if this.StartedEventId != that1.StartedEventId { - return false - } - if this.TimeoutType != that1.TimeoutType { - return false - } - if !this.LastFailure.Equal(that1.LastFailure) { - return false - } - return true + return 0 } -func (this *ActivityTaskCancelRequestedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*ActivityTaskCancelRequestedEventAttributes) - if !ok { - that2, ok := that.(ActivityTaskCancelRequestedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.ActivityId != that1.ActivityId { - return false +func (x *ChildWorkflowExecutionTimedOutEventAttributes) GetTimeoutType() TimeoutType { + if x != nil { + return x.TimeoutType } - if this.DecisionTaskCompletedEventId != that1.DecisionTaskCompletedEventId { - return false - } - return true + return TimeoutType_TIMEOUT_TYPE_INVALID } -func (this *RequestCancelActivityTaskFailedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*RequestCancelActivityTaskFailedEventAttributes) - if !ok { - that2, ok := that.(RequestCancelActivityTaskFailedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.ActivityId != that1.ActivityId { - return false - } - if this.Cause != that1.Cause { - return false - } - if this.DecisionTaskCompletedEventId != that1.DecisionTaskCompletedEventId { - return false - } - return true +type ChildWorkflowExecutionTerminatedEventAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` + WorkflowExecution *WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` + WorkflowType *WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` + InitiatedEventId int64 `protobuf:"varint,4,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` + StartedEventId int64 `protobuf:"varint,5,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` } -func (this *ActivityTaskCanceledEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*ActivityTaskCanceledEventAttributes) - if !ok { - that2, ok := that.(ActivityTaskCanceledEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.Details.Equal(that1.Details) { - return false - } - if this.LatestCancelRequestedEventId != that1.LatestCancelRequestedEventId { - return false +func (x *ChildWorkflowExecutionTerminatedEventAttributes) Reset() { + *x = ChildWorkflowExecutionTerminatedEventAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if this.ScheduledEventId != that1.ScheduledEventId { - return false - } - if this.StartedEventId != that1.StartedEventId { - return false - } - if this.Identity != that1.Identity { - return false - } - return true } -func (this *TimerStartedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*TimerStartedEventAttributes) - if !ok { - that2, ok := that.(TimerStartedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.TimerId != that1.TimerId { - return false - } - if this.StartToFireTimeout != nil && that1.StartToFireTimeout != nil { - if *this.StartToFireTimeout != *that1.StartToFireTimeout { - return false - } - } else if this.StartToFireTimeout != nil { - return false - } else if that1.StartToFireTimeout != nil { - return false - } - if this.DecisionTaskCompletedEventId != that1.DecisionTaskCompletedEventId { - return false - } - return true +func (x *ChildWorkflowExecutionTerminatedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -func (this *TimerFiredEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*TimerFiredEventAttributes) - if !ok { - that2, ok := that.(TimerFiredEventAttributes) - if ok { - that1 = &that2 - } else { - return false +func (*ChildWorkflowExecutionTerminatedEventAttributes) ProtoMessage() {} + +func (x *ChildWorkflowExecutionTerminatedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_history_proto_msgTypes[43] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.TimerId != that1.TimerId { - return false - } - if this.StartedEventId != that1.StartedEventId { - return false - } - return true + return mi.MessageOf(x) } -func (this *TimerCanceledEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*TimerCanceledEventAttributes) - if !ok { - that2, ok := that.(TimerCanceledEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.TimerId != that1.TimerId { - return false - } - if this.StartedEventId != that1.StartedEventId { - return false - } - if this.DecisionTaskCompletedEventId != that1.DecisionTaskCompletedEventId { - return false - } - if this.Identity != that1.Identity { - return false - } - return true +// Deprecated: Use ChildWorkflowExecutionTerminatedEventAttributes.ProtoReflect.Descriptor instead. +func (*ChildWorkflowExecutionTerminatedEventAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_history_proto_rawDescGZIP(), []int{43} } -func (this *CancelTimerFailedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*CancelTimerFailedEventAttributes) - if !ok { - that2, ok := that.(CancelTimerFailedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } +func (x *ChildWorkflowExecutionTerminatedEventAttributes) GetDomain() string { + if x != nil { + return x.Domain } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.TimerId != that1.TimerId { - return false - } - if this.Cause != that1.Cause { - return false - } - if this.DecisionTaskCompletedEventId != that1.DecisionTaskCompletedEventId { - return false - } - if this.Identity != that1.Identity { - return false - } - return true + return "" } -func (this *WorkflowExecutionContinuedAsNewEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*WorkflowExecutionContinuedAsNewEventAttributes) - if !ok { - that2, ok := that.(WorkflowExecutionContinuedAsNewEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.NewExecutionRunId != that1.NewExecutionRunId { - return false - } - if !this.WorkflowType.Equal(that1.WorkflowType) { - return false - } - if !this.TaskList.Equal(that1.TaskList) { - return false - } - if !this.Input.Equal(that1.Input) { - return false - } - if this.ExecutionStartToCloseTimeout != nil && that1.ExecutionStartToCloseTimeout != nil { - if *this.ExecutionStartToCloseTimeout != *that1.ExecutionStartToCloseTimeout { - return false - } - } else if this.ExecutionStartToCloseTimeout != nil { - return false - } else if that1.ExecutionStartToCloseTimeout != nil { - return false - } - if this.TaskStartToCloseTimeout != nil && that1.TaskStartToCloseTimeout != nil { - if *this.TaskStartToCloseTimeout != *that1.TaskStartToCloseTimeout { - return false - } - } else if this.TaskStartToCloseTimeout != nil { - return false - } else if that1.TaskStartToCloseTimeout != nil { - return false - } - if this.DecisionTaskCompletedEventId != that1.DecisionTaskCompletedEventId { - return false - } - if this.BackoffStartInterval != nil && that1.BackoffStartInterval != nil { - if *this.BackoffStartInterval != *that1.BackoffStartInterval { - return false - } - } else if this.BackoffStartInterval != nil { - return false - } else if that1.BackoffStartInterval != nil { - return false - } - if this.Initiator != that1.Initiator { - return false - } - if !this.Failure.Equal(that1.Failure) { - return false - } - if !this.LastCompletionResult.Equal(that1.LastCompletionResult) { - return false - } - if !this.Header.Equal(that1.Header) { - return false - } - if !this.Memo.Equal(that1.Memo) { - return false +func (x *ChildWorkflowExecutionTerminatedEventAttributes) GetWorkflowExecution() *WorkflowExecution { + if x != nil { + return x.WorkflowExecution } - if !this.SearchAttributes.Equal(that1.SearchAttributes) { - return false - } - return true + return nil } -func (this *WorkflowExecutionCancelRequestedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*WorkflowExecutionCancelRequestedEventAttributes) - if !ok { - that2, ok := that.(WorkflowExecutionCancelRequestedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Cause != that1.Cause { - return false - } - if this.ExternalInitiatedEventId != that1.ExternalInitiatedEventId { - return false - } - if !this.ExternalWorkflowExecution.Equal(that1.ExternalWorkflowExecution) { - return false +func (x *ChildWorkflowExecutionTerminatedEventAttributes) GetWorkflowType() *WorkflowType { + if x != nil { + return x.WorkflowType } - if this.Identity != that1.Identity { - return false - } - return true + return nil } -func (this *WorkflowExecutionCanceledEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*WorkflowExecutionCanceledEventAttributes) - if !ok { - that2, ok := that.(WorkflowExecutionCanceledEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } +func (x *ChildWorkflowExecutionTerminatedEventAttributes) GetInitiatedEventId() int64 { + if x != nil { + return x.InitiatedEventId } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.DecisionTaskCompletedEventId != that1.DecisionTaskCompletedEventId { - return false - } - if !this.Details.Equal(that1.Details) { - return false - } - return true + return 0 } -func (this *MarkerRecordedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*MarkerRecordedEventAttributes) - if !ok { - that2, ok := that.(MarkerRecordedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.MarkerName != that1.MarkerName { - return false +func (x *ChildWorkflowExecutionTerminatedEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.StartedEventId } - if !this.Details.Equal(that1.Details) { - return false - } - if this.DecisionTaskCompletedEventId != that1.DecisionTaskCompletedEventId { - return false - } - if !this.Header.Equal(that1.Header) { - return false - } - return true + return 0 } -func (this *WorkflowExecutionSignaledEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*WorkflowExecutionSignaledEventAttributes) - if !ok { - that2, ok := that.(WorkflowExecutionSignaledEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.SignalName != that1.SignalName { - return false - } - if !this.Input.Equal(that1.Input) { - return false - } - if this.Identity != that1.Identity { - return false - } - return true +var File_uber_cadence_api_v1_history_proto protoreflect.FileDescriptor + +var file_uber_cadence_api_v1_history_proto_rawDesc = []byte{ + 0x0a, 0x21, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x75, 0x62, 0x65, 0x72, 0x2f, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63, + 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x75, 0x62, 0x65, + 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, + 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x22, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0x44, 0x0a, 0x07, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x39, + 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xe9, 0x37, 0x0a, 0x0c, 0x48, 0x69, + 0x73, 0x74, 0x6f, 0x72, 0x79, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x74, + 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65, + 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x61, + 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x74, 0x61, 0x73, + 0x6b, 0x49, 0x64, 0x12, 0x9c, 0x01, 0x0a, 0x2b, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x27, 0x77, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, + 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x12, 0xa2, 0x01, 0x0a, 0x2d, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, + 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, + 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x29, 0x77, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, + 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x99, 0x01, 0x0a, 0x2a, 0x77, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, + 0x61, 0x69, 0x6c, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x26, 0x77, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, + 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x12, 0xa0, 0x01, 0x0a, 0x2d, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x64, + 0x5f, 0x6f, 0x75, 0x74, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x64, 0x4f, 0x75, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x28, 0x77, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x54, + 0x69, 0x6d, 0x65, 0x64, 0x4f, 0x75, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x93, 0x01, 0x0a, 0x28, 0x64, 0x65, 0x63, 0x69, 0x73, + 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, + 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x63, 0x68, 0x65, + 0x64, 0x75, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x24, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x54, 0x61, 0x73, 0x6b, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x8d, 0x01, 0x0a, + 0x26, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, + 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, + 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x22, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, + 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x93, 0x01, 0x0a, + 0x28, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x63, + 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x39, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, + 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x24, 0x64, 0x65, + 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, + 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x12, 0x91, 0x01, 0x0a, 0x28, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, + 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x64, 0x5f, 0x6f, 0x75, 0x74, 0x5f, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, + 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x69, + 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x64, 0x4f, 0x75, 0x74, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, + 0x00, 0x52, 0x23, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x54, + 0x69, 0x6d, 0x65, 0x64, 0x4f, 0x75, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x8a, 0x01, 0x0a, 0x25, 0x64, 0x65, 0x63, 0x69, 0x73, + 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x5f, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, + 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x63, + 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, + 0x52, 0x21, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x46, 0x61, + 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x12, 0x93, 0x01, 0x0a, 0x28, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, + 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x5f, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, + 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, + 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, + 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x73, 0x48, 0x00, 0x52, 0x24, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, + 0x6b, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x8d, 0x01, 0x0a, 0x26, 0x61, 0x63, + 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x74, 0x61, 0x72, + 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, + 0x72, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x22, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, + 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x93, 0x01, 0x0a, 0x28, 0x61, 0x63, + 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x63, 0x6f, 0x6d, 0x70, + 0x6c, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x43, + 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x24, 0x61, 0x63, 0x74, 0x69, 0x76, + 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, + 0x8a, 0x01, 0x0a, 0x25, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x61, 0x73, + 0x6b, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x36, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, + 0x73, 0x6b, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x21, 0x61, 0x63, 0x74, 0x69, 0x76, + 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x91, 0x01, 0x0a, + 0x28, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, + 0x69, 0x6d, 0x65, 0x64, 0x5f, 0x6f, 0x75, 0x74, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x38, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, + 0x73, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x64, 0x4f, 0x75, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x23, 0x61, 0x63, 0x74, + 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x64, 0x4f, 0x75, + 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, + 0x12, 0x77, 0x0a, 0x1e, 0x74, 0x69, 0x6d, 0x65, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, + 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x72, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x1b, 0x74, 0x69, + 0x6d, 0x65, 0x72, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x71, 0x0a, 0x1c, 0x74, 0x69, 0x6d, + 0x65, 0x72, 0x5f, 0x66, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x2e, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x72, 0x46, 0x69, 0x72, 0x65, 0x64, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, + 0x00, 0x52, 0x19, 0x74, 0x69, 0x6d, 0x65, 0x72, 0x46, 0x69, 0x72, 0x65, 0x64, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0xa6, 0x01, 0x0a, + 0x2f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x63, + 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, + 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, + 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x2a, 0x61, 0x63, 0x74, 0x69, 0x76, + 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0xb3, 0x01, 0x0a, 0x34, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x5f, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, + 0x79, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x5f, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x16, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x43, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, + 0x54, 0x61, 0x73, 0x6b, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x2e, 0x72, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, + 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x90, 0x01, 0x0a, 0x27, + 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x63, 0x61, + 0x6e, 0x63, 0x65, 0x6c, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x17, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, + 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x23, 0x61, 0x63, 0x74, 0x69, 0x76, + 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x65, 0x64, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x7a, + 0x0a, 0x1f, 0x74, 0x69, 0x6d, 0x65, 0x72, 0x5f, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x65, 0x64, + 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x73, 0x18, 0x18, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x1c, 0x74, 0x69, + 0x6d, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x87, 0x01, 0x0a, 0x24, 0x63, + 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x72, 0x5f, 0x66, 0x61, 0x69, 0x6c, + 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x18, 0x19, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x72, 0x46, 0x61, 0x69, 0x6c, 0x65, + 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, + 0x48, 0x00, 0x52, 0x20, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x72, 0x46, + 0x61, 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x12, 0x7d, 0x0a, 0x20, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x72, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x48, 0x00, 0x52, 0x1d, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x12, 0x9f, 0x01, 0x0a, 0x2c, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x61, + 0x6c, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x28, 0x77, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x69, + 0x67, 0x6e, 0x61, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0xa5, 0x01, 0x0a, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x65, 0x72, + 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3f, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x64, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, + 0x00, 0x52, 0x2a, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x64, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0xb5, 0x01, + 0x0a, 0x34, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x5f, 0x72, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x44, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x48, 0x00, 0x52, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x9f, 0x01, 0x0a, 0x2c, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x61, 0x6e, + 0x63, 0x65, 0x6c, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x28, 0x77, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0xe4, 0x01, 0x0a, 0x45, 0x72, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x5f, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x72, + 0x6e, 0x61, 0x6c, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, + 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x73, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x53, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x72, + 0x6e, 0x61, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x3e, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x45, 0x78, 0x74, + 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0xdb, + 0x01, 0x0a, 0x42, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x63, 0x61, 0x6e, 0x63, 0x65, + 0x6c, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x61, + 0x69, 0x6c, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x20, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x50, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x45, + 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, + 0x3b, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x45, 0x78, + 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0xce, 0x01, 0x0a, + 0x3d, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x61, 0x6e, + 0x63, 0x65, 0x6c, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x21, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x4c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, + 0x6e, 0x61, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x48, 0x00, 0x52, 0x37, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x57, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, + 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0xb3, 0x01, + 0x0a, 0x34, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x64, 0x5f, 0x61, + 0x73, 0x5f, 0x6e, 0x65, 0x77, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x22, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x43, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x64, 0x41, 0x73, 0x4e, + 0x65, 0x77, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x73, 0x48, 0x00, 0x52, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x64, 0x41, + 0x73, 0x4e, 0x65, 0x77, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x12, 0xc2, 0x01, 0x0a, 0x39, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x63, 0x68, + 0x69, 0x6c, 0x64, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, + 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x73, 0x18, 0x23, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x48, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, + 0x61, 0x72, 0x74, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, + 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x73, 0x48, 0x00, 0x52, 0x33, 0x73, 0x74, 0x61, 0x72, 0x74, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0xb9, 0x01, 0x0a, 0x36, 0x73, 0x74, 0x61, + 0x72, 0x74, 0x5f, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x61, 0x69, 0x6c, + 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x18, 0x24, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x53, 0x74, 0x61, 0x72, 0x74, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x65, + 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, + 0x48, 0x00, 0x52, 0x30, 0x73, 0x74, 0x61, 0x72, 0x74, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x57, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x46, + 0x61, 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x12, 0xac, 0x01, 0x0a, 0x31, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x5f, 0x77, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, + 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x25, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x41, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, + 0x72, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x2c, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, + 0x72, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x12, 0xb2, 0x01, 0x0a, 0x33, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x5f, 0x77, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x26, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x43, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x57, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, + 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x2e, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0xa9, 0x01, 0x0a, 0x30, 0x63, 0x68, 0x69, + 0x6c, 0x64, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x27, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x40, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x2b, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x57, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x46, + 0x61, 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x12, 0xaf, 0x01, 0x0a, 0x32, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x5f, 0x77, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x28, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x42, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x57, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x61, + 0x6e, 0x63, 0x65, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x2d, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x57, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, + 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0xb0, 0x01, 0x0a, 0x33, 0x63, 0x68, 0x69, 0x6c, 0x64, + 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x64, 0x5f, 0x6f, 0x75, 0x74, 0x5f, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x29, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x42, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x69, 0x6c, 0x64, + 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x64, 0x4f, 0x75, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x2d, 0x63, 0x68, 0x69, 0x6c, + 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x64, 0x4f, 0x75, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0xb5, 0x01, 0x0a, 0x34, 0x63, 0x68, + 0x69, 0x6c, 0x64, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, + 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x18, 0x2a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x44, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, + 0x68, 0x69, 0x6c, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x64, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, + 0x52, 0x2f, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, + 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x73, 0x12, 0xce, 0x01, 0x0a, 0x3d, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x5f, 0x65, 0x78, 0x74, + 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, + 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x18, 0x2b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x4c, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x57, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, + 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x37, 0x73, 0x69, 0x67, 0x6e, 0x61, + 0x6c, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, + 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x12, 0xc5, 0x01, 0x0a, 0x3a, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x5f, 0x65, 0x78, + 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, + 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, + 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x73, 0x18, 0x2c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x49, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, + 0x67, 0x6e, 0x61, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, + 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x48, 0x00, 0x52, 0x34, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x45, 0x78, 0x74, 0x65, + 0x72, 0x6e, 0x61, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0xb8, 0x01, 0x0a, 0x35, 0x65, + 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x61, + 0x6c, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x18, 0x2d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, + 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x73, 0x48, 0x00, 0x52, 0x30, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x57, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x69, + 0x67, 0x6e, 0x61, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0xaf, 0x01, 0x0a, 0x32, 0x75, 0x70, 0x73, 0x65, 0x72, 0x74, + 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, + 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x5f, 0x65, 0x76, 0x65, 0x6e, + 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x2e, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x42, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x2d, 0x75, 0x70, 0x73, 0x65, 0x72, 0x74, + 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x22, 0xd7, 0x0c, 0x0a, 0x27, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, + 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x73, 0x12, 0x46, 0x0a, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x77, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x12, 0x34, 0x0a, 0x16, 0x70, 0x61, 0x72, + 0x65, 0x6e, 0x74, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x64, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x70, 0x61, 0x72, 0x65, 0x6e, + 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, + 0x62, 0x0a, 0x19, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x17, 0x70, 0x61, 0x72, 0x65, + 0x6e, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x19, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x6e, + 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x16, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x6e, + 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x3a, + 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, + 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x05, 0x69, 0x6e, + 0x70, 0x75, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x61, + 0x0a, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x72, + 0x74, 0x5f, 0x74, 0x6f, 0x5f, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, + 0x75, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x1c, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, + 0x61, 0x72, 0x74, 0x54, 0x6f, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, + 0x74, 0x12, 0x57, 0x0a, 0x1b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, + 0x74, 0x6f, 0x5f, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, + 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x17, 0x74, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x6f, 0x43, 0x6c, + 0x6f, 0x73, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x3b, 0x0a, 0x1a, 0x63, 0x6f, + 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x64, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, + 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x64, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x49, 0x0a, 0x09, 0x69, 0x6e, 0x69, 0x74, 0x69, + 0x61, 0x74, 0x6f, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x41, 0x73, 0x4e, 0x65, 0x77, 0x49, 0x6e, + 0x69, 0x74, 0x69, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x09, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, + 0x6f, 0x72, 0x12, 0x49, 0x0a, 0x11, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x64, 0x5f, + 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x52, 0x10, 0x63, 0x6f, 0x6e, + 0x74, 0x69, 0x6e, 0x75, 0x65, 0x64, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x12, 0x52, 0x0a, + 0x16, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x14, 0x6c, 0x61, 0x73, + 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, + 0x74, 0x12, 0x39, 0x0a, 0x19, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x65, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x0d, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x16, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, + 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x33, 0x0a, 0x16, 0x66, 0x69, 0x72, 0x73, + 0x74, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x75, 0x6e, 0x5f, + 0x69, 0x64, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x66, 0x69, 0x72, 0x73, 0x74, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x43, 0x0a, + 0x0c, 0x72, 0x65, 0x74, 0x72, 0x79, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x10, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x74, 0x72, 0x79, 0x50, + 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x0b, 0x72, 0x65, 0x74, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, + 0x63, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x18, 0x11, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x07, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x12, 0x43, 0x0a, 0x0f, + 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, + 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x52, 0x0e, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, + 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x72, 0x6f, 0x6e, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, + 0x6c, 0x65, 0x18, 0x14, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x72, 0x6f, 0x6e, 0x53, 0x63, + 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x58, 0x0a, 0x1b, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, + 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x62, 0x61, + 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x18, 0x66, 0x69, 0x72, 0x73, 0x74, 0x44, 0x65, 0x63, + 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x42, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, + 0x12, 0x2d, 0x0a, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x6d, 0x6f, 0x52, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x12, + 0x52, 0x0a, 0x11, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x18, 0x17, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x73, 0x52, 0x10, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x12, 0x55, 0x0a, 0x16, 0x70, 0x72, 0x65, 0x76, 0x5f, 0x61, 0x75, 0x74, 0x6f, + 0x5f, 0x72, 0x65, 0x73, 0x65, 0x74, 0x5f, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x18, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x74, 0x50, + 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x52, 0x13, 0x70, 0x72, 0x65, 0x76, 0x41, 0x75, 0x74, 0x6f, 0x52, + 0x65, 0x73, 0x65, 0x74, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x33, 0x0a, 0x06, 0x68, 0x65, + 0x61, 0x64, 0x65, 0x72, 0x18, 0x19, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x22, + 0xa9, 0x01, 0x0a, 0x29, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x34, 0x0a, + 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x06, 0x72, 0x65, 0x73, + 0x75, 0x6c, 0x74, 0x12, 0x46, 0x0a, 0x20, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, + 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x1c, 0x64, + 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, + 0x65, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0xa8, 0x01, 0x0a, 0x26, + 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x07, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x61, + 0x69, 0x6c, 0x75, 0x72, 0x65, 0x52, 0x07, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x12, 0x46, + 0x0a, 0x20, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, + 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x1c, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, + 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x6f, 0x0a, 0x28, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x64, + 0x4f, 0x75, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x12, 0x43, 0x0a, 0x0c, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x5f, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x74, 0x69, 0x6d, 0x65, + 0x6f, 0x75, 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, 0xcc, 0x01, 0x0a, 0x24, 0x44, 0x65, 0x63, 0x69, + 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, + 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, + 0x12, 0x3a, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, + 0x73, 0x74, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x4e, 0x0a, 0x16, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x6f, 0x5f, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x5f, 0x74, + 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x6f, + 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x18, 0x0a, 0x07, + 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x61, + 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x22, 0x8d, 0x01, 0x0a, 0x22, 0x44, 0x65, 0x63, 0x69, 0x73, + 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x2c, 0x0a, + 0x12, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x73, 0x63, 0x68, 0x65, 0x64, + 0x75, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x69, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0xf0, 0x01, 0x0a, 0x24, 0x44, 0x65, 0x63, 0x69, 0x73, + 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, + 0x2c, 0x0a, 0x12, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x73, 0x63, 0x68, + 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x28, 0x0a, + 0x10, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x74, 0x79, 0x12, 0x27, 0x0a, 0x0f, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x5f, 0x63, 0x68, + 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x62, 0x69, + 0x6e, 0x61, 0x72, 0x79, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x12, 0x2b, 0x0a, 0x11, + 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, + 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x10, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x22, 0xc2, 0x01, 0x0a, 0x23, 0x44, 0x65, + 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x64, 0x4f, + 0x75, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x5f, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x73, + 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, + 0x28, 0x0a, 0x10, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x43, 0x0a, 0x0c, 0x74, 0x69, 0x6d, + 0x65, 0x6f, 0x75, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x20, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x54, 0x79, 0x70, + 0x65, 0x52, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, 0xa8, + 0x03, 0x0a, 0x21, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x46, + 0x61, 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, + 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x10, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x49, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x42, 0x0a, 0x05, + 0x63, 0x61, 0x75, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x46, 0x61, + 0x69, 0x6c, 0x65, 0x64, 0x43, 0x61, 0x75, 0x73, 0x65, 0x52, 0x05, 0x63, 0x61, 0x75, 0x73, 0x65, + 0x12, 0x36, 0x0a, 0x07, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x52, + 0x07, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x74, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x74, 0x79, 0x12, 0x1e, 0x0a, 0x0b, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x72, 0x75, 0x6e, + 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x62, 0x61, 0x73, 0x65, 0x52, + 0x75, 0x6e, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x0a, 0x6e, 0x65, 0x77, 0x5f, 0x72, 0x75, 0x6e, 0x5f, + 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x65, 0x77, 0x52, 0x75, 0x6e, + 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x12, 0x66, 0x6f, 0x72, 0x6b, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, + 0x66, 0x6f, 0x72, 0x6b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x12, 0x27, 0x0a, 0x0f, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, + 0x73, 0x75, 0x6d, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x62, 0x69, 0x6e, 0x61, 0x72, + 0x79, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x22, 0x9d, 0x06, 0x0a, 0x24, 0x41, 0x63, + 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, + 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, + 0x79, 0x49, 0x64, 0x12, 0x46, 0x0a, 0x0d, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x61, + 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x12, 0x3a, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, + 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, + 0x32, 0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x05, 0x69, 0x6e, + 0x70, 0x75, 0x74, 0x12, 0x54, 0x0a, 0x19, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x5f, + 0x74, 0x6f, 0x5f, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x16, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x54, 0x6f, 0x43, 0x6c, 0x6f, + 0x73, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x54, 0x0a, 0x19, 0x73, 0x63, 0x68, + 0x65, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x74, 0x6f, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, + 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x16, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, + 0x65, 0x54, 0x6f, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, + 0x4e, 0x0a, 0x16, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x6f, 0x5f, 0x63, 0x6c, 0x6f, 0x73, + 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x73, 0x74, 0x61, 0x72, + 0x74, 0x54, 0x6f, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, + 0x46, 0x0a, 0x11, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x5f, 0x74, 0x69, 0x6d, + 0x65, 0x6f, 0x75, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, + 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x46, 0x0a, 0x20, 0x64, 0x65, 0x63, 0x69, 0x73, + 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, + 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x1c, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x43, + 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, + 0x43, 0x0a, 0x0c, 0x72, 0x65, 0x74, 0x72, 0x79, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, + 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x74, 0x72, + 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x0b, 0x72, 0x65, 0x74, 0x72, 0x79, 0x50, 0x6f, + 0x6c, 0x69, 0x63, 0x79, 0x12, 0x33, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x0d, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x22, 0xe8, 0x01, 0x0a, 0x22, 0x41, 0x63, + 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, + 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, + 0x12, 0x2c, 0x0a, 0x12, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x5f, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x73, 0x63, + 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1a, + 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x74, 0x74, + 0x65, 0x6d, 0x70, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x61, 0x74, 0x74, 0x65, + 0x6d, 0x70, 0x74, 0x12, 0x3f, 0x0a, 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x66, 0x61, 0x69, 0x6c, + 0x75, 0x72, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x52, 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x46, 0x61, 0x69, + 0x6c, 0x75, 0x72, 0x65, 0x22, 0xd0, 0x01, 0x0a, 0x24, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, + 0x79, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x34, 0x0a, + 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x06, 0x72, 0x65, 0x73, + 0x75, 0x6c, 0x74, 0x12, 0x2c, 0x0a, 0x12, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, + 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x10, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, + 0x64, 0x12, 0x28, 0x0a, 0x10, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x73, 0x74, 0x61, + 0x72, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x69, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0xcf, 0x01, 0x0a, 0x21, 0x41, 0x63, 0x74, 0x69, + 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x36, 0x0a, + 0x07, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x52, 0x07, 0x66, 0x61, + 0x69, 0x6c, 0x75, 0x72, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, + 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x10, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x73, + 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, + 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0xbb, 0x02, 0x0a, 0x23, 0x41, 0x63, + 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x64, 0x4f, + 0x75, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x73, 0x12, 0x36, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, + 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x73, 0x63, 0x68, + 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x0e, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, + 0x64, 0x12, 0x43, 0x0a, 0x0c, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x6f, + 0x75, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3f, 0x0a, 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x66, + 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x76, 0x31, 0x2e, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x52, 0x0b, 0x6c, 0x61, 0x73, 0x74, + 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x22, 0x95, 0x01, 0x0a, 0x2a, 0x41, 0x63, 0x74, 0x69, + 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, + 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x63, 0x74, + 0x69, 0x76, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x46, 0x0a, 0x20, 0x64, 0x65, 0x63, 0x69, 0x73, + 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, + 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x1c, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x43, + 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, + 0xaf, 0x01, 0x0a, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x61, 0x6e, 0x63, 0x65, + 0x6c, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x46, 0x61, 0x69, + 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, + 0x79, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x61, 0x75, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x63, 0x61, 0x75, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x20, 0x64, 0x65, 0x63, + 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, + 0x65, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x1c, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, + 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, + 0x64, 0x22, 0x99, 0x02, 0x0a, 0x23, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, + 0x73, 0x6b, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x07, 0x64, 0x65, 0x74, + 0x61, 0x69, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, + 0x73, 0x12, 0x46, 0x0a, 0x20, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x63, 0x61, 0x6e, 0x63, + 0x65, 0x6c, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x1c, 0x6c, 0x61, 0x74, + 0x65, 0x73, 0x74, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x12, 0x73, 0x63, 0x68, + 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x0e, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, + 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0xce, 0x01, + 0x0a, 0x1b, 0x54, 0x69, 0x6d, 0x65, 0x72, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x19, 0x0a, + 0x08, 0x74, 0x69, 0x6d, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x74, 0x69, 0x6d, 0x65, 0x72, 0x49, 0x64, 0x12, 0x4c, 0x0a, 0x15, 0x73, 0x74, 0x61, 0x72, + 0x74, 0x5f, 0x74, 0x6f, 0x5f, 0x66, 0x69, 0x72, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, + 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x12, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x6f, 0x46, 0x69, 0x72, 0x65, 0x54, + 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x46, 0x0a, 0x20, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, + 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, + 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x1c, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, + 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x60, + 0x0a, 0x19, 0x54, 0x69, 0x6d, 0x65, 0x72, 0x46, 0x69, 0x72, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x74, + 0x69, 0x6d, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, + 0x69, 0x6d, 0x65, 0x72, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, + 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x0e, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, + 0x22, 0xc7, 0x01, 0x0a, 0x1c, 0x54, 0x69, 0x6d, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, + 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x73, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x69, 0x6d, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x72, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x10, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x46, 0x0a, 0x20, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, + 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, + 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x1c, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, + 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1a, + 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0xb7, 0x01, 0x0a, 0x20, 0x43, + 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x72, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, + 0x19, 0x0a, 0x08, 0x74, 0x69, 0x6d, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x61, + 0x75, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x63, 0x61, 0x75, 0x73, 0x65, + 0x12, 0x46, 0x0a, 0x20, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x73, + 0x6b, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, + 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x1c, 0x64, 0x65, 0x63, 0x69, + 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, + 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x74, 0x79, 0x22, 0xfd, 0x07, 0x0a, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, + 0x75, 0x65, 0x64, 0x41, 0x73, 0x4e, 0x65, 0x77, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x2f, 0x0a, 0x14, 0x6e, 0x65, 0x77, 0x5f, 0x65, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x6e, 0x65, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x46, 0x0a, 0x0d, 0x77, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x21, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x79, + 0x70, 0x65, 0x52, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x3a, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, + 0x73, 0x74, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x05, + 0x69, 0x6e, 0x70, 0x75, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, + 0x12, 0x61, 0x0a, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x5f, 0x74, 0x6f, 0x5f, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x5f, 0x74, 0x69, 0x6d, + 0x65, 0x6f, 0x75, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x1c, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x6f, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x54, 0x69, 0x6d, 0x65, + 0x6f, 0x75, 0x74, 0x12, 0x57, 0x0a, 0x1b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x74, 0x61, 0x72, + 0x74, 0x5f, 0x74, 0x6f, 0x5f, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, + 0x75, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x17, 0x74, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x6f, + 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x46, 0x0a, 0x20, + 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x63, 0x6f, + 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x1c, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x49, 0x64, 0x12, 0x4f, 0x0a, 0x16, 0x62, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x5f, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x08, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x14, 0x62, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x53, 0x74, 0x61, 0x72, 0x74, 0x49, 0x6e, 0x74, + 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x49, 0x0a, 0x09, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, + 0x6f, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, + 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x41, 0x73, 0x4e, 0x65, 0x77, 0x49, 0x6e, 0x69, 0x74, + 0x69, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x09, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x6f, 0x72, + 0x12, 0x36, 0x0a, 0x07, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x52, + 0x07, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x12, 0x52, 0x0a, 0x16, 0x6c, 0x61, 0x73, 0x74, + 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x75, + 0x6c, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, + 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x14, 0x6c, 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x70, + 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x33, 0x0a, 0x06, + 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x12, 0x2d, 0x0a, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x6d, 0x6f, 0x52, 0x04, 0x6d, 0x65, 0x6d, 0x6f, + 0x12, 0x52, 0x0a, 0x11, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x52, 0x10, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x22, 0x8a, 0x02, 0x0a, 0x2f, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x61, 0x75, 0x73, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x63, 0x61, 0x75, 0x73, 0x65, 0x12, 0x3d, + 0x0a, 0x1b, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x69, 0x74, 0x69, + 0x61, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x18, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x49, 0x6e, 0x69, + 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x66, 0x0a, + 0x1b, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x19, 0x65, 0x78, 0x74, 0x65, + 0x72, 0x6e, 0x61, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, + 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, + 0x79, 0x22, 0xaa, 0x01, 0x0a, 0x28, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x65, 0x64, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x46, + 0x0a, 0x20, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, + 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x1c, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, + 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x36, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, + 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, + 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0xf5, + 0x01, 0x0a, 0x1d, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x65, + 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, + 0x12, 0x1f, 0x0a, 0x0b, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x72, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x36, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, + 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x46, 0x0a, 0x20, 0x64, 0x65, 0x63, + 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, + 0x65, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x1c, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, + 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, + 0x64, 0x12, 0x33, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1b, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, + 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x22, 0x9b, 0x01, 0x0a, 0x28, 0x57, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x69, 0x67, 0x6e, + 0x61, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, + 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x32, 0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, + 0x64, 0x52, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x74, 0x79, 0x22, 0x98, 0x01, 0x0a, 0x2a, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, + 0x61, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x07, 0x64, + 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, + 0x69, 0x6c, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, + 0xc1, 0x02, 0x0a, 0x3e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x61, 0x6e, 0x63, 0x65, + 0x6c, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, + 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x12, 0x46, 0x0a, 0x20, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74, + 0x61, 0x73, 0x6b, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x1c, 0x64, 0x65, + 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, + 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, + 0x74, 0x72, 0x6f, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, + 0x72, 0x6f, 0x6c, 0x12, 0x2e, 0x0a, 0x13, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x5f, 0x77, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x11, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4f, + 0x6e, 0x6c, 0x79, 0x22, 0x93, 0x03, 0x0a, 0x3b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, + 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x57, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, + 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x12, 0x55, 0x0a, 0x05, 0x63, 0x61, 0x75, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x3f, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x45, + 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x43, 0x61, + 0x75, 0x73, 0x65, 0x52, 0x05, 0x63, 0x61, 0x75, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x20, 0x64, 0x65, + 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x63, 0x6f, 0x6d, 0x70, + 0x6c, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x1c, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, + 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, + 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x2c, 0x0a, 0x12, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x69, + 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, + 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x22, 0xd6, 0x01, 0x0a, 0x37, 0x45, 0x78, + 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, + 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x10, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x55, 0x0a, 0x12, 0x77, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x8f, 0x03, 0x0a, 0x37, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x45, 0x78, 0x74, + 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x46, + 0x0a, 0x20, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, + 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x1c, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, + 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x55, + 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x69, 0x67, 0x6e, + 0x61, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x32, 0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, + 0x6f, 0x61, 0x64, 0x52, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, + 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x63, 0x6f, 0x6e, + 0x74, 0x72, 0x6f, 0x6c, 0x12, 0x2e, 0x0a, 0x13, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x5f, 0x77, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x11, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x8c, 0x03, 0x0a, 0x34, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x45, + 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x55, 0x0a, + 0x05, 0x63, 0x61, 0x75, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3f, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x76, 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, + 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x43, 0x61, 0x75, 0x73, 0x65, 0x52, 0x05, 0x63, + 0x61, 0x75, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x20, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x5f, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x1c, + 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, + 0x6c, 0x65, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, + 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2c, 0x0a, 0x12, 0x69, + 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, + 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, + 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, + 0x74, 0x72, 0x6f, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, + 0x72, 0x6f, 0x6c, 0x22, 0xe9, 0x01, 0x0a, 0x30, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, + 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x69, 0x6e, 0x69, 0x74, + 0x69, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x55, + 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x22, + 0xcb, 0x01, 0x0a, 0x2d, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x73, 0x12, 0x46, 0x0a, 0x20, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x61, + 0x73, 0x6b, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x1c, 0x64, 0x65, 0x63, + 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, + 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x52, 0x0a, 0x11, 0x73, 0x65, 0x61, + 0x72, 0x63, 0x68, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, + 0x68, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x10, 0x73, 0x65, 0x61, + 0x72, 0x63, 0x68, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x22, 0xa3, 0x08, + 0x0a, 0x33, 0x53, 0x74, 0x61, 0x72, 0x74, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x69, + 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x1f, 0x0a, + 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x49, 0x64, 0x12, 0x46, + 0x0a, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3a, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6c, + 0x69, 0x73, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x4c, 0x69, + 0x73, 0x74, 0x12, 0x32, 0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, + 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x61, 0x0a, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x6f, 0x5f, 0x63, 0x6c, 0x6f, + 0x73, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x1c, 0x65, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x6f, 0x43, 0x6c, 0x6f, + 0x73, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x57, 0x0a, 0x1b, 0x74, 0x61, 0x73, + 0x6b, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x6f, 0x5f, 0x63, 0x6c, 0x6f, 0x73, 0x65, + 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x17, 0x74, 0x61, 0x73, 0x6b, 0x53, + 0x74, 0x61, 0x72, 0x74, 0x54, 0x6f, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6f, + 0x75, 0x74, 0x12, 0x56, 0x0a, 0x13, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6c, 0x6f, + 0x73, 0x65, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x43, 0x6c, 0x6f, 0x73, + 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x11, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x43, + 0x6c, 0x6f, 0x73, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, + 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x63, 0x6f, 0x6e, + 0x74, 0x72, 0x6f, 0x6c, 0x12, 0x46, 0x0a, 0x20, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x5f, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x1c, + 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, + 0x6c, 0x65, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x63, 0x0a, 0x18, + 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x64, 0x5f, 0x72, 0x65, 0x75, 0x73, + 0x65, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x49, 0x64, 0x52, + 0x65, 0x75, 0x73, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x15, 0x77, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x49, 0x64, 0x52, 0x65, 0x75, 0x73, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, + 0x79, 0x12, 0x43, 0x0a, 0x0c, 0x72, 0x65, 0x74, 0x72, 0x79, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, + 0x79, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, + 0x74, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x0b, 0x72, 0x65, 0x74, 0x72, 0x79, + 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x72, 0x6f, 0x6e, 0x5f, 0x73, + 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, + 0x72, 0x6f, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x33, 0x0a, 0x06, 0x68, + 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x12, 0x2d, 0x0a, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x6d, 0x6f, 0x52, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x12, + 0x52, 0x0a, 0x11, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x73, 0x52, 0x10, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x22, 0x91, 0x03, 0x0a, 0x30, 0x53, 0x74, 0x61, 0x72, 0x74, 0x43, 0x68, 0x69, + 0x6c, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x12, 0x1f, 0x0a, 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x49, + 0x64, 0x12, 0x46, 0x0a, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x77, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x12, 0x4c, 0x0a, 0x05, 0x63, 0x61, 0x75, + 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, + 0x68, 0x69, 0x6c, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x43, 0x61, 0x75, 0x73, 0x65, + 0x52, 0x05, 0x63, 0x61, 0x75, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x72, + 0x6f, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, + 0x6c, 0x12, 0x2c, 0x0a, 0x12, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x69, + 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, + 0x46, 0x0a, 0x20, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x73, 0x6b, + 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x1c, 0x64, 0x65, 0x63, 0x69, 0x73, + 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0xc8, 0x02, 0x0a, 0x2c, 0x43, 0x68, 0x69, 0x6c, + 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x46, 0x0a, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, + 0x65, 0x52, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x2c, 0x0a, 0x12, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x69, 0x6e, 0x69, + 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x33, 0x0a, + 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, + 0x65, 0x72, 0x22, 0xf5, 0x02, 0x0a, 0x2e, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, + 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x55, 0x0a, + 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x46, 0x0a, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, + 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2c, 0x0a, 0x12, + 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, + 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, + 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, + 0x61, 0x64, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0xf4, 0x02, 0x0a, 0x2b, 0x43, + 0x68, 0x69, 0x6c, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x46, 0x0a, 0x0d, 0x77, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x21, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, + 0x79, 0x70, 0x65, 0x52, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x69, + 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, + 0x28, 0x0a, 0x10, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x36, 0x0a, 0x07, 0x66, 0x61, 0x69, + 0x6c, 0x75, 0x72, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x52, 0x07, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, + 0x65, 0x22, 0xf6, 0x02, 0x0a, 0x2d, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x61, 0x6e, 0x63, + 0x65, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x55, 0x0a, 0x12, 0x77, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x46, 0x0a, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x77, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x69, 0x6e, + 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, + 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x73, 0x74, 0x61, 0x72, + 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x0e, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x49, 0x64, 0x12, 0x36, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, + 0x64, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0x83, 0x03, 0x0a, 0x2d, 0x43, + 0x68, 0x69, 0x6c, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x64, 0x4f, 0x75, 0x74, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, + 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x46, 0x0a, 0x0d, 0x77, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, + 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x10, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, + 0x64, 0x12, 0x28, 0x0a, 0x10, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x73, 0x74, 0x61, + 0x72, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x43, 0x0a, 0x0c, 0x74, + 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x20, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x54, + 0x79, 0x70, 0x65, 0x52, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x54, 0x79, 0x70, 0x65, + 0x22, 0xc0, 0x02, 0x0a, 0x2f, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x65, 0x72, 0x6d, 0x69, + 0x6e, 0x61, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x55, 0x0a, 0x12, + 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x46, 0x0a, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x77, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x69, + 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, + 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, + 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x73, 0x74, 0x61, + 0x72, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x0e, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x49, 0x64, 0x2a, 0x74, 0x0a, 0x0f, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x46, 0x69, 0x6c, 0x74, + 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, + 0x46, 0x49, 0x4c, 0x54, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, + 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x1f, 0x0a, 0x1b, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x46, + 0x49, 0x4c, 0x54, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x4c, 0x4c, 0x5f, 0x45, + 0x56, 0x45, 0x4e, 0x54, 0x10, 0x01, 0x12, 0x21, 0x0a, 0x1d, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, + 0x46, 0x49, 0x4c, 0x54, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x4c, 0x4f, 0x53, + 0x45, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x10, 0x02, 0x42, 0x56, 0x0a, 0x17, 0x63, 0x6f, 0x6d, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x76, 0x31, 0x42, 0x08, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x62, 0x65, + 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x2e, 0x67, 0x65, 0x6e, 0x2f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x70, 0x69, 0x76, + 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func (this *WorkflowExecutionTerminatedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*WorkflowExecutionTerminatedEventAttributes) - if !ok { - that2, ok := that.(WorkflowExecutionTerminatedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Reason != that1.Reason { - return false - } - if !this.Details.Equal(that1.Details) { - return false - } - if this.Identity != that1.Identity { - return false - } - return true -} -func (this *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) - if !ok { - that2, ok := that.(RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.DecisionTaskCompletedEventId != that1.DecisionTaskCompletedEventId { - return false - } - if this.Domain != that1.Domain { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if !bytes.Equal(this.Control, that1.Control) { - return false - } - if this.ChildWorkflowOnly != that1.ChildWorkflowOnly { - return false - } - return true -} -func (this *RequestCancelExternalWorkflowExecutionFailedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RequestCancelExternalWorkflowExecutionFailedEventAttributes) - if !ok { - that2, ok := that.(RequestCancelExternalWorkflowExecutionFailedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Cause != that1.Cause { - return false - } - if this.DecisionTaskCompletedEventId != that1.DecisionTaskCompletedEventId { - return false - } - if this.Domain != that1.Domain { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if this.InitiatedEventId != that1.InitiatedEventId { - return false - } - if !bytes.Equal(this.Control, that1.Control) { - return false - } - return true -} -func (this *ExternalWorkflowExecutionCancelRequestedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ExternalWorkflowExecutionCancelRequestedEventAttributes) - if !ok { - that2, ok := that.(ExternalWorkflowExecutionCancelRequestedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.InitiatedEventId != that1.InitiatedEventId { - return false - } - if this.Domain != that1.Domain { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - return true -} -func (this *SignalExternalWorkflowExecutionInitiatedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*SignalExternalWorkflowExecutionInitiatedEventAttributes) - if !ok { - that2, ok := that.(SignalExternalWorkflowExecutionInitiatedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.DecisionTaskCompletedEventId != that1.DecisionTaskCompletedEventId { - return false - } - if this.Domain != that1.Domain { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if this.SignalName != that1.SignalName { - return false - } - if !this.Input.Equal(that1.Input) { - return false - } - if !bytes.Equal(this.Control, that1.Control) { - return false - } - if this.ChildWorkflowOnly != that1.ChildWorkflowOnly { - return false - } - return true -} -func (this *SignalExternalWorkflowExecutionFailedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*SignalExternalWorkflowExecutionFailedEventAttributes) - if !ok { - that2, ok := that.(SignalExternalWorkflowExecutionFailedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Cause != that1.Cause { - return false - } - if this.DecisionTaskCompletedEventId != that1.DecisionTaskCompletedEventId { - return false - } - if this.Domain != that1.Domain { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if this.InitiatedEventId != that1.InitiatedEventId { - return false - } - if !bytes.Equal(this.Control, that1.Control) { - return false - } - return true -} -func (this *ExternalWorkflowExecutionSignaledEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ExternalWorkflowExecutionSignaledEventAttributes) - if !ok { - that2, ok := that.(ExternalWorkflowExecutionSignaledEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.InitiatedEventId != that1.InitiatedEventId { - return false - } - if this.Domain != that1.Domain { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if !bytes.Equal(this.Control, that1.Control) { - return false - } - return true -} -func (this *UpsertWorkflowSearchAttributesEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*UpsertWorkflowSearchAttributesEventAttributes) - if !ok { - that2, ok := that.(UpsertWorkflowSearchAttributesEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.DecisionTaskCompletedEventId != that1.DecisionTaskCompletedEventId { - return false - } - if !this.SearchAttributes.Equal(that1.SearchAttributes) { - return false - } - return true -} -func (this *StartChildWorkflowExecutionInitiatedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*StartChildWorkflowExecutionInitiatedEventAttributes) - if !ok { - that2, ok := that.(StartChildWorkflowExecutionInitiatedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if this.WorkflowId != that1.WorkflowId { - return false - } - if !this.WorkflowType.Equal(that1.WorkflowType) { - return false - } - if !this.TaskList.Equal(that1.TaskList) { - return false - } - if !this.Input.Equal(that1.Input) { - return false - } - if this.ExecutionStartToCloseTimeout != nil && that1.ExecutionStartToCloseTimeout != nil { - if *this.ExecutionStartToCloseTimeout != *that1.ExecutionStartToCloseTimeout { - return false - } - } else if this.ExecutionStartToCloseTimeout != nil { - return false - } else if that1.ExecutionStartToCloseTimeout != nil { - return false - } - if this.TaskStartToCloseTimeout != nil && that1.TaskStartToCloseTimeout != nil { - if *this.TaskStartToCloseTimeout != *that1.TaskStartToCloseTimeout { - return false - } - } else if this.TaskStartToCloseTimeout != nil { - return false - } else if that1.TaskStartToCloseTimeout != nil { - return false - } - if this.ParentClosePolicy != that1.ParentClosePolicy { - return false - } - if !bytes.Equal(this.Control, that1.Control) { - return false - } - if this.DecisionTaskCompletedEventId != that1.DecisionTaskCompletedEventId { - return false - } - if this.WorkflowIdReusePolicy != that1.WorkflowIdReusePolicy { - return false - } - if !this.RetryPolicy.Equal(that1.RetryPolicy) { - return false - } - if this.CronSchedule != that1.CronSchedule { - return false - } - if !this.Header.Equal(that1.Header) { - return false - } - if !this.Memo.Equal(that1.Memo) { - return false - } - if !this.SearchAttributes.Equal(that1.SearchAttributes) { - return false - } - return true -} -func (this *StartChildWorkflowExecutionFailedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*StartChildWorkflowExecutionFailedEventAttributes) - if !ok { - that2, ok := that.(StartChildWorkflowExecutionFailedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if this.WorkflowId != that1.WorkflowId { - return false - } - if !this.WorkflowType.Equal(that1.WorkflowType) { - return false - } - if this.Cause != that1.Cause { - return false - } - if !bytes.Equal(this.Control, that1.Control) { - return false - } - if this.InitiatedEventId != that1.InitiatedEventId { - return false - } - if this.DecisionTaskCompletedEventId != that1.DecisionTaskCompletedEventId { - return false - } - return true -} -func (this *ChildWorkflowExecutionStartedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ChildWorkflowExecutionStartedEventAttributes) - if !ok { - that2, ok := that.(ChildWorkflowExecutionStartedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if !this.WorkflowType.Equal(that1.WorkflowType) { - return false - } - if this.InitiatedEventId != that1.InitiatedEventId { - return false - } - if !this.Header.Equal(that1.Header) { - return false - } - return true -} -func (this *ChildWorkflowExecutionCompletedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ChildWorkflowExecutionCompletedEventAttributes) - if !ok { - that2, ok := that.(ChildWorkflowExecutionCompletedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if !this.WorkflowType.Equal(that1.WorkflowType) { - return false - } - if this.InitiatedEventId != that1.InitiatedEventId { - return false - } - if this.StartedEventId != that1.StartedEventId { - return false - } - if !this.Result.Equal(that1.Result) { - return false - } - return true -} -func (this *ChildWorkflowExecutionFailedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ChildWorkflowExecutionFailedEventAttributes) - if !ok { - that2, ok := that.(ChildWorkflowExecutionFailedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if !this.WorkflowType.Equal(that1.WorkflowType) { - return false - } - if this.InitiatedEventId != that1.InitiatedEventId { - return false - } - if this.StartedEventId != that1.StartedEventId { - return false - } - if !this.Failure.Equal(that1.Failure) { - return false - } - return true -} -func (this *ChildWorkflowExecutionCanceledEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ChildWorkflowExecutionCanceledEventAttributes) - if !ok { - that2, ok := that.(ChildWorkflowExecutionCanceledEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if !this.WorkflowType.Equal(that1.WorkflowType) { - return false - } - if this.InitiatedEventId != that1.InitiatedEventId { - return false - } - if this.StartedEventId != that1.StartedEventId { - return false - } - if !this.Details.Equal(that1.Details) { - return false - } - return true -} -func (this *ChildWorkflowExecutionTimedOutEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ChildWorkflowExecutionTimedOutEventAttributes) - if !ok { - that2, ok := that.(ChildWorkflowExecutionTimedOutEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if !this.WorkflowType.Equal(that1.WorkflowType) { - return false - } - if this.InitiatedEventId != that1.InitiatedEventId { - return false - } - if this.StartedEventId != that1.StartedEventId { - return false - } - if this.TimeoutType != that1.TimeoutType { - return false - } - return true -} -func (this *ChildWorkflowExecutionTerminatedEventAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ChildWorkflowExecutionTerminatedEventAttributes) - if !ok { - that2, ok := that.(ChildWorkflowExecutionTerminatedEventAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if !this.WorkflowType.Equal(that1.WorkflowType) { - return false - } - if this.InitiatedEventId != that1.InitiatedEventId { - return false - } - if this.StartedEventId != that1.StartedEventId { - return false - } - return true -} -func (this *History) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&apiv1.History{") - if this.Events != nil { - s = append(s, "Events: "+fmt.Sprintf("%#v", this.Events)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *HistoryEvent) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 50) - s = append(s, "&apiv1.HistoryEvent{") - s = append(s, "EventId: "+fmt.Sprintf("%#v", this.EventId)+",\n") - s = append(s, "EventTime: "+fmt.Sprintf("%#v", this.EventTime)+",\n") - s = append(s, "Version: "+fmt.Sprintf("%#v", this.Version)+",\n") - s = append(s, "TaskId: "+fmt.Sprintf("%#v", this.TaskId)+",\n") - if this.Attributes != nil { - s = append(s, "Attributes: "+fmt.Sprintf("%#v", this.Attributes)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *HistoryEvent_WorkflowExecutionStartedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_WorkflowExecutionStartedEventAttributes{` + - `WorkflowExecutionStartedEventAttributes:` + fmt.Sprintf("%#v", this.WorkflowExecutionStartedEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_WorkflowExecutionCompletedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_WorkflowExecutionCompletedEventAttributes{` + - `WorkflowExecutionCompletedEventAttributes:` + fmt.Sprintf("%#v", this.WorkflowExecutionCompletedEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_WorkflowExecutionFailedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_WorkflowExecutionFailedEventAttributes{` + - `WorkflowExecutionFailedEventAttributes:` + fmt.Sprintf("%#v", this.WorkflowExecutionFailedEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_WorkflowExecutionTimedOutEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_WorkflowExecutionTimedOutEventAttributes{` + - `WorkflowExecutionTimedOutEventAttributes:` + fmt.Sprintf("%#v", this.WorkflowExecutionTimedOutEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_DecisionTaskScheduledEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_DecisionTaskScheduledEventAttributes{` + - `DecisionTaskScheduledEventAttributes:` + fmt.Sprintf("%#v", this.DecisionTaskScheduledEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_DecisionTaskStartedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_DecisionTaskStartedEventAttributes{` + - `DecisionTaskStartedEventAttributes:` + fmt.Sprintf("%#v", this.DecisionTaskStartedEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_DecisionTaskCompletedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_DecisionTaskCompletedEventAttributes{` + - `DecisionTaskCompletedEventAttributes:` + fmt.Sprintf("%#v", this.DecisionTaskCompletedEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_DecisionTaskTimedOutEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_DecisionTaskTimedOutEventAttributes{` + - `DecisionTaskTimedOutEventAttributes:` + fmt.Sprintf("%#v", this.DecisionTaskTimedOutEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_DecisionTaskFailedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_DecisionTaskFailedEventAttributes{` + - `DecisionTaskFailedEventAttributes:` + fmt.Sprintf("%#v", this.DecisionTaskFailedEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_ActivityTaskScheduledEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_ActivityTaskScheduledEventAttributes{` + - `ActivityTaskScheduledEventAttributes:` + fmt.Sprintf("%#v", this.ActivityTaskScheduledEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_ActivityTaskStartedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_ActivityTaskStartedEventAttributes{` + - `ActivityTaskStartedEventAttributes:` + fmt.Sprintf("%#v", this.ActivityTaskStartedEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_ActivityTaskCompletedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_ActivityTaskCompletedEventAttributes{` + - `ActivityTaskCompletedEventAttributes:` + fmt.Sprintf("%#v", this.ActivityTaskCompletedEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_ActivityTaskFailedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_ActivityTaskFailedEventAttributes{` + - `ActivityTaskFailedEventAttributes:` + fmt.Sprintf("%#v", this.ActivityTaskFailedEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_ActivityTaskTimedOutEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_ActivityTaskTimedOutEventAttributes{` + - `ActivityTaskTimedOutEventAttributes:` + fmt.Sprintf("%#v", this.ActivityTaskTimedOutEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_TimerStartedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_TimerStartedEventAttributes{` + - `TimerStartedEventAttributes:` + fmt.Sprintf("%#v", this.TimerStartedEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_TimerFiredEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_TimerFiredEventAttributes{` + - `TimerFiredEventAttributes:` + fmt.Sprintf("%#v", this.TimerFiredEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_ActivityTaskCancelRequestedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_ActivityTaskCancelRequestedEventAttributes{` + - `ActivityTaskCancelRequestedEventAttributes:` + fmt.Sprintf("%#v", this.ActivityTaskCancelRequestedEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_RequestCancelActivityTaskFailedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_RequestCancelActivityTaskFailedEventAttributes{` + - `RequestCancelActivityTaskFailedEventAttributes:` + fmt.Sprintf("%#v", this.RequestCancelActivityTaskFailedEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_ActivityTaskCanceledEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_ActivityTaskCanceledEventAttributes{` + - `ActivityTaskCanceledEventAttributes:` + fmt.Sprintf("%#v", this.ActivityTaskCanceledEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_TimerCanceledEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_TimerCanceledEventAttributes{` + - `TimerCanceledEventAttributes:` + fmt.Sprintf("%#v", this.TimerCanceledEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_CancelTimerFailedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_CancelTimerFailedEventAttributes{` + - `CancelTimerFailedEventAttributes:` + fmt.Sprintf("%#v", this.CancelTimerFailedEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_MarkerRecordedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_MarkerRecordedEventAttributes{` + - `MarkerRecordedEventAttributes:` + fmt.Sprintf("%#v", this.MarkerRecordedEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_WorkflowExecutionSignaledEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_WorkflowExecutionSignaledEventAttributes{` + - `WorkflowExecutionSignaledEventAttributes:` + fmt.Sprintf("%#v", this.WorkflowExecutionSignaledEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_WorkflowExecutionTerminatedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_WorkflowExecutionTerminatedEventAttributes{` + - `WorkflowExecutionTerminatedEventAttributes:` + fmt.Sprintf("%#v", this.WorkflowExecutionTerminatedEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_WorkflowExecutionCancelRequestedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_WorkflowExecutionCancelRequestedEventAttributes{` + - `WorkflowExecutionCancelRequestedEventAttributes:` + fmt.Sprintf("%#v", this.WorkflowExecutionCancelRequestedEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_WorkflowExecutionCanceledEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_WorkflowExecutionCanceledEventAttributes{` + - `WorkflowExecutionCanceledEventAttributes:` + fmt.Sprintf("%#v", this.WorkflowExecutionCanceledEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes{` + - `RequestCancelExternalWorkflowExecutionInitiatedEventAttributes:` + fmt.Sprintf("%#v", this.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes{` + - `RequestCancelExternalWorkflowExecutionFailedEventAttributes:` + fmt.Sprintf("%#v", this.RequestCancelExternalWorkflowExecutionFailedEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes{` + - `ExternalWorkflowExecutionCancelRequestedEventAttributes:` + fmt.Sprintf("%#v", this.ExternalWorkflowExecutionCancelRequestedEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_WorkflowExecutionContinuedAsNewEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_WorkflowExecutionContinuedAsNewEventAttributes{` + - `WorkflowExecutionContinuedAsNewEventAttributes:` + fmt.Sprintf("%#v", this.WorkflowExecutionContinuedAsNewEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_StartChildWorkflowExecutionInitiatedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_StartChildWorkflowExecutionInitiatedEventAttributes{` + - `StartChildWorkflowExecutionInitiatedEventAttributes:` + fmt.Sprintf("%#v", this.StartChildWorkflowExecutionInitiatedEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_StartChildWorkflowExecutionFailedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_StartChildWorkflowExecutionFailedEventAttributes{` + - `StartChildWorkflowExecutionFailedEventAttributes:` + fmt.Sprintf("%#v", this.StartChildWorkflowExecutionFailedEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_ChildWorkflowExecutionStartedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_ChildWorkflowExecutionStartedEventAttributes{` + - `ChildWorkflowExecutionStartedEventAttributes:` + fmt.Sprintf("%#v", this.ChildWorkflowExecutionStartedEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_ChildWorkflowExecutionCompletedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_ChildWorkflowExecutionCompletedEventAttributes{` + - `ChildWorkflowExecutionCompletedEventAttributes:` + fmt.Sprintf("%#v", this.ChildWorkflowExecutionCompletedEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_ChildWorkflowExecutionFailedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_ChildWorkflowExecutionFailedEventAttributes{` + - `ChildWorkflowExecutionFailedEventAttributes:` + fmt.Sprintf("%#v", this.ChildWorkflowExecutionFailedEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_ChildWorkflowExecutionCanceledEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_ChildWorkflowExecutionCanceledEventAttributes{` + - `ChildWorkflowExecutionCanceledEventAttributes:` + fmt.Sprintf("%#v", this.ChildWorkflowExecutionCanceledEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_ChildWorkflowExecutionTimedOutEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_ChildWorkflowExecutionTimedOutEventAttributes{` + - `ChildWorkflowExecutionTimedOutEventAttributes:` + fmt.Sprintf("%#v", this.ChildWorkflowExecutionTimedOutEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_ChildWorkflowExecutionTerminatedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_ChildWorkflowExecutionTerminatedEventAttributes{` + - `ChildWorkflowExecutionTerminatedEventAttributes:` + fmt.Sprintf("%#v", this.ChildWorkflowExecutionTerminatedEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes{` + - `SignalExternalWorkflowExecutionInitiatedEventAttributes:` + fmt.Sprintf("%#v", this.SignalExternalWorkflowExecutionInitiatedEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_SignalExternalWorkflowExecutionFailedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_SignalExternalWorkflowExecutionFailedEventAttributes{` + - `SignalExternalWorkflowExecutionFailedEventAttributes:` + fmt.Sprintf("%#v", this.SignalExternalWorkflowExecutionFailedEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_ExternalWorkflowExecutionSignaledEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_ExternalWorkflowExecutionSignaledEventAttributes{` + - `ExternalWorkflowExecutionSignaledEventAttributes:` + fmt.Sprintf("%#v", this.ExternalWorkflowExecutionSignaledEventAttributes) + `}`}, ", ") - return s -} -func (this *HistoryEvent_UpsertWorkflowSearchAttributesEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.HistoryEvent_UpsertWorkflowSearchAttributesEventAttributes{` + - `UpsertWorkflowSearchAttributesEventAttributes:` + fmt.Sprintf("%#v", this.UpsertWorkflowSearchAttributesEventAttributes) + `}`}, ", ") - return s -} -func (this *WorkflowExecutionStartedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 28) - s = append(s, "&apiv1.WorkflowExecutionStartedEventAttributes{") - if this.WorkflowType != nil { - s = append(s, "WorkflowType: "+fmt.Sprintf("%#v", this.WorkflowType)+",\n") - } - s = append(s, "ParentWorkflowDomain: "+fmt.Sprintf("%#v", this.ParentWorkflowDomain)+",\n") - if this.ParentWorkflowExecution != nil { - s = append(s, "ParentWorkflowExecution: "+fmt.Sprintf("%#v", this.ParentWorkflowExecution)+",\n") - } - s = append(s, "ParentInitiatedEventId: "+fmt.Sprintf("%#v", this.ParentInitiatedEventId)+",\n") - if this.TaskList != nil { - s = append(s, "TaskList: "+fmt.Sprintf("%#v", this.TaskList)+",\n") - } - if this.Input != nil { - s = append(s, "Input: "+fmt.Sprintf("%#v", this.Input)+",\n") - } - s = append(s, "ExecutionStartToCloseTimeout: "+fmt.Sprintf("%#v", this.ExecutionStartToCloseTimeout)+",\n") - s = append(s, "TaskStartToCloseTimeout: "+fmt.Sprintf("%#v", this.TaskStartToCloseTimeout)+",\n") - s = append(s, "ContinuedExecutionRunId: "+fmt.Sprintf("%#v", this.ContinuedExecutionRunId)+",\n") - s = append(s, "Initiator: "+fmt.Sprintf("%#v", this.Initiator)+",\n") - if this.ContinuedFailure != nil { - s = append(s, "ContinuedFailure: "+fmt.Sprintf("%#v", this.ContinuedFailure)+",\n") - } - if this.LastCompletionResult != nil { - s = append(s, "LastCompletionResult: "+fmt.Sprintf("%#v", this.LastCompletionResult)+",\n") - } - s = append(s, "OriginalExecutionRunId: "+fmt.Sprintf("%#v", this.OriginalExecutionRunId)+",\n") - s = append(s, "Identity: "+fmt.Sprintf("%#v", this.Identity)+",\n") - s = append(s, "FirstExecutionRunId: "+fmt.Sprintf("%#v", this.FirstExecutionRunId)+",\n") - if this.RetryPolicy != nil { - s = append(s, "RetryPolicy: "+fmt.Sprintf("%#v", this.RetryPolicy)+",\n") - } - s = append(s, "Attempt: "+fmt.Sprintf("%#v", this.Attempt)+",\n") - s = append(s, "ExpirationTime: "+fmt.Sprintf("%#v", this.ExpirationTime)+",\n") - s = append(s, "CronSchedule: "+fmt.Sprintf("%#v", this.CronSchedule)+",\n") - s = append(s, "FirstDecisionTaskBackoff: "+fmt.Sprintf("%#v", this.FirstDecisionTaskBackoff)+",\n") - if this.Memo != nil { - s = append(s, "Memo: "+fmt.Sprintf("%#v", this.Memo)+",\n") - } - if this.SearchAttributes != nil { - s = append(s, "SearchAttributes: "+fmt.Sprintf("%#v", this.SearchAttributes)+",\n") - } - if this.PrevAutoResetPoints != nil { - s = append(s, "PrevAutoResetPoints: "+fmt.Sprintf("%#v", this.PrevAutoResetPoints)+",\n") - } - if this.Header != nil { - s = append(s, "Header: "+fmt.Sprintf("%#v", this.Header)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *WorkflowExecutionCompletedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.WorkflowExecutionCompletedEventAttributes{") - if this.Result != nil { - s = append(s, "Result: "+fmt.Sprintf("%#v", this.Result)+",\n") - } - s = append(s, "DecisionTaskCompletedEventId: "+fmt.Sprintf("%#v", this.DecisionTaskCompletedEventId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *WorkflowExecutionFailedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.WorkflowExecutionFailedEventAttributes{") - if this.Failure != nil { - s = append(s, "Failure: "+fmt.Sprintf("%#v", this.Failure)+",\n") - } - s = append(s, "DecisionTaskCompletedEventId: "+fmt.Sprintf("%#v", this.DecisionTaskCompletedEventId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *WorkflowExecutionTimedOutEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&apiv1.WorkflowExecutionTimedOutEventAttributes{") - s = append(s, "TimeoutType: "+fmt.Sprintf("%#v", this.TimeoutType)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DecisionTaskScheduledEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&apiv1.DecisionTaskScheduledEventAttributes{") - if this.TaskList != nil { - s = append(s, "TaskList: "+fmt.Sprintf("%#v", this.TaskList)+",\n") - } - s = append(s, "StartToCloseTimeout: "+fmt.Sprintf("%#v", this.StartToCloseTimeout)+",\n") - s = append(s, "Attempt: "+fmt.Sprintf("%#v", this.Attempt)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DecisionTaskStartedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&apiv1.DecisionTaskStartedEventAttributes{") - s = append(s, "ScheduledEventId: "+fmt.Sprintf("%#v", this.ScheduledEventId)+",\n") - s = append(s, "Identity: "+fmt.Sprintf("%#v", this.Identity)+",\n") - s = append(s, "RequestId: "+fmt.Sprintf("%#v", this.RequestId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DecisionTaskCompletedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 9) - s = append(s, "&apiv1.DecisionTaskCompletedEventAttributes{") - s = append(s, "ScheduledEventId: "+fmt.Sprintf("%#v", this.ScheduledEventId)+",\n") - s = append(s, "StartedEventId: "+fmt.Sprintf("%#v", this.StartedEventId)+",\n") - s = append(s, "Identity: "+fmt.Sprintf("%#v", this.Identity)+",\n") - s = append(s, "BinaryChecksum: "+fmt.Sprintf("%#v", this.BinaryChecksum)+",\n") - s = append(s, "ExecutionContext: "+fmt.Sprintf("%#v", this.ExecutionContext)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DecisionTaskTimedOutEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&apiv1.DecisionTaskTimedOutEventAttributes{") - s = append(s, "ScheduledEventId: "+fmt.Sprintf("%#v", this.ScheduledEventId)+",\n") - s = append(s, "StartedEventId: "+fmt.Sprintf("%#v", this.StartedEventId)+",\n") - s = append(s, "TimeoutType: "+fmt.Sprintf("%#v", this.TimeoutType)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DecisionTaskFailedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 13) - s = append(s, "&apiv1.DecisionTaskFailedEventAttributes{") - s = append(s, "ScheduledEventId: "+fmt.Sprintf("%#v", this.ScheduledEventId)+",\n") - s = append(s, "StartedEventId: "+fmt.Sprintf("%#v", this.StartedEventId)+",\n") - s = append(s, "Cause: "+fmt.Sprintf("%#v", this.Cause)+",\n") - if this.Failure != nil { - s = append(s, "Failure: "+fmt.Sprintf("%#v", this.Failure)+",\n") - } - s = append(s, "Identity: "+fmt.Sprintf("%#v", this.Identity)+",\n") - s = append(s, "BaseRunId: "+fmt.Sprintf("%#v", this.BaseRunId)+",\n") - s = append(s, "NewRunId: "+fmt.Sprintf("%#v", this.NewRunId)+",\n") - s = append(s, "ForkEventVersion: "+fmt.Sprintf("%#v", this.ForkEventVersion)+",\n") - s = append(s, "BinaryChecksum: "+fmt.Sprintf("%#v", this.BinaryChecksum)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ActivityTaskScheduledEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 16) - s = append(s, "&apiv1.ActivityTaskScheduledEventAttributes{") - s = append(s, "ActivityId: "+fmt.Sprintf("%#v", this.ActivityId)+",\n") - if this.ActivityType != nil { - s = append(s, "ActivityType: "+fmt.Sprintf("%#v", this.ActivityType)+",\n") - } - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - if this.TaskList != nil { - s = append(s, "TaskList: "+fmt.Sprintf("%#v", this.TaskList)+",\n") - } - if this.Input != nil { - s = append(s, "Input: "+fmt.Sprintf("%#v", this.Input)+",\n") - } - s = append(s, "ScheduleToCloseTimeout: "+fmt.Sprintf("%#v", this.ScheduleToCloseTimeout)+",\n") - s = append(s, "ScheduleToStartTimeout: "+fmt.Sprintf("%#v", this.ScheduleToStartTimeout)+",\n") - s = append(s, "StartToCloseTimeout: "+fmt.Sprintf("%#v", this.StartToCloseTimeout)+",\n") - s = append(s, "HeartbeatTimeout: "+fmt.Sprintf("%#v", this.HeartbeatTimeout)+",\n") - s = append(s, "DecisionTaskCompletedEventId: "+fmt.Sprintf("%#v", this.DecisionTaskCompletedEventId)+",\n") - if this.RetryPolicy != nil { - s = append(s, "RetryPolicy: "+fmt.Sprintf("%#v", this.RetryPolicy)+",\n") - } - if this.Header != nil { - s = append(s, "Header: "+fmt.Sprintf("%#v", this.Header)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ActivityTaskStartedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 9) - s = append(s, "&apiv1.ActivityTaskStartedEventAttributes{") - s = append(s, "ScheduledEventId: "+fmt.Sprintf("%#v", this.ScheduledEventId)+",\n") - s = append(s, "Identity: "+fmt.Sprintf("%#v", this.Identity)+",\n") - s = append(s, "RequestId: "+fmt.Sprintf("%#v", this.RequestId)+",\n") - s = append(s, "Attempt: "+fmt.Sprintf("%#v", this.Attempt)+",\n") - if this.LastFailure != nil { - s = append(s, "LastFailure: "+fmt.Sprintf("%#v", this.LastFailure)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ActivityTaskCompletedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 8) - s = append(s, "&apiv1.ActivityTaskCompletedEventAttributes{") - if this.Result != nil { - s = append(s, "Result: "+fmt.Sprintf("%#v", this.Result)+",\n") - } - s = append(s, "ScheduledEventId: "+fmt.Sprintf("%#v", this.ScheduledEventId)+",\n") - s = append(s, "StartedEventId: "+fmt.Sprintf("%#v", this.StartedEventId)+",\n") - s = append(s, "Identity: "+fmt.Sprintf("%#v", this.Identity)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ActivityTaskFailedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 8) - s = append(s, "&apiv1.ActivityTaskFailedEventAttributes{") - if this.Failure != nil { - s = append(s, "Failure: "+fmt.Sprintf("%#v", this.Failure)+",\n") - } - s = append(s, "ScheduledEventId: "+fmt.Sprintf("%#v", this.ScheduledEventId)+",\n") - s = append(s, "StartedEventId: "+fmt.Sprintf("%#v", this.StartedEventId)+",\n") - s = append(s, "Identity: "+fmt.Sprintf("%#v", this.Identity)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ActivityTaskTimedOutEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 9) - s = append(s, "&apiv1.ActivityTaskTimedOutEventAttributes{") - if this.Details != nil { - s = append(s, "Details: "+fmt.Sprintf("%#v", this.Details)+",\n") - } - s = append(s, "ScheduledEventId: "+fmt.Sprintf("%#v", this.ScheduledEventId)+",\n") - s = append(s, "StartedEventId: "+fmt.Sprintf("%#v", this.StartedEventId)+",\n") - s = append(s, "TimeoutType: "+fmt.Sprintf("%#v", this.TimeoutType)+",\n") - if this.LastFailure != nil { - s = append(s, "LastFailure: "+fmt.Sprintf("%#v", this.LastFailure)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ActivityTaskCancelRequestedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.ActivityTaskCancelRequestedEventAttributes{") - s = append(s, "ActivityId: "+fmt.Sprintf("%#v", this.ActivityId)+",\n") - s = append(s, "DecisionTaskCompletedEventId: "+fmt.Sprintf("%#v", this.DecisionTaskCompletedEventId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RequestCancelActivityTaskFailedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&apiv1.RequestCancelActivityTaskFailedEventAttributes{") - s = append(s, "ActivityId: "+fmt.Sprintf("%#v", this.ActivityId)+",\n") - s = append(s, "Cause: "+fmt.Sprintf("%#v", this.Cause)+",\n") - s = append(s, "DecisionTaskCompletedEventId: "+fmt.Sprintf("%#v", this.DecisionTaskCompletedEventId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ActivityTaskCanceledEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 9) - s = append(s, "&apiv1.ActivityTaskCanceledEventAttributes{") - if this.Details != nil { - s = append(s, "Details: "+fmt.Sprintf("%#v", this.Details)+",\n") - } - s = append(s, "LatestCancelRequestedEventId: "+fmt.Sprintf("%#v", this.LatestCancelRequestedEventId)+",\n") - s = append(s, "ScheduledEventId: "+fmt.Sprintf("%#v", this.ScheduledEventId)+",\n") - s = append(s, "StartedEventId: "+fmt.Sprintf("%#v", this.StartedEventId)+",\n") - s = append(s, "Identity: "+fmt.Sprintf("%#v", this.Identity)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *TimerStartedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&apiv1.TimerStartedEventAttributes{") - s = append(s, "TimerId: "+fmt.Sprintf("%#v", this.TimerId)+",\n") - s = append(s, "StartToFireTimeout: "+fmt.Sprintf("%#v", this.StartToFireTimeout)+",\n") - s = append(s, "DecisionTaskCompletedEventId: "+fmt.Sprintf("%#v", this.DecisionTaskCompletedEventId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *TimerFiredEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.TimerFiredEventAttributes{") - s = append(s, "TimerId: "+fmt.Sprintf("%#v", this.TimerId)+",\n") - s = append(s, "StartedEventId: "+fmt.Sprintf("%#v", this.StartedEventId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *TimerCanceledEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 8) - s = append(s, "&apiv1.TimerCanceledEventAttributes{") - s = append(s, "TimerId: "+fmt.Sprintf("%#v", this.TimerId)+",\n") - s = append(s, "StartedEventId: "+fmt.Sprintf("%#v", this.StartedEventId)+",\n") - s = append(s, "DecisionTaskCompletedEventId: "+fmt.Sprintf("%#v", this.DecisionTaskCompletedEventId)+",\n") - s = append(s, "Identity: "+fmt.Sprintf("%#v", this.Identity)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *CancelTimerFailedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 8) - s = append(s, "&apiv1.CancelTimerFailedEventAttributes{") - s = append(s, "TimerId: "+fmt.Sprintf("%#v", this.TimerId)+",\n") - s = append(s, "Cause: "+fmt.Sprintf("%#v", this.Cause)+",\n") - s = append(s, "DecisionTaskCompletedEventId: "+fmt.Sprintf("%#v", this.DecisionTaskCompletedEventId)+",\n") - s = append(s, "Identity: "+fmt.Sprintf("%#v", this.Identity)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *WorkflowExecutionContinuedAsNewEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 18) - s = append(s, "&apiv1.WorkflowExecutionContinuedAsNewEventAttributes{") - s = append(s, "NewExecutionRunId: "+fmt.Sprintf("%#v", this.NewExecutionRunId)+",\n") - if this.WorkflowType != nil { - s = append(s, "WorkflowType: "+fmt.Sprintf("%#v", this.WorkflowType)+",\n") - } - if this.TaskList != nil { - s = append(s, "TaskList: "+fmt.Sprintf("%#v", this.TaskList)+",\n") - } - if this.Input != nil { - s = append(s, "Input: "+fmt.Sprintf("%#v", this.Input)+",\n") - } - s = append(s, "ExecutionStartToCloseTimeout: "+fmt.Sprintf("%#v", this.ExecutionStartToCloseTimeout)+",\n") - s = append(s, "TaskStartToCloseTimeout: "+fmt.Sprintf("%#v", this.TaskStartToCloseTimeout)+",\n") - s = append(s, "DecisionTaskCompletedEventId: "+fmt.Sprintf("%#v", this.DecisionTaskCompletedEventId)+",\n") - s = append(s, "BackoffStartInterval: "+fmt.Sprintf("%#v", this.BackoffStartInterval)+",\n") - s = append(s, "Initiator: "+fmt.Sprintf("%#v", this.Initiator)+",\n") - if this.Failure != nil { - s = append(s, "Failure: "+fmt.Sprintf("%#v", this.Failure)+",\n") - } - if this.LastCompletionResult != nil { - s = append(s, "LastCompletionResult: "+fmt.Sprintf("%#v", this.LastCompletionResult)+",\n") - } - if this.Header != nil { - s = append(s, "Header: "+fmt.Sprintf("%#v", this.Header)+",\n") - } - if this.Memo != nil { - s = append(s, "Memo: "+fmt.Sprintf("%#v", this.Memo)+",\n") - } - if this.SearchAttributes != nil { - s = append(s, "SearchAttributes: "+fmt.Sprintf("%#v", this.SearchAttributes)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *WorkflowExecutionCancelRequestedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 8) - s = append(s, "&apiv1.WorkflowExecutionCancelRequestedEventAttributes{") - s = append(s, "Cause: "+fmt.Sprintf("%#v", this.Cause)+",\n") - s = append(s, "ExternalInitiatedEventId: "+fmt.Sprintf("%#v", this.ExternalInitiatedEventId)+",\n") - if this.ExternalWorkflowExecution != nil { - s = append(s, "ExternalWorkflowExecution: "+fmt.Sprintf("%#v", this.ExternalWorkflowExecution)+",\n") - } - s = append(s, "Identity: "+fmt.Sprintf("%#v", this.Identity)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *WorkflowExecutionCanceledEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.WorkflowExecutionCanceledEventAttributes{") - s = append(s, "DecisionTaskCompletedEventId: "+fmt.Sprintf("%#v", this.DecisionTaskCompletedEventId)+",\n") - if this.Details != nil { - s = append(s, "Details: "+fmt.Sprintf("%#v", this.Details)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *MarkerRecordedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 8) - s = append(s, "&apiv1.MarkerRecordedEventAttributes{") - s = append(s, "MarkerName: "+fmt.Sprintf("%#v", this.MarkerName)+",\n") - if this.Details != nil { - s = append(s, "Details: "+fmt.Sprintf("%#v", this.Details)+",\n") - } - s = append(s, "DecisionTaskCompletedEventId: "+fmt.Sprintf("%#v", this.DecisionTaskCompletedEventId)+",\n") - if this.Header != nil { - s = append(s, "Header: "+fmt.Sprintf("%#v", this.Header)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *WorkflowExecutionSignaledEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&apiv1.WorkflowExecutionSignaledEventAttributes{") - s = append(s, "SignalName: "+fmt.Sprintf("%#v", this.SignalName)+",\n") - if this.Input != nil { - s = append(s, "Input: "+fmt.Sprintf("%#v", this.Input)+",\n") - } - s = append(s, "Identity: "+fmt.Sprintf("%#v", this.Identity)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *WorkflowExecutionTerminatedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&apiv1.WorkflowExecutionTerminatedEventAttributes{") - s = append(s, "Reason: "+fmt.Sprintf("%#v", this.Reason)+",\n") - if this.Details != nil { - s = append(s, "Details: "+fmt.Sprintf("%#v", this.Details)+",\n") - } - s = append(s, "Identity: "+fmt.Sprintf("%#v", this.Identity)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 9) - s = append(s, "&apiv1.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes{") - s = append(s, "DecisionTaskCompletedEventId: "+fmt.Sprintf("%#v", this.DecisionTaskCompletedEventId)+",\n") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "Control: "+fmt.Sprintf("%#v", this.Control)+",\n") - s = append(s, "ChildWorkflowOnly: "+fmt.Sprintf("%#v", this.ChildWorkflowOnly)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RequestCancelExternalWorkflowExecutionFailedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 10) - s = append(s, "&apiv1.RequestCancelExternalWorkflowExecutionFailedEventAttributes{") - s = append(s, "Cause: "+fmt.Sprintf("%#v", this.Cause)+",\n") - s = append(s, "DecisionTaskCompletedEventId: "+fmt.Sprintf("%#v", this.DecisionTaskCompletedEventId)+",\n") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "InitiatedEventId: "+fmt.Sprintf("%#v", this.InitiatedEventId)+",\n") - s = append(s, "Control: "+fmt.Sprintf("%#v", this.Control)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ExternalWorkflowExecutionCancelRequestedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&apiv1.ExternalWorkflowExecutionCancelRequestedEventAttributes{") - s = append(s, "InitiatedEventId: "+fmt.Sprintf("%#v", this.InitiatedEventId)+",\n") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *SignalExternalWorkflowExecutionInitiatedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 11) - s = append(s, "&apiv1.SignalExternalWorkflowExecutionInitiatedEventAttributes{") - s = append(s, "DecisionTaskCompletedEventId: "+fmt.Sprintf("%#v", this.DecisionTaskCompletedEventId)+",\n") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "SignalName: "+fmt.Sprintf("%#v", this.SignalName)+",\n") - if this.Input != nil { - s = append(s, "Input: "+fmt.Sprintf("%#v", this.Input)+",\n") - } - s = append(s, "Control: "+fmt.Sprintf("%#v", this.Control)+",\n") - s = append(s, "ChildWorkflowOnly: "+fmt.Sprintf("%#v", this.ChildWorkflowOnly)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *SignalExternalWorkflowExecutionFailedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 10) - s = append(s, "&apiv1.SignalExternalWorkflowExecutionFailedEventAttributes{") - s = append(s, "Cause: "+fmt.Sprintf("%#v", this.Cause)+",\n") - s = append(s, "DecisionTaskCompletedEventId: "+fmt.Sprintf("%#v", this.DecisionTaskCompletedEventId)+",\n") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "InitiatedEventId: "+fmt.Sprintf("%#v", this.InitiatedEventId)+",\n") - s = append(s, "Control: "+fmt.Sprintf("%#v", this.Control)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ExternalWorkflowExecutionSignaledEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 8) - s = append(s, "&apiv1.ExternalWorkflowExecutionSignaledEventAttributes{") - s = append(s, "InitiatedEventId: "+fmt.Sprintf("%#v", this.InitiatedEventId)+",\n") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "Control: "+fmt.Sprintf("%#v", this.Control)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *UpsertWorkflowSearchAttributesEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.UpsertWorkflowSearchAttributesEventAttributes{") - s = append(s, "DecisionTaskCompletedEventId: "+fmt.Sprintf("%#v", this.DecisionTaskCompletedEventId)+",\n") - if this.SearchAttributes != nil { - s = append(s, "SearchAttributes: "+fmt.Sprintf("%#v", this.SearchAttributes)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *StartChildWorkflowExecutionInitiatedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 20) - s = append(s, "&apiv1.StartChildWorkflowExecutionInitiatedEventAttributes{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - s = append(s, "WorkflowId: "+fmt.Sprintf("%#v", this.WorkflowId)+",\n") - if this.WorkflowType != nil { - s = append(s, "WorkflowType: "+fmt.Sprintf("%#v", this.WorkflowType)+",\n") - } - if this.TaskList != nil { - s = append(s, "TaskList: "+fmt.Sprintf("%#v", this.TaskList)+",\n") - } - if this.Input != nil { - s = append(s, "Input: "+fmt.Sprintf("%#v", this.Input)+",\n") - } - s = append(s, "ExecutionStartToCloseTimeout: "+fmt.Sprintf("%#v", this.ExecutionStartToCloseTimeout)+",\n") - s = append(s, "TaskStartToCloseTimeout: "+fmt.Sprintf("%#v", this.TaskStartToCloseTimeout)+",\n") - s = append(s, "ParentClosePolicy: "+fmt.Sprintf("%#v", this.ParentClosePolicy)+",\n") - s = append(s, "Control: "+fmt.Sprintf("%#v", this.Control)+",\n") - s = append(s, "DecisionTaskCompletedEventId: "+fmt.Sprintf("%#v", this.DecisionTaskCompletedEventId)+",\n") - s = append(s, "WorkflowIdReusePolicy: "+fmt.Sprintf("%#v", this.WorkflowIdReusePolicy)+",\n") - if this.RetryPolicy != nil { - s = append(s, "RetryPolicy: "+fmt.Sprintf("%#v", this.RetryPolicy)+",\n") - } - s = append(s, "CronSchedule: "+fmt.Sprintf("%#v", this.CronSchedule)+",\n") - if this.Header != nil { - s = append(s, "Header: "+fmt.Sprintf("%#v", this.Header)+",\n") - } - if this.Memo != nil { - s = append(s, "Memo: "+fmt.Sprintf("%#v", this.Memo)+",\n") - } - if this.SearchAttributes != nil { - s = append(s, "SearchAttributes: "+fmt.Sprintf("%#v", this.SearchAttributes)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *StartChildWorkflowExecutionFailedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 11) - s = append(s, "&apiv1.StartChildWorkflowExecutionFailedEventAttributes{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - s = append(s, "WorkflowId: "+fmt.Sprintf("%#v", this.WorkflowId)+",\n") - if this.WorkflowType != nil { - s = append(s, "WorkflowType: "+fmt.Sprintf("%#v", this.WorkflowType)+",\n") - } - s = append(s, "Cause: "+fmt.Sprintf("%#v", this.Cause)+",\n") - s = append(s, "Control: "+fmt.Sprintf("%#v", this.Control)+",\n") - s = append(s, "InitiatedEventId: "+fmt.Sprintf("%#v", this.InitiatedEventId)+",\n") - s = append(s, "DecisionTaskCompletedEventId: "+fmt.Sprintf("%#v", this.DecisionTaskCompletedEventId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ChildWorkflowExecutionStartedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 9) - s = append(s, "&apiv1.ChildWorkflowExecutionStartedEventAttributes{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - if this.WorkflowType != nil { - s = append(s, "WorkflowType: "+fmt.Sprintf("%#v", this.WorkflowType)+",\n") - } - s = append(s, "InitiatedEventId: "+fmt.Sprintf("%#v", this.InitiatedEventId)+",\n") - if this.Header != nil { - s = append(s, "Header: "+fmt.Sprintf("%#v", this.Header)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ChildWorkflowExecutionCompletedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 10) - s = append(s, "&apiv1.ChildWorkflowExecutionCompletedEventAttributes{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - if this.WorkflowType != nil { - s = append(s, "WorkflowType: "+fmt.Sprintf("%#v", this.WorkflowType)+",\n") - } - s = append(s, "InitiatedEventId: "+fmt.Sprintf("%#v", this.InitiatedEventId)+",\n") - s = append(s, "StartedEventId: "+fmt.Sprintf("%#v", this.StartedEventId)+",\n") - if this.Result != nil { - s = append(s, "Result: "+fmt.Sprintf("%#v", this.Result)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ChildWorkflowExecutionFailedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 10) - s = append(s, "&apiv1.ChildWorkflowExecutionFailedEventAttributes{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - if this.WorkflowType != nil { - s = append(s, "WorkflowType: "+fmt.Sprintf("%#v", this.WorkflowType)+",\n") - } - s = append(s, "InitiatedEventId: "+fmt.Sprintf("%#v", this.InitiatedEventId)+",\n") - s = append(s, "StartedEventId: "+fmt.Sprintf("%#v", this.StartedEventId)+",\n") - if this.Failure != nil { - s = append(s, "Failure: "+fmt.Sprintf("%#v", this.Failure)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ChildWorkflowExecutionCanceledEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 10) - s = append(s, "&apiv1.ChildWorkflowExecutionCanceledEventAttributes{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - if this.WorkflowType != nil { - s = append(s, "WorkflowType: "+fmt.Sprintf("%#v", this.WorkflowType)+",\n") - } - s = append(s, "InitiatedEventId: "+fmt.Sprintf("%#v", this.InitiatedEventId)+",\n") - s = append(s, "StartedEventId: "+fmt.Sprintf("%#v", this.StartedEventId)+",\n") - if this.Details != nil { - s = append(s, "Details: "+fmt.Sprintf("%#v", this.Details)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ChildWorkflowExecutionTimedOutEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 10) - s = append(s, "&apiv1.ChildWorkflowExecutionTimedOutEventAttributes{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - if this.WorkflowType != nil { - s = append(s, "WorkflowType: "+fmt.Sprintf("%#v", this.WorkflowType)+",\n") - } - s = append(s, "InitiatedEventId: "+fmt.Sprintf("%#v", this.InitiatedEventId)+",\n") - s = append(s, "StartedEventId: "+fmt.Sprintf("%#v", this.StartedEventId)+",\n") - s = append(s, "TimeoutType: "+fmt.Sprintf("%#v", this.TimeoutType)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ChildWorkflowExecutionTerminatedEventAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 9) - s = append(s, "&apiv1.ChildWorkflowExecutionTerminatedEventAttributes{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - if this.WorkflowType != nil { - s = append(s, "WorkflowType: "+fmt.Sprintf("%#v", this.WorkflowType)+",\n") - } - s = append(s, "InitiatedEventId: "+fmt.Sprintf("%#v", this.InitiatedEventId)+",\n") - s = append(s, "StartedEventId: "+fmt.Sprintf("%#v", this.StartedEventId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func valueToGoStringHistory(v interface{}, typ string) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) -} -func (m *History) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *History) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *History) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Events) > 0 { - for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Events[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *HistoryEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *HistoryEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Attributes != nil { - { - size := m.Attributes.Size() - i -= size - if _, err := m.Attributes.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - if m.TaskId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.TaskId)) - i-- - dAtA[i] = 0x20 - } - if m.Version != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.Version)) - i-- - dAtA[i] = 0x18 - } - if m.EventTime != nil { - n1, err1 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.EventTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.EventTime):]) - if err1 != nil { - return 0, err1 - } - i -= n1 - i = encodeVarintHistory(dAtA, i, uint64(n1)) - i-- - dAtA[i] = 0x12 - } - if m.EventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.EventId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *HistoryEvent_WorkflowExecutionStartedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_WorkflowExecutionStartedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.WorkflowExecutionStartedEventAttributes != nil { - { - size, err := m.WorkflowExecutionStartedEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_WorkflowExecutionCompletedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_WorkflowExecutionCompletedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.WorkflowExecutionCompletedEventAttributes != nil { - { - size, err := m.WorkflowExecutionCompletedEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_WorkflowExecutionFailedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_WorkflowExecutionFailedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.WorkflowExecutionFailedEventAttributes != nil { - { - size, err := m.WorkflowExecutionFailedEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_WorkflowExecutionTimedOutEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_WorkflowExecutionTimedOutEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.WorkflowExecutionTimedOutEventAttributes != nil { - { - size, err := m.WorkflowExecutionTimedOutEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_DecisionTaskScheduledEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_DecisionTaskScheduledEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.DecisionTaskScheduledEventAttributes != nil { - { - size, err := m.DecisionTaskScheduledEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_DecisionTaskStartedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_DecisionTaskStartedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.DecisionTaskStartedEventAttributes != nil { - { - size, err := m.DecisionTaskStartedEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_DecisionTaskCompletedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_DecisionTaskCompletedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.DecisionTaskCompletedEventAttributes != nil { - { - size, err := m.DecisionTaskCompletedEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_DecisionTaskTimedOutEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_DecisionTaskTimedOutEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.DecisionTaskTimedOutEventAttributes != nil { - { - size, err := m.DecisionTaskTimedOutEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x62 - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_DecisionTaskFailedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_DecisionTaskFailedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.DecisionTaskFailedEventAttributes != nil { - { - size, err := m.DecisionTaskFailedEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_ActivityTaskScheduledEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_ActivityTaskScheduledEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ActivityTaskScheduledEventAttributes != nil { - { - size, err := m.ActivityTaskScheduledEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x72 - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_ActivityTaskStartedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_ActivityTaskStartedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ActivityTaskStartedEventAttributes != nil { - { - size, err := m.ActivityTaskStartedEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x7a - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_ActivityTaskCompletedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_ActivityTaskCompletedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ActivityTaskCompletedEventAttributes != nil { - { - size, err := m.ActivityTaskCompletedEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_ActivityTaskFailedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_ActivityTaskFailedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ActivityTaskFailedEventAttributes != nil { - { - size, err := m.ActivityTaskFailedEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x8a - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_ActivityTaskTimedOutEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_ActivityTaskTimedOutEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ActivityTaskTimedOutEventAttributes != nil { - { - size, err := m.ActivityTaskTimedOutEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x92 - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_TimerStartedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_TimerStartedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.TimerStartedEventAttributes != nil { - { - size, err := m.TimerStartedEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x9a - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_TimerFiredEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_TimerFiredEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.TimerFiredEventAttributes != nil { - { - size, err := m.TimerFiredEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xa2 - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_ActivityTaskCancelRequestedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_ActivityTaskCancelRequestedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ActivityTaskCancelRequestedEventAttributes != nil { - { - size, err := m.ActivityTaskCancelRequestedEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xaa - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_RequestCancelActivityTaskFailedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_RequestCancelActivityTaskFailedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.RequestCancelActivityTaskFailedEventAttributes != nil { - { - size, err := m.RequestCancelActivityTaskFailedEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xb2 - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_ActivityTaskCanceledEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_ActivityTaskCanceledEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ActivityTaskCanceledEventAttributes != nil { - { - size, err := m.ActivityTaskCanceledEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xba - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_TimerCanceledEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_TimerCanceledEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.TimerCanceledEventAttributes != nil { - { - size, err := m.TimerCanceledEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xc2 - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_CancelTimerFailedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_CancelTimerFailedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.CancelTimerFailedEventAttributes != nil { - { - size, err := m.CancelTimerFailedEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xca - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_MarkerRecordedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_MarkerRecordedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.MarkerRecordedEventAttributes != nil { - { - size, err := m.MarkerRecordedEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xd2 - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_WorkflowExecutionSignaledEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_WorkflowExecutionSignaledEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.WorkflowExecutionSignaledEventAttributes != nil { - { - size, err := m.WorkflowExecutionSignaledEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xda - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_WorkflowExecutionTerminatedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_WorkflowExecutionTerminatedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.WorkflowExecutionTerminatedEventAttributes != nil { - { - size, err := m.WorkflowExecutionTerminatedEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xe2 - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_WorkflowExecutionCancelRequestedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_WorkflowExecutionCancelRequestedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.WorkflowExecutionCancelRequestedEventAttributes != nil { - { - size, err := m.WorkflowExecutionCancelRequestedEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xea - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_WorkflowExecutionCanceledEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_WorkflowExecutionCanceledEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.WorkflowExecutionCanceledEventAttributes != nil { - { - size, err := m.WorkflowExecutionCanceledEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xf2 - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes != nil { - { - size, err := m.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xfa - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.RequestCancelExternalWorkflowExecutionFailedEventAttributes != nil { - { - size, err := m.RequestCancelExternalWorkflowExecutionFailedEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2 - i-- - dAtA[i] = 0x82 - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ExternalWorkflowExecutionCancelRequestedEventAttributes != nil { - { - size, err := m.ExternalWorkflowExecutionCancelRequestedEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2 - i-- - dAtA[i] = 0x8a - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_WorkflowExecutionContinuedAsNewEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_WorkflowExecutionContinuedAsNewEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.WorkflowExecutionContinuedAsNewEventAttributes != nil { - { - size, err := m.WorkflowExecutionContinuedAsNewEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2 - i-- - dAtA[i] = 0x92 - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_StartChildWorkflowExecutionInitiatedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_StartChildWorkflowExecutionInitiatedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.StartChildWorkflowExecutionInitiatedEventAttributes != nil { - { - size, err := m.StartChildWorkflowExecutionInitiatedEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2 - i-- - dAtA[i] = 0x9a - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_StartChildWorkflowExecutionFailedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_StartChildWorkflowExecutionFailedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.StartChildWorkflowExecutionFailedEventAttributes != nil { - { - size, err := m.StartChildWorkflowExecutionFailedEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2 - i-- - dAtA[i] = 0xa2 - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_ChildWorkflowExecutionStartedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_ChildWorkflowExecutionStartedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ChildWorkflowExecutionStartedEventAttributes != nil { - { - size, err := m.ChildWorkflowExecutionStartedEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2 - i-- - dAtA[i] = 0xaa - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_ChildWorkflowExecutionCompletedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_ChildWorkflowExecutionCompletedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ChildWorkflowExecutionCompletedEventAttributes != nil { - { - size, err := m.ChildWorkflowExecutionCompletedEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2 - i-- - dAtA[i] = 0xb2 - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_ChildWorkflowExecutionFailedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_ChildWorkflowExecutionFailedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ChildWorkflowExecutionFailedEventAttributes != nil { - { - size, err := m.ChildWorkflowExecutionFailedEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2 - i-- - dAtA[i] = 0xba - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_ChildWorkflowExecutionCanceledEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_ChildWorkflowExecutionCanceledEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ChildWorkflowExecutionCanceledEventAttributes != nil { - { - size, err := m.ChildWorkflowExecutionCanceledEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2 - i-- - dAtA[i] = 0xc2 - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_ChildWorkflowExecutionTimedOutEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_ChildWorkflowExecutionTimedOutEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ChildWorkflowExecutionTimedOutEventAttributes != nil { - { - size, err := m.ChildWorkflowExecutionTimedOutEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2 - i-- - dAtA[i] = 0xca - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_ChildWorkflowExecutionTerminatedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_ChildWorkflowExecutionTerminatedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ChildWorkflowExecutionTerminatedEventAttributes != nil { - { - size, err := m.ChildWorkflowExecutionTerminatedEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2 - i-- - dAtA[i] = 0xd2 - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.SignalExternalWorkflowExecutionInitiatedEventAttributes != nil { - { - size, err := m.SignalExternalWorkflowExecutionInitiatedEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2 - i-- - dAtA[i] = 0xda - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_SignalExternalWorkflowExecutionFailedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_SignalExternalWorkflowExecutionFailedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.SignalExternalWorkflowExecutionFailedEventAttributes != nil { - { - size, err := m.SignalExternalWorkflowExecutionFailedEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2 - i-- - dAtA[i] = 0xe2 - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_ExternalWorkflowExecutionSignaledEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_ExternalWorkflowExecutionSignaledEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ExternalWorkflowExecutionSignaledEventAttributes != nil { - { - size, err := m.ExternalWorkflowExecutionSignaledEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2 - i-- - dAtA[i] = 0xea - } - return len(dAtA) - i, nil -} -func (m *HistoryEvent_UpsertWorkflowSearchAttributesEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryEvent_UpsertWorkflowSearchAttributesEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.UpsertWorkflowSearchAttributesEventAttributes != nil { - { - size, err := m.UpsertWorkflowSearchAttributesEventAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2 - i-- - dAtA[i] = 0xf2 - } - return len(dAtA) - i, nil -} -func (m *WorkflowExecutionStartedEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WorkflowExecutionStartedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WorkflowExecutionStartedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xca - } - if m.PrevAutoResetPoints != nil { - { - size, err := m.PrevAutoResetPoints.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xc2 - } - if m.SearchAttributes != nil { - { - size, err := m.SearchAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xba - } - if m.Memo != nil { - { - size, err := m.Memo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xb2 - } - if m.FirstDecisionTaskBackoff != nil { - n48, err48 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.FirstDecisionTaskBackoff, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.FirstDecisionTaskBackoff):]) - if err48 != nil { - return 0, err48 - } - i -= n48 - i = encodeVarintHistory(dAtA, i, uint64(n48)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xaa - } - if len(m.CronSchedule) > 0 { - i -= len(m.CronSchedule) - copy(dAtA[i:], m.CronSchedule) - i = encodeVarintHistory(dAtA, i, uint64(len(m.CronSchedule))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xa2 - } - if m.ExpirationTime != nil { - n49, err49 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.ExpirationTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.ExpirationTime):]) - if err49 != nil { - return 0, err49 - } - i -= n49 - i = encodeVarintHistory(dAtA, i, uint64(n49)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x9a - } - if m.Attempt != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.Attempt)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x88 - } - if m.RetryPolicy != nil { - { - size, err := m.RetryPolicy.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 - } - if len(m.FirstExecutionRunId) > 0 { - i -= len(m.FirstExecutionRunId) - copy(dAtA[i:], m.FirstExecutionRunId) - i = encodeVarintHistory(dAtA, i, uint64(len(m.FirstExecutionRunId))) - i-- - dAtA[i] = 0x7a - } - if len(m.Identity) > 0 { - i -= len(m.Identity) - copy(dAtA[i:], m.Identity) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Identity))) - i-- - dAtA[i] = 0x72 - } - if len(m.OriginalExecutionRunId) > 0 { - i -= len(m.OriginalExecutionRunId) - copy(dAtA[i:], m.OriginalExecutionRunId) - i = encodeVarintHistory(dAtA, i, uint64(len(m.OriginalExecutionRunId))) - i-- - dAtA[i] = 0x6a - } - if m.LastCompletionResult != nil { - { - size, err := m.LastCompletionResult.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x62 - } - if m.ContinuedFailure != nil { - { - size, err := m.ContinuedFailure.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - } - if m.Initiator != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.Initiator)) - i-- - dAtA[i] = 0x50 - } - if len(m.ContinuedExecutionRunId) > 0 { - i -= len(m.ContinuedExecutionRunId) - copy(dAtA[i:], m.ContinuedExecutionRunId) - i = encodeVarintHistory(dAtA, i, uint64(len(m.ContinuedExecutionRunId))) - i-- - dAtA[i] = 0x4a - } - if m.TaskStartToCloseTimeout != nil { - n53, err53 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.TaskStartToCloseTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.TaskStartToCloseTimeout):]) - if err53 != nil { - return 0, err53 - } - i -= n53 - i = encodeVarintHistory(dAtA, i, uint64(n53)) - i-- - dAtA[i] = 0x42 - } - if m.ExecutionStartToCloseTimeout != nil { - n54, err54 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.ExecutionStartToCloseTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ExecutionStartToCloseTimeout):]) - if err54 != nil { - return 0, err54 - } - i -= n54 - i = encodeVarintHistory(dAtA, i, uint64(n54)) - i-- - dAtA[i] = 0x3a - } - if m.Input != nil { - { - size, err := m.Input.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if m.TaskList != nil { - { - size, err := m.TaskList.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.ParentInitiatedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.ParentInitiatedEventId)) - i-- - dAtA[i] = 0x20 - } - if m.ParentWorkflowExecution != nil { - { - size, err := m.ParentWorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.ParentWorkflowDomain) > 0 { - i -= len(m.ParentWorkflowDomain) - copy(dAtA[i:], m.ParentWorkflowDomain) - i = encodeVarintHistory(dAtA, i, uint64(len(m.ParentWorkflowDomain))) - i-- - dAtA[i] = 0x12 - } - if m.WorkflowType != nil { - { - size, err := m.WorkflowType.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *WorkflowExecutionCompletedEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WorkflowExecutionCompletedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WorkflowExecutionCompletedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.DecisionTaskCompletedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.DecisionTaskCompletedEventId)) - i-- - dAtA[i] = 0x10 - } - if m.Result != nil { - { - size, err := m.Result.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *WorkflowExecutionFailedEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WorkflowExecutionFailedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WorkflowExecutionFailedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.DecisionTaskCompletedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.DecisionTaskCompletedEventId)) - i-- - dAtA[i] = 0x10 - } - if m.Failure != nil { - { - size, err := m.Failure.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *WorkflowExecutionTimedOutEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WorkflowExecutionTimedOutEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WorkflowExecutionTimedOutEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.TimeoutType != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.TimeoutType)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *DecisionTaskScheduledEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DecisionTaskScheduledEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DecisionTaskScheduledEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Attempt != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.Attempt)) - i-- - dAtA[i] = 0x18 - } - if m.StartToCloseTimeout != nil { - n61, err61 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.StartToCloseTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.StartToCloseTimeout):]) - if err61 != nil { - return 0, err61 - } - i -= n61 - i = encodeVarintHistory(dAtA, i, uint64(n61)) - i-- - dAtA[i] = 0x12 - } - if m.TaskList != nil { - { - size, err := m.TaskList.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DecisionTaskStartedEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DecisionTaskStartedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DecisionTaskStartedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RequestId) > 0 { - i -= len(m.RequestId) - copy(dAtA[i:], m.RequestId) - i = encodeVarintHistory(dAtA, i, uint64(len(m.RequestId))) - i-- - dAtA[i] = 0x1a - } - if len(m.Identity) > 0 { - i -= len(m.Identity) - copy(dAtA[i:], m.Identity) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Identity))) - i-- - dAtA[i] = 0x12 - } - if m.ScheduledEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.ScheduledEventId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *DecisionTaskCompletedEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DecisionTaskCompletedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DecisionTaskCompletedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ExecutionContext) > 0 { - i -= len(m.ExecutionContext) - copy(dAtA[i:], m.ExecutionContext) - i = encodeVarintHistory(dAtA, i, uint64(len(m.ExecutionContext))) - i-- - dAtA[i] = 0x2a - } - if len(m.BinaryChecksum) > 0 { - i -= len(m.BinaryChecksum) - copy(dAtA[i:], m.BinaryChecksum) - i = encodeVarintHistory(dAtA, i, uint64(len(m.BinaryChecksum))) - i-- - dAtA[i] = 0x22 - } - if len(m.Identity) > 0 { - i -= len(m.Identity) - copy(dAtA[i:], m.Identity) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Identity))) - i-- - dAtA[i] = 0x1a - } - if m.StartedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.StartedEventId)) - i-- - dAtA[i] = 0x10 - } - if m.ScheduledEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.ScheduledEventId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *DecisionTaskTimedOutEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DecisionTaskTimedOutEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DecisionTaskTimedOutEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.TimeoutType != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.TimeoutType)) - i-- - dAtA[i] = 0x18 - } - if m.StartedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.StartedEventId)) - i-- - dAtA[i] = 0x10 - } - if m.ScheduledEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.ScheduledEventId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *DecisionTaskFailedEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DecisionTaskFailedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DecisionTaskFailedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.BinaryChecksum) > 0 { - i -= len(m.BinaryChecksum) - copy(dAtA[i:], m.BinaryChecksum) - i = encodeVarintHistory(dAtA, i, uint64(len(m.BinaryChecksum))) - i-- - dAtA[i] = 0x4a - } - if m.ForkEventVersion != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.ForkEventVersion)) - i-- - dAtA[i] = 0x40 - } - if len(m.NewRunId) > 0 { - i -= len(m.NewRunId) - copy(dAtA[i:], m.NewRunId) - i = encodeVarintHistory(dAtA, i, uint64(len(m.NewRunId))) - i-- - dAtA[i] = 0x3a - } - if len(m.BaseRunId) > 0 { - i -= len(m.BaseRunId) - copy(dAtA[i:], m.BaseRunId) - i = encodeVarintHistory(dAtA, i, uint64(len(m.BaseRunId))) - i-- - dAtA[i] = 0x32 - } - if len(m.Identity) > 0 { - i -= len(m.Identity) - copy(dAtA[i:], m.Identity) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Identity))) - i-- - dAtA[i] = 0x2a - } - if m.Failure != nil { - { - size, err := m.Failure.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.Cause != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.Cause)) - i-- - dAtA[i] = 0x18 - } - if m.StartedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.StartedEventId)) - i-- - dAtA[i] = 0x10 - } - if m.ScheduledEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.ScheduledEventId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ActivityTaskScheduledEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ActivityTaskScheduledEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ActivityTaskScheduledEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a - } - if m.RetryPolicy != nil { - { - size, err := m.RetryPolicy.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x62 - } - if m.DecisionTaskCompletedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.DecisionTaskCompletedEventId)) - i-- - dAtA[i] = 0x58 - } - if m.HeartbeatTimeout != nil { - n66, err66 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.HeartbeatTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.HeartbeatTimeout):]) - if err66 != nil { - return 0, err66 - } - i -= n66 - i = encodeVarintHistory(dAtA, i, uint64(n66)) - i-- - dAtA[i] = 0x52 - } - if m.StartToCloseTimeout != nil { - n67, err67 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.StartToCloseTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.StartToCloseTimeout):]) - if err67 != nil { - return 0, err67 - } - i -= n67 - i = encodeVarintHistory(dAtA, i, uint64(n67)) - i-- - dAtA[i] = 0x4a - } - if m.ScheduleToStartTimeout != nil { - n68, err68 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.ScheduleToStartTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ScheduleToStartTimeout):]) - if err68 != nil { - return 0, err68 - } - i -= n68 - i = encodeVarintHistory(dAtA, i, uint64(n68)) - i-- - dAtA[i] = 0x42 - } - if m.ScheduleToCloseTimeout != nil { - n69, err69 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.ScheduleToCloseTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ScheduleToCloseTimeout):]) - if err69 != nil { - return 0, err69 - } - i -= n69 - i = encodeVarintHistory(dAtA, i, uint64(n69)) - i-- - dAtA[i] = 0x3a - } - if m.Input != nil { - { - size, err := m.Input.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if m.TaskList != nil { - { - size, err := m.TaskList.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0x1a - } - if m.ActivityType != nil { - { - size, err := m.ActivityType.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.ActivityId) > 0 { - i -= len(m.ActivityId) - copy(dAtA[i:], m.ActivityId) - i = encodeVarintHistory(dAtA, i, uint64(len(m.ActivityId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ActivityTaskStartedEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ActivityTaskStartedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ActivityTaskStartedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.LastFailure != nil { - { - size, err := m.LastFailure.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.Attempt != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.Attempt)) - i-- - dAtA[i] = 0x20 - } - if len(m.RequestId) > 0 { - i -= len(m.RequestId) - copy(dAtA[i:], m.RequestId) - i = encodeVarintHistory(dAtA, i, uint64(len(m.RequestId))) - i-- - dAtA[i] = 0x1a - } - if len(m.Identity) > 0 { - i -= len(m.Identity) - copy(dAtA[i:], m.Identity) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Identity))) - i-- - dAtA[i] = 0x12 - } - if m.ScheduledEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.ScheduledEventId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ActivityTaskCompletedEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ActivityTaskCompletedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ActivityTaskCompletedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Identity) > 0 { - i -= len(m.Identity) - copy(dAtA[i:], m.Identity) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Identity))) - i-- - dAtA[i] = 0x22 - } - if m.StartedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.StartedEventId)) - i-- - dAtA[i] = 0x18 - } - if m.ScheduledEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.ScheduledEventId)) - i-- - dAtA[i] = 0x10 - } - if m.Result != nil { - { - size, err := m.Result.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ActivityTaskFailedEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ActivityTaskFailedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ActivityTaskFailedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Identity) > 0 { - i -= len(m.Identity) - copy(dAtA[i:], m.Identity) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Identity))) - i-- - dAtA[i] = 0x22 - } - if m.StartedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.StartedEventId)) - i-- - dAtA[i] = 0x18 - } - if m.ScheduledEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.ScheduledEventId)) - i-- - dAtA[i] = 0x10 - } - if m.Failure != nil { - { - size, err := m.Failure.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ActivityTaskTimedOutEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ActivityTaskTimedOutEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ActivityTaskTimedOutEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.LastFailure != nil { - { - size, err := m.LastFailure.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.TimeoutType != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.TimeoutType)) - i-- - dAtA[i] = 0x20 - } - if m.StartedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.StartedEventId)) - i-- - dAtA[i] = 0x18 - } - if m.ScheduledEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.ScheduledEventId)) - i-- - dAtA[i] = 0x10 - } - if m.Details != nil { - { - size, err := m.Details.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ActivityTaskCancelRequestedEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ActivityTaskCancelRequestedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ActivityTaskCancelRequestedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.DecisionTaskCompletedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.DecisionTaskCompletedEventId)) - i-- - dAtA[i] = 0x10 - } - if len(m.ActivityId) > 0 { - i -= len(m.ActivityId) - copy(dAtA[i:], m.ActivityId) - i = encodeVarintHistory(dAtA, i, uint64(len(m.ActivityId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RequestCancelActivityTaskFailedEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RequestCancelActivityTaskFailedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RequestCancelActivityTaskFailedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.DecisionTaskCompletedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.DecisionTaskCompletedEventId)) - i-- - dAtA[i] = 0x18 - } - if len(m.Cause) > 0 { - i -= len(m.Cause) - copy(dAtA[i:], m.Cause) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Cause))) - i-- - dAtA[i] = 0x12 - } - if len(m.ActivityId) > 0 { - i -= len(m.ActivityId) - copy(dAtA[i:], m.ActivityId) - i = encodeVarintHistory(dAtA, i, uint64(len(m.ActivityId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ActivityTaskCanceledEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ActivityTaskCanceledEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ActivityTaskCanceledEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Identity) > 0 { - i -= len(m.Identity) - copy(dAtA[i:], m.Identity) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Identity))) - i-- - dAtA[i] = 0x2a - } - if m.StartedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.StartedEventId)) - i-- - dAtA[i] = 0x20 - } - if m.ScheduledEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.ScheduledEventId)) - i-- - dAtA[i] = 0x18 - } - if m.LatestCancelRequestedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.LatestCancelRequestedEventId)) - i-- - dAtA[i] = 0x10 - } - if m.Details != nil { - { - size, err := m.Details.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *TimerStartedEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TimerStartedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TimerStartedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.DecisionTaskCompletedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.DecisionTaskCompletedEventId)) - i-- - dAtA[i] = 0x18 - } - if m.StartToFireTimeout != nil { - n79, err79 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.StartToFireTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.StartToFireTimeout):]) - if err79 != nil { - return 0, err79 - } - i -= n79 - i = encodeVarintHistory(dAtA, i, uint64(n79)) - i-- - dAtA[i] = 0x12 - } - if len(m.TimerId) > 0 { - i -= len(m.TimerId) - copy(dAtA[i:], m.TimerId) - i = encodeVarintHistory(dAtA, i, uint64(len(m.TimerId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *TimerFiredEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TimerFiredEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TimerFiredEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.StartedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.StartedEventId)) - i-- - dAtA[i] = 0x10 - } - if len(m.TimerId) > 0 { - i -= len(m.TimerId) - copy(dAtA[i:], m.TimerId) - i = encodeVarintHistory(dAtA, i, uint64(len(m.TimerId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *TimerCanceledEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TimerCanceledEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TimerCanceledEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Identity) > 0 { - i -= len(m.Identity) - copy(dAtA[i:], m.Identity) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Identity))) - i-- - dAtA[i] = 0x22 - } - if m.DecisionTaskCompletedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.DecisionTaskCompletedEventId)) - i-- - dAtA[i] = 0x18 - } - if m.StartedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.StartedEventId)) - i-- - dAtA[i] = 0x10 - } - if len(m.TimerId) > 0 { - i -= len(m.TimerId) - copy(dAtA[i:], m.TimerId) - i = encodeVarintHistory(dAtA, i, uint64(len(m.TimerId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *CancelTimerFailedEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CancelTimerFailedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CancelTimerFailedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Identity) > 0 { - i -= len(m.Identity) - copy(dAtA[i:], m.Identity) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Identity))) - i-- - dAtA[i] = 0x22 - } - if m.DecisionTaskCompletedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.DecisionTaskCompletedEventId)) - i-- - dAtA[i] = 0x18 - } - if len(m.Cause) > 0 { - i -= len(m.Cause) - copy(dAtA[i:], m.Cause) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Cause))) - i-- - dAtA[i] = 0x12 - } - if len(m.TimerId) > 0 { - i -= len(m.TimerId) - copy(dAtA[i:], m.TimerId) - i = encodeVarintHistory(dAtA, i, uint64(len(m.TimerId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *WorkflowExecutionContinuedAsNewEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WorkflowExecutionContinuedAsNewEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WorkflowExecutionContinuedAsNewEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.SearchAttributes != nil { - { - size, err := m.SearchAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x72 - } - if m.Memo != nil { - { - size, err := m.Memo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a - } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x62 - } - if m.LastCompletionResult != nil { - { - size, err := m.LastCompletionResult.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - } - if m.Failure != nil { - { - size, err := m.Failure.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - } - if m.Initiator != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.Initiator)) - i-- - dAtA[i] = 0x48 - } - if m.BackoffStartInterval != nil { - n85, err85 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.BackoffStartInterval, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.BackoffStartInterval):]) - if err85 != nil { - return 0, err85 - } - i -= n85 - i = encodeVarintHistory(dAtA, i, uint64(n85)) - i-- - dAtA[i] = 0x42 - } - if m.DecisionTaskCompletedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.DecisionTaskCompletedEventId)) - i-- - dAtA[i] = 0x38 - } - if m.TaskStartToCloseTimeout != nil { - n86, err86 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.TaskStartToCloseTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.TaskStartToCloseTimeout):]) - if err86 != nil { - return 0, err86 - } - i -= n86 - i = encodeVarintHistory(dAtA, i, uint64(n86)) - i-- - dAtA[i] = 0x32 - } - if m.ExecutionStartToCloseTimeout != nil { - n87, err87 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.ExecutionStartToCloseTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ExecutionStartToCloseTimeout):]) - if err87 != nil { - return 0, err87 - } - i -= n87 - i = encodeVarintHistory(dAtA, i, uint64(n87)) - i-- - dAtA[i] = 0x2a - } - if m.Input != nil { - { - size, err := m.Input.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.TaskList != nil { - { - size, err := m.TaskList.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.WorkflowType != nil { - { - size, err := m.WorkflowType.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.NewExecutionRunId) > 0 { - i -= len(m.NewExecutionRunId) - copy(dAtA[i:], m.NewExecutionRunId) - i = encodeVarintHistory(dAtA, i, uint64(len(m.NewExecutionRunId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *WorkflowExecutionCancelRequestedEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WorkflowExecutionCancelRequestedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WorkflowExecutionCancelRequestedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Identity) > 0 { - i -= len(m.Identity) - copy(dAtA[i:], m.Identity) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Identity))) - i-- - dAtA[i] = 0x22 - } - if m.ExternalWorkflowExecution != nil { - { - size, err := m.ExternalWorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.ExternalInitiatedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.ExternalInitiatedEventId)) - i-- - dAtA[i] = 0x10 - } - if len(m.Cause) > 0 { - i -= len(m.Cause) - copy(dAtA[i:], m.Cause) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Cause))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *WorkflowExecutionCanceledEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WorkflowExecutionCanceledEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WorkflowExecutionCanceledEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Details != nil { - { - size, err := m.Details.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.DecisionTaskCompletedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.DecisionTaskCompletedEventId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *MarkerRecordedEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MarkerRecordedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MarkerRecordedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.DecisionTaskCompletedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.DecisionTaskCompletedEventId)) - i-- - dAtA[i] = 0x18 - } - if m.Details != nil { - { - size, err := m.Details.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.MarkerName) > 0 { - i -= len(m.MarkerName) - copy(dAtA[i:], m.MarkerName) - i = encodeVarintHistory(dAtA, i, uint64(len(m.MarkerName))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *WorkflowExecutionSignaledEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WorkflowExecutionSignaledEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WorkflowExecutionSignaledEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Identity) > 0 { - i -= len(m.Identity) - copy(dAtA[i:], m.Identity) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Identity))) - i-- - dAtA[i] = 0x1a - } - if m.Input != nil { - { - size, err := m.Input.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.SignalName) > 0 { - i -= len(m.SignalName) - copy(dAtA[i:], m.SignalName) - i = encodeVarintHistory(dAtA, i, uint64(len(m.SignalName))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *WorkflowExecutionTerminatedEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WorkflowExecutionTerminatedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WorkflowExecutionTerminatedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Identity) > 0 { - i -= len(m.Identity) - copy(dAtA[i:], m.Identity) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Identity))) - i-- - dAtA[i] = 0x1a - } - if m.Details != nil { - { - size, err := m.Details.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Reason) > 0 { - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ChildWorkflowOnly { - i-- - if m.ChildWorkflowOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 - } - if len(m.Control) > 0 { - i -= len(m.Control) - copy(dAtA[i:], m.Control) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Control))) - i-- - dAtA[i] = 0x22 - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0x12 - } - if m.DecisionTaskCompletedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.DecisionTaskCompletedEventId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *RequestCancelExternalWorkflowExecutionFailedEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RequestCancelExternalWorkflowExecutionFailedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RequestCancelExternalWorkflowExecutionFailedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Control) > 0 { - i -= len(m.Control) - copy(dAtA[i:], m.Control) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Control))) - i-- - dAtA[i] = 0x32 - } - if m.InitiatedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.InitiatedEventId)) - i-- - dAtA[i] = 0x28 - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0x1a - } - if m.DecisionTaskCompletedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.DecisionTaskCompletedEventId)) - i-- - dAtA[i] = 0x10 - } - if m.Cause != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.Cause)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ExternalWorkflowExecutionCancelRequestedEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ExternalWorkflowExecutionCancelRequestedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ExternalWorkflowExecutionCancelRequestedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0x12 - } - if m.InitiatedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.InitiatedEventId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *SignalExternalWorkflowExecutionInitiatedEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SignalExternalWorkflowExecutionInitiatedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SignalExternalWorkflowExecutionInitiatedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ChildWorkflowOnly { - i-- - if m.ChildWorkflowOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x38 - } - if len(m.Control) > 0 { - i -= len(m.Control) - copy(dAtA[i:], m.Control) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Control))) - i-- - dAtA[i] = 0x32 - } - if m.Input != nil { - { - size, err := m.Input.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if len(m.SignalName) > 0 { - i -= len(m.SignalName) - copy(dAtA[i:], m.SignalName) - i = encodeVarintHistory(dAtA, i, uint64(len(m.SignalName))) - i-- - dAtA[i] = 0x22 - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0x12 - } - if m.DecisionTaskCompletedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.DecisionTaskCompletedEventId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *SignalExternalWorkflowExecutionFailedEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SignalExternalWorkflowExecutionFailedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SignalExternalWorkflowExecutionFailedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Control) > 0 { - i -= len(m.Control) - copy(dAtA[i:], m.Control) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Control))) - i-- - dAtA[i] = 0x32 - } - if m.InitiatedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.InitiatedEventId)) - i-- - dAtA[i] = 0x28 - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0x1a - } - if m.DecisionTaskCompletedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.DecisionTaskCompletedEventId)) - i-- - dAtA[i] = 0x10 - } - if m.Cause != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.Cause)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ExternalWorkflowExecutionSignaledEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ExternalWorkflowExecutionSignaledEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ExternalWorkflowExecutionSignaledEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Control) > 0 { - i -= len(m.Control) - copy(dAtA[i:], m.Control) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Control))) - i-- - dAtA[i] = 0x22 - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0x12 - } - if m.InitiatedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.InitiatedEventId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *UpsertWorkflowSearchAttributesEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *UpsertWorkflowSearchAttributesEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpsertWorkflowSearchAttributesEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.SearchAttributes != nil { - { - size, err := m.SearchAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.DecisionTaskCompletedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.DecisionTaskCompletedEventId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *StartChildWorkflowExecutionInitiatedEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StartChildWorkflowExecutionInitiatedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StartChildWorkflowExecutionInitiatedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.SearchAttributes != nil { - { - size, err := m.SearchAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x8a - } - if m.Memo != nil { - { - size, err := m.Memo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 - } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x7a - } - if len(m.CronSchedule) > 0 { - i -= len(m.CronSchedule) - copy(dAtA[i:], m.CronSchedule) - i = encodeVarintHistory(dAtA, i, uint64(len(m.CronSchedule))) - i-- - dAtA[i] = 0x72 - } - if m.RetryPolicy != nil { - { - size, err := m.RetryPolicy.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a - } - if m.WorkflowIdReusePolicy != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.WorkflowIdReusePolicy)) - i-- - dAtA[i] = 0x58 - } - if m.DecisionTaskCompletedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.DecisionTaskCompletedEventId)) - i-- - dAtA[i] = 0x50 - } - if len(m.Control) > 0 { - i -= len(m.Control) - copy(dAtA[i:], m.Control) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Control))) - i-- - dAtA[i] = 0x4a - } - if m.ParentClosePolicy != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.ParentClosePolicy)) - i-- - dAtA[i] = 0x40 - } - if m.TaskStartToCloseTimeout != nil { - n109, err109 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.TaskStartToCloseTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.TaskStartToCloseTimeout):]) - if err109 != nil { - return 0, err109 - } - i -= n109 - i = encodeVarintHistory(dAtA, i, uint64(n109)) - i-- - dAtA[i] = 0x3a - } - if m.ExecutionStartToCloseTimeout != nil { - n110, err110 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.ExecutionStartToCloseTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ExecutionStartToCloseTimeout):]) - if err110 != nil { - return 0, err110 - } - i -= n110 - i = encodeVarintHistory(dAtA, i, uint64(n110)) - i-- - dAtA[i] = 0x32 - } - if m.Input != nil { - { - size, err := m.Input.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.TaskList != nil { - { - size, err := m.TaskList.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.WorkflowType != nil { - { - size, err := m.WorkflowType.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.WorkflowId) > 0 { - i -= len(m.WorkflowId) - copy(dAtA[i:], m.WorkflowId) - i = encodeVarintHistory(dAtA, i, uint64(len(m.WorkflowId))) - i-- - dAtA[i] = 0x12 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *StartChildWorkflowExecutionFailedEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StartChildWorkflowExecutionFailedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StartChildWorkflowExecutionFailedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.DecisionTaskCompletedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.DecisionTaskCompletedEventId)) - i-- - dAtA[i] = 0x38 - } - if m.InitiatedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.InitiatedEventId)) - i-- - dAtA[i] = 0x30 - } - if len(m.Control) > 0 { - i -= len(m.Control) - copy(dAtA[i:], m.Control) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Control))) - i-- - dAtA[i] = 0x2a - } - if m.Cause != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.Cause)) - i-- - dAtA[i] = 0x20 - } - if m.WorkflowType != nil { - { - size, err := m.WorkflowType.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.WorkflowId) > 0 { - i -= len(m.WorkflowId) - copy(dAtA[i:], m.WorkflowId) - i = encodeVarintHistory(dAtA, i, uint64(len(m.WorkflowId))) - i-- - dAtA[i] = 0x12 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ChildWorkflowExecutionStartedEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ChildWorkflowExecutionStartedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ChildWorkflowExecutionStartedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.InitiatedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.InitiatedEventId)) - i-- - dAtA[i] = 0x20 - } - if m.WorkflowType != nil { - { - size, err := m.WorkflowType.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ChildWorkflowExecutionCompletedEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ChildWorkflowExecutionCompletedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ChildWorkflowExecutionCompletedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Result != nil { - { - size, err := m.Result.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if m.StartedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.StartedEventId)) - i-- - dAtA[i] = 0x28 - } - if m.InitiatedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.InitiatedEventId)) - i-- - dAtA[i] = 0x20 - } - if m.WorkflowType != nil { - { - size, err := m.WorkflowType.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ChildWorkflowExecutionFailedEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ChildWorkflowExecutionFailedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ChildWorkflowExecutionFailedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Failure != nil { - { - size, err := m.Failure.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if m.StartedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.StartedEventId)) - i-- - dAtA[i] = 0x28 - } - if m.InitiatedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.InitiatedEventId)) - i-- - dAtA[i] = 0x20 - } - if m.WorkflowType != nil { - { - size, err := m.WorkflowType.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ChildWorkflowExecutionCanceledEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ChildWorkflowExecutionCanceledEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ChildWorkflowExecutionCanceledEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Details != nil { - { - size, err := m.Details.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if m.StartedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.StartedEventId)) - i-- - dAtA[i] = 0x28 - } - if m.InitiatedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.InitiatedEventId)) - i-- - dAtA[i] = 0x20 - } - if m.WorkflowType != nil { - { - size, err := m.WorkflowType.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ChildWorkflowExecutionTimedOutEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ChildWorkflowExecutionTimedOutEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ChildWorkflowExecutionTimedOutEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.TimeoutType != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.TimeoutType)) - i-- - dAtA[i] = 0x30 - } - if m.StartedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.StartedEventId)) - i-- - dAtA[i] = 0x28 - } - if m.InitiatedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.InitiatedEventId)) - i-- - dAtA[i] = 0x20 - } - if m.WorkflowType != nil { - { - size, err := m.WorkflowType.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ChildWorkflowExecutionTerminatedEventAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ChildWorkflowExecutionTerminatedEventAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ChildWorkflowExecutionTerminatedEventAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.StartedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.StartedEventId)) - i-- - dAtA[i] = 0x28 - } - if m.InitiatedEventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.InitiatedEventId)) - i-- - dAtA[i] = 0x20 - } - if m.WorkflowType != nil { - { - size, err := m.WorkflowType.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintHistory(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintHistory(dAtA []byte, offset int, v uint64) int { - offset -= sovHistory(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *History) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Events) > 0 { - for _, e := range m.Events { - l = e.Size() - n += 1 + l + sovHistory(uint64(l)) - } - } - return n -} - -func (m *HistoryEvent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.EventId != 0 { - n += 1 + sovHistory(uint64(m.EventId)) - } - if m.EventTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.EventTime) - n += 1 + l + sovHistory(uint64(l)) - } - if m.Version != 0 { - n += 1 + sovHistory(uint64(m.Version)) - } - if m.TaskId != 0 { - n += 1 + sovHistory(uint64(m.TaskId)) - } - if m.Attributes != nil { - n += m.Attributes.Size() - } - return n -} - -func (m *HistoryEvent_WorkflowExecutionStartedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.WorkflowExecutionStartedEventAttributes != nil { - l = m.WorkflowExecutionStartedEventAttributes.Size() - n += 1 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_WorkflowExecutionCompletedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.WorkflowExecutionCompletedEventAttributes != nil { - l = m.WorkflowExecutionCompletedEventAttributes.Size() - n += 1 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_WorkflowExecutionFailedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.WorkflowExecutionFailedEventAttributes != nil { - l = m.WorkflowExecutionFailedEventAttributes.Size() - n += 1 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_WorkflowExecutionTimedOutEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.WorkflowExecutionTimedOutEventAttributes != nil { - l = m.WorkflowExecutionTimedOutEventAttributes.Size() - n += 1 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_DecisionTaskScheduledEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.DecisionTaskScheduledEventAttributes != nil { - l = m.DecisionTaskScheduledEventAttributes.Size() - n += 1 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_DecisionTaskStartedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.DecisionTaskStartedEventAttributes != nil { - l = m.DecisionTaskStartedEventAttributes.Size() - n += 1 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_DecisionTaskCompletedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.DecisionTaskCompletedEventAttributes != nil { - l = m.DecisionTaskCompletedEventAttributes.Size() - n += 1 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_DecisionTaskTimedOutEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.DecisionTaskTimedOutEventAttributes != nil { - l = m.DecisionTaskTimedOutEventAttributes.Size() - n += 1 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_DecisionTaskFailedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.DecisionTaskFailedEventAttributes != nil { - l = m.DecisionTaskFailedEventAttributes.Size() - n += 1 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_ActivityTaskScheduledEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ActivityTaskScheduledEventAttributes != nil { - l = m.ActivityTaskScheduledEventAttributes.Size() - n += 1 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_ActivityTaskStartedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ActivityTaskStartedEventAttributes != nil { - l = m.ActivityTaskStartedEventAttributes.Size() - n += 1 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_ActivityTaskCompletedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ActivityTaskCompletedEventAttributes != nil { - l = m.ActivityTaskCompletedEventAttributes.Size() - n += 2 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_ActivityTaskFailedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ActivityTaskFailedEventAttributes != nil { - l = m.ActivityTaskFailedEventAttributes.Size() - n += 2 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_ActivityTaskTimedOutEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ActivityTaskTimedOutEventAttributes != nil { - l = m.ActivityTaskTimedOutEventAttributes.Size() - n += 2 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_TimerStartedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.TimerStartedEventAttributes != nil { - l = m.TimerStartedEventAttributes.Size() - n += 2 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_TimerFiredEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.TimerFiredEventAttributes != nil { - l = m.TimerFiredEventAttributes.Size() - n += 2 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_ActivityTaskCancelRequestedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ActivityTaskCancelRequestedEventAttributes != nil { - l = m.ActivityTaskCancelRequestedEventAttributes.Size() - n += 2 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_RequestCancelActivityTaskFailedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.RequestCancelActivityTaskFailedEventAttributes != nil { - l = m.RequestCancelActivityTaskFailedEventAttributes.Size() - n += 2 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_ActivityTaskCanceledEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ActivityTaskCanceledEventAttributes != nil { - l = m.ActivityTaskCanceledEventAttributes.Size() - n += 2 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_TimerCanceledEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.TimerCanceledEventAttributes != nil { - l = m.TimerCanceledEventAttributes.Size() - n += 2 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_CancelTimerFailedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.CancelTimerFailedEventAttributes != nil { - l = m.CancelTimerFailedEventAttributes.Size() - n += 2 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_MarkerRecordedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.MarkerRecordedEventAttributes != nil { - l = m.MarkerRecordedEventAttributes.Size() - n += 2 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_WorkflowExecutionSignaledEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.WorkflowExecutionSignaledEventAttributes != nil { - l = m.WorkflowExecutionSignaledEventAttributes.Size() - n += 2 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_WorkflowExecutionTerminatedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.WorkflowExecutionTerminatedEventAttributes != nil { - l = m.WorkflowExecutionTerminatedEventAttributes.Size() - n += 2 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_WorkflowExecutionCancelRequestedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.WorkflowExecutionCancelRequestedEventAttributes != nil { - l = m.WorkflowExecutionCancelRequestedEventAttributes.Size() - n += 2 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_WorkflowExecutionCanceledEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.WorkflowExecutionCanceledEventAttributes != nil { - l = m.WorkflowExecutionCanceledEventAttributes.Size() - n += 2 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes != nil { - l = m.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.Size() - n += 2 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.RequestCancelExternalWorkflowExecutionFailedEventAttributes != nil { - l = m.RequestCancelExternalWorkflowExecutionFailedEventAttributes.Size() - n += 2 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ExternalWorkflowExecutionCancelRequestedEventAttributes != nil { - l = m.ExternalWorkflowExecutionCancelRequestedEventAttributes.Size() - n += 2 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_WorkflowExecutionContinuedAsNewEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.WorkflowExecutionContinuedAsNewEventAttributes != nil { - l = m.WorkflowExecutionContinuedAsNewEventAttributes.Size() - n += 2 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_StartChildWorkflowExecutionInitiatedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.StartChildWorkflowExecutionInitiatedEventAttributes != nil { - l = m.StartChildWorkflowExecutionInitiatedEventAttributes.Size() - n += 2 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_StartChildWorkflowExecutionFailedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.StartChildWorkflowExecutionFailedEventAttributes != nil { - l = m.StartChildWorkflowExecutionFailedEventAttributes.Size() - n += 2 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_ChildWorkflowExecutionStartedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ChildWorkflowExecutionStartedEventAttributes != nil { - l = m.ChildWorkflowExecutionStartedEventAttributes.Size() - n += 2 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_ChildWorkflowExecutionCompletedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ChildWorkflowExecutionCompletedEventAttributes != nil { - l = m.ChildWorkflowExecutionCompletedEventAttributes.Size() - n += 2 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_ChildWorkflowExecutionFailedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ChildWorkflowExecutionFailedEventAttributes != nil { - l = m.ChildWorkflowExecutionFailedEventAttributes.Size() - n += 2 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_ChildWorkflowExecutionCanceledEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ChildWorkflowExecutionCanceledEventAttributes != nil { - l = m.ChildWorkflowExecutionCanceledEventAttributes.Size() - n += 2 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_ChildWorkflowExecutionTimedOutEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ChildWorkflowExecutionTimedOutEventAttributes != nil { - l = m.ChildWorkflowExecutionTimedOutEventAttributes.Size() - n += 2 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_ChildWorkflowExecutionTerminatedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ChildWorkflowExecutionTerminatedEventAttributes != nil { - l = m.ChildWorkflowExecutionTerminatedEventAttributes.Size() - n += 2 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.SignalExternalWorkflowExecutionInitiatedEventAttributes != nil { - l = m.SignalExternalWorkflowExecutionInitiatedEventAttributes.Size() - n += 2 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_SignalExternalWorkflowExecutionFailedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.SignalExternalWorkflowExecutionFailedEventAttributes != nil { - l = m.SignalExternalWorkflowExecutionFailedEventAttributes.Size() - n += 2 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_ExternalWorkflowExecutionSignaledEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ExternalWorkflowExecutionSignaledEventAttributes != nil { - l = m.ExternalWorkflowExecutionSignaledEventAttributes.Size() - n += 2 + l + sovHistory(uint64(l)) - } - return n -} -func (m *HistoryEvent_UpsertWorkflowSearchAttributesEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.UpsertWorkflowSearchAttributesEventAttributes != nil { - l = m.UpsertWorkflowSearchAttributesEventAttributes.Size() - n += 2 + l + sovHistory(uint64(l)) - } - return n -} -func (m *WorkflowExecutionStartedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.WorkflowType != nil { - l = m.WorkflowType.Size() - n += 1 + l + sovHistory(uint64(l)) - } - l = len(m.ParentWorkflowDomain) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if m.ParentWorkflowExecution != nil { - l = m.ParentWorkflowExecution.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.ParentInitiatedEventId != 0 { - n += 1 + sovHistory(uint64(m.ParentInitiatedEventId)) - } - if m.TaskList != nil { - l = m.TaskList.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.Input != nil { - l = m.Input.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.ExecutionStartToCloseTimeout != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ExecutionStartToCloseTimeout) - n += 1 + l + sovHistory(uint64(l)) - } - if m.TaskStartToCloseTimeout != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.TaskStartToCloseTimeout) - n += 1 + l + sovHistory(uint64(l)) - } - l = len(m.ContinuedExecutionRunId) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if m.Initiator != 0 { - n += 1 + sovHistory(uint64(m.Initiator)) - } - if m.ContinuedFailure != nil { - l = m.ContinuedFailure.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.LastCompletionResult != nil { - l = m.LastCompletionResult.Size() - n += 1 + l + sovHistory(uint64(l)) - } - l = len(m.OriginalExecutionRunId) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - l = len(m.Identity) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - l = len(m.FirstExecutionRunId) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if m.RetryPolicy != nil { - l = m.RetryPolicy.Size() - n += 2 + l + sovHistory(uint64(l)) - } - if m.Attempt != 0 { - n += 2 + sovHistory(uint64(m.Attempt)) - } - if m.ExpirationTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.ExpirationTime) - n += 2 + l + sovHistory(uint64(l)) - } - l = len(m.CronSchedule) - if l > 0 { - n += 2 + l + sovHistory(uint64(l)) - } - if m.FirstDecisionTaskBackoff != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.FirstDecisionTaskBackoff) - n += 2 + l + sovHistory(uint64(l)) - } - if m.Memo != nil { - l = m.Memo.Size() - n += 2 + l + sovHistory(uint64(l)) - } - if m.SearchAttributes != nil { - l = m.SearchAttributes.Size() - n += 2 + l + sovHistory(uint64(l)) - } - if m.PrevAutoResetPoints != nil { - l = m.PrevAutoResetPoints.Size() - n += 2 + l + sovHistory(uint64(l)) - } - if m.Header != nil { - l = m.Header.Size() - n += 2 + l + sovHistory(uint64(l)) - } - return n -} - -func (m *WorkflowExecutionCompletedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Result != nil { - l = m.Result.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.DecisionTaskCompletedEventId != 0 { - n += 1 + sovHistory(uint64(m.DecisionTaskCompletedEventId)) - } - return n -} - -func (m *WorkflowExecutionFailedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Failure != nil { - l = m.Failure.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.DecisionTaskCompletedEventId != 0 { - n += 1 + sovHistory(uint64(m.DecisionTaskCompletedEventId)) - } - return n -} - -func (m *WorkflowExecutionTimedOutEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.TimeoutType != 0 { - n += 1 + sovHistory(uint64(m.TimeoutType)) - } - return n -} - -func (m *DecisionTaskScheduledEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.TaskList != nil { - l = m.TaskList.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.StartToCloseTimeout != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.StartToCloseTimeout) - n += 1 + l + sovHistory(uint64(l)) - } - if m.Attempt != 0 { - n += 1 + sovHistory(uint64(m.Attempt)) - } - return n -} - -func (m *DecisionTaskStartedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ScheduledEventId != 0 { - n += 1 + sovHistory(uint64(m.ScheduledEventId)) - } - l = len(m.Identity) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - l = len(m.RequestId) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - return n -} - -func (m *DecisionTaskCompletedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ScheduledEventId != 0 { - n += 1 + sovHistory(uint64(m.ScheduledEventId)) - } - if m.StartedEventId != 0 { - n += 1 + sovHistory(uint64(m.StartedEventId)) - } - l = len(m.Identity) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - l = len(m.BinaryChecksum) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - l = len(m.ExecutionContext) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - return n -} - -func (m *DecisionTaskTimedOutEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ScheduledEventId != 0 { - n += 1 + sovHistory(uint64(m.ScheduledEventId)) - } - if m.StartedEventId != 0 { - n += 1 + sovHistory(uint64(m.StartedEventId)) - } - if m.TimeoutType != 0 { - n += 1 + sovHistory(uint64(m.TimeoutType)) - } - return n -} - -func (m *DecisionTaskFailedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ScheduledEventId != 0 { - n += 1 + sovHistory(uint64(m.ScheduledEventId)) - } - if m.StartedEventId != 0 { - n += 1 + sovHistory(uint64(m.StartedEventId)) - } - if m.Cause != 0 { - n += 1 + sovHistory(uint64(m.Cause)) - } - if m.Failure != nil { - l = m.Failure.Size() - n += 1 + l + sovHistory(uint64(l)) - } - l = len(m.Identity) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - l = len(m.BaseRunId) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - l = len(m.NewRunId) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if m.ForkEventVersion != 0 { - n += 1 + sovHistory(uint64(m.ForkEventVersion)) - } - l = len(m.BinaryChecksum) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - return n -} - -func (m *ActivityTaskScheduledEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ActivityId) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if m.ActivityType != nil { - l = m.ActivityType.Size() - n += 1 + l + sovHistory(uint64(l)) - } - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if m.TaskList != nil { - l = m.TaskList.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.Input != nil { - l = m.Input.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.ScheduleToCloseTimeout != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ScheduleToCloseTimeout) - n += 1 + l + sovHistory(uint64(l)) - } - if m.ScheduleToStartTimeout != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ScheduleToStartTimeout) - n += 1 + l + sovHistory(uint64(l)) - } - if m.StartToCloseTimeout != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.StartToCloseTimeout) - n += 1 + l + sovHistory(uint64(l)) - } - if m.HeartbeatTimeout != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.HeartbeatTimeout) - n += 1 + l + sovHistory(uint64(l)) - } - if m.DecisionTaskCompletedEventId != 0 { - n += 1 + sovHistory(uint64(m.DecisionTaskCompletedEventId)) - } - if m.RetryPolicy != nil { - l = m.RetryPolicy.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovHistory(uint64(l)) - } - return n -} - -func (m *ActivityTaskStartedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ScheduledEventId != 0 { - n += 1 + sovHistory(uint64(m.ScheduledEventId)) - } - l = len(m.Identity) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - l = len(m.RequestId) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if m.Attempt != 0 { - n += 1 + sovHistory(uint64(m.Attempt)) - } - if m.LastFailure != nil { - l = m.LastFailure.Size() - n += 1 + l + sovHistory(uint64(l)) - } - return n -} - -func (m *ActivityTaskCompletedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Result != nil { - l = m.Result.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.ScheduledEventId != 0 { - n += 1 + sovHistory(uint64(m.ScheduledEventId)) - } - if m.StartedEventId != 0 { - n += 1 + sovHistory(uint64(m.StartedEventId)) - } - l = len(m.Identity) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - return n -} - -func (m *ActivityTaskFailedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Failure != nil { - l = m.Failure.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.ScheduledEventId != 0 { - n += 1 + sovHistory(uint64(m.ScheduledEventId)) - } - if m.StartedEventId != 0 { - n += 1 + sovHistory(uint64(m.StartedEventId)) - } - l = len(m.Identity) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - return n -} - -func (m *ActivityTaskTimedOutEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Details != nil { - l = m.Details.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.ScheduledEventId != 0 { - n += 1 + sovHistory(uint64(m.ScheduledEventId)) - } - if m.StartedEventId != 0 { - n += 1 + sovHistory(uint64(m.StartedEventId)) - } - if m.TimeoutType != 0 { - n += 1 + sovHistory(uint64(m.TimeoutType)) - } - if m.LastFailure != nil { - l = m.LastFailure.Size() - n += 1 + l + sovHistory(uint64(l)) - } - return n -} - -func (m *ActivityTaskCancelRequestedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ActivityId) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if m.DecisionTaskCompletedEventId != 0 { - n += 1 + sovHistory(uint64(m.DecisionTaskCompletedEventId)) - } - return n -} - -func (m *RequestCancelActivityTaskFailedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ActivityId) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - l = len(m.Cause) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if m.DecisionTaskCompletedEventId != 0 { - n += 1 + sovHistory(uint64(m.DecisionTaskCompletedEventId)) - } - return n -} - -func (m *ActivityTaskCanceledEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Details != nil { - l = m.Details.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.LatestCancelRequestedEventId != 0 { - n += 1 + sovHistory(uint64(m.LatestCancelRequestedEventId)) - } - if m.ScheduledEventId != 0 { - n += 1 + sovHistory(uint64(m.ScheduledEventId)) - } - if m.StartedEventId != 0 { - n += 1 + sovHistory(uint64(m.StartedEventId)) - } - l = len(m.Identity) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - return n -} - -func (m *TimerStartedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.TimerId) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if m.StartToFireTimeout != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.StartToFireTimeout) - n += 1 + l + sovHistory(uint64(l)) - } - if m.DecisionTaskCompletedEventId != 0 { - n += 1 + sovHistory(uint64(m.DecisionTaskCompletedEventId)) - } - return n -} - -func (m *TimerFiredEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.TimerId) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if m.StartedEventId != 0 { - n += 1 + sovHistory(uint64(m.StartedEventId)) - } - return n -} - -func (m *TimerCanceledEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.TimerId) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if m.StartedEventId != 0 { - n += 1 + sovHistory(uint64(m.StartedEventId)) - } - if m.DecisionTaskCompletedEventId != 0 { - n += 1 + sovHistory(uint64(m.DecisionTaskCompletedEventId)) - } - l = len(m.Identity) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - return n -} - -func (m *CancelTimerFailedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.TimerId) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - l = len(m.Cause) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if m.DecisionTaskCompletedEventId != 0 { - n += 1 + sovHistory(uint64(m.DecisionTaskCompletedEventId)) - } - l = len(m.Identity) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - return n -} - -func (m *WorkflowExecutionContinuedAsNewEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.NewExecutionRunId) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if m.WorkflowType != nil { - l = m.WorkflowType.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.TaskList != nil { - l = m.TaskList.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.Input != nil { - l = m.Input.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.ExecutionStartToCloseTimeout != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ExecutionStartToCloseTimeout) - n += 1 + l + sovHistory(uint64(l)) - } - if m.TaskStartToCloseTimeout != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.TaskStartToCloseTimeout) - n += 1 + l + sovHistory(uint64(l)) - } - if m.DecisionTaskCompletedEventId != 0 { - n += 1 + sovHistory(uint64(m.DecisionTaskCompletedEventId)) - } - if m.BackoffStartInterval != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.BackoffStartInterval) - n += 1 + l + sovHistory(uint64(l)) - } - if m.Initiator != 0 { - n += 1 + sovHistory(uint64(m.Initiator)) - } - if m.Failure != nil { - l = m.Failure.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.LastCompletionResult != nil { - l = m.LastCompletionResult.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.Memo != nil { - l = m.Memo.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.SearchAttributes != nil { - l = m.SearchAttributes.Size() - n += 1 + l + sovHistory(uint64(l)) - } - return n -} - -func (m *WorkflowExecutionCancelRequestedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Cause) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if m.ExternalInitiatedEventId != 0 { - n += 1 + sovHistory(uint64(m.ExternalInitiatedEventId)) - } - if m.ExternalWorkflowExecution != nil { - l = m.ExternalWorkflowExecution.Size() - n += 1 + l + sovHistory(uint64(l)) - } - l = len(m.Identity) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - return n -} - -func (m *WorkflowExecutionCanceledEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.DecisionTaskCompletedEventId != 0 { - n += 1 + sovHistory(uint64(m.DecisionTaskCompletedEventId)) - } - if m.Details != nil { - l = m.Details.Size() - n += 1 + l + sovHistory(uint64(l)) - } - return n -} - -func (m *MarkerRecordedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.MarkerName) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if m.Details != nil { - l = m.Details.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.DecisionTaskCompletedEventId != 0 { - n += 1 + sovHistory(uint64(m.DecisionTaskCompletedEventId)) - } - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovHistory(uint64(l)) - } - return n -} - -func (m *WorkflowExecutionSignaledEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.SignalName) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if m.Input != nil { - l = m.Input.Size() - n += 1 + l + sovHistory(uint64(l)) - } - l = len(m.Identity) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - return n -} - -func (m *WorkflowExecutionTerminatedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if m.Details != nil { - l = m.Details.Size() - n += 1 + l + sovHistory(uint64(l)) - } - l = len(m.Identity) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - return n -} - -func (m *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.DecisionTaskCompletedEventId != 0 { - n += 1 + sovHistory(uint64(m.DecisionTaskCompletedEventId)) - } - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovHistory(uint64(l)) - } - l = len(m.Control) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if m.ChildWorkflowOnly { - n += 2 - } - return n -} - -func (m *RequestCancelExternalWorkflowExecutionFailedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Cause != 0 { - n += 1 + sovHistory(uint64(m.Cause)) - } - if m.DecisionTaskCompletedEventId != 0 { - n += 1 + sovHistory(uint64(m.DecisionTaskCompletedEventId)) - } - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.InitiatedEventId != 0 { - n += 1 + sovHistory(uint64(m.InitiatedEventId)) - } - l = len(m.Control) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - return n -} - -func (m *ExternalWorkflowExecutionCancelRequestedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.InitiatedEventId != 0 { - n += 1 + sovHistory(uint64(m.InitiatedEventId)) - } - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovHistory(uint64(l)) - } - return n -} - -func (m *SignalExternalWorkflowExecutionInitiatedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.DecisionTaskCompletedEventId != 0 { - n += 1 + sovHistory(uint64(m.DecisionTaskCompletedEventId)) - } - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovHistory(uint64(l)) - } - l = len(m.SignalName) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if m.Input != nil { - l = m.Input.Size() - n += 1 + l + sovHistory(uint64(l)) - } - l = len(m.Control) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if m.ChildWorkflowOnly { - n += 2 - } - return n -} - -func (m *SignalExternalWorkflowExecutionFailedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Cause != 0 { - n += 1 + sovHistory(uint64(m.Cause)) - } - if m.DecisionTaskCompletedEventId != 0 { - n += 1 + sovHistory(uint64(m.DecisionTaskCompletedEventId)) - } - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.InitiatedEventId != 0 { - n += 1 + sovHistory(uint64(m.InitiatedEventId)) - } - l = len(m.Control) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - return n -} - -func (m *ExternalWorkflowExecutionSignaledEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.InitiatedEventId != 0 { - n += 1 + sovHistory(uint64(m.InitiatedEventId)) - } - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovHistory(uint64(l)) - } - l = len(m.Control) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - return n -} - -func (m *UpsertWorkflowSearchAttributesEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.DecisionTaskCompletedEventId != 0 { - n += 1 + sovHistory(uint64(m.DecisionTaskCompletedEventId)) - } - if m.SearchAttributes != nil { - l = m.SearchAttributes.Size() - n += 1 + l + sovHistory(uint64(l)) - } - return n -} - -func (m *StartChildWorkflowExecutionInitiatedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - l = len(m.WorkflowId) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if m.WorkflowType != nil { - l = m.WorkflowType.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.TaskList != nil { - l = m.TaskList.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.Input != nil { - l = m.Input.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.ExecutionStartToCloseTimeout != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ExecutionStartToCloseTimeout) - n += 1 + l + sovHistory(uint64(l)) - } - if m.TaskStartToCloseTimeout != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.TaskStartToCloseTimeout) - n += 1 + l + sovHistory(uint64(l)) - } - if m.ParentClosePolicy != 0 { - n += 1 + sovHistory(uint64(m.ParentClosePolicy)) - } - l = len(m.Control) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if m.DecisionTaskCompletedEventId != 0 { - n += 1 + sovHistory(uint64(m.DecisionTaskCompletedEventId)) - } - if m.WorkflowIdReusePolicy != 0 { - n += 1 + sovHistory(uint64(m.WorkflowIdReusePolicy)) - } - if m.RetryPolicy != nil { - l = m.RetryPolicy.Size() - n += 1 + l + sovHistory(uint64(l)) - } - l = len(m.CronSchedule) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.Memo != nil { - l = m.Memo.Size() - n += 2 + l + sovHistory(uint64(l)) - } - if m.SearchAttributes != nil { - l = m.SearchAttributes.Size() - n += 2 + l + sovHistory(uint64(l)) - } - return n -} - -func (m *StartChildWorkflowExecutionFailedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - l = len(m.WorkflowId) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if m.WorkflowType != nil { - l = m.WorkflowType.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.Cause != 0 { - n += 1 + sovHistory(uint64(m.Cause)) - } - l = len(m.Control) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if m.InitiatedEventId != 0 { - n += 1 + sovHistory(uint64(m.InitiatedEventId)) - } - if m.DecisionTaskCompletedEventId != 0 { - n += 1 + sovHistory(uint64(m.DecisionTaskCompletedEventId)) - } - return n -} - -func (m *ChildWorkflowExecutionStartedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.WorkflowType != nil { - l = m.WorkflowType.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.InitiatedEventId != 0 { - n += 1 + sovHistory(uint64(m.InitiatedEventId)) - } - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovHistory(uint64(l)) - } - return n -} - -func (m *ChildWorkflowExecutionCompletedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.WorkflowType != nil { - l = m.WorkflowType.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.InitiatedEventId != 0 { - n += 1 + sovHistory(uint64(m.InitiatedEventId)) - } - if m.StartedEventId != 0 { - n += 1 + sovHistory(uint64(m.StartedEventId)) - } - if m.Result != nil { - l = m.Result.Size() - n += 1 + l + sovHistory(uint64(l)) - } - return n -} - -func (m *ChildWorkflowExecutionFailedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.WorkflowType != nil { - l = m.WorkflowType.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.InitiatedEventId != 0 { - n += 1 + sovHistory(uint64(m.InitiatedEventId)) - } - if m.StartedEventId != 0 { - n += 1 + sovHistory(uint64(m.StartedEventId)) - } - if m.Failure != nil { - l = m.Failure.Size() - n += 1 + l + sovHistory(uint64(l)) - } - return n -} - -func (m *ChildWorkflowExecutionCanceledEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.WorkflowType != nil { - l = m.WorkflowType.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.InitiatedEventId != 0 { - n += 1 + sovHistory(uint64(m.InitiatedEventId)) - } - if m.StartedEventId != 0 { - n += 1 + sovHistory(uint64(m.StartedEventId)) - } - if m.Details != nil { - l = m.Details.Size() - n += 1 + l + sovHistory(uint64(l)) - } - return n -} - -func (m *ChildWorkflowExecutionTimedOutEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.WorkflowType != nil { - l = m.WorkflowType.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.InitiatedEventId != 0 { - n += 1 + sovHistory(uint64(m.InitiatedEventId)) - } - if m.StartedEventId != 0 { - n += 1 + sovHistory(uint64(m.StartedEventId)) - } - if m.TimeoutType != 0 { - n += 1 + sovHistory(uint64(m.TimeoutType)) - } - return n -} - -func (m *ChildWorkflowExecutionTerminatedEventAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.WorkflowType != nil { - l = m.WorkflowType.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.InitiatedEventId != 0 { - n += 1 + sovHistory(uint64(m.InitiatedEventId)) - } - if m.StartedEventId != 0 { - n += 1 + sovHistory(uint64(m.StartedEventId)) - } - return n -} - -func sovHistory(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozHistory(x uint64) (n int) { - return sovHistory(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *History) String() string { - if this == nil { - return "nil" - } - repeatedStringForEvents := "[]*HistoryEvent{" - for _, f := range this.Events { - repeatedStringForEvents += strings.Replace(f.String(), "HistoryEvent", "HistoryEvent", 1) + "," - } - repeatedStringForEvents += "}" - s := strings.Join([]string{`&History{`, - `Events:` + repeatedStringForEvents + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent{`, - `EventId:` + fmt.Sprintf("%v", this.EventId) + `,`, - `EventTime:` + strings.Replace(fmt.Sprintf("%v", this.EventTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `Version:` + fmt.Sprintf("%v", this.Version) + `,`, - `TaskId:` + fmt.Sprintf("%v", this.TaskId) + `,`, - `Attributes:` + fmt.Sprintf("%v", this.Attributes) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_WorkflowExecutionStartedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_WorkflowExecutionStartedEventAttributes{`, - `WorkflowExecutionStartedEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecutionStartedEventAttributes), "WorkflowExecutionStartedEventAttributes", "WorkflowExecutionStartedEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_WorkflowExecutionCompletedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_WorkflowExecutionCompletedEventAttributes{`, - `WorkflowExecutionCompletedEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecutionCompletedEventAttributes), "WorkflowExecutionCompletedEventAttributes", "WorkflowExecutionCompletedEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_WorkflowExecutionFailedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_WorkflowExecutionFailedEventAttributes{`, - `WorkflowExecutionFailedEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecutionFailedEventAttributes), "WorkflowExecutionFailedEventAttributes", "WorkflowExecutionFailedEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_WorkflowExecutionTimedOutEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_WorkflowExecutionTimedOutEventAttributes{`, - `WorkflowExecutionTimedOutEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecutionTimedOutEventAttributes), "WorkflowExecutionTimedOutEventAttributes", "WorkflowExecutionTimedOutEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_DecisionTaskScheduledEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_DecisionTaskScheduledEventAttributes{`, - `DecisionTaskScheduledEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.DecisionTaskScheduledEventAttributes), "DecisionTaskScheduledEventAttributes", "DecisionTaskScheduledEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_DecisionTaskStartedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_DecisionTaskStartedEventAttributes{`, - `DecisionTaskStartedEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.DecisionTaskStartedEventAttributes), "DecisionTaskStartedEventAttributes", "DecisionTaskStartedEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_DecisionTaskCompletedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_DecisionTaskCompletedEventAttributes{`, - `DecisionTaskCompletedEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.DecisionTaskCompletedEventAttributes), "DecisionTaskCompletedEventAttributes", "DecisionTaskCompletedEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_DecisionTaskTimedOutEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_DecisionTaskTimedOutEventAttributes{`, - `DecisionTaskTimedOutEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.DecisionTaskTimedOutEventAttributes), "DecisionTaskTimedOutEventAttributes", "DecisionTaskTimedOutEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_DecisionTaskFailedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_DecisionTaskFailedEventAttributes{`, - `DecisionTaskFailedEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.DecisionTaskFailedEventAttributes), "DecisionTaskFailedEventAttributes", "DecisionTaskFailedEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_ActivityTaskScheduledEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_ActivityTaskScheduledEventAttributes{`, - `ActivityTaskScheduledEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.ActivityTaskScheduledEventAttributes), "ActivityTaskScheduledEventAttributes", "ActivityTaskScheduledEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_ActivityTaskStartedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_ActivityTaskStartedEventAttributes{`, - `ActivityTaskStartedEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.ActivityTaskStartedEventAttributes), "ActivityTaskStartedEventAttributes", "ActivityTaskStartedEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_ActivityTaskCompletedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_ActivityTaskCompletedEventAttributes{`, - `ActivityTaskCompletedEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.ActivityTaskCompletedEventAttributes), "ActivityTaskCompletedEventAttributes", "ActivityTaskCompletedEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_ActivityTaskFailedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_ActivityTaskFailedEventAttributes{`, - `ActivityTaskFailedEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.ActivityTaskFailedEventAttributes), "ActivityTaskFailedEventAttributes", "ActivityTaskFailedEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_ActivityTaskTimedOutEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_ActivityTaskTimedOutEventAttributes{`, - `ActivityTaskTimedOutEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.ActivityTaskTimedOutEventAttributes), "ActivityTaskTimedOutEventAttributes", "ActivityTaskTimedOutEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_TimerStartedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_TimerStartedEventAttributes{`, - `TimerStartedEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.TimerStartedEventAttributes), "TimerStartedEventAttributes", "TimerStartedEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_TimerFiredEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_TimerFiredEventAttributes{`, - `TimerFiredEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.TimerFiredEventAttributes), "TimerFiredEventAttributes", "TimerFiredEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_ActivityTaskCancelRequestedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_ActivityTaskCancelRequestedEventAttributes{`, - `ActivityTaskCancelRequestedEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.ActivityTaskCancelRequestedEventAttributes), "ActivityTaskCancelRequestedEventAttributes", "ActivityTaskCancelRequestedEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_RequestCancelActivityTaskFailedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_RequestCancelActivityTaskFailedEventAttributes{`, - `RequestCancelActivityTaskFailedEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.RequestCancelActivityTaskFailedEventAttributes), "RequestCancelActivityTaskFailedEventAttributes", "RequestCancelActivityTaskFailedEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_ActivityTaskCanceledEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_ActivityTaskCanceledEventAttributes{`, - `ActivityTaskCanceledEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.ActivityTaskCanceledEventAttributes), "ActivityTaskCanceledEventAttributes", "ActivityTaskCanceledEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_TimerCanceledEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_TimerCanceledEventAttributes{`, - `TimerCanceledEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.TimerCanceledEventAttributes), "TimerCanceledEventAttributes", "TimerCanceledEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_CancelTimerFailedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_CancelTimerFailedEventAttributes{`, - `CancelTimerFailedEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.CancelTimerFailedEventAttributes), "CancelTimerFailedEventAttributes", "CancelTimerFailedEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_MarkerRecordedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_MarkerRecordedEventAttributes{`, - `MarkerRecordedEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.MarkerRecordedEventAttributes), "MarkerRecordedEventAttributes", "MarkerRecordedEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_WorkflowExecutionSignaledEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_WorkflowExecutionSignaledEventAttributes{`, - `WorkflowExecutionSignaledEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecutionSignaledEventAttributes), "WorkflowExecutionSignaledEventAttributes", "WorkflowExecutionSignaledEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_WorkflowExecutionTerminatedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_WorkflowExecutionTerminatedEventAttributes{`, - `WorkflowExecutionTerminatedEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecutionTerminatedEventAttributes), "WorkflowExecutionTerminatedEventAttributes", "WorkflowExecutionTerminatedEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_WorkflowExecutionCancelRequestedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_WorkflowExecutionCancelRequestedEventAttributes{`, - `WorkflowExecutionCancelRequestedEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecutionCancelRequestedEventAttributes), "WorkflowExecutionCancelRequestedEventAttributes", "WorkflowExecutionCancelRequestedEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_WorkflowExecutionCanceledEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_WorkflowExecutionCanceledEventAttributes{`, - `WorkflowExecutionCanceledEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecutionCanceledEventAttributes), "WorkflowExecutionCanceledEventAttributes", "WorkflowExecutionCanceledEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes{`, - `RequestCancelExternalWorkflowExecutionInitiatedEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes), "RequestCancelExternalWorkflowExecutionInitiatedEventAttributes", "RequestCancelExternalWorkflowExecutionInitiatedEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes{`, - `RequestCancelExternalWorkflowExecutionFailedEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.RequestCancelExternalWorkflowExecutionFailedEventAttributes), "RequestCancelExternalWorkflowExecutionFailedEventAttributes", "RequestCancelExternalWorkflowExecutionFailedEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes{`, - `ExternalWorkflowExecutionCancelRequestedEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.ExternalWorkflowExecutionCancelRequestedEventAttributes), "ExternalWorkflowExecutionCancelRequestedEventAttributes", "ExternalWorkflowExecutionCancelRequestedEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_WorkflowExecutionContinuedAsNewEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_WorkflowExecutionContinuedAsNewEventAttributes{`, - `WorkflowExecutionContinuedAsNewEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecutionContinuedAsNewEventAttributes), "WorkflowExecutionContinuedAsNewEventAttributes", "WorkflowExecutionContinuedAsNewEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_StartChildWorkflowExecutionInitiatedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_StartChildWorkflowExecutionInitiatedEventAttributes{`, - `StartChildWorkflowExecutionInitiatedEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.StartChildWorkflowExecutionInitiatedEventAttributes), "StartChildWorkflowExecutionInitiatedEventAttributes", "StartChildWorkflowExecutionInitiatedEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_StartChildWorkflowExecutionFailedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_StartChildWorkflowExecutionFailedEventAttributes{`, - `StartChildWorkflowExecutionFailedEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.StartChildWorkflowExecutionFailedEventAttributes), "StartChildWorkflowExecutionFailedEventAttributes", "StartChildWorkflowExecutionFailedEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_ChildWorkflowExecutionStartedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_ChildWorkflowExecutionStartedEventAttributes{`, - `ChildWorkflowExecutionStartedEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.ChildWorkflowExecutionStartedEventAttributes), "ChildWorkflowExecutionStartedEventAttributes", "ChildWorkflowExecutionStartedEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_ChildWorkflowExecutionCompletedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_ChildWorkflowExecutionCompletedEventAttributes{`, - `ChildWorkflowExecutionCompletedEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.ChildWorkflowExecutionCompletedEventAttributes), "ChildWorkflowExecutionCompletedEventAttributes", "ChildWorkflowExecutionCompletedEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_ChildWorkflowExecutionFailedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_ChildWorkflowExecutionFailedEventAttributes{`, - `ChildWorkflowExecutionFailedEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.ChildWorkflowExecutionFailedEventAttributes), "ChildWorkflowExecutionFailedEventAttributes", "ChildWorkflowExecutionFailedEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_ChildWorkflowExecutionCanceledEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_ChildWorkflowExecutionCanceledEventAttributes{`, - `ChildWorkflowExecutionCanceledEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.ChildWorkflowExecutionCanceledEventAttributes), "ChildWorkflowExecutionCanceledEventAttributes", "ChildWorkflowExecutionCanceledEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_ChildWorkflowExecutionTimedOutEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_ChildWorkflowExecutionTimedOutEventAttributes{`, - `ChildWorkflowExecutionTimedOutEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.ChildWorkflowExecutionTimedOutEventAttributes), "ChildWorkflowExecutionTimedOutEventAttributes", "ChildWorkflowExecutionTimedOutEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_ChildWorkflowExecutionTerminatedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_ChildWorkflowExecutionTerminatedEventAttributes{`, - `ChildWorkflowExecutionTerminatedEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.ChildWorkflowExecutionTerminatedEventAttributes), "ChildWorkflowExecutionTerminatedEventAttributes", "ChildWorkflowExecutionTerminatedEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes{`, - `SignalExternalWorkflowExecutionInitiatedEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.SignalExternalWorkflowExecutionInitiatedEventAttributes), "SignalExternalWorkflowExecutionInitiatedEventAttributes", "SignalExternalWorkflowExecutionInitiatedEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_SignalExternalWorkflowExecutionFailedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_SignalExternalWorkflowExecutionFailedEventAttributes{`, - `SignalExternalWorkflowExecutionFailedEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.SignalExternalWorkflowExecutionFailedEventAttributes), "SignalExternalWorkflowExecutionFailedEventAttributes", "SignalExternalWorkflowExecutionFailedEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_ExternalWorkflowExecutionSignaledEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_ExternalWorkflowExecutionSignaledEventAttributes{`, - `ExternalWorkflowExecutionSignaledEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.ExternalWorkflowExecutionSignaledEventAttributes), "ExternalWorkflowExecutionSignaledEventAttributes", "ExternalWorkflowExecutionSignaledEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryEvent_UpsertWorkflowSearchAttributesEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HistoryEvent_UpsertWorkflowSearchAttributesEventAttributes{`, - `UpsertWorkflowSearchAttributesEventAttributes:` + strings.Replace(fmt.Sprintf("%v", this.UpsertWorkflowSearchAttributesEventAttributes), "UpsertWorkflowSearchAttributesEventAttributes", "UpsertWorkflowSearchAttributesEventAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *WorkflowExecutionStartedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&WorkflowExecutionStartedEventAttributes{`, - `WorkflowType:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowType), "WorkflowType", "WorkflowType", 1) + `,`, - `ParentWorkflowDomain:` + fmt.Sprintf("%v", this.ParentWorkflowDomain) + `,`, - `ParentWorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.ParentWorkflowExecution), "WorkflowExecution", "WorkflowExecution", 1) + `,`, - `ParentInitiatedEventId:` + fmt.Sprintf("%v", this.ParentInitiatedEventId) + `,`, - `TaskList:` + strings.Replace(fmt.Sprintf("%v", this.TaskList), "TaskList", "TaskList", 1) + `,`, - `Input:` + strings.Replace(fmt.Sprintf("%v", this.Input), "Payload", "Payload", 1) + `,`, - `ExecutionStartToCloseTimeout:` + strings.Replace(fmt.Sprintf("%v", this.ExecutionStartToCloseTimeout), "Duration", "duration.Duration", 1) + `,`, - `TaskStartToCloseTimeout:` + strings.Replace(fmt.Sprintf("%v", this.TaskStartToCloseTimeout), "Duration", "duration.Duration", 1) + `,`, - `ContinuedExecutionRunId:` + fmt.Sprintf("%v", this.ContinuedExecutionRunId) + `,`, - `Initiator:` + fmt.Sprintf("%v", this.Initiator) + `,`, - `ContinuedFailure:` + strings.Replace(fmt.Sprintf("%v", this.ContinuedFailure), "Failure", "Failure", 1) + `,`, - `LastCompletionResult:` + strings.Replace(fmt.Sprintf("%v", this.LastCompletionResult), "Payload", "Payload", 1) + `,`, - `OriginalExecutionRunId:` + fmt.Sprintf("%v", this.OriginalExecutionRunId) + `,`, - `Identity:` + fmt.Sprintf("%v", this.Identity) + `,`, - `FirstExecutionRunId:` + fmt.Sprintf("%v", this.FirstExecutionRunId) + `,`, - `RetryPolicy:` + strings.Replace(fmt.Sprintf("%v", this.RetryPolicy), "RetryPolicy", "RetryPolicy", 1) + `,`, - `Attempt:` + fmt.Sprintf("%v", this.Attempt) + `,`, - `ExpirationTime:` + strings.Replace(fmt.Sprintf("%v", this.ExpirationTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `CronSchedule:` + fmt.Sprintf("%v", this.CronSchedule) + `,`, - `FirstDecisionTaskBackoff:` + strings.Replace(fmt.Sprintf("%v", this.FirstDecisionTaskBackoff), "Duration", "duration.Duration", 1) + `,`, - `Memo:` + strings.Replace(fmt.Sprintf("%v", this.Memo), "Memo", "Memo", 1) + `,`, - `SearchAttributes:` + strings.Replace(fmt.Sprintf("%v", this.SearchAttributes), "SearchAttributes", "SearchAttributes", 1) + `,`, - `PrevAutoResetPoints:` + strings.Replace(fmt.Sprintf("%v", this.PrevAutoResetPoints), "ResetPoints", "ResetPoints", 1) + `,`, - `Header:` + strings.Replace(fmt.Sprintf("%v", this.Header), "Header", "Header", 1) + `,`, - `}`, - }, "") - return s -} -func (this *WorkflowExecutionCompletedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&WorkflowExecutionCompletedEventAttributes{`, - `Result:` + strings.Replace(fmt.Sprintf("%v", this.Result), "Payload", "Payload", 1) + `,`, - `DecisionTaskCompletedEventId:` + fmt.Sprintf("%v", this.DecisionTaskCompletedEventId) + `,`, - `}`, - }, "") - return s -} -func (this *WorkflowExecutionFailedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&WorkflowExecutionFailedEventAttributes{`, - `Failure:` + strings.Replace(fmt.Sprintf("%v", this.Failure), "Failure", "Failure", 1) + `,`, - `DecisionTaskCompletedEventId:` + fmt.Sprintf("%v", this.DecisionTaskCompletedEventId) + `,`, - `}`, - }, "") - return s -} -func (this *WorkflowExecutionTimedOutEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&WorkflowExecutionTimedOutEventAttributes{`, - `TimeoutType:` + fmt.Sprintf("%v", this.TimeoutType) + `,`, - `}`, - }, "") - return s -} -func (this *DecisionTaskScheduledEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DecisionTaskScheduledEventAttributes{`, - `TaskList:` + strings.Replace(fmt.Sprintf("%v", this.TaskList), "TaskList", "TaskList", 1) + `,`, - `StartToCloseTimeout:` + strings.Replace(fmt.Sprintf("%v", this.StartToCloseTimeout), "Duration", "duration.Duration", 1) + `,`, - `Attempt:` + fmt.Sprintf("%v", this.Attempt) + `,`, - `}`, - }, "") - return s -} -func (this *DecisionTaskStartedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DecisionTaskStartedEventAttributes{`, - `ScheduledEventId:` + fmt.Sprintf("%v", this.ScheduledEventId) + `,`, - `Identity:` + fmt.Sprintf("%v", this.Identity) + `,`, - `RequestId:` + fmt.Sprintf("%v", this.RequestId) + `,`, - `}`, - }, "") - return s -} -func (this *DecisionTaskCompletedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DecisionTaskCompletedEventAttributes{`, - `ScheduledEventId:` + fmt.Sprintf("%v", this.ScheduledEventId) + `,`, - `StartedEventId:` + fmt.Sprintf("%v", this.StartedEventId) + `,`, - `Identity:` + fmt.Sprintf("%v", this.Identity) + `,`, - `BinaryChecksum:` + fmt.Sprintf("%v", this.BinaryChecksum) + `,`, - `ExecutionContext:` + fmt.Sprintf("%v", this.ExecutionContext) + `,`, - `}`, - }, "") - return s -} -func (this *DecisionTaskTimedOutEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DecisionTaskTimedOutEventAttributes{`, - `ScheduledEventId:` + fmt.Sprintf("%v", this.ScheduledEventId) + `,`, - `StartedEventId:` + fmt.Sprintf("%v", this.StartedEventId) + `,`, - `TimeoutType:` + fmt.Sprintf("%v", this.TimeoutType) + `,`, - `}`, - }, "") - return s -} -func (this *DecisionTaskFailedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DecisionTaskFailedEventAttributes{`, - `ScheduledEventId:` + fmt.Sprintf("%v", this.ScheduledEventId) + `,`, - `StartedEventId:` + fmt.Sprintf("%v", this.StartedEventId) + `,`, - `Cause:` + fmt.Sprintf("%v", this.Cause) + `,`, - `Failure:` + strings.Replace(fmt.Sprintf("%v", this.Failure), "Failure", "Failure", 1) + `,`, - `Identity:` + fmt.Sprintf("%v", this.Identity) + `,`, - `BaseRunId:` + fmt.Sprintf("%v", this.BaseRunId) + `,`, - `NewRunId:` + fmt.Sprintf("%v", this.NewRunId) + `,`, - `ForkEventVersion:` + fmt.Sprintf("%v", this.ForkEventVersion) + `,`, - `BinaryChecksum:` + fmt.Sprintf("%v", this.BinaryChecksum) + `,`, - `}`, - }, "") - return s -} -func (this *ActivityTaskScheduledEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ActivityTaskScheduledEventAttributes{`, - `ActivityId:` + fmt.Sprintf("%v", this.ActivityId) + `,`, - `ActivityType:` + strings.Replace(fmt.Sprintf("%v", this.ActivityType), "ActivityType", "ActivityType", 1) + `,`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `TaskList:` + strings.Replace(fmt.Sprintf("%v", this.TaskList), "TaskList", "TaskList", 1) + `,`, - `Input:` + strings.Replace(fmt.Sprintf("%v", this.Input), "Payload", "Payload", 1) + `,`, - `ScheduleToCloseTimeout:` + strings.Replace(fmt.Sprintf("%v", this.ScheduleToCloseTimeout), "Duration", "duration.Duration", 1) + `,`, - `ScheduleToStartTimeout:` + strings.Replace(fmt.Sprintf("%v", this.ScheduleToStartTimeout), "Duration", "duration.Duration", 1) + `,`, - `StartToCloseTimeout:` + strings.Replace(fmt.Sprintf("%v", this.StartToCloseTimeout), "Duration", "duration.Duration", 1) + `,`, - `HeartbeatTimeout:` + strings.Replace(fmt.Sprintf("%v", this.HeartbeatTimeout), "Duration", "duration.Duration", 1) + `,`, - `DecisionTaskCompletedEventId:` + fmt.Sprintf("%v", this.DecisionTaskCompletedEventId) + `,`, - `RetryPolicy:` + strings.Replace(fmt.Sprintf("%v", this.RetryPolicy), "RetryPolicy", "RetryPolicy", 1) + `,`, - `Header:` + strings.Replace(fmt.Sprintf("%v", this.Header), "Header", "Header", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ActivityTaskStartedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ActivityTaskStartedEventAttributes{`, - `ScheduledEventId:` + fmt.Sprintf("%v", this.ScheduledEventId) + `,`, - `Identity:` + fmt.Sprintf("%v", this.Identity) + `,`, - `RequestId:` + fmt.Sprintf("%v", this.RequestId) + `,`, - `Attempt:` + fmt.Sprintf("%v", this.Attempt) + `,`, - `LastFailure:` + strings.Replace(fmt.Sprintf("%v", this.LastFailure), "Failure", "Failure", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ActivityTaskCompletedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ActivityTaskCompletedEventAttributes{`, - `Result:` + strings.Replace(fmt.Sprintf("%v", this.Result), "Payload", "Payload", 1) + `,`, - `ScheduledEventId:` + fmt.Sprintf("%v", this.ScheduledEventId) + `,`, - `StartedEventId:` + fmt.Sprintf("%v", this.StartedEventId) + `,`, - `Identity:` + fmt.Sprintf("%v", this.Identity) + `,`, - `}`, - }, "") - return s -} -func (this *ActivityTaskFailedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ActivityTaskFailedEventAttributes{`, - `Failure:` + strings.Replace(fmt.Sprintf("%v", this.Failure), "Failure", "Failure", 1) + `,`, - `ScheduledEventId:` + fmt.Sprintf("%v", this.ScheduledEventId) + `,`, - `StartedEventId:` + fmt.Sprintf("%v", this.StartedEventId) + `,`, - `Identity:` + fmt.Sprintf("%v", this.Identity) + `,`, - `}`, - }, "") - return s -} -func (this *ActivityTaskTimedOutEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ActivityTaskTimedOutEventAttributes{`, - `Details:` + strings.Replace(fmt.Sprintf("%v", this.Details), "Payload", "Payload", 1) + `,`, - `ScheduledEventId:` + fmt.Sprintf("%v", this.ScheduledEventId) + `,`, - `StartedEventId:` + fmt.Sprintf("%v", this.StartedEventId) + `,`, - `TimeoutType:` + fmt.Sprintf("%v", this.TimeoutType) + `,`, - `LastFailure:` + strings.Replace(fmt.Sprintf("%v", this.LastFailure), "Failure", "Failure", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ActivityTaskCancelRequestedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ActivityTaskCancelRequestedEventAttributes{`, - `ActivityId:` + fmt.Sprintf("%v", this.ActivityId) + `,`, - `DecisionTaskCompletedEventId:` + fmt.Sprintf("%v", this.DecisionTaskCompletedEventId) + `,`, - `}`, - }, "") - return s -} -func (this *RequestCancelActivityTaskFailedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RequestCancelActivityTaskFailedEventAttributes{`, - `ActivityId:` + fmt.Sprintf("%v", this.ActivityId) + `,`, - `Cause:` + fmt.Sprintf("%v", this.Cause) + `,`, - `DecisionTaskCompletedEventId:` + fmt.Sprintf("%v", this.DecisionTaskCompletedEventId) + `,`, - `}`, - }, "") - return s -} -func (this *ActivityTaskCanceledEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ActivityTaskCanceledEventAttributes{`, - `Details:` + strings.Replace(fmt.Sprintf("%v", this.Details), "Payload", "Payload", 1) + `,`, - `LatestCancelRequestedEventId:` + fmt.Sprintf("%v", this.LatestCancelRequestedEventId) + `,`, - `ScheduledEventId:` + fmt.Sprintf("%v", this.ScheduledEventId) + `,`, - `StartedEventId:` + fmt.Sprintf("%v", this.StartedEventId) + `,`, - `Identity:` + fmt.Sprintf("%v", this.Identity) + `,`, - `}`, - }, "") - return s -} -func (this *TimerStartedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TimerStartedEventAttributes{`, - `TimerId:` + fmt.Sprintf("%v", this.TimerId) + `,`, - `StartToFireTimeout:` + strings.Replace(fmt.Sprintf("%v", this.StartToFireTimeout), "Duration", "duration.Duration", 1) + `,`, - `DecisionTaskCompletedEventId:` + fmt.Sprintf("%v", this.DecisionTaskCompletedEventId) + `,`, - `}`, - }, "") - return s -} -func (this *TimerFiredEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TimerFiredEventAttributes{`, - `TimerId:` + fmt.Sprintf("%v", this.TimerId) + `,`, - `StartedEventId:` + fmt.Sprintf("%v", this.StartedEventId) + `,`, - `}`, - }, "") - return s -} -func (this *TimerCanceledEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TimerCanceledEventAttributes{`, - `TimerId:` + fmt.Sprintf("%v", this.TimerId) + `,`, - `StartedEventId:` + fmt.Sprintf("%v", this.StartedEventId) + `,`, - `DecisionTaskCompletedEventId:` + fmt.Sprintf("%v", this.DecisionTaskCompletedEventId) + `,`, - `Identity:` + fmt.Sprintf("%v", this.Identity) + `,`, - `}`, - }, "") - return s -} -func (this *CancelTimerFailedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CancelTimerFailedEventAttributes{`, - `TimerId:` + fmt.Sprintf("%v", this.TimerId) + `,`, - `Cause:` + fmt.Sprintf("%v", this.Cause) + `,`, - `DecisionTaskCompletedEventId:` + fmt.Sprintf("%v", this.DecisionTaskCompletedEventId) + `,`, - `Identity:` + fmt.Sprintf("%v", this.Identity) + `,`, - `}`, - }, "") - return s -} -func (this *WorkflowExecutionContinuedAsNewEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&WorkflowExecutionContinuedAsNewEventAttributes{`, - `NewExecutionRunId:` + fmt.Sprintf("%v", this.NewExecutionRunId) + `,`, - `WorkflowType:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowType), "WorkflowType", "WorkflowType", 1) + `,`, - `TaskList:` + strings.Replace(fmt.Sprintf("%v", this.TaskList), "TaskList", "TaskList", 1) + `,`, - `Input:` + strings.Replace(fmt.Sprintf("%v", this.Input), "Payload", "Payload", 1) + `,`, - `ExecutionStartToCloseTimeout:` + strings.Replace(fmt.Sprintf("%v", this.ExecutionStartToCloseTimeout), "Duration", "duration.Duration", 1) + `,`, - `TaskStartToCloseTimeout:` + strings.Replace(fmt.Sprintf("%v", this.TaskStartToCloseTimeout), "Duration", "duration.Duration", 1) + `,`, - `DecisionTaskCompletedEventId:` + fmt.Sprintf("%v", this.DecisionTaskCompletedEventId) + `,`, - `BackoffStartInterval:` + strings.Replace(fmt.Sprintf("%v", this.BackoffStartInterval), "Duration", "duration.Duration", 1) + `,`, - `Initiator:` + fmt.Sprintf("%v", this.Initiator) + `,`, - `Failure:` + strings.Replace(fmt.Sprintf("%v", this.Failure), "Failure", "Failure", 1) + `,`, - `LastCompletionResult:` + strings.Replace(fmt.Sprintf("%v", this.LastCompletionResult), "Payload", "Payload", 1) + `,`, - `Header:` + strings.Replace(fmt.Sprintf("%v", this.Header), "Header", "Header", 1) + `,`, - `Memo:` + strings.Replace(fmt.Sprintf("%v", this.Memo), "Memo", "Memo", 1) + `,`, - `SearchAttributes:` + strings.Replace(fmt.Sprintf("%v", this.SearchAttributes), "SearchAttributes", "SearchAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *WorkflowExecutionCancelRequestedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&WorkflowExecutionCancelRequestedEventAttributes{`, - `Cause:` + fmt.Sprintf("%v", this.Cause) + `,`, - `ExternalInitiatedEventId:` + fmt.Sprintf("%v", this.ExternalInitiatedEventId) + `,`, - `ExternalWorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.ExternalWorkflowExecution), "WorkflowExecution", "WorkflowExecution", 1) + `,`, - `Identity:` + fmt.Sprintf("%v", this.Identity) + `,`, - `}`, - }, "") - return s -} -func (this *WorkflowExecutionCanceledEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&WorkflowExecutionCanceledEventAttributes{`, - `DecisionTaskCompletedEventId:` + fmt.Sprintf("%v", this.DecisionTaskCompletedEventId) + `,`, - `Details:` + strings.Replace(fmt.Sprintf("%v", this.Details), "Payload", "Payload", 1) + `,`, - `}`, - }, "") - return s -} -func (this *MarkerRecordedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&MarkerRecordedEventAttributes{`, - `MarkerName:` + fmt.Sprintf("%v", this.MarkerName) + `,`, - `Details:` + strings.Replace(fmt.Sprintf("%v", this.Details), "Payload", "Payload", 1) + `,`, - `DecisionTaskCompletedEventId:` + fmt.Sprintf("%v", this.DecisionTaskCompletedEventId) + `,`, - `Header:` + strings.Replace(fmt.Sprintf("%v", this.Header), "Header", "Header", 1) + `,`, - `}`, - }, "") - return s -} -func (this *WorkflowExecutionSignaledEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&WorkflowExecutionSignaledEventAttributes{`, - `SignalName:` + fmt.Sprintf("%v", this.SignalName) + `,`, - `Input:` + strings.Replace(fmt.Sprintf("%v", this.Input), "Payload", "Payload", 1) + `,`, - `Identity:` + fmt.Sprintf("%v", this.Identity) + `,`, - `}`, - }, "") - return s -} -func (this *WorkflowExecutionTerminatedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&WorkflowExecutionTerminatedEventAttributes{`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Details:` + strings.Replace(fmt.Sprintf("%v", this.Details), "Payload", "Payload", 1) + `,`, - `Identity:` + fmt.Sprintf("%v", this.Identity) + `,`, - `}`, - }, "") - return s -} -func (this *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RequestCancelExternalWorkflowExecutionInitiatedEventAttributes{`, - `DecisionTaskCompletedEventId:` + fmt.Sprintf("%v", this.DecisionTaskCompletedEventId) + `,`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "WorkflowExecution", 1) + `,`, - `Control:` + fmt.Sprintf("%v", this.Control) + `,`, - `ChildWorkflowOnly:` + fmt.Sprintf("%v", this.ChildWorkflowOnly) + `,`, - `}`, - }, "") - return s -} -func (this *RequestCancelExternalWorkflowExecutionFailedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RequestCancelExternalWorkflowExecutionFailedEventAttributes{`, - `Cause:` + fmt.Sprintf("%v", this.Cause) + `,`, - `DecisionTaskCompletedEventId:` + fmt.Sprintf("%v", this.DecisionTaskCompletedEventId) + `,`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "WorkflowExecution", 1) + `,`, - `InitiatedEventId:` + fmt.Sprintf("%v", this.InitiatedEventId) + `,`, - `Control:` + fmt.Sprintf("%v", this.Control) + `,`, - `}`, - }, "") - return s -} -func (this *ExternalWorkflowExecutionCancelRequestedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ExternalWorkflowExecutionCancelRequestedEventAttributes{`, - `InitiatedEventId:` + fmt.Sprintf("%v", this.InitiatedEventId) + `,`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "WorkflowExecution", 1) + `,`, - `}`, - }, "") - return s -} -func (this *SignalExternalWorkflowExecutionInitiatedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SignalExternalWorkflowExecutionInitiatedEventAttributes{`, - `DecisionTaskCompletedEventId:` + fmt.Sprintf("%v", this.DecisionTaskCompletedEventId) + `,`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "WorkflowExecution", 1) + `,`, - `SignalName:` + fmt.Sprintf("%v", this.SignalName) + `,`, - `Input:` + strings.Replace(fmt.Sprintf("%v", this.Input), "Payload", "Payload", 1) + `,`, - `Control:` + fmt.Sprintf("%v", this.Control) + `,`, - `ChildWorkflowOnly:` + fmt.Sprintf("%v", this.ChildWorkflowOnly) + `,`, - `}`, - }, "") - return s -} -func (this *SignalExternalWorkflowExecutionFailedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SignalExternalWorkflowExecutionFailedEventAttributes{`, - `Cause:` + fmt.Sprintf("%v", this.Cause) + `,`, - `DecisionTaskCompletedEventId:` + fmt.Sprintf("%v", this.DecisionTaskCompletedEventId) + `,`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "WorkflowExecution", 1) + `,`, - `InitiatedEventId:` + fmt.Sprintf("%v", this.InitiatedEventId) + `,`, - `Control:` + fmt.Sprintf("%v", this.Control) + `,`, - `}`, - }, "") - return s -} -func (this *ExternalWorkflowExecutionSignaledEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ExternalWorkflowExecutionSignaledEventAttributes{`, - `InitiatedEventId:` + fmt.Sprintf("%v", this.InitiatedEventId) + `,`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "WorkflowExecution", 1) + `,`, - `Control:` + fmt.Sprintf("%v", this.Control) + `,`, - `}`, - }, "") - return s -} -func (this *UpsertWorkflowSearchAttributesEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&UpsertWorkflowSearchAttributesEventAttributes{`, - `DecisionTaskCompletedEventId:` + fmt.Sprintf("%v", this.DecisionTaskCompletedEventId) + `,`, - `SearchAttributes:` + strings.Replace(fmt.Sprintf("%v", this.SearchAttributes), "SearchAttributes", "SearchAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *StartChildWorkflowExecutionInitiatedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&StartChildWorkflowExecutionInitiatedEventAttributes{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `WorkflowId:` + fmt.Sprintf("%v", this.WorkflowId) + `,`, - `WorkflowType:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowType), "WorkflowType", "WorkflowType", 1) + `,`, - `TaskList:` + strings.Replace(fmt.Sprintf("%v", this.TaskList), "TaskList", "TaskList", 1) + `,`, - `Input:` + strings.Replace(fmt.Sprintf("%v", this.Input), "Payload", "Payload", 1) + `,`, - `ExecutionStartToCloseTimeout:` + strings.Replace(fmt.Sprintf("%v", this.ExecutionStartToCloseTimeout), "Duration", "duration.Duration", 1) + `,`, - `TaskStartToCloseTimeout:` + strings.Replace(fmt.Sprintf("%v", this.TaskStartToCloseTimeout), "Duration", "duration.Duration", 1) + `,`, - `ParentClosePolicy:` + fmt.Sprintf("%v", this.ParentClosePolicy) + `,`, - `Control:` + fmt.Sprintf("%v", this.Control) + `,`, - `DecisionTaskCompletedEventId:` + fmt.Sprintf("%v", this.DecisionTaskCompletedEventId) + `,`, - `WorkflowIdReusePolicy:` + fmt.Sprintf("%v", this.WorkflowIdReusePolicy) + `,`, - `RetryPolicy:` + strings.Replace(fmt.Sprintf("%v", this.RetryPolicy), "RetryPolicy", "RetryPolicy", 1) + `,`, - `CronSchedule:` + fmt.Sprintf("%v", this.CronSchedule) + `,`, - `Header:` + strings.Replace(fmt.Sprintf("%v", this.Header), "Header", "Header", 1) + `,`, - `Memo:` + strings.Replace(fmt.Sprintf("%v", this.Memo), "Memo", "Memo", 1) + `,`, - `SearchAttributes:` + strings.Replace(fmt.Sprintf("%v", this.SearchAttributes), "SearchAttributes", "SearchAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *StartChildWorkflowExecutionFailedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&StartChildWorkflowExecutionFailedEventAttributes{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `WorkflowId:` + fmt.Sprintf("%v", this.WorkflowId) + `,`, - `WorkflowType:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowType), "WorkflowType", "WorkflowType", 1) + `,`, - `Cause:` + fmt.Sprintf("%v", this.Cause) + `,`, - `Control:` + fmt.Sprintf("%v", this.Control) + `,`, - `InitiatedEventId:` + fmt.Sprintf("%v", this.InitiatedEventId) + `,`, - `DecisionTaskCompletedEventId:` + fmt.Sprintf("%v", this.DecisionTaskCompletedEventId) + `,`, - `}`, - }, "") - return s -} -func (this *ChildWorkflowExecutionStartedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ChildWorkflowExecutionStartedEventAttributes{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "WorkflowExecution", 1) + `,`, - `WorkflowType:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowType), "WorkflowType", "WorkflowType", 1) + `,`, - `InitiatedEventId:` + fmt.Sprintf("%v", this.InitiatedEventId) + `,`, - `Header:` + strings.Replace(fmt.Sprintf("%v", this.Header), "Header", "Header", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ChildWorkflowExecutionCompletedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ChildWorkflowExecutionCompletedEventAttributes{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "WorkflowExecution", 1) + `,`, - `WorkflowType:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowType), "WorkflowType", "WorkflowType", 1) + `,`, - `InitiatedEventId:` + fmt.Sprintf("%v", this.InitiatedEventId) + `,`, - `StartedEventId:` + fmt.Sprintf("%v", this.StartedEventId) + `,`, - `Result:` + strings.Replace(fmt.Sprintf("%v", this.Result), "Payload", "Payload", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ChildWorkflowExecutionFailedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ChildWorkflowExecutionFailedEventAttributes{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "WorkflowExecution", 1) + `,`, - `WorkflowType:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowType), "WorkflowType", "WorkflowType", 1) + `,`, - `InitiatedEventId:` + fmt.Sprintf("%v", this.InitiatedEventId) + `,`, - `StartedEventId:` + fmt.Sprintf("%v", this.StartedEventId) + `,`, - `Failure:` + strings.Replace(fmt.Sprintf("%v", this.Failure), "Failure", "Failure", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ChildWorkflowExecutionCanceledEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ChildWorkflowExecutionCanceledEventAttributes{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "WorkflowExecution", 1) + `,`, - `WorkflowType:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowType), "WorkflowType", "WorkflowType", 1) + `,`, - `InitiatedEventId:` + fmt.Sprintf("%v", this.InitiatedEventId) + `,`, - `StartedEventId:` + fmt.Sprintf("%v", this.StartedEventId) + `,`, - `Details:` + strings.Replace(fmt.Sprintf("%v", this.Details), "Payload", "Payload", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ChildWorkflowExecutionTimedOutEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ChildWorkflowExecutionTimedOutEventAttributes{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "WorkflowExecution", 1) + `,`, - `WorkflowType:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowType), "WorkflowType", "WorkflowType", 1) + `,`, - `InitiatedEventId:` + fmt.Sprintf("%v", this.InitiatedEventId) + `,`, - `StartedEventId:` + fmt.Sprintf("%v", this.StartedEventId) + `,`, - `TimeoutType:` + fmt.Sprintf("%v", this.TimeoutType) + `,`, - `}`, - }, "") - return s -} -func (this *ChildWorkflowExecutionTerminatedEventAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ChildWorkflowExecutionTerminatedEventAttributes{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "WorkflowExecution", 1) + `,`, - `WorkflowType:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowType), "WorkflowType", "WorkflowType", 1) + `,`, - `InitiatedEventId:` + fmt.Sprintf("%v", this.InitiatedEventId) + `,`, - `StartedEventId:` + fmt.Sprintf("%v", this.StartedEventId) + `,`, - `}`, - }, "") - return s -} -func valueToStringHistory(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *History) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: History: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: History: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Events = append(m.Events, &HistoryEvent{}) - if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *HistoryEvent) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: HistoryEvent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HistoryEvent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EventId", wireType) - } - m.EventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EventTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.EventTime == nil { - m.EventTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.EventTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) - } - m.Version = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Version |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskId", wireType) - } - m.TaskId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TaskId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecutionStartedEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &WorkflowExecutionStartedEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_WorkflowExecutionStartedEventAttributes{v} - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecutionCompletedEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &WorkflowExecutionCompletedEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_WorkflowExecutionCompletedEventAttributes{v} - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecutionFailedEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &WorkflowExecutionFailedEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_WorkflowExecutionFailedEventAttributes{v} - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecutionTimedOutEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &WorkflowExecutionTimedOutEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_WorkflowExecutionTimedOutEventAttributes{v} - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DecisionTaskScheduledEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &DecisionTaskScheduledEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_DecisionTaskScheduledEventAttributes{v} - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DecisionTaskStartedEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &DecisionTaskStartedEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_DecisionTaskStartedEventAttributes{v} - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DecisionTaskCompletedEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &DecisionTaskCompletedEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_DecisionTaskCompletedEventAttributes{v} - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DecisionTaskTimedOutEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &DecisionTaskTimedOutEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_DecisionTaskTimedOutEventAttributes{v} - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DecisionTaskFailedEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &DecisionTaskFailedEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_DecisionTaskFailedEventAttributes{v} - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActivityTaskScheduledEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ActivityTaskScheduledEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_ActivityTaskScheduledEventAttributes{v} - iNdEx = postIndex - case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActivityTaskStartedEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ActivityTaskStartedEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_ActivityTaskStartedEventAttributes{v} - iNdEx = postIndex - case 16: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActivityTaskCompletedEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ActivityTaskCompletedEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_ActivityTaskCompletedEventAttributes{v} - iNdEx = postIndex - case 17: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActivityTaskFailedEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ActivityTaskFailedEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_ActivityTaskFailedEventAttributes{v} - iNdEx = postIndex - case 18: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActivityTaskTimedOutEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ActivityTaskTimedOutEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_ActivityTaskTimedOutEventAttributes{v} - iNdEx = postIndex - case 19: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TimerStartedEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &TimerStartedEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_TimerStartedEventAttributes{v} - iNdEx = postIndex - case 20: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TimerFiredEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &TimerFiredEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_TimerFiredEventAttributes{v} - iNdEx = postIndex - case 21: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActivityTaskCancelRequestedEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ActivityTaskCancelRequestedEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_ActivityTaskCancelRequestedEventAttributes{v} - iNdEx = postIndex - case 22: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestCancelActivityTaskFailedEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &RequestCancelActivityTaskFailedEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_RequestCancelActivityTaskFailedEventAttributes{v} - iNdEx = postIndex - case 23: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActivityTaskCanceledEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ActivityTaskCanceledEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_ActivityTaskCanceledEventAttributes{v} - iNdEx = postIndex - case 24: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TimerCanceledEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &TimerCanceledEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_TimerCanceledEventAttributes{v} - iNdEx = postIndex - case 25: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CancelTimerFailedEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &CancelTimerFailedEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_CancelTimerFailedEventAttributes{v} - iNdEx = postIndex - case 26: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MarkerRecordedEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &MarkerRecordedEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_MarkerRecordedEventAttributes{v} - iNdEx = postIndex - case 27: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecutionSignaledEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &WorkflowExecutionSignaledEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_WorkflowExecutionSignaledEventAttributes{v} - iNdEx = postIndex - case 28: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecutionTerminatedEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &WorkflowExecutionTerminatedEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_WorkflowExecutionTerminatedEventAttributes{v} - iNdEx = postIndex - case 29: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecutionCancelRequestedEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &WorkflowExecutionCancelRequestedEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_WorkflowExecutionCancelRequestedEventAttributes{v} - iNdEx = postIndex - case 30: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecutionCanceledEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &WorkflowExecutionCanceledEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_WorkflowExecutionCanceledEventAttributes{v} - iNdEx = postIndex - case 31: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestCancelExternalWorkflowExecutionInitiatedEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &RequestCancelExternalWorkflowExecutionInitiatedEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes{v} - iNdEx = postIndex - case 32: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestCancelExternalWorkflowExecutionFailedEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &RequestCancelExternalWorkflowExecutionFailedEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes{v} - iNdEx = postIndex - case 33: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExternalWorkflowExecutionCancelRequestedEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ExternalWorkflowExecutionCancelRequestedEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes{v} - iNdEx = postIndex - case 34: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecutionContinuedAsNewEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &WorkflowExecutionContinuedAsNewEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_WorkflowExecutionContinuedAsNewEventAttributes{v} - iNdEx = postIndex - case 35: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartChildWorkflowExecutionInitiatedEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &StartChildWorkflowExecutionInitiatedEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_StartChildWorkflowExecutionInitiatedEventAttributes{v} - iNdEx = postIndex - case 36: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartChildWorkflowExecutionFailedEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &StartChildWorkflowExecutionFailedEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_StartChildWorkflowExecutionFailedEventAttributes{v} - iNdEx = postIndex - case 37: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChildWorkflowExecutionStartedEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ChildWorkflowExecutionStartedEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_ChildWorkflowExecutionStartedEventAttributes{v} - iNdEx = postIndex - case 38: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChildWorkflowExecutionCompletedEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ChildWorkflowExecutionCompletedEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_ChildWorkflowExecutionCompletedEventAttributes{v} - iNdEx = postIndex - case 39: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChildWorkflowExecutionFailedEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ChildWorkflowExecutionFailedEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_ChildWorkflowExecutionFailedEventAttributes{v} - iNdEx = postIndex - case 40: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChildWorkflowExecutionCanceledEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ChildWorkflowExecutionCanceledEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_ChildWorkflowExecutionCanceledEventAttributes{v} - iNdEx = postIndex - case 41: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChildWorkflowExecutionTimedOutEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ChildWorkflowExecutionTimedOutEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_ChildWorkflowExecutionTimedOutEventAttributes{v} - iNdEx = postIndex - case 42: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChildWorkflowExecutionTerminatedEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ChildWorkflowExecutionTerminatedEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_ChildWorkflowExecutionTerminatedEventAttributes{v} - iNdEx = postIndex - case 43: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SignalExternalWorkflowExecutionInitiatedEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &SignalExternalWorkflowExecutionInitiatedEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes{v} - iNdEx = postIndex - case 44: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SignalExternalWorkflowExecutionFailedEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &SignalExternalWorkflowExecutionFailedEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_SignalExternalWorkflowExecutionFailedEventAttributes{v} - iNdEx = postIndex - case 45: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExternalWorkflowExecutionSignaledEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ExternalWorkflowExecutionSignaledEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_ExternalWorkflowExecutionSignaledEventAttributes{v} - iNdEx = postIndex - case 46: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UpsertWorkflowSearchAttributesEventAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &UpsertWorkflowSearchAttributesEventAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &HistoryEvent_UpsertWorkflowSearchAttributesEventAttributes{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WorkflowExecutionStartedEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowExecutionStartedEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowExecutionStartedEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowType", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowType == nil { - m.WorkflowType = &WorkflowType{} - } - if err := m.WorkflowType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ParentWorkflowDomain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ParentWorkflowDomain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ParentWorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ParentWorkflowExecution == nil { - m.ParentWorkflowExecution = &WorkflowExecution{} - } - if err := m.ParentWorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ParentInitiatedEventId", wireType) - } - m.ParentInitiatedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ParentInitiatedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TaskList == nil { - m.TaskList = &TaskList{} - } - if err := m.TaskList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Input == nil { - m.Input = &Payload{} - } - if err := m.Input.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExecutionStartToCloseTimeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ExecutionStartToCloseTimeout == nil { - m.ExecutionStartToCloseTimeout = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.ExecutionStartToCloseTimeout, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskStartToCloseTimeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TaskStartToCloseTimeout == nil { - m.TaskStartToCloseTimeout = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.TaskStartToCloseTimeout, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContinuedExecutionRunId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContinuedExecutionRunId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Initiator", wireType) - } - m.Initiator = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Initiator |= ContinueAsNewInitiator(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContinuedFailure", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ContinuedFailure == nil { - m.ContinuedFailure = &Failure{} - } - if err := m.ContinuedFailure.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastCompletionResult", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LastCompletionResult == nil { - m.LastCompletionResult = &Payload{} - } - if err := m.LastCompletionResult.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OriginalExecutionRunId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.OriginalExecutionRunId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identity = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FirstExecutionRunId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FirstExecutionRunId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 16: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RetryPolicy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RetryPolicy == nil { - m.RetryPolicy = &RetryPolicy{} - } - if err := m.RetryPolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 17: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Attempt", wireType) - } - m.Attempt = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Attempt |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 19: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExpirationTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ExpirationTime == nil { - m.ExpirationTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.ExpirationTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 20: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CronSchedule", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CronSchedule = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 21: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FirstDecisionTaskBackoff", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.FirstDecisionTaskBackoff == nil { - m.FirstDecisionTaskBackoff = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.FirstDecisionTaskBackoff, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 22: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Memo", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Memo == nil { - m.Memo = &Memo{} - } - if err := m.Memo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 23: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SearchAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SearchAttributes == nil { - m.SearchAttributes = &SearchAttributes{} - } - if err := m.SearchAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 24: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PrevAutoResetPoints", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PrevAutoResetPoints == nil { - m.PrevAutoResetPoints = &ResetPoints{} - } - if err := m.PrevAutoResetPoints.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 25: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Header == nil { - m.Header = &Header{} - } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WorkflowExecutionCompletedEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowExecutionCompletedEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowExecutionCompletedEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Result == nil { - m.Result = &Payload{} - } - if err := m.Result.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DecisionTaskCompletedEventId", wireType) - } - m.DecisionTaskCompletedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DecisionTaskCompletedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WorkflowExecutionFailedEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowExecutionFailedEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowExecutionFailedEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Failure", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Failure == nil { - m.Failure = &Failure{} - } - if err := m.Failure.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DecisionTaskCompletedEventId", wireType) - } - m.DecisionTaskCompletedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DecisionTaskCompletedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WorkflowExecutionTimedOutEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowExecutionTimedOutEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowExecutionTimedOutEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TimeoutType", wireType) - } - m.TimeoutType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TimeoutType |= TimeoutType(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DecisionTaskScheduledEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DecisionTaskScheduledEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DecisionTaskScheduledEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TaskList == nil { - m.TaskList = &TaskList{} - } - if err := m.TaskList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartToCloseTimeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StartToCloseTimeout == nil { - m.StartToCloseTimeout = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.StartToCloseTimeout, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Attempt", wireType) - } - m.Attempt = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Attempt |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DecisionTaskStartedEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DecisionTaskStartedEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DecisionTaskStartedEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduledEventId", wireType) - } - m.ScheduledEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ScheduledEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identity = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RequestId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DecisionTaskCompletedEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DecisionTaskCompletedEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DecisionTaskCompletedEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduledEventId", wireType) - } - m.ScheduledEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ScheduledEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartedEventId", wireType) - } - m.StartedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identity = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BinaryChecksum", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BinaryChecksum = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExecutionContext", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ExecutionContext = append(m.ExecutionContext[:0], dAtA[iNdEx:postIndex]...) - if m.ExecutionContext == nil { - m.ExecutionContext = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DecisionTaskTimedOutEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DecisionTaskTimedOutEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DecisionTaskTimedOutEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduledEventId", wireType) - } - m.ScheduledEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ScheduledEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartedEventId", wireType) - } - m.StartedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TimeoutType", wireType) - } - m.TimeoutType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TimeoutType |= TimeoutType(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DecisionTaskFailedEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DecisionTaskFailedEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DecisionTaskFailedEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduledEventId", wireType) - } - m.ScheduledEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ScheduledEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartedEventId", wireType) - } - m.StartedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Cause", wireType) - } - m.Cause = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Cause |= DecisionTaskFailedCause(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Failure", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Failure == nil { - m.Failure = &Failure{} - } - if err := m.Failure.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identity = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BaseRunId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BaseRunId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NewRunId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NewRunId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ForkEventVersion", wireType) - } - m.ForkEventVersion = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ForkEventVersion |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BinaryChecksum", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BinaryChecksum = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ActivityTaskScheduledEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ActivityTaskScheduledEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ActivityTaskScheduledEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActivityId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ActivityId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActivityType", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ActivityType == nil { - m.ActivityType = &ActivityType{} - } - if err := m.ActivityType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TaskList == nil { - m.TaskList = &TaskList{} - } - if err := m.TaskList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Input == nil { - m.Input = &Payload{} - } - if err := m.Input.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduleToCloseTimeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ScheduleToCloseTimeout == nil { - m.ScheduleToCloseTimeout = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.ScheduleToCloseTimeout, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduleToStartTimeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ScheduleToStartTimeout == nil { - m.ScheduleToStartTimeout = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.ScheduleToStartTimeout, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartToCloseTimeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StartToCloseTimeout == nil { - m.StartToCloseTimeout = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.StartToCloseTimeout, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HeartbeatTimeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.HeartbeatTimeout == nil { - m.HeartbeatTimeout = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.HeartbeatTimeout, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DecisionTaskCompletedEventId", wireType) - } - m.DecisionTaskCompletedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DecisionTaskCompletedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RetryPolicy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RetryPolicy == nil { - m.RetryPolicy = &RetryPolicy{} - } - if err := m.RetryPolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Header == nil { - m.Header = &Header{} - } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ActivityTaskStartedEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ActivityTaskStartedEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ActivityTaskStartedEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduledEventId", wireType) - } - m.ScheduledEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ScheduledEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identity = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RequestId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Attempt", wireType) - } - m.Attempt = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Attempt |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastFailure", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LastFailure == nil { - m.LastFailure = &Failure{} - } - if err := m.LastFailure.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ActivityTaskCompletedEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ActivityTaskCompletedEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ActivityTaskCompletedEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Result == nil { - m.Result = &Payload{} - } - if err := m.Result.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduledEventId", wireType) - } - m.ScheduledEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ScheduledEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartedEventId", wireType) - } - m.StartedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identity = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ActivityTaskFailedEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ActivityTaskFailedEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ActivityTaskFailedEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Failure", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Failure == nil { - m.Failure = &Failure{} - } - if err := m.Failure.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduledEventId", wireType) - } - m.ScheduledEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ScheduledEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartedEventId", wireType) - } - m.StartedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identity = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ActivityTaskTimedOutEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ActivityTaskTimedOutEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ActivityTaskTimedOutEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Details", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Details == nil { - m.Details = &Payload{} - } - if err := m.Details.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduledEventId", wireType) - } - m.ScheduledEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ScheduledEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartedEventId", wireType) - } - m.StartedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TimeoutType", wireType) - } - m.TimeoutType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TimeoutType |= TimeoutType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastFailure", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LastFailure == nil { - m.LastFailure = &Failure{} - } - if err := m.LastFailure.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ActivityTaskCancelRequestedEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ActivityTaskCancelRequestedEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ActivityTaskCancelRequestedEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActivityId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ActivityId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DecisionTaskCompletedEventId", wireType) - } - m.DecisionTaskCompletedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DecisionTaskCompletedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RequestCancelActivityTaskFailedEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RequestCancelActivityTaskFailedEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RequestCancelActivityTaskFailedEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActivityId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ActivityId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cause", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Cause = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DecisionTaskCompletedEventId", wireType) - } - m.DecisionTaskCompletedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DecisionTaskCompletedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ActivityTaskCanceledEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ActivityTaskCanceledEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ActivityTaskCanceledEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Details", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Details == nil { - m.Details = &Payload{} - } - if err := m.Details.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LatestCancelRequestedEventId", wireType) - } - m.LatestCancelRequestedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.LatestCancelRequestedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduledEventId", wireType) - } - m.ScheduledEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ScheduledEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartedEventId", wireType) - } - m.StartedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identity = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TimerStartedEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TimerStartedEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TimerStartedEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TimerId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TimerId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartToFireTimeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StartToFireTimeout == nil { - m.StartToFireTimeout = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.StartToFireTimeout, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DecisionTaskCompletedEventId", wireType) - } - m.DecisionTaskCompletedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DecisionTaskCompletedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TimerFiredEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TimerFiredEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TimerFiredEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TimerId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TimerId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartedEventId", wireType) - } - m.StartedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TimerCanceledEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TimerCanceledEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TimerCanceledEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TimerId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TimerId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartedEventId", wireType) - } - m.StartedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DecisionTaskCompletedEventId", wireType) - } - m.DecisionTaskCompletedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DecisionTaskCompletedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identity = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CancelTimerFailedEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CancelTimerFailedEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CancelTimerFailedEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TimerId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TimerId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cause", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Cause = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DecisionTaskCompletedEventId", wireType) - } - m.DecisionTaskCompletedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DecisionTaskCompletedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identity = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WorkflowExecutionContinuedAsNewEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowExecutionContinuedAsNewEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowExecutionContinuedAsNewEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NewExecutionRunId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NewExecutionRunId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowType", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowType == nil { - m.WorkflowType = &WorkflowType{} - } - if err := m.WorkflowType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TaskList == nil { - m.TaskList = &TaskList{} - } - if err := m.TaskList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Input == nil { - m.Input = &Payload{} - } - if err := m.Input.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExecutionStartToCloseTimeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ExecutionStartToCloseTimeout == nil { - m.ExecutionStartToCloseTimeout = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.ExecutionStartToCloseTimeout, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskStartToCloseTimeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TaskStartToCloseTimeout == nil { - m.TaskStartToCloseTimeout = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.TaskStartToCloseTimeout, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DecisionTaskCompletedEventId", wireType) - } - m.DecisionTaskCompletedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DecisionTaskCompletedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BackoffStartInterval", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.BackoffStartInterval == nil { - m.BackoffStartInterval = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.BackoffStartInterval, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Initiator", wireType) - } - m.Initiator = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Initiator |= ContinueAsNewInitiator(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Failure", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Failure == nil { - m.Failure = &Failure{} - } - if err := m.Failure.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastCompletionResult", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LastCompletionResult == nil { - m.LastCompletionResult = &Payload{} - } - if err := m.LastCompletionResult.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Header == nil { - m.Header = &Header{} - } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Memo", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Memo == nil { - m.Memo = &Memo{} - } - if err := m.Memo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SearchAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SearchAttributes == nil { - m.SearchAttributes = &SearchAttributes{} - } - if err := m.SearchAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WorkflowExecutionCancelRequestedEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowExecutionCancelRequestedEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowExecutionCancelRequestedEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cause", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Cause = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ExternalInitiatedEventId", wireType) - } - m.ExternalInitiatedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ExternalInitiatedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExternalWorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ExternalWorkflowExecution == nil { - m.ExternalWorkflowExecution = &WorkflowExecution{} - } - if err := m.ExternalWorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identity = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WorkflowExecutionCanceledEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowExecutionCanceledEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowExecutionCanceledEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DecisionTaskCompletedEventId", wireType) - } - m.DecisionTaskCompletedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DecisionTaskCompletedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Details", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Details == nil { - m.Details = &Payload{} - } - if err := m.Details.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MarkerRecordedEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MarkerRecordedEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MarkerRecordedEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MarkerName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MarkerName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Details", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Details == nil { - m.Details = &Payload{} - } - if err := m.Details.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DecisionTaskCompletedEventId", wireType) - } - m.DecisionTaskCompletedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DecisionTaskCompletedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Header == nil { - m.Header = &Header{} - } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WorkflowExecutionSignaledEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowExecutionSignaledEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowExecutionSignaledEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SignalName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SignalName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Input == nil { - m.Input = &Payload{} - } - if err := m.Input.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identity = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WorkflowExecutionTerminatedEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowExecutionTerminatedEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowExecutionTerminatedEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Details", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Details == nil { - m.Details = &Payload{} - } - if err := m.Details.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identity = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RequestCancelExternalWorkflowExecutionInitiatedEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RequestCancelExternalWorkflowExecutionInitiatedEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DecisionTaskCompletedEventId", wireType) - } - m.DecisionTaskCompletedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DecisionTaskCompletedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Control", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Control = append(m.Control[:0], dAtA[iNdEx:postIndex]...) - if m.Control == nil { - m.Control = []byte{} - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ChildWorkflowOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ChildWorkflowOnly = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RequestCancelExternalWorkflowExecutionFailedEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RequestCancelExternalWorkflowExecutionFailedEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RequestCancelExternalWorkflowExecutionFailedEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Cause", wireType) - } - m.Cause = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Cause |= CancelExternalWorkflowExecutionFailedCause(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DecisionTaskCompletedEventId", wireType) - } - m.DecisionTaskCompletedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DecisionTaskCompletedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field InitiatedEventId", wireType) - } - m.InitiatedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.InitiatedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Control", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Control = append(m.Control[:0], dAtA[iNdEx:postIndex]...) - if m.Control == nil { - m.Control = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ExternalWorkflowExecutionCancelRequestedEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ExternalWorkflowExecutionCancelRequestedEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExternalWorkflowExecutionCancelRequestedEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field InitiatedEventId", wireType) - } - m.InitiatedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.InitiatedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SignalExternalWorkflowExecutionInitiatedEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SignalExternalWorkflowExecutionInitiatedEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SignalExternalWorkflowExecutionInitiatedEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DecisionTaskCompletedEventId", wireType) - } - m.DecisionTaskCompletedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DecisionTaskCompletedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SignalName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SignalName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Input == nil { - m.Input = &Payload{} - } - if err := m.Input.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Control", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Control = append(m.Control[:0], dAtA[iNdEx:postIndex]...) - if m.Control == nil { - m.Control = []byte{} - } - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ChildWorkflowOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ChildWorkflowOnly = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SignalExternalWorkflowExecutionFailedEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SignalExternalWorkflowExecutionFailedEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SignalExternalWorkflowExecutionFailedEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Cause", wireType) - } - m.Cause = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Cause |= SignalExternalWorkflowExecutionFailedCause(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DecisionTaskCompletedEventId", wireType) - } - m.DecisionTaskCompletedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DecisionTaskCompletedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field InitiatedEventId", wireType) - } - m.InitiatedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.InitiatedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Control", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Control = append(m.Control[:0], dAtA[iNdEx:postIndex]...) - if m.Control == nil { - m.Control = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ExternalWorkflowExecutionSignaledEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ExternalWorkflowExecutionSignaledEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExternalWorkflowExecutionSignaledEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field InitiatedEventId", wireType) - } - m.InitiatedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.InitiatedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Control", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Control = append(m.Control[:0], dAtA[iNdEx:postIndex]...) - if m.Control == nil { - m.Control = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UpsertWorkflowSearchAttributesEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UpsertWorkflowSearchAttributesEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UpsertWorkflowSearchAttributesEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DecisionTaskCompletedEventId", wireType) - } - m.DecisionTaskCompletedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DecisionTaskCompletedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SearchAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SearchAttributes == nil { - m.SearchAttributes = &SearchAttributes{} - } - if err := m.SearchAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StartChildWorkflowExecutionInitiatedEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StartChildWorkflowExecutionInitiatedEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StartChildWorkflowExecutionInitiatedEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.WorkflowId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowType", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowType == nil { - m.WorkflowType = &WorkflowType{} - } - if err := m.WorkflowType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TaskList == nil { - m.TaskList = &TaskList{} - } - if err := m.TaskList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Input == nil { - m.Input = &Payload{} - } - if err := m.Input.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExecutionStartToCloseTimeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ExecutionStartToCloseTimeout == nil { - m.ExecutionStartToCloseTimeout = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.ExecutionStartToCloseTimeout, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskStartToCloseTimeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TaskStartToCloseTimeout == nil { - m.TaskStartToCloseTimeout = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.TaskStartToCloseTimeout, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ParentClosePolicy", wireType) - } - m.ParentClosePolicy = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ParentClosePolicy |= ParentClosePolicy(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Control", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Control = append(m.Control[:0], dAtA[iNdEx:postIndex]...) - if m.Control == nil { - m.Control = []byte{} - } - iNdEx = postIndex - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DecisionTaskCompletedEventId", wireType) - } - m.DecisionTaskCompletedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DecisionTaskCompletedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowIdReusePolicy", wireType) - } - m.WorkflowIdReusePolicy = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.WorkflowIdReusePolicy |= WorkflowIdReusePolicy(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RetryPolicy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RetryPolicy == nil { - m.RetryPolicy = &RetryPolicy{} - } - if err := m.RetryPolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CronSchedule", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CronSchedule = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Header == nil { - m.Header = &Header{} - } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 16: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Memo", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Memo == nil { - m.Memo = &Memo{} - } - if err := m.Memo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 17: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SearchAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SearchAttributes == nil { - m.SearchAttributes = &SearchAttributes{} - } - if err := m.SearchAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StartChildWorkflowExecutionFailedEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StartChildWorkflowExecutionFailedEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StartChildWorkflowExecutionFailedEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.WorkflowId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowType", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowType == nil { - m.WorkflowType = &WorkflowType{} - } - if err := m.WorkflowType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Cause", wireType) - } - m.Cause = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Cause |= ChildWorkflowExecutionFailedCause(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Control", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Control = append(m.Control[:0], dAtA[iNdEx:postIndex]...) - if m.Control == nil { - m.Control = []byte{} - } - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field InitiatedEventId", wireType) - } - m.InitiatedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.InitiatedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DecisionTaskCompletedEventId", wireType) - } - m.DecisionTaskCompletedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DecisionTaskCompletedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ChildWorkflowExecutionStartedEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ChildWorkflowExecutionStartedEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ChildWorkflowExecutionStartedEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowType", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowType == nil { - m.WorkflowType = &WorkflowType{} - } - if err := m.WorkflowType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field InitiatedEventId", wireType) - } - m.InitiatedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.InitiatedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Header == nil { - m.Header = &Header{} - } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ChildWorkflowExecutionCompletedEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ChildWorkflowExecutionCompletedEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ChildWorkflowExecutionCompletedEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowType", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowType == nil { - m.WorkflowType = &WorkflowType{} - } - if err := m.WorkflowType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field InitiatedEventId", wireType) - } - m.InitiatedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.InitiatedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartedEventId", wireType) - } - m.StartedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Result == nil { - m.Result = &Payload{} - } - if err := m.Result.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ChildWorkflowExecutionFailedEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ChildWorkflowExecutionFailedEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ChildWorkflowExecutionFailedEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowType", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowType == nil { - m.WorkflowType = &WorkflowType{} - } - if err := m.WorkflowType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field InitiatedEventId", wireType) - } - m.InitiatedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.InitiatedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartedEventId", wireType) - } - m.StartedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Failure", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Failure == nil { - m.Failure = &Failure{} - } - if err := m.Failure.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ChildWorkflowExecutionCanceledEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ChildWorkflowExecutionCanceledEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ChildWorkflowExecutionCanceledEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowType", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowType == nil { - m.WorkflowType = &WorkflowType{} - } - if err := m.WorkflowType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field InitiatedEventId", wireType) - } - m.InitiatedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.InitiatedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartedEventId", wireType) - } - m.StartedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Details", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Details == nil { - m.Details = &Payload{} - } - if err := m.Details.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ChildWorkflowExecutionTimedOutEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ChildWorkflowExecutionTimedOutEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ChildWorkflowExecutionTimedOutEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowType", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowType == nil { - m.WorkflowType = &WorkflowType{} - } - if err := m.WorkflowType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field InitiatedEventId", wireType) - } - m.InitiatedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.InitiatedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartedEventId", wireType) - } - m.StartedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TimeoutType", wireType) - } - m.TimeoutType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TimeoutType |= TimeoutType(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ChildWorkflowExecutionTerminatedEventAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ChildWorkflowExecutionTerminatedEventAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ChildWorkflowExecutionTerminatedEventAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowType", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowType == nil { - m.WorkflowType = &WorkflowType{} - } - if err := m.WorkflowType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field InitiatedEventId", wireType) - } - m.InitiatedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.InitiatedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartedEventId", wireType) - } - m.StartedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } +var ( + file_uber_cadence_api_v1_history_proto_rawDescOnce sync.Once + file_uber_cadence_api_v1_history_proto_rawDescData = file_uber_cadence_api_v1_history_proto_rawDesc +) - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipHistory(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowHistory - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowHistory - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowHistory - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthHistory - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupHistory - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthHistory - } - if depth == 0 { - return iNdEx, nil - } +func file_uber_cadence_api_v1_history_proto_rawDescGZIP() []byte { + file_uber_cadence_api_v1_history_proto_rawDescOnce.Do(func() { + file_uber_cadence_api_v1_history_proto_rawDescData = protoimpl.X.CompressGZIP(file_uber_cadence_api_v1_history_proto_rawDescData) + }) + return file_uber_cadence_api_v1_history_proto_rawDescData +} + +var file_uber_cadence_api_v1_history_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_uber_cadence_api_v1_history_proto_msgTypes = make([]protoimpl.MessageInfo, 44) +var file_uber_cadence_api_v1_history_proto_goTypes = []interface{}{ + (EventFilterType)(0), // 0: uber.cadence.api.v1.EventFilterType + (*History)(nil), // 1: uber.cadence.api.v1.History + (*HistoryEvent)(nil), // 2: uber.cadence.api.v1.HistoryEvent + (*WorkflowExecutionStartedEventAttributes)(nil), // 3: uber.cadence.api.v1.WorkflowExecutionStartedEventAttributes + (*WorkflowExecutionCompletedEventAttributes)(nil), // 4: uber.cadence.api.v1.WorkflowExecutionCompletedEventAttributes + (*WorkflowExecutionFailedEventAttributes)(nil), // 5: uber.cadence.api.v1.WorkflowExecutionFailedEventAttributes + (*WorkflowExecutionTimedOutEventAttributes)(nil), // 6: uber.cadence.api.v1.WorkflowExecutionTimedOutEventAttributes + (*DecisionTaskScheduledEventAttributes)(nil), // 7: uber.cadence.api.v1.DecisionTaskScheduledEventAttributes + (*DecisionTaskStartedEventAttributes)(nil), // 8: uber.cadence.api.v1.DecisionTaskStartedEventAttributes + (*DecisionTaskCompletedEventAttributes)(nil), // 9: uber.cadence.api.v1.DecisionTaskCompletedEventAttributes + (*DecisionTaskTimedOutEventAttributes)(nil), // 10: uber.cadence.api.v1.DecisionTaskTimedOutEventAttributes + (*DecisionTaskFailedEventAttributes)(nil), // 11: uber.cadence.api.v1.DecisionTaskFailedEventAttributes + (*ActivityTaskScheduledEventAttributes)(nil), // 12: uber.cadence.api.v1.ActivityTaskScheduledEventAttributes + (*ActivityTaskStartedEventAttributes)(nil), // 13: uber.cadence.api.v1.ActivityTaskStartedEventAttributes + (*ActivityTaskCompletedEventAttributes)(nil), // 14: uber.cadence.api.v1.ActivityTaskCompletedEventAttributes + (*ActivityTaskFailedEventAttributes)(nil), // 15: uber.cadence.api.v1.ActivityTaskFailedEventAttributes + (*ActivityTaskTimedOutEventAttributes)(nil), // 16: uber.cadence.api.v1.ActivityTaskTimedOutEventAttributes + (*ActivityTaskCancelRequestedEventAttributes)(nil), // 17: uber.cadence.api.v1.ActivityTaskCancelRequestedEventAttributes + (*RequestCancelActivityTaskFailedEventAttributes)(nil), // 18: uber.cadence.api.v1.RequestCancelActivityTaskFailedEventAttributes + (*ActivityTaskCanceledEventAttributes)(nil), // 19: uber.cadence.api.v1.ActivityTaskCanceledEventAttributes + (*TimerStartedEventAttributes)(nil), // 20: uber.cadence.api.v1.TimerStartedEventAttributes + (*TimerFiredEventAttributes)(nil), // 21: uber.cadence.api.v1.TimerFiredEventAttributes + (*TimerCanceledEventAttributes)(nil), // 22: uber.cadence.api.v1.TimerCanceledEventAttributes + (*CancelTimerFailedEventAttributes)(nil), // 23: uber.cadence.api.v1.CancelTimerFailedEventAttributes + (*WorkflowExecutionContinuedAsNewEventAttributes)(nil), // 24: uber.cadence.api.v1.WorkflowExecutionContinuedAsNewEventAttributes + (*WorkflowExecutionCancelRequestedEventAttributes)(nil), // 25: uber.cadence.api.v1.WorkflowExecutionCancelRequestedEventAttributes + (*WorkflowExecutionCanceledEventAttributes)(nil), // 26: uber.cadence.api.v1.WorkflowExecutionCanceledEventAttributes + (*MarkerRecordedEventAttributes)(nil), // 27: uber.cadence.api.v1.MarkerRecordedEventAttributes + (*WorkflowExecutionSignaledEventAttributes)(nil), // 28: uber.cadence.api.v1.WorkflowExecutionSignaledEventAttributes + (*WorkflowExecutionTerminatedEventAttributes)(nil), // 29: uber.cadence.api.v1.WorkflowExecutionTerminatedEventAttributes + (*RequestCancelExternalWorkflowExecutionInitiatedEventAttributes)(nil), // 30: uber.cadence.api.v1.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes + (*RequestCancelExternalWorkflowExecutionFailedEventAttributes)(nil), // 31: uber.cadence.api.v1.RequestCancelExternalWorkflowExecutionFailedEventAttributes + (*ExternalWorkflowExecutionCancelRequestedEventAttributes)(nil), // 32: uber.cadence.api.v1.ExternalWorkflowExecutionCancelRequestedEventAttributes + (*SignalExternalWorkflowExecutionInitiatedEventAttributes)(nil), // 33: uber.cadence.api.v1.SignalExternalWorkflowExecutionInitiatedEventAttributes + (*SignalExternalWorkflowExecutionFailedEventAttributes)(nil), // 34: uber.cadence.api.v1.SignalExternalWorkflowExecutionFailedEventAttributes + (*ExternalWorkflowExecutionSignaledEventAttributes)(nil), // 35: uber.cadence.api.v1.ExternalWorkflowExecutionSignaledEventAttributes + (*UpsertWorkflowSearchAttributesEventAttributes)(nil), // 36: uber.cadence.api.v1.UpsertWorkflowSearchAttributesEventAttributes + (*StartChildWorkflowExecutionInitiatedEventAttributes)(nil), // 37: uber.cadence.api.v1.StartChildWorkflowExecutionInitiatedEventAttributes + (*StartChildWorkflowExecutionFailedEventAttributes)(nil), // 38: uber.cadence.api.v1.StartChildWorkflowExecutionFailedEventAttributes + (*ChildWorkflowExecutionStartedEventAttributes)(nil), // 39: uber.cadence.api.v1.ChildWorkflowExecutionStartedEventAttributes + (*ChildWorkflowExecutionCompletedEventAttributes)(nil), // 40: uber.cadence.api.v1.ChildWorkflowExecutionCompletedEventAttributes + (*ChildWorkflowExecutionFailedEventAttributes)(nil), // 41: uber.cadence.api.v1.ChildWorkflowExecutionFailedEventAttributes + (*ChildWorkflowExecutionCanceledEventAttributes)(nil), // 42: uber.cadence.api.v1.ChildWorkflowExecutionCanceledEventAttributes + (*ChildWorkflowExecutionTimedOutEventAttributes)(nil), // 43: uber.cadence.api.v1.ChildWorkflowExecutionTimedOutEventAttributes + (*ChildWorkflowExecutionTerminatedEventAttributes)(nil), // 44: uber.cadence.api.v1.ChildWorkflowExecutionTerminatedEventAttributes + (*timestamppb.Timestamp)(nil), // 45: google.protobuf.Timestamp + (*WorkflowType)(nil), // 46: uber.cadence.api.v1.WorkflowType + (*WorkflowExecution)(nil), // 47: uber.cadence.api.v1.WorkflowExecution + (*TaskList)(nil), // 48: uber.cadence.api.v1.TaskList + (*Payload)(nil), // 49: uber.cadence.api.v1.Payload + (*durationpb.Duration)(nil), // 50: google.protobuf.Duration + (ContinueAsNewInitiator)(0), // 51: uber.cadence.api.v1.ContinueAsNewInitiator + (*Failure)(nil), // 52: uber.cadence.api.v1.Failure + (*RetryPolicy)(nil), // 53: uber.cadence.api.v1.RetryPolicy + (*Memo)(nil), // 54: uber.cadence.api.v1.Memo + (*SearchAttributes)(nil), // 55: uber.cadence.api.v1.SearchAttributes + (*ResetPoints)(nil), // 56: uber.cadence.api.v1.ResetPoints + (*Header)(nil), // 57: uber.cadence.api.v1.Header + (TimeoutType)(0), // 58: uber.cadence.api.v1.TimeoutType + (DecisionTaskFailedCause)(0), // 59: uber.cadence.api.v1.DecisionTaskFailedCause + (*ActivityType)(nil), // 60: uber.cadence.api.v1.ActivityType + (CancelExternalWorkflowExecutionFailedCause)(0), // 61: uber.cadence.api.v1.CancelExternalWorkflowExecutionFailedCause + (SignalExternalWorkflowExecutionFailedCause)(0), // 62: uber.cadence.api.v1.SignalExternalWorkflowExecutionFailedCause + (ParentClosePolicy)(0), // 63: uber.cadence.api.v1.ParentClosePolicy + (WorkflowIdReusePolicy)(0), // 64: uber.cadence.api.v1.WorkflowIdReusePolicy + (ChildWorkflowExecutionFailedCause)(0), // 65: uber.cadence.api.v1.ChildWorkflowExecutionFailedCause +} +var file_uber_cadence_api_v1_history_proto_depIdxs = []int32{ + 2, // 0: uber.cadence.api.v1.History.events:type_name -> uber.cadence.api.v1.HistoryEvent + 45, // 1: uber.cadence.api.v1.HistoryEvent.event_time:type_name -> google.protobuf.Timestamp + 3, // 2: uber.cadence.api.v1.HistoryEvent.workflow_execution_started_event_attributes:type_name -> uber.cadence.api.v1.WorkflowExecutionStartedEventAttributes + 4, // 3: uber.cadence.api.v1.HistoryEvent.workflow_execution_completed_event_attributes:type_name -> uber.cadence.api.v1.WorkflowExecutionCompletedEventAttributes + 5, // 4: uber.cadence.api.v1.HistoryEvent.workflow_execution_failed_event_attributes:type_name -> uber.cadence.api.v1.WorkflowExecutionFailedEventAttributes + 6, // 5: uber.cadence.api.v1.HistoryEvent.workflow_execution_timed_out_event_attributes:type_name -> uber.cadence.api.v1.WorkflowExecutionTimedOutEventAttributes + 7, // 6: uber.cadence.api.v1.HistoryEvent.decision_task_scheduled_event_attributes:type_name -> uber.cadence.api.v1.DecisionTaskScheduledEventAttributes + 8, // 7: uber.cadence.api.v1.HistoryEvent.decision_task_started_event_attributes:type_name -> uber.cadence.api.v1.DecisionTaskStartedEventAttributes + 9, // 8: uber.cadence.api.v1.HistoryEvent.decision_task_completed_event_attributes:type_name -> uber.cadence.api.v1.DecisionTaskCompletedEventAttributes + 10, // 9: uber.cadence.api.v1.HistoryEvent.decision_task_timed_out_event_attributes:type_name -> uber.cadence.api.v1.DecisionTaskTimedOutEventAttributes + 11, // 10: uber.cadence.api.v1.HistoryEvent.decision_task_failed_event_attributes:type_name -> uber.cadence.api.v1.DecisionTaskFailedEventAttributes + 12, // 11: uber.cadence.api.v1.HistoryEvent.activity_task_scheduled_event_attributes:type_name -> uber.cadence.api.v1.ActivityTaskScheduledEventAttributes + 13, // 12: uber.cadence.api.v1.HistoryEvent.activity_task_started_event_attributes:type_name -> uber.cadence.api.v1.ActivityTaskStartedEventAttributes + 14, // 13: uber.cadence.api.v1.HistoryEvent.activity_task_completed_event_attributes:type_name -> uber.cadence.api.v1.ActivityTaskCompletedEventAttributes + 15, // 14: uber.cadence.api.v1.HistoryEvent.activity_task_failed_event_attributes:type_name -> uber.cadence.api.v1.ActivityTaskFailedEventAttributes + 16, // 15: uber.cadence.api.v1.HistoryEvent.activity_task_timed_out_event_attributes:type_name -> uber.cadence.api.v1.ActivityTaskTimedOutEventAttributes + 20, // 16: uber.cadence.api.v1.HistoryEvent.timer_started_event_attributes:type_name -> uber.cadence.api.v1.TimerStartedEventAttributes + 21, // 17: uber.cadence.api.v1.HistoryEvent.timer_fired_event_attributes:type_name -> uber.cadence.api.v1.TimerFiredEventAttributes + 17, // 18: uber.cadence.api.v1.HistoryEvent.activity_task_cancel_requested_event_attributes:type_name -> uber.cadence.api.v1.ActivityTaskCancelRequestedEventAttributes + 18, // 19: uber.cadence.api.v1.HistoryEvent.request_cancel_activity_task_failed_event_attributes:type_name -> uber.cadence.api.v1.RequestCancelActivityTaskFailedEventAttributes + 19, // 20: uber.cadence.api.v1.HistoryEvent.activity_task_canceled_event_attributes:type_name -> uber.cadence.api.v1.ActivityTaskCanceledEventAttributes + 22, // 21: uber.cadence.api.v1.HistoryEvent.timer_canceled_event_attributes:type_name -> uber.cadence.api.v1.TimerCanceledEventAttributes + 23, // 22: uber.cadence.api.v1.HistoryEvent.cancel_timer_failed_event_attributes:type_name -> uber.cadence.api.v1.CancelTimerFailedEventAttributes + 27, // 23: uber.cadence.api.v1.HistoryEvent.marker_recorded_event_attributes:type_name -> uber.cadence.api.v1.MarkerRecordedEventAttributes + 28, // 24: uber.cadence.api.v1.HistoryEvent.workflow_execution_signaled_event_attributes:type_name -> uber.cadence.api.v1.WorkflowExecutionSignaledEventAttributes + 29, // 25: uber.cadence.api.v1.HistoryEvent.workflow_execution_terminated_event_attributes:type_name -> uber.cadence.api.v1.WorkflowExecutionTerminatedEventAttributes + 25, // 26: uber.cadence.api.v1.HistoryEvent.workflow_execution_cancel_requested_event_attributes:type_name -> uber.cadence.api.v1.WorkflowExecutionCancelRequestedEventAttributes + 26, // 27: uber.cadence.api.v1.HistoryEvent.workflow_execution_canceled_event_attributes:type_name -> uber.cadence.api.v1.WorkflowExecutionCanceledEventAttributes + 30, // 28: uber.cadence.api.v1.HistoryEvent.request_cancel_external_workflow_execution_initiated_event_attributes:type_name -> uber.cadence.api.v1.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes + 31, // 29: uber.cadence.api.v1.HistoryEvent.request_cancel_external_workflow_execution_failed_event_attributes:type_name -> uber.cadence.api.v1.RequestCancelExternalWorkflowExecutionFailedEventAttributes + 32, // 30: uber.cadence.api.v1.HistoryEvent.external_workflow_execution_cancel_requested_event_attributes:type_name -> uber.cadence.api.v1.ExternalWorkflowExecutionCancelRequestedEventAttributes + 24, // 31: uber.cadence.api.v1.HistoryEvent.workflow_execution_continued_as_new_event_attributes:type_name -> uber.cadence.api.v1.WorkflowExecutionContinuedAsNewEventAttributes + 37, // 32: uber.cadence.api.v1.HistoryEvent.start_child_workflow_execution_initiated_event_attributes:type_name -> uber.cadence.api.v1.StartChildWorkflowExecutionInitiatedEventAttributes + 38, // 33: uber.cadence.api.v1.HistoryEvent.start_child_workflow_execution_failed_event_attributes:type_name -> uber.cadence.api.v1.StartChildWorkflowExecutionFailedEventAttributes + 39, // 34: uber.cadence.api.v1.HistoryEvent.child_workflow_execution_started_event_attributes:type_name -> uber.cadence.api.v1.ChildWorkflowExecutionStartedEventAttributes + 40, // 35: uber.cadence.api.v1.HistoryEvent.child_workflow_execution_completed_event_attributes:type_name -> uber.cadence.api.v1.ChildWorkflowExecutionCompletedEventAttributes + 41, // 36: uber.cadence.api.v1.HistoryEvent.child_workflow_execution_failed_event_attributes:type_name -> uber.cadence.api.v1.ChildWorkflowExecutionFailedEventAttributes + 42, // 37: uber.cadence.api.v1.HistoryEvent.child_workflow_execution_canceled_event_attributes:type_name -> uber.cadence.api.v1.ChildWorkflowExecutionCanceledEventAttributes + 43, // 38: uber.cadence.api.v1.HistoryEvent.child_workflow_execution_timed_out_event_attributes:type_name -> uber.cadence.api.v1.ChildWorkflowExecutionTimedOutEventAttributes + 44, // 39: uber.cadence.api.v1.HistoryEvent.child_workflow_execution_terminated_event_attributes:type_name -> uber.cadence.api.v1.ChildWorkflowExecutionTerminatedEventAttributes + 33, // 40: uber.cadence.api.v1.HistoryEvent.signal_external_workflow_execution_initiated_event_attributes:type_name -> uber.cadence.api.v1.SignalExternalWorkflowExecutionInitiatedEventAttributes + 34, // 41: uber.cadence.api.v1.HistoryEvent.signal_external_workflow_execution_failed_event_attributes:type_name -> uber.cadence.api.v1.SignalExternalWorkflowExecutionFailedEventAttributes + 35, // 42: uber.cadence.api.v1.HistoryEvent.external_workflow_execution_signaled_event_attributes:type_name -> uber.cadence.api.v1.ExternalWorkflowExecutionSignaledEventAttributes + 36, // 43: uber.cadence.api.v1.HistoryEvent.upsert_workflow_search_attributes_event_attributes:type_name -> uber.cadence.api.v1.UpsertWorkflowSearchAttributesEventAttributes + 46, // 44: uber.cadence.api.v1.WorkflowExecutionStartedEventAttributes.workflow_type:type_name -> uber.cadence.api.v1.WorkflowType + 47, // 45: uber.cadence.api.v1.WorkflowExecutionStartedEventAttributes.parent_workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 48, // 46: uber.cadence.api.v1.WorkflowExecutionStartedEventAttributes.task_list:type_name -> uber.cadence.api.v1.TaskList + 49, // 47: uber.cadence.api.v1.WorkflowExecutionStartedEventAttributes.input:type_name -> uber.cadence.api.v1.Payload + 50, // 48: uber.cadence.api.v1.WorkflowExecutionStartedEventAttributes.execution_start_to_close_timeout:type_name -> google.protobuf.Duration + 50, // 49: uber.cadence.api.v1.WorkflowExecutionStartedEventAttributes.task_start_to_close_timeout:type_name -> google.protobuf.Duration + 51, // 50: uber.cadence.api.v1.WorkflowExecutionStartedEventAttributes.initiator:type_name -> uber.cadence.api.v1.ContinueAsNewInitiator + 52, // 51: uber.cadence.api.v1.WorkflowExecutionStartedEventAttributes.continued_failure:type_name -> uber.cadence.api.v1.Failure + 49, // 52: uber.cadence.api.v1.WorkflowExecutionStartedEventAttributes.last_completion_result:type_name -> uber.cadence.api.v1.Payload + 53, // 53: uber.cadence.api.v1.WorkflowExecutionStartedEventAttributes.retry_policy:type_name -> uber.cadence.api.v1.RetryPolicy + 45, // 54: uber.cadence.api.v1.WorkflowExecutionStartedEventAttributes.expiration_time:type_name -> google.protobuf.Timestamp + 50, // 55: uber.cadence.api.v1.WorkflowExecutionStartedEventAttributes.first_decision_task_backoff:type_name -> google.protobuf.Duration + 54, // 56: uber.cadence.api.v1.WorkflowExecutionStartedEventAttributes.memo:type_name -> uber.cadence.api.v1.Memo + 55, // 57: uber.cadence.api.v1.WorkflowExecutionStartedEventAttributes.search_attributes:type_name -> uber.cadence.api.v1.SearchAttributes + 56, // 58: uber.cadence.api.v1.WorkflowExecutionStartedEventAttributes.prev_auto_reset_points:type_name -> uber.cadence.api.v1.ResetPoints + 57, // 59: uber.cadence.api.v1.WorkflowExecutionStartedEventAttributes.header:type_name -> uber.cadence.api.v1.Header + 49, // 60: uber.cadence.api.v1.WorkflowExecutionCompletedEventAttributes.result:type_name -> uber.cadence.api.v1.Payload + 52, // 61: uber.cadence.api.v1.WorkflowExecutionFailedEventAttributes.failure:type_name -> uber.cadence.api.v1.Failure + 58, // 62: uber.cadence.api.v1.WorkflowExecutionTimedOutEventAttributes.timeout_type:type_name -> uber.cadence.api.v1.TimeoutType + 48, // 63: uber.cadence.api.v1.DecisionTaskScheduledEventAttributes.task_list:type_name -> uber.cadence.api.v1.TaskList + 50, // 64: uber.cadence.api.v1.DecisionTaskScheduledEventAttributes.start_to_close_timeout:type_name -> google.protobuf.Duration + 58, // 65: uber.cadence.api.v1.DecisionTaskTimedOutEventAttributes.timeout_type:type_name -> uber.cadence.api.v1.TimeoutType + 59, // 66: uber.cadence.api.v1.DecisionTaskFailedEventAttributes.cause:type_name -> uber.cadence.api.v1.DecisionTaskFailedCause + 52, // 67: uber.cadence.api.v1.DecisionTaskFailedEventAttributes.failure:type_name -> uber.cadence.api.v1.Failure + 60, // 68: uber.cadence.api.v1.ActivityTaskScheduledEventAttributes.activity_type:type_name -> uber.cadence.api.v1.ActivityType + 48, // 69: uber.cadence.api.v1.ActivityTaskScheduledEventAttributes.task_list:type_name -> uber.cadence.api.v1.TaskList + 49, // 70: uber.cadence.api.v1.ActivityTaskScheduledEventAttributes.input:type_name -> uber.cadence.api.v1.Payload + 50, // 71: uber.cadence.api.v1.ActivityTaskScheduledEventAttributes.schedule_to_close_timeout:type_name -> google.protobuf.Duration + 50, // 72: uber.cadence.api.v1.ActivityTaskScheduledEventAttributes.schedule_to_start_timeout:type_name -> google.protobuf.Duration + 50, // 73: uber.cadence.api.v1.ActivityTaskScheduledEventAttributes.start_to_close_timeout:type_name -> google.protobuf.Duration + 50, // 74: uber.cadence.api.v1.ActivityTaskScheduledEventAttributes.heartbeat_timeout:type_name -> google.protobuf.Duration + 53, // 75: uber.cadence.api.v1.ActivityTaskScheduledEventAttributes.retry_policy:type_name -> uber.cadence.api.v1.RetryPolicy + 57, // 76: uber.cadence.api.v1.ActivityTaskScheduledEventAttributes.header:type_name -> uber.cadence.api.v1.Header + 52, // 77: uber.cadence.api.v1.ActivityTaskStartedEventAttributes.last_failure:type_name -> uber.cadence.api.v1.Failure + 49, // 78: uber.cadence.api.v1.ActivityTaskCompletedEventAttributes.result:type_name -> uber.cadence.api.v1.Payload + 52, // 79: uber.cadence.api.v1.ActivityTaskFailedEventAttributes.failure:type_name -> uber.cadence.api.v1.Failure + 49, // 80: uber.cadence.api.v1.ActivityTaskTimedOutEventAttributes.details:type_name -> uber.cadence.api.v1.Payload + 58, // 81: uber.cadence.api.v1.ActivityTaskTimedOutEventAttributes.timeout_type:type_name -> uber.cadence.api.v1.TimeoutType + 52, // 82: uber.cadence.api.v1.ActivityTaskTimedOutEventAttributes.last_failure:type_name -> uber.cadence.api.v1.Failure + 49, // 83: uber.cadence.api.v1.ActivityTaskCanceledEventAttributes.details:type_name -> uber.cadence.api.v1.Payload + 50, // 84: uber.cadence.api.v1.TimerStartedEventAttributes.start_to_fire_timeout:type_name -> google.protobuf.Duration + 46, // 85: uber.cadence.api.v1.WorkflowExecutionContinuedAsNewEventAttributes.workflow_type:type_name -> uber.cadence.api.v1.WorkflowType + 48, // 86: uber.cadence.api.v1.WorkflowExecutionContinuedAsNewEventAttributes.task_list:type_name -> uber.cadence.api.v1.TaskList + 49, // 87: uber.cadence.api.v1.WorkflowExecutionContinuedAsNewEventAttributes.input:type_name -> uber.cadence.api.v1.Payload + 50, // 88: uber.cadence.api.v1.WorkflowExecutionContinuedAsNewEventAttributes.execution_start_to_close_timeout:type_name -> google.protobuf.Duration + 50, // 89: uber.cadence.api.v1.WorkflowExecutionContinuedAsNewEventAttributes.task_start_to_close_timeout:type_name -> google.protobuf.Duration + 50, // 90: uber.cadence.api.v1.WorkflowExecutionContinuedAsNewEventAttributes.backoff_start_interval:type_name -> google.protobuf.Duration + 51, // 91: uber.cadence.api.v1.WorkflowExecutionContinuedAsNewEventAttributes.initiator:type_name -> uber.cadence.api.v1.ContinueAsNewInitiator + 52, // 92: uber.cadence.api.v1.WorkflowExecutionContinuedAsNewEventAttributes.failure:type_name -> uber.cadence.api.v1.Failure + 49, // 93: uber.cadence.api.v1.WorkflowExecutionContinuedAsNewEventAttributes.last_completion_result:type_name -> uber.cadence.api.v1.Payload + 57, // 94: uber.cadence.api.v1.WorkflowExecutionContinuedAsNewEventAttributes.header:type_name -> uber.cadence.api.v1.Header + 54, // 95: uber.cadence.api.v1.WorkflowExecutionContinuedAsNewEventAttributes.memo:type_name -> uber.cadence.api.v1.Memo + 55, // 96: uber.cadence.api.v1.WorkflowExecutionContinuedAsNewEventAttributes.search_attributes:type_name -> uber.cadence.api.v1.SearchAttributes + 47, // 97: uber.cadence.api.v1.WorkflowExecutionCancelRequestedEventAttributes.external_workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 49, // 98: uber.cadence.api.v1.WorkflowExecutionCanceledEventAttributes.details:type_name -> uber.cadence.api.v1.Payload + 49, // 99: uber.cadence.api.v1.MarkerRecordedEventAttributes.details:type_name -> uber.cadence.api.v1.Payload + 57, // 100: uber.cadence.api.v1.MarkerRecordedEventAttributes.header:type_name -> uber.cadence.api.v1.Header + 49, // 101: uber.cadence.api.v1.WorkflowExecutionSignaledEventAttributes.input:type_name -> uber.cadence.api.v1.Payload + 49, // 102: uber.cadence.api.v1.WorkflowExecutionTerminatedEventAttributes.details:type_name -> uber.cadence.api.v1.Payload + 47, // 103: uber.cadence.api.v1.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 61, // 104: uber.cadence.api.v1.RequestCancelExternalWorkflowExecutionFailedEventAttributes.cause:type_name -> uber.cadence.api.v1.CancelExternalWorkflowExecutionFailedCause + 47, // 105: uber.cadence.api.v1.RequestCancelExternalWorkflowExecutionFailedEventAttributes.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 47, // 106: uber.cadence.api.v1.ExternalWorkflowExecutionCancelRequestedEventAttributes.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 47, // 107: uber.cadence.api.v1.SignalExternalWorkflowExecutionInitiatedEventAttributes.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 49, // 108: uber.cadence.api.v1.SignalExternalWorkflowExecutionInitiatedEventAttributes.input:type_name -> uber.cadence.api.v1.Payload + 62, // 109: uber.cadence.api.v1.SignalExternalWorkflowExecutionFailedEventAttributes.cause:type_name -> uber.cadence.api.v1.SignalExternalWorkflowExecutionFailedCause + 47, // 110: uber.cadence.api.v1.SignalExternalWorkflowExecutionFailedEventAttributes.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 47, // 111: uber.cadence.api.v1.ExternalWorkflowExecutionSignaledEventAttributes.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 55, // 112: uber.cadence.api.v1.UpsertWorkflowSearchAttributesEventAttributes.search_attributes:type_name -> uber.cadence.api.v1.SearchAttributes + 46, // 113: uber.cadence.api.v1.StartChildWorkflowExecutionInitiatedEventAttributes.workflow_type:type_name -> uber.cadence.api.v1.WorkflowType + 48, // 114: uber.cadence.api.v1.StartChildWorkflowExecutionInitiatedEventAttributes.task_list:type_name -> uber.cadence.api.v1.TaskList + 49, // 115: uber.cadence.api.v1.StartChildWorkflowExecutionInitiatedEventAttributes.input:type_name -> uber.cadence.api.v1.Payload + 50, // 116: uber.cadence.api.v1.StartChildWorkflowExecutionInitiatedEventAttributes.execution_start_to_close_timeout:type_name -> google.protobuf.Duration + 50, // 117: uber.cadence.api.v1.StartChildWorkflowExecutionInitiatedEventAttributes.task_start_to_close_timeout:type_name -> google.protobuf.Duration + 63, // 118: uber.cadence.api.v1.StartChildWorkflowExecutionInitiatedEventAttributes.parent_close_policy:type_name -> uber.cadence.api.v1.ParentClosePolicy + 64, // 119: uber.cadence.api.v1.StartChildWorkflowExecutionInitiatedEventAttributes.workflow_id_reuse_policy:type_name -> uber.cadence.api.v1.WorkflowIdReusePolicy + 53, // 120: uber.cadence.api.v1.StartChildWorkflowExecutionInitiatedEventAttributes.retry_policy:type_name -> uber.cadence.api.v1.RetryPolicy + 57, // 121: uber.cadence.api.v1.StartChildWorkflowExecutionInitiatedEventAttributes.header:type_name -> uber.cadence.api.v1.Header + 54, // 122: uber.cadence.api.v1.StartChildWorkflowExecutionInitiatedEventAttributes.memo:type_name -> uber.cadence.api.v1.Memo + 55, // 123: uber.cadence.api.v1.StartChildWorkflowExecutionInitiatedEventAttributes.search_attributes:type_name -> uber.cadence.api.v1.SearchAttributes + 46, // 124: uber.cadence.api.v1.StartChildWorkflowExecutionFailedEventAttributes.workflow_type:type_name -> uber.cadence.api.v1.WorkflowType + 65, // 125: uber.cadence.api.v1.StartChildWorkflowExecutionFailedEventAttributes.cause:type_name -> uber.cadence.api.v1.ChildWorkflowExecutionFailedCause + 47, // 126: uber.cadence.api.v1.ChildWorkflowExecutionStartedEventAttributes.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 46, // 127: uber.cadence.api.v1.ChildWorkflowExecutionStartedEventAttributes.workflow_type:type_name -> uber.cadence.api.v1.WorkflowType + 57, // 128: uber.cadence.api.v1.ChildWorkflowExecutionStartedEventAttributes.header:type_name -> uber.cadence.api.v1.Header + 47, // 129: uber.cadence.api.v1.ChildWorkflowExecutionCompletedEventAttributes.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 46, // 130: uber.cadence.api.v1.ChildWorkflowExecutionCompletedEventAttributes.workflow_type:type_name -> uber.cadence.api.v1.WorkflowType + 49, // 131: uber.cadence.api.v1.ChildWorkflowExecutionCompletedEventAttributes.result:type_name -> uber.cadence.api.v1.Payload + 47, // 132: uber.cadence.api.v1.ChildWorkflowExecutionFailedEventAttributes.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 46, // 133: uber.cadence.api.v1.ChildWorkflowExecutionFailedEventAttributes.workflow_type:type_name -> uber.cadence.api.v1.WorkflowType + 52, // 134: uber.cadence.api.v1.ChildWorkflowExecutionFailedEventAttributes.failure:type_name -> uber.cadence.api.v1.Failure + 47, // 135: uber.cadence.api.v1.ChildWorkflowExecutionCanceledEventAttributes.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 46, // 136: uber.cadence.api.v1.ChildWorkflowExecutionCanceledEventAttributes.workflow_type:type_name -> uber.cadence.api.v1.WorkflowType + 49, // 137: uber.cadence.api.v1.ChildWorkflowExecutionCanceledEventAttributes.details:type_name -> uber.cadence.api.v1.Payload + 47, // 138: uber.cadence.api.v1.ChildWorkflowExecutionTimedOutEventAttributes.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 46, // 139: uber.cadence.api.v1.ChildWorkflowExecutionTimedOutEventAttributes.workflow_type:type_name -> uber.cadence.api.v1.WorkflowType + 58, // 140: uber.cadence.api.v1.ChildWorkflowExecutionTimedOutEventAttributes.timeout_type:type_name -> uber.cadence.api.v1.TimeoutType + 47, // 141: uber.cadence.api.v1.ChildWorkflowExecutionTerminatedEventAttributes.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 46, // 142: uber.cadence.api.v1.ChildWorkflowExecutionTerminatedEventAttributes.workflow_type:type_name -> uber.cadence.api.v1.WorkflowType + 143, // [143:143] is the sub-list for method output_type + 143, // [143:143] is the sub-list for method input_type + 143, // [143:143] is the sub-list for extension type_name + 143, // [143:143] is the sub-list for extension extendee + 0, // [0:143] is the sub-list for field type_name +} + +func init() { file_uber_cadence_api_v1_history_proto_init() } +func file_uber_cadence_api_v1_history_proto_init() { + if File_uber_cadence_api_v1_history_proto != nil { + return + } + file_uber_cadence_api_v1_common_proto_init() + file_uber_cadence_api_v1_tasklist_proto_init() + file_uber_cadence_api_v1_workflow_proto_init() + if !protoimpl.UnsafeEnabled { + file_uber_cadence_api_v1_history_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*History); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HistoryEvent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowExecutionStartedEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowExecutionCompletedEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowExecutionFailedEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowExecutionTimedOutEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DecisionTaskScheduledEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DecisionTaskStartedEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DecisionTaskCompletedEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DecisionTaskTimedOutEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DecisionTaskFailedEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ActivityTaskScheduledEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ActivityTaskStartedEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ActivityTaskCompletedEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ActivityTaskFailedEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ActivityTaskTimedOutEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ActivityTaskCancelRequestedEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestCancelActivityTaskFailedEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ActivityTaskCanceledEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TimerStartedEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TimerFiredEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TimerCanceledEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CancelTimerFailedEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowExecutionContinuedAsNewEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowExecutionCancelRequestedEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowExecutionCanceledEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MarkerRecordedEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowExecutionSignaledEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowExecutionTerminatedEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestCancelExternalWorkflowExecutionInitiatedEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestCancelExternalWorkflowExecutionFailedEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExternalWorkflowExecutionCancelRequestedEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignalExternalWorkflowExecutionInitiatedEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignalExternalWorkflowExecutionFailedEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExternalWorkflowExecutionSignaledEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpsertWorkflowSearchAttributesEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StartChildWorkflowExecutionInitiatedEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StartChildWorkflowExecutionFailedEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ChildWorkflowExecutionStartedEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ChildWorkflowExecutionCompletedEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ChildWorkflowExecutionFailedEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ChildWorkflowExecutionCanceledEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ChildWorkflowExecutionTimedOutEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ChildWorkflowExecutionTerminatedEventAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_uber_cadence_api_v1_history_proto_msgTypes[1].OneofWrappers = []interface{}{ + (*HistoryEvent_WorkflowExecutionStartedEventAttributes)(nil), + (*HistoryEvent_WorkflowExecutionCompletedEventAttributes)(nil), + (*HistoryEvent_WorkflowExecutionFailedEventAttributes)(nil), + (*HistoryEvent_WorkflowExecutionTimedOutEventAttributes)(nil), + (*HistoryEvent_DecisionTaskScheduledEventAttributes)(nil), + (*HistoryEvent_DecisionTaskStartedEventAttributes)(nil), + (*HistoryEvent_DecisionTaskCompletedEventAttributes)(nil), + (*HistoryEvent_DecisionTaskTimedOutEventAttributes)(nil), + (*HistoryEvent_DecisionTaskFailedEventAttributes)(nil), + (*HistoryEvent_ActivityTaskScheduledEventAttributes)(nil), + (*HistoryEvent_ActivityTaskStartedEventAttributes)(nil), + (*HistoryEvent_ActivityTaskCompletedEventAttributes)(nil), + (*HistoryEvent_ActivityTaskFailedEventAttributes)(nil), + (*HistoryEvent_ActivityTaskTimedOutEventAttributes)(nil), + (*HistoryEvent_TimerStartedEventAttributes)(nil), + (*HistoryEvent_TimerFiredEventAttributes)(nil), + (*HistoryEvent_ActivityTaskCancelRequestedEventAttributes)(nil), + (*HistoryEvent_RequestCancelActivityTaskFailedEventAttributes)(nil), + (*HistoryEvent_ActivityTaskCanceledEventAttributes)(nil), + (*HistoryEvent_TimerCanceledEventAttributes)(nil), + (*HistoryEvent_CancelTimerFailedEventAttributes)(nil), + (*HistoryEvent_MarkerRecordedEventAttributes)(nil), + (*HistoryEvent_WorkflowExecutionSignaledEventAttributes)(nil), + (*HistoryEvent_WorkflowExecutionTerminatedEventAttributes)(nil), + (*HistoryEvent_WorkflowExecutionCancelRequestedEventAttributes)(nil), + (*HistoryEvent_WorkflowExecutionCanceledEventAttributes)(nil), + (*HistoryEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes)(nil), + (*HistoryEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes)(nil), + (*HistoryEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes)(nil), + (*HistoryEvent_WorkflowExecutionContinuedAsNewEventAttributes)(nil), + (*HistoryEvent_StartChildWorkflowExecutionInitiatedEventAttributes)(nil), + (*HistoryEvent_StartChildWorkflowExecutionFailedEventAttributes)(nil), + (*HistoryEvent_ChildWorkflowExecutionStartedEventAttributes)(nil), + (*HistoryEvent_ChildWorkflowExecutionCompletedEventAttributes)(nil), + (*HistoryEvent_ChildWorkflowExecutionFailedEventAttributes)(nil), + (*HistoryEvent_ChildWorkflowExecutionCanceledEventAttributes)(nil), + (*HistoryEvent_ChildWorkflowExecutionTimedOutEventAttributes)(nil), + (*HistoryEvent_ChildWorkflowExecutionTerminatedEventAttributes)(nil), + (*HistoryEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes)(nil), + (*HistoryEvent_SignalExternalWorkflowExecutionFailedEventAttributes)(nil), + (*HistoryEvent_ExternalWorkflowExecutionSignaledEventAttributes)(nil), + (*HistoryEvent_UpsertWorkflowSearchAttributesEventAttributes)(nil), } - return 0, io.ErrUnexpectedEOF + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_uber_cadence_api_v1_history_proto_rawDesc, + NumEnums: 1, + NumMessages: 44, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_uber_cadence_api_v1_history_proto_goTypes, + DependencyIndexes: file_uber_cadence_api_v1_history_proto_depIdxs, + EnumInfos: file_uber_cadence_api_v1_history_proto_enumTypes, + MessageInfos: file_uber_cadence_api_v1_history_proto_msgTypes, + }.Build() + File_uber_cadence_api_v1_history_proto = out.File + file_uber_cadence_api_v1_history_proto_rawDesc = nil + file_uber_cadence_api_v1_history_proto_goTypes = nil + file_uber_cadence_api_v1_history_proto_depIdxs = nil } - -var ( - ErrInvalidLengthHistory = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowHistory = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupHistory = fmt.Errorf("proto: unexpected end of group") -) diff --git a/.gen/proto/api/v1/query.pb.go b/.gen/proto/api/v1/query.pb.go index 2001b3efb6c..1fd9d051e35 100644 --- a/.gen/proto/api/v1/query.pb.go +++ b/.gen/proto/api/v1/query.pb.go @@ -1,1120 +1,534 @@ -// The MIT License (MIT) - -// Copyright (c) 2017-2020 Uber Technologies Inc. - +// 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 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. +// 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. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.14.0 // source: uber/cadence/api/v1/query.proto package apiv1 import ( - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" reflect "reflect" - strconv "strconv" - strings "strings" + sync "sync" - proto "github.com/gogo/protobuf/proto" + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// 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 +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type QueryResultType int32 const ( - QUERY_RESULT_TYPE_INVALID QueryResultType = 0 - QUERY_RESULT_TYPE_ANSWERED QueryResultType = 1 - QUERY_RESULT_TYPE_FAILED QueryResultType = 2 + QueryResultType_QUERY_RESULT_TYPE_INVALID QueryResultType = 0 + QueryResultType_QUERY_RESULT_TYPE_ANSWERED QueryResultType = 1 + QueryResultType_QUERY_RESULT_TYPE_FAILED QueryResultType = 2 +) + +// Enum value maps for QueryResultType. +var ( + QueryResultType_name = map[int32]string{ + 0: "QUERY_RESULT_TYPE_INVALID", + 1: "QUERY_RESULT_TYPE_ANSWERED", + 2: "QUERY_RESULT_TYPE_FAILED", + } + QueryResultType_value = map[string]int32{ + "QUERY_RESULT_TYPE_INVALID": 0, + "QUERY_RESULT_TYPE_ANSWERED": 1, + "QUERY_RESULT_TYPE_FAILED": 2, + } ) -var QueryResultType_name = map[int32]string{ - 0: "QUERY_RESULT_TYPE_INVALID", - 1: "QUERY_RESULT_TYPE_ANSWERED", - 2: "QUERY_RESULT_TYPE_FAILED", +func (x QueryResultType) Enum() *QueryResultType { + p := new(QueryResultType) + *p = x + return p } -var QueryResultType_value = map[string]int32{ - "QUERY_RESULT_TYPE_INVALID": 0, - "QUERY_RESULT_TYPE_ANSWERED": 1, - "QUERY_RESULT_TYPE_FAILED": 2, +func (x QueryResultType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (QueryResultType) Descriptor() protoreflect.EnumDescriptor { + return file_uber_cadence_api_v1_query_proto_enumTypes[0].Descriptor() +} + +func (QueryResultType) Type() protoreflect.EnumType { + return &file_uber_cadence_api_v1_query_proto_enumTypes[0] +} + +func (x QueryResultType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use QueryResultType.Descriptor instead. func (QueryResultType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_91769cfce21084c6, []int{0} + return file_uber_cadence_api_v1_query_proto_rawDescGZIP(), []int{0} } type QueryRejectCondition int32 const ( - QUERY_REJECT_CONDITION_INVALID QueryRejectCondition = 0 + QueryRejectCondition_QUERY_REJECT_CONDITION_INVALID QueryRejectCondition = 0 // QUERY_REJECT_CONDITION_NOT_OPEN indicates that query should be rejected if workflow is not open. - QUERY_REJECT_CONDITION_NOT_OPEN QueryRejectCondition = 1 + QueryRejectCondition_QUERY_REJECT_CONDITION_NOT_OPEN QueryRejectCondition = 1 // QUERY_REJECT_CONDITION_NOT_COMPLETED_CLEANLY indicates that query should be rejected if workflow did not complete cleanly. - QUERY_REJECT_CONDITION_NOT_COMPLETED_CLEANLY QueryRejectCondition = 2 + QueryRejectCondition_QUERY_REJECT_CONDITION_NOT_COMPLETED_CLEANLY QueryRejectCondition = 2 ) -var QueryRejectCondition_name = map[int32]string{ - 0: "QUERY_REJECT_CONDITION_INVALID", - 1: "QUERY_REJECT_CONDITION_NOT_OPEN", - 2: "QUERY_REJECT_CONDITION_NOT_COMPLETED_CLEANLY", +// Enum value maps for QueryRejectCondition. +var ( + QueryRejectCondition_name = map[int32]string{ + 0: "QUERY_REJECT_CONDITION_INVALID", + 1: "QUERY_REJECT_CONDITION_NOT_OPEN", + 2: "QUERY_REJECT_CONDITION_NOT_COMPLETED_CLEANLY", + } + QueryRejectCondition_value = map[string]int32{ + "QUERY_REJECT_CONDITION_INVALID": 0, + "QUERY_REJECT_CONDITION_NOT_OPEN": 1, + "QUERY_REJECT_CONDITION_NOT_COMPLETED_CLEANLY": 2, + } +) + +func (x QueryRejectCondition) Enum() *QueryRejectCondition { + p := new(QueryRejectCondition) + *p = x + return p +} + +func (x QueryRejectCondition) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (QueryRejectCondition) Descriptor() protoreflect.EnumDescriptor { + return file_uber_cadence_api_v1_query_proto_enumTypes[1].Descriptor() +} + +func (QueryRejectCondition) Type() protoreflect.EnumType { + return &file_uber_cadence_api_v1_query_proto_enumTypes[1] } -var QueryRejectCondition_value = map[string]int32{ - "QUERY_REJECT_CONDITION_INVALID": 0, - "QUERY_REJECT_CONDITION_NOT_OPEN": 1, - "QUERY_REJECT_CONDITION_NOT_COMPLETED_CLEANLY": 2, +func (x QueryRejectCondition) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use QueryRejectCondition.Descriptor instead. func (QueryRejectCondition) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_91769cfce21084c6, []int{1} + return file_uber_cadence_api_v1_query_proto_rawDescGZIP(), []int{1} } type QueryConsistencyLevel int32 const ( - QUERY_CONSISTENCY_LEVEL_INVALID QueryConsistencyLevel = 0 + QueryConsistencyLevel_QUERY_CONSISTENCY_LEVEL_INVALID QueryConsistencyLevel = 0 // EVENTUAL indicates that query should be eventually consistent. - QUERY_CONSISTENCY_LEVEL_EVENTUAL QueryConsistencyLevel = 1 + QueryConsistencyLevel_QUERY_CONSISTENCY_LEVEL_EVENTUAL QueryConsistencyLevel = 1 // STRONG indicates that any events that came before query should be reflected in workflow state before running query. - QUERY_CONSISTENCY_LEVEL_STRONG QueryConsistencyLevel = 2 + QueryConsistencyLevel_QUERY_CONSISTENCY_LEVEL_STRONG QueryConsistencyLevel = 2 ) -var QueryConsistencyLevel_name = map[int32]string{ - 0: "QUERY_CONSISTENCY_LEVEL_INVALID", - 1: "QUERY_CONSISTENCY_LEVEL_EVENTUAL", - 2: "QUERY_CONSISTENCY_LEVEL_STRONG", -} - -var QueryConsistencyLevel_value = map[string]int32{ - "QUERY_CONSISTENCY_LEVEL_INVALID": 0, - "QUERY_CONSISTENCY_LEVEL_EVENTUAL": 1, - "QUERY_CONSISTENCY_LEVEL_STRONG": 2, -} - -func (QueryConsistencyLevel) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_91769cfce21084c6, []int{2} -} +// Enum value maps for QueryConsistencyLevel. +var ( + QueryConsistencyLevel_name = map[int32]string{ + 0: "QUERY_CONSISTENCY_LEVEL_INVALID", + 1: "QUERY_CONSISTENCY_LEVEL_EVENTUAL", + 2: "QUERY_CONSISTENCY_LEVEL_STRONG", + } + QueryConsistencyLevel_value = map[string]int32{ + "QUERY_CONSISTENCY_LEVEL_INVALID": 0, + "QUERY_CONSISTENCY_LEVEL_EVENTUAL": 1, + "QUERY_CONSISTENCY_LEVEL_STRONG": 2, + } +) -type WorkflowQuery struct { - QueryType string `protobuf:"bytes,1,opt,name=query_type,json=queryType,proto3" json:"query_type,omitempty"` - QueryArgs *Payload `protobuf:"bytes,2,opt,name=query_args,json=queryArgs,proto3" json:"query_args,omitempty"` +func (x QueryConsistencyLevel) Enum() *QueryConsistencyLevel { + p := new(QueryConsistencyLevel) + *p = x + return p } -func (m *WorkflowQuery) Reset() { *m = WorkflowQuery{} } -func (*WorkflowQuery) ProtoMessage() {} -func (*WorkflowQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_91769cfce21084c6, []int{0} -} -func (m *WorkflowQuery) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowQuery.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *WorkflowQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowQuery.Merge(m, src) -} -func (m *WorkflowQuery) XXX_Size() int { - return m.Size() -} -func (m *WorkflowQuery) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowQuery.DiscardUnknown(m) +func (x QueryConsistencyLevel) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -var xxx_messageInfo_WorkflowQuery proto.InternalMessageInfo - -func (m *WorkflowQuery) GetQueryType() string { - if m != nil { - return m.QueryType - } - return "" +func (QueryConsistencyLevel) Descriptor() protoreflect.EnumDescriptor { + return file_uber_cadence_api_v1_query_proto_enumTypes[2].Descriptor() } -func (m *WorkflowQuery) GetQueryArgs() *Payload { - if m != nil { - return m.QueryArgs - } - return nil +func (QueryConsistencyLevel) Type() protoreflect.EnumType { + return &file_uber_cadence_api_v1_query_proto_enumTypes[2] } -type WorkflowQueryResult struct { - ResultType QueryResultType `protobuf:"varint,1,opt,name=result_type,json=resultType,proto3,enum=uber.cadence.api.v1.QueryResultType" json:"result_type,omitempty"` - Answer *Payload `protobuf:"bytes,2,opt,name=answer,proto3" json:"answer,omitempty"` - ErrorMessage string `protobuf:"bytes,3,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` +func (x QueryConsistencyLevel) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -func (m *WorkflowQueryResult) Reset() { *m = WorkflowQueryResult{} } -func (*WorkflowQueryResult) ProtoMessage() {} -func (*WorkflowQueryResult) Descriptor() ([]byte, []int) { - return fileDescriptor_91769cfce21084c6, []int{1} -} -func (m *WorkflowQueryResult) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowQueryResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowQueryResult.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *WorkflowQueryResult) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowQueryResult.Merge(m, src) -} -func (m *WorkflowQueryResult) XXX_Size() int { - return m.Size() -} -func (m *WorkflowQueryResult) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowQueryResult.DiscardUnknown(m) +// Deprecated: Use QueryConsistencyLevel.Descriptor instead. +func (QueryConsistencyLevel) EnumDescriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_query_proto_rawDescGZIP(), []int{2} } -var xxx_messageInfo_WorkflowQueryResult proto.InternalMessageInfo +type WorkflowQuery struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *WorkflowQueryResult) GetResultType() QueryResultType { - if m != nil { - return m.ResultType - } - return QUERY_RESULT_TYPE_INVALID + QueryType string `protobuf:"bytes,1,opt,name=query_type,json=queryType,proto3" json:"query_type,omitempty"` + QueryArgs *Payload `protobuf:"bytes,2,opt,name=query_args,json=queryArgs,proto3" json:"query_args,omitempty"` } -func (m *WorkflowQueryResult) GetAnswer() *Payload { - if m != nil { - return m.Answer +func (x *WorkflowQuery) Reset() { + *x = WorkflowQuery{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_query_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *WorkflowQueryResult) GetErrorMessage() string { - if m != nil { - return m.ErrorMessage - } - return "" +func (x *WorkflowQuery) String() string { + return protoimpl.X.MessageStringOf(x) } -type QueryRejected struct { - CloseStatus WorkflowExecutionCloseStatus `protobuf:"varint,1,opt,name=close_status,json=closeStatus,proto3,enum=uber.cadence.api.v1.WorkflowExecutionCloseStatus" json:"close_status,omitempty"` -} +func (*WorkflowQuery) ProtoMessage() {} -func (m *QueryRejected) Reset() { *m = QueryRejected{} } -func (*QueryRejected) ProtoMessage() {} -func (*QueryRejected) Descriptor() ([]byte, []int) { - return fileDescriptor_91769cfce21084c6, []int{2} -} -func (m *QueryRejected) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryRejected) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryRejected.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *WorkflowQuery) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_query_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *QueryRejected) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryRejected.Merge(m, src) -} -func (m *QueryRejected) XXX_Size() int { - return m.Size() -} -func (m *QueryRejected) XXX_DiscardUnknown() { - xxx_messageInfo_QueryRejected.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_QueryRejected proto.InternalMessageInfo +// Deprecated: Use WorkflowQuery.ProtoReflect.Descriptor instead. +func (*WorkflowQuery) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_query_proto_rawDescGZIP(), []int{0} +} -func (m *QueryRejected) GetCloseStatus() WorkflowExecutionCloseStatus { - if m != nil { - return m.CloseStatus +func (x *WorkflowQuery) GetQueryType() string { + if x != nil { + return x.QueryType } - return WORKFLOW_EXECUTION_CLOSE_STATUS_INVALID + return "" } -func init() { - proto.RegisterEnum("uber.cadence.api.v1.QueryResultType", QueryResultType_name, QueryResultType_value) - proto.RegisterEnum("uber.cadence.api.v1.QueryRejectCondition", QueryRejectCondition_name, QueryRejectCondition_value) - proto.RegisterEnum("uber.cadence.api.v1.QueryConsistencyLevel", QueryConsistencyLevel_name, QueryConsistencyLevel_value) - proto.RegisterType((*WorkflowQuery)(nil), "uber.cadence.api.v1.WorkflowQuery") - proto.RegisterType((*WorkflowQueryResult)(nil), "uber.cadence.api.v1.WorkflowQueryResult") - proto.RegisterType((*QueryRejected)(nil), "uber.cadence.api.v1.QueryRejected") +func (x *WorkflowQuery) GetQueryArgs() *Payload { + if x != nil { + return x.QueryArgs + } + return nil } -func init() { - proto.RegisterFile("github.com/uber/cadence/.gen/proto/api/v1/query.proto", fileDescriptor_91769cfce21084c6) -} +type WorkflowQueryResult struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -var fileDescriptor_91769cfce21084c6 = []byte{ - // 573 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xc1, 0x52, 0xd3, 0x40, - 0x1c, 0xc6, 0xb3, 0x75, 0x64, 0x64, 0x01, 0xcd, 0x2c, 0x3a, 0x56, 0x06, 0x96, 0x4e, 0xe1, 0xc0, - 0x30, 0x4e, 0x6a, 0xd1, 0x9b, 0xa7, 0x90, 0xae, 0x4e, 0x9c, 0x90, 0x84, 0x24, 0xc0, 0xd4, 0x4b, - 0x0c, 0xe9, 0xca, 0x44, 0xda, 0x6c, 0xdc, 0xa4, 0xc5, 0xde, 0x3c, 0x79, 0xd6, 0xb7, 0xf0, 0x0d, - 0x7c, 0x05, 0x8f, 0x1c, 0x39, 0x4a, 0xb8, 0x78, 0xe4, 0x11, 0x9c, 0xa4, 0xa9, 0xad, 0x36, 0x38, - 0xde, 0x36, 0xff, 0xff, 0xef, 0xcb, 0xf7, 0x7d, 0x33, 0xbb, 0x70, 0xbd, 0x7f, 0x4c, 0x79, 0xc3, - 0xf7, 0x3a, 0x34, 0xf4, 0x69, 0xc3, 0x8b, 0x82, 0xc6, 0xa0, 0xd9, 0x78, 0xdf, 0xa7, 0x7c, 0x28, - 0x45, 0x9c, 0x25, 0x0c, 0x2d, 0x67, 0x80, 0x54, 0x00, 0x92, 0x17, 0x05, 0xd2, 0xa0, 0xb9, 0x52, - 0x2b, 0x53, 0xf9, 0xac, 0xd7, 0x63, 0xe1, 0x48, 0xb6, 0x52, 0x2f, 0x23, 0xce, 0x18, 0x3f, 0x7d, - 0xdb, 0x65, 0x67, 0x23, 0xa6, 0x7e, 0x0a, 0x97, 0x8e, 0x8a, 0xc9, 0x7e, 0xe6, 0x88, 0xd6, 0x20, - 0xcc, 0xad, 0xdd, 0x64, 0x18, 0xd1, 0x2a, 0xa8, 0x81, 0xad, 0x79, 0x6b, 0x3e, 0x9f, 0x38, 0xc3, - 0x88, 0xa2, 0xe7, 0xe3, 0xb5, 0xc7, 0x4f, 0xe2, 0x6a, 0xa5, 0x06, 0xb6, 0x16, 0x76, 0x56, 0xa5, - 0x92, 0x7c, 0x92, 0xe9, 0x0d, 0xbb, 0xcc, 0xeb, 0x14, 0x62, 0x99, 0x9f, 0xc4, 0xf5, 0x6f, 0x00, - 0x2e, 0xff, 0xe1, 0x66, 0xd1, 0xb8, 0xdf, 0x4d, 0x10, 0x81, 0x0b, 0x3c, 0x3f, 0x4d, 0x4c, 0xef, - 0xee, 0x6c, 0x96, 0xfe, 0x75, 0x4a, 0x96, 0xe5, 0xb1, 0x20, 0xff, 0x7d, 0x46, 0xcf, 0xe0, 0x9c, - 0x17, 0xc6, 0x67, 0x94, 0xff, 0x57, 0xae, 0x82, 0x45, 0x1b, 0x70, 0x89, 0x72, 0xce, 0xb8, 0xdb, - 0xa3, 0x71, 0xec, 0x9d, 0xd0, 0xea, 0xad, 0xbc, 0xf3, 0x62, 0x3e, 0xdc, 0x1b, 0xcd, 0xea, 0x14, - 0x2e, 0x15, 0xce, 0xef, 0xa8, 0x9f, 0xd0, 0x0e, 0x72, 0xe0, 0xa2, 0xdf, 0x65, 0x31, 0x75, 0xe3, - 0xc4, 0x4b, 0xfa, 0x71, 0x91, 0xb9, 0x59, 0xea, 0x38, 0xae, 0x4c, 0x3e, 0x50, 0xbf, 0x9f, 0x04, - 0x2c, 0x54, 0x32, 0xa5, 0x9d, 0x0b, 0xad, 0x05, 0x7f, 0xf2, 0xb1, 0x1d, 0xc2, 0x7b, 0x7f, 0x15, - 0x44, 0x6b, 0xf0, 0xd1, 0xfe, 0x01, 0xb1, 0xda, 0xae, 0x45, 0xec, 0x03, 0xcd, 0x71, 0x9d, 0xb6, - 0x49, 0x5c, 0x55, 0x3f, 0x94, 0x35, 0xb5, 0x25, 0x0a, 0x08, 0xc3, 0x95, 0xd9, 0xb5, 0xac, 0xdb, - 0x47, 0xc4, 0x22, 0x2d, 0x11, 0xa0, 0x55, 0x58, 0x9d, 0xdd, 0xbf, 0x90, 0x55, 0x8d, 0xb4, 0xc4, - 0xca, 0xf6, 0x17, 0x00, 0xef, 0x4f, 0xf5, 0x52, 0x58, 0xd8, 0x09, 0xb2, 0x80, 0xa8, 0x0e, 0xf1, - 0x58, 0xf6, 0x8a, 0x28, 0x8e, 0xab, 0x18, 0x7a, 0x4b, 0x75, 0x54, 0x43, 0x9f, 0xb2, 0xde, 0x80, - 0xeb, 0x37, 0x30, 0xba, 0xe1, 0xb8, 0x86, 0x49, 0x74, 0x11, 0xa0, 0x27, 0xf0, 0xf1, 0x3f, 0x20, - 0xc5, 0xd8, 0x33, 0x35, 0xe2, 0x90, 0x96, 0xab, 0x68, 0x44, 0xd6, 0xb5, 0xb6, 0x58, 0xd9, 0xfe, - 0x04, 0xe0, 0x83, 0x3c, 0x93, 0xc2, 0xc2, 0x38, 0x88, 0x13, 0x1a, 0xfa, 0x43, 0x8d, 0x0e, 0x68, - 0x77, 0x62, 0xa8, 0x18, 0xba, 0xad, 0xda, 0x0e, 0xd1, 0x95, 0xb6, 0xab, 0x91, 0x43, 0xa2, 0x4d, - 0xa5, 0xda, 0x84, 0xb5, 0x9b, 0x20, 0x72, 0x48, 0x74, 0xe7, 0x40, 0xd6, 0x44, 0x30, 0xe9, 0x37, - 0x4b, 0xd9, 0x8e, 0x65, 0xe8, 0x2f, 0xc5, 0xca, 0xee, 0x9b, 0xf3, 0x4b, 0x2c, 0x5c, 0x5c, 0x62, - 0xe1, 0xfa, 0x12, 0x83, 0x8f, 0x29, 0x06, 0x5f, 0x53, 0x0c, 0xbe, 0xa7, 0x18, 0x9c, 0xa7, 0x18, - 0xfc, 0x48, 0x31, 0xf8, 0x99, 0x62, 0xe1, 0x3a, 0xc5, 0xe0, 0xf3, 0x15, 0x16, 0xce, 0xaf, 0xb0, - 0x70, 0x71, 0x85, 0x05, 0xf8, 0xd0, 0x67, 0xbd, 0xb2, 0x5b, 0xb0, 0x7b, 0x47, 0x8e, 0x02, 0x33, - 0x7b, 0x73, 0x26, 0x78, 0x7d, 0xdb, 0x8b, 0x82, 0x41, 0xf3, 0x78, 0x2e, 0x7f, 0x83, 0x4f, 0x7f, - 0x05, 0x00, 0x00, 0xff, 0xff, 0x70, 0x02, 0x5a, 0xf6, 0x01, 0x04, 0x00, 0x00, + ResultType QueryResultType `protobuf:"varint,1,opt,name=result_type,json=resultType,proto3,enum=uber.cadence.api.v1.QueryResultType" json:"result_type,omitempty"` + Answer *Payload `protobuf:"bytes,2,opt,name=answer,proto3" json:"answer,omitempty"` + ErrorMessage string `protobuf:"bytes,3,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` } -func (x QueryResultType) String() string { - s, ok := QueryResultType_name[int32(x)] - if ok { - return s - } - return strconv.Itoa(int(x)) -} -func (x QueryRejectCondition) String() string { - s, ok := QueryRejectCondition_name[int32(x)] - if ok { - return s - } - return strconv.Itoa(int(x)) -} -func (x QueryConsistencyLevel) String() string { - s, ok := QueryConsistencyLevel_name[int32(x)] - if ok { - return s +func (x *WorkflowQueryResult) Reset() { + *x = WorkflowQueryResult{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_query_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return strconv.Itoa(int(x)) } -func (this *WorkflowQuery) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*WorkflowQuery) - if !ok { - that2, ok := that.(WorkflowQuery) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.QueryType != that1.QueryType { - return false - } - if !this.QueryArgs.Equal(that1.QueryArgs) { - return false - } - return true +func (x *WorkflowQueryResult) String() string { + return protoimpl.X.MessageStringOf(x) } -func (this *WorkflowQueryResult) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*WorkflowQueryResult) - if !ok { - that2, ok := that.(WorkflowQueryResult) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.ResultType != that1.ResultType { - return false - } - if !this.Answer.Equal(that1.Answer) { - return false - } - if this.ErrorMessage != that1.ErrorMessage { - return false - } - return true -} -func (this *QueryRejected) Equal(that interface{}) bool { - if that == nil { - return this == nil - } +func (*WorkflowQueryResult) ProtoMessage() {} - that1, ok := that.(*QueryRejected) - if !ok { - that2, ok := that.(QueryRejected) - if ok { - that1 = &that2 - } else { - return false +func (x *WorkflowQueryResult) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_query_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.CloseStatus != that1.CloseStatus { - return false - } - return true -} -func (this *WorkflowQuery) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.WorkflowQuery{") - s = append(s, "QueryType: "+fmt.Sprintf("%#v", this.QueryType)+",\n") - if this.QueryArgs != nil { - s = append(s, "QueryArgs: "+fmt.Sprintf("%#v", this.QueryArgs)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *WorkflowQueryResult) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&apiv1.WorkflowQueryResult{") - s = append(s, "ResultType: "+fmt.Sprintf("%#v", this.ResultType)+",\n") - if this.Answer != nil { - s = append(s, "Answer: "+fmt.Sprintf("%#v", this.Answer)+",\n") - } - s = append(s, "ErrorMessage: "+fmt.Sprintf("%#v", this.ErrorMessage)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *QueryRejected) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&apiv1.QueryRejected{") - s = append(s, "CloseStatus: "+fmt.Sprintf("%#v", this.CloseStatus)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func valueToGoStringQuery(v interface{}, typ string) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) -} -func (m *WorkflowQuery) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil + return mi.MessageOf(x) } -func (m *WorkflowQuery) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use WorkflowQueryResult.ProtoReflect.Descriptor instead. +func (*WorkflowQueryResult) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_query_proto_rawDescGZIP(), []int{1} } -func (m *WorkflowQuery) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.QueryArgs != nil { - { - size, err := m.QueryArgs.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 +func (x *WorkflowQueryResult) GetResultType() QueryResultType { + if x != nil { + return x.ResultType } - if len(m.QueryType) > 0 { - i -= len(m.QueryType) - copy(dAtA[i:], m.QueryType) - i = encodeVarintQuery(dAtA, i, uint64(len(m.QueryType))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return QueryResultType_QUERY_RESULT_TYPE_INVALID } -func (m *WorkflowQueryResult) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *WorkflowQueryResult) GetAnswer() *Payload { + if x != nil { + return x.Answer } - return dAtA[:n], nil -} - -func (m *WorkflowQueryResult) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return nil } -func (m *WorkflowQueryResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ErrorMessage) > 0 { - i -= len(m.ErrorMessage) - copy(dAtA[i:], m.ErrorMessage) - i = encodeVarintQuery(dAtA, i, uint64(len(m.ErrorMessage))) - i-- - dAtA[i] = 0x1a - } - if m.Answer != nil { - { - size, err := m.Answer.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.ResultType != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.ResultType)) - i-- - dAtA[i] = 0x8 +func (x *WorkflowQueryResult) GetErrorMessage() string { + if x != nil { + return x.ErrorMessage } - return len(dAtA) - i, nil + return "" } -func (m *QueryRejected) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} +type QueryRejected struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *QueryRejected) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + CloseStatus WorkflowExecutionCloseStatus `protobuf:"varint,1,opt,name=close_status,json=closeStatus,proto3,enum=uber.cadence.api.v1.WorkflowExecutionCloseStatus" json:"close_status,omitempty"` } -func (m *QueryRejected) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.CloseStatus != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.CloseStatus)) - i-- - dAtA[i] = 0x8 +func (x *QueryRejected) Reset() { + *x = QueryRejected{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_query_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return len(dAtA) - i, nil } -func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { - offset -= sovQuery(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *WorkflowQuery) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.QueryType) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - if m.QueryArgs != nil { - l = m.QueryArgs.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n +func (x *QueryRejected) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WorkflowQueryResult) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ResultType != 0 { - n += 1 + sovQuery(uint64(m.ResultType)) - } - if m.Answer != nil { - l = m.Answer.Size() - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.ErrorMessage) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} +func (*QueryRejected) ProtoMessage() {} -func (m *QueryRejected) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.CloseStatus != 0 { - n += 1 + sovQuery(uint64(m.CloseStatus)) +func (x *QueryRejected) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_query_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return n + return mi.MessageOf(x) } -func sovQuery(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozQuery(x uint64) (n int) { - return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *WorkflowQuery) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&WorkflowQuery{`, - `QueryType:` + fmt.Sprintf("%v", this.QueryType) + `,`, - `QueryArgs:` + strings.Replace(fmt.Sprintf("%v", this.QueryArgs), "Payload", "Payload", 1) + `,`, - `}`, - }, "") - return s -} -func (this *WorkflowQueryResult) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&WorkflowQueryResult{`, - `ResultType:` + fmt.Sprintf("%v", this.ResultType) + `,`, - `Answer:` + strings.Replace(fmt.Sprintf("%v", this.Answer), "Payload", "Payload", 1) + `,`, - `ErrorMessage:` + fmt.Sprintf("%v", this.ErrorMessage) + `,`, - `}`, - }, "") - return s -} -func (this *QueryRejected) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&QueryRejected{`, - `CloseStatus:` + fmt.Sprintf("%v", this.CloseStatus) + `,`, - `}`, - }, "") - return s -} -func valueToStringQuery(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) +// Deprecated: Use QueryRejected.ProtoReflect.Descriptor instead. +func (*QueryRejected) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_query_proto_rawDescGZIP(), []int{2} +} + +func (x *QueryRejected) GetCloseStatus() WorkflowExecutionCloseStatus { + if x != nil { + return x.CloseStatus + } + return WorkflowExecutionCloseStatus_WORKFLOW_EXECUTION_CLOSE_STATUS_INVALID +} + +var File_uber_cadence_api_v1_query_proto protoreflect.FileDescriptor + +var file_uber_cadence_api_v1_query_proto_rawDesc = []byte{ + 0x0a, 0x1f, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x13, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x1a, 0x20, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, + 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x6b, 0x0a, 0x0d, + 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x1d, 0x0a, + 0x0a, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x71, 0x75, 0x65, 0x72, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3b, 0x0a, 0x0a, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x09, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x41, 0x72, 0x67, 0x73, 0x22, 0xb7, 0x01, 0x0a, 0x13, 0x57, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, + 0x74, 0x12, 0x45, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x72, 0x65, + 0x73, 0x75, 0x6c, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x34, 0x0a, 0x06, 0x61, 0x6e, 0x73, 0x77, + 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, + 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x06, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x12, 0x23, + 0x0a, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x22, 0x65, 0x0a, 0x0d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x6a, 0x65, + 0x63, 0x74, 0x65, 0x64, 0x12, 0x54, 0x0a, 0x0c, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x5f, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x31, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0b, 0x63, + 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2a, 0x6e, 0x0a, 0x0f, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, + 0x19, 0x51, 0x55, 0x45, 0x52, 0x59, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x1e, 0x0a, 0x1a, + 0x51, 0x55, 0x45, 0x52, 0x59, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x41, 0x4e, 0x53, 0x57, 0x45, 0x52, 0x45, 0x44, 0x10, 0x01, 0x12, 0x1c, 0x0a, 0x18, + 0x51, 0x55, 0x45, 0x52, 0x59, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x2a, 0x91, 0x01, 0x0a, 0x14, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x0a, 0x1e, 0x51, 0x55, 0x45, 0x52, 0x59, 0x5f, 0x52, 0x45, 0x4a, + 0x45, 0x43, 0x54, 0x5f, 0x43, 0x4f, 0x4e, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x49, 0x4e, + 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x23, 0x0a, 0x1f, 0x51, 0x55, 0x45, 0x52, 0x59, + 0x5f, 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x43, 0x4f, 0x4e, 0x44, 0x49, 0x54, 0x49, 0x4f, + 0x4e, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x4f, 0x50, 0x45, 0x4e, 0x10, 0x01, 0x12, 0x30, 0x0a, 0x2c, + 0x51, 0x55, 0x45, 0x52, 0x59, 0x5f, 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x43, 0x4f, 0x4e, + 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x4c, + 0x45, 0x54, 0x45, 0x44, 0x5f, 0x43, 0x4c, 0x45, 0x41, 0x4e, 0x4c, 0x59, 0x10, 0x02, 0x2a, 0x86, + 0x01, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, + 0x6e, 0x63, 0x79, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x23, 0x0a, 0x1f, 0x51, 0x55, 0x45, 0x52, + 0x59, 0x5f, 0x43, 0x4f, 0x4e, 0x53, 0x49, 0x53, 0x54, 0x45, 0x4e, 0x43, 0x59, 0x5f, 0x4c, 0x45, + 0x56, 0x45, 0x4c, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x24, 0x0a, + 0x20, 0x51, 0x55, 0x45, 0x52, 0x59, 0x5f, 0x43, 0x4f, 0x4e, 0x53, 0x49, 0x53, 0x54, 0x45, 0x4e, + 0x43, 0x59, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x55, 0x41, + 0x4c, 0x10, 0x01, 0x12, 0x22, 0x0a, 0x1e, 0x51, 0x55, 0x45, 0x52, 0x59, 0x5f, 0x43, 0x4f, 0x4e, + 0x53, 0x49, 0x53, 0x54, 0x45, 0x4e, 0x43, 0x59, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x53, + 0x54, 0x52, 0x4f, 0x4e, 0x47, 0x10, 0x02, 0x42, 0x56, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x76, 0x31, 0x42, 0x08, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2f, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x62, 0x65, 0x72, 0x2f, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x2e, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x70, 0x69, 0x76, 0x31, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func (m *WorkflowQuery) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowQuery: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowQuery: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field QueryType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.QueryType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field QueryArgs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.QueryArgs == nil { - m.QueryArgs = &Payload{} - } - if err := m.QueryArgs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WorkflowQueryResult) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowQueryResult: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowQueryResult: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ResultType", wireType) - } - m.ResultType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ResultType |= QueryResultType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Answer", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Answer == nil { - m.Answer = &Payload{} - } - if err := m.Answer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ErrorMessage", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ErrorMessage = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } +var ( + file_uber_cadence_api_v1_query_proto_rawDescOnce sync.Once + file_uber_cadence_api_v1_query_proto_rawDescData = file_uber_cadence_api_v1_query_proto_rawDesc +) - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryRejected) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryRejected: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryRejected: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CloseStatus", wireType) - } - m.CloseStatus = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CloseStatus |= WorkflowExecutionCloseStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthQuery +func file_uber_cadence_api_v1_query_proto_rawDescGZIP() []byte { + file_uber_cadence_api_v1_query_proto_rawDescOnce.Do(func() { + file_uber_cadence_api_v1_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_uber_cadence_api_v1_query_proto_rawDescData) + }) + return file_uber_cadence_api_v1_query_proto_rawDescData +} + +var file_uber_cadence_api_v1_query_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_uber_cadence_api_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_uber_cadence_api_v1_query_proto_goTypes = []interface{}{ + (QueryResultType)(0), // 0: uber.cadence.api.v1.QueryResultType + (QueryRejectCondition)(0), // 1: uber.cadence.api.v1.QueryRejectCondition + (QueryConsistencyLevel)(0), // 2: uber.cadence.api.v1.QueryConsistencyLevel + (*WorkflowQuery)(nil), // 3: uber.cadence.api.v1.WorkflowQuery + (*WorkflowQueryResult)(nil), // 4: uber.cadence.api.v1.WorkflowQueryResult + (*QueryRejected)(nil), // 5: uber.cadence.api.v1.QueryRejected + (*Payload)(nil), // 6: uber.cadence.api.v1.Payload + (WorkflowExecutionCloseStatus)(0), // 7: uber.cadence.api.v1.WorkflowExecutionCloseStatus +} +var file_uber_cadence_api_v1_query_proto_depIdxs = []int32{ + 6, // 0: uber.cadence.api.v1.WorkflowQuery.query_args:type_name -> uber.cadence.api.v1.Payload + 0, // 1: uber.cadence.api.v1.WorkflowQueryResult.result_type:type_name -> uber.cadence.api.v1.QueryResultType + 6, // 2: uber.cadence.api.v1.WorkflowQueryResult.answer:type_name -> uber.cadence.api.v1.Payload + 7, // 3: uber.cadence.api.v1.QueryRejected.close_status:type_name -> uber.cadence.api.v1.WorkflowExecutionCloseStatus + 4, // [4:4] is the sub-list for method output_type + 4, // [4:4] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name +} + +func init() { file_uber_cadence_api_v1_query_proto_init() } +func file_uber_cadence_api_v1_query_proto_init() { + if File_uber_cadence_api_v1_query_proto != nil { + return + } + file_uber_cadence_api_v1_common_proto_init() + file_uber_cadence_api_v1_workflow_proto_init() + if !protoimpl.UnsafeEnabled { + file_uber_cadence_api_v1_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowQuery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipQuery(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowQuery - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break + file_uber_cadence_api_v1_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowQueryResult); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil } } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowQuery - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } + file_uber_cadence_api_v1_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryRejected); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowQuery - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthQuery - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupQuery - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthQuery - } - if depth == 0 { - return iNdEx, nil } } - return 0, io.ErrUnexpectedEOF + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_uber_cadence_api_v1_query_proto_rawDesc, + NumEnums: 3, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_uber_cadence_api_v1_query_proto_goTypes, + DependencyIndexes: file_uber_cadence_api_v1_query_proto_depIdxs, + EnumInfos: file_uber_cadence_api_v1_query_proto_enumTypes, + MessageInfos: file_uber_cadence_api_v1_query_proto_msgTypes, + }.Build() + File_uber_cadence_api_v1_query_proto = out.File + file_uber_cadence_api_v1_query_proto_rawDesc = nil + file_uber_cadence_api_v1_query_proto_goTypes = nil + file_uber_cadence_api_v1_query_proto_depIdxs = nil } - -var ( - ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") -) diff --git a/.gen/proto/api/v1/service_domain.pb.go b/.gen/proto/api/v1/service_domain.pb.go index 25b11892583..2485275467a 100644 --- a/.gen/proto/api/v1/service_domain.pb.go +++ b/.gen/proto/api/v1/service_domain.pb.go @@ -1,68 +1,61 @@ -// The MIT License (MIT) - -// Copyright (c) 2017-2020 Uber Technologies Inc. - +// 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 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. +// 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. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.14.0 // source: uber/cadence/api/v1/service_domain.proto package apiv1 import ( - bytes "bytes" - context "context" - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" reflect "reflect" - strings "strings" - time "time" - - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" - github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" - _ "github.com/golang/protobuf/ptypes/duration" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" + sync "sync" + + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf -var _ = time.Kitchen +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// 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 +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type RegisterDomainRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` OwnerEmail string `protobuf:"bytes,3,opt,name=owner_email,json=ownerEmail,proto3" json:"owner_email,omitempty"` - WorkflowExecutionRetentionPeriod *time.Duration `protobuf:"bytes,4,opt,name=workflow_execution_retention_period,json=workflowExecutionRetentionPeriod,proto3,stdduration" json:"workflow_execution_retention_period,omitempty"` + WorkflowExecutionRetentionPeriod *durationpb.Duration `protobuf:"bytes,4,opt,name=workflow_execution_retention_period,json=workflowExecutionRetentionPeriod,proto3" json:"workflow_execution_retention_period,omitempty"` Clusters []*ClusterReplicationConfiguration `protobuf:"bytes,5,rep,name=clusters,proto3" json:"clusters,omitempty"` ActiveClusterName string `protobuf:"bytes,6,opt,name=active_cluster_name,json=activeClusterName,proto3" json:"active_cluster_name,omitempty"` Data map[string]string `protobuf:"bytes,7,rep,name=data,proto3" json:"data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` @@ -74,220 +67,210 @@ type RegisterDomainRequest struct { VisibilityArchivalUri string `protobuf:"bytes,13,opt,name=visibility_archival_uri,json=visibilityArchivalUri,proto3" json:"visibility_archival_uri,omitempty"` } -func (m *RegisterDomainRequest) Reset() { *m = RegisterDomainRequest{} } -func (*RegisterDomainRequest) ProtoMessage() {} -func (*RegisterDomainRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_2e37d15268893114, []int{0} +func (x *RegisterDomainRequest) Reset() { + *x = RegisterDomainRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_domain_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RegisterDomainRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *RegisterDomainRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RegisterDomainRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RegisterDomainRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*RegisterDomainRequest) ProtoMessage() {} + +func (x *RegisterDomainRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_domain_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *RegisterDomainRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegisterDomainRequest.Merge(m, src) -} -func (m *RegisterDomainRequest) XXX_Size() int { - return m.Size() -} -func (m *RegisterDomainRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RegisterDomainRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_RegisterDomainRequest proto.InternalMessageInfo +// Deprecated: Use RegisterDomainRequest.ProtoReflect.Descriptor instead. +func (*RegisterDomainRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_domain_proto_rawDescGZIP(), []int{0} +} -func (m *RegisterDomainRequest) GetName() string { - if m != nil { - return m.Name +func (x *RegisterDomainRequest) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *RegisterDomainRequest) GetDescription() string { - if m != nil { - return m.Description +func (x *RegisterDomainRequest) GetDescription() string { + if x != nil { + return x.Description } return "" } -func (m *RegisterDomainRequest) GetOwnerEmail() string { - if m != nil { - return m.OwnerEmail +func (x *RegisterDomainRequest) GetOwnerEmail() string { + if x != nil { + return x.OwnerEmail } return "" } -func (m *RegisterDomainRequest) GetWorkflowExecutionRetentionPeriod() *time.Duration { - if m != nil { - return m.WorkflowExecutionRetentionPeriod +func (x *RegisterDomainRequest) GetWorkflowExecutionRetentionPeriod() *durationpb.Duration { + if x != nil { + return x.WorkflowExecutionRetentionPeriod } return nil } -func (m *RegisterDomainRequest) GetClusters() []*ClusterReplicationConfiguration { - if m != nil { - return m.Clusters +func (x *RegisterDomainRequest) GetClusters() []*ClusterReplicationConfiguration { + if x != nil { + return x.Clusters } return nil } -func (m *RegisterDomainRequest) GetActiveClusterName() string { - if m != nil { - return m.ActiveClusterName +func (x *RegisterDomainRequest) GetActiveClusterName() string { + if x != nil { + return x.ActiveClusterName } return "" } -func (m *RegisterDomainRequest) GetData() map[string]string { - if m != nil { - return m.Data +func (x *RegisterDomainRequest) GetData() map[string]string { + if x != nil { + return x.Data } return nil } -func (m *RegisterDomainRequest) GetSecurityToken() string { - if m != nil { - return m.SecurityToken +func (x *RegisterDomainRequest) GetSecurityToken() string { + if x != nil { + return x.SecurityToken } return "" } -func (m *RegisterDomainRequest) GetIsGlobalDomain() bool { - if m != nil { - return m.IsGlobalDomain +func (x *RegisterDomainRequest) GetIsGlobalDomain() bool { + if x != nil { + return x.IsGlobalDomain } return false } -func (m *RegisterDomainRequest) GetHistoryArchivalStatus() ArchivalStatus { - if m != nil { - return m.HistoryArchivalStatus +func (x *RegisterDomainRequest) GetHistoryArchivalStatus() ArchivalStatus { + if x != nil { + return x.HistoryArchivalStatus } - return ARCHIVAL_STATUS_INVALID + return ArchivalStatus_ARCHIVAL_STATUS_INVALID } -func (m *RegisterDomainRequest) GetHistoryArchivalUri() string { - if m != nil { - return m.HistoryArchivalUri +func (x *RegisterDomainRequest) GetHistoryArchivalUri() string { + if x != nil { + return x.HistoryArchivalUri } return "" } -func (m *RegisterDomainRequest) GetVisibilityArchivalStatus() ArchivalStatus { - if m != nil { - return m.VisibilityArchivalStatus +func (x *RegisterDomainRequest) GetVisibilityArchivalStatus() ArchivalStatus { + if x != nil { + return x.VisibilityArchivalStatus } - return ARCHIVAL_STATUS_INVALID + return ArchivalStatus_ARCHIVAL_STATUS_INVALID } -func (m *RegisterDomainRequest) GetVisibilityArchivalUri() string { - if m != nil { - return m.VisibilityArchivalUri +func (x *RegisterDomainRequest) GetVisibilityArchivalUri() string { + if x != nil { + return x.VisibilityArchivalUri } return "" } type RegisterDomainResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *RegisterDomainResponse) Reset() { *m = RegisterDomainResponse{} } -func (*RegisterDomainResponse) ProtoMessage() {} -func (*RegisterDomainResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2e37d15268893114, []int{1} +func (x *RegisterDomainResponse) Reset() { + *x = RegisterDomainResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_domain_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RegisterDomainResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *RegisterDomainResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RegisterDomainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RegisterDomainResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*RegisterDomainResponse) ProtoMessage() {} + +func (x *RegisterDomainResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_domain_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *RegisterDomainResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegisterDomainResponse.Merge(m, src) -} -func (m *RegisterDomainResponse) XXX_Size() int { - return m.Size() -} -func (m *RegisterDomainResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RegisterDomainResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_RegisterDomainResponse proto.InternalMessageInfo +// Deprecated: Use RegisterDomainResponse.ProtoReflect.Descriptor instead. +func (*RegisterDomainResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_domain_proto_rawDescGZIP(), []int{1} +} type DescribeDomainRequest struct { - // Types that are valid to be assigned to DescribeBy: + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to DescribeBy: // *DescribeDomainRequest_Id // *DescribeDomainRequest_Name DescribeBy isDescribeDomainRequest_DescribeBy `protobuf_oneof:"describe_by"` } -func (m *DescribeDomainRequest) Reset() { *m = DescribeDomainRequest{} } -func (*DescribeDomainRequest) ProtoMessage() {} -func (*DescribeDomainRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_2e37d15268893114, []int{2} -} -func (m *DescribeDomainRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DescribeDomainRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DescribeDomainRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *DescribeDomainRequest) Reset() { + *x = DescribeDomainRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_domain_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *DescribeDomainRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescribeDomainRequest.Merge(m, src) -} -func (m *DescribeDomainRequest) XXX_Size() int { - return m.Size() -} -func (m *DescribeDomainRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DescribeDomainRequest.DiscardUnknown(m) + +func (x *DescribeDomainRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_DescribeDomainRequest proto.InternalMessageInfo +func (*DescribeDomainRequest) ProtoMessage() {} -type isDescribeDomainRequest_DescribeBy interface { - isDescribeDomainRequest_DescribeBy() - Equal(interface{}) bool - MarshalTo([]byte) (int, error) - Size() int +func (x *DescribeDomainRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_domain_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type DescribeDomainRequest_Id struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"` -} -type DescribeDomainRequest_Name struct { - Name string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"` +// Deprecated: Use DescribeDomainRequest.ProtoReflect.Descriptor instead. +func (*DescribeDomainRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_domain_proto_rawDescGZIP(), []int{2} } -func (*DescribeDomainRequest_Id) isDescribeDomainRequest_DescribeBy() {} -func (*DescribeDomainRequest_Name) isDescribeDomainRequest_DescribeBy() {} - func (m *DescribeDomainRequest) GetDescribeBy() isDescribeDomainRequest_DescribeBy { if m != nil { return m.DescribeBy @@ -295,29 +278,41 @@ func (m *DescribeDomainRequest) GetDescribeBy() isDescribeDomainRequest_Describe return nil } -func (m *DescribeDomainRequest) GetId() string { - if x, ok := m.GetDescribeBy().(*DescribeDomainRequest_Id); ok { +func (x *DescribeDomainRequest) GetId() string { + if x, ok := x.GetDescribeBy().(*DescribeDomainRequest_Id); ok { return x.Id } return "" } -func (m *DescribeDomainRequest) GetName() string { - if x, ok := m.GetDescribeBy().(*DescribeDomainRequest_Name); ok { +func (x *DescribeDomainRequest) GetName() string { + if x, ok := x.GetDescribeBy().(*DescribeDomainRequest_Name); ok { return x.Name } return "" } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*DescribeDomainRequest) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*DescribeDomainRequest_Id)(nil), - (*DescribeDomainRequest_Name)(nil), - } +type isDescribeDomainRequest_DescribeBy interface { + isDescribeDomainRequest_DescribeBy() +} + +type DescribeDomainRequest_Id struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3,oneof"` +} + +type DescribeDomainRequest_Name struct { + Name string `protobuf:"bytes,2,opt,name=name,proto3,oneof"` } +func (*DescribeDomainRequest_Id) isDescribeDomainRequest_DescribeBy() {} + +func (*DescribeDomainRequest_Name) isDescribeDomainRequest_DescribeBy() {} + type DescribeDomainResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Info *DomainInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` Configuration *DomainConfiguration `protobuf:"bytes,2,opt,name=configuration,proto3" json:"configuration,omitempty"` ReplicationConfiguration *DomainReplicationConfiguration `protobuf:"bytes,3,opt,name=replication_configuration,json=replicationConfiguration,proto3" json:"replication_configuration,omitempty"` @@ -325,326 +320,346 @@ type DescribeDomainResponse struct { IsGlobalDomain bool `protobuf:"varint,5,opt,name=is_global_domain,json=isGlobalDomain,proto3" json:"is_global_domain,omitempty"` } -func (m *DescribeDomainResponse) Reset() { *m = DescribeDomainResponse{} } -func (*DescribeDomainResponse) ProtoMessage() {} -func (*DescribeDomainResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2e37d15268893114, []int{3} +func (x *DescribeDomainResponse) Reset() { + *x = DescribeDomainResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_domain_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DescribeDomainResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *DescribeDomainResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DescribeDomainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DescribeDomainResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*DescribeDomainResponse) ProtoMessage() {} + +func (x *DescribeDomainResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_domain_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *DescribeDomainResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescribeDomainResponse.Merge(m, src) -} -func (m *DescribeDomainResponse) XXX_Size() int { - return m.Size() -} -func (m *DescribeDomainResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DescribeDomainResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_DescribeDomainResponse proto.InternalMessageInfo +// Deprecated: Use DescribeDomainResponse.ProtoReflect.Descriptor instead. +func (*DescribeDomainResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_domain_proto_rawDescGZIP(), []int{3} +} -func (m *DescribeDomainResponse) GetInfo() *DomainInfo { - if m != nil { - return m.Info +func (x *DescribeDomainResponse) GetInfo() *DomainInfo { + if x != nil { + return x.Info } return nil } -func (m *DescribeDomainResponse) GetConfiguration() *DomainConfiguration { - if m != nil { - return m.Configuration +func (x *DescribeDomainResponse) GetConfiguration() *DomainConfiguration { + if x != nil { + return x.Configuration } return nil } -func (m *DescribeDomainResponse) GetReplicationConfiguration() *DomainReplicationConfiguration { - if m != nil { - return m.ReplicationConfiguration +func (x *DescribeDomainResponse) GetReplicationConfiguration() *DomainReplicationConfiguration { + if x != nil { + return x.ReplicationConfiguration } return nil } -func (m *DescribeDomainResponse) GetFailoverVersion() int64 { - if m != nil { - return m.FailoverVersion +func (x *DescribeDomainResponse) GetFailoverVersion() int64 { + if x != nil { + return x.FailoverVersion } return 0 } -func (m *DescribeDomainResponse) GetIsGlobalDomain() bool { - if m != nil { - return m.IsGlobalDomain +func (x *DescribeDomainResponse) GetIsGlobalDomain() bool { + if x != nil { + return x.IsGlobalDomain } return false } type ListDomainsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } -func (m *ListDomainsRequest) Reset() { *m = ListDomainsRequest{} } -func (*ListDomainsRequest) ProtoMessage() {} -func (*ListDomainsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_2e37d15268893114, []int{4} +func (x *ListDomainsRequest) Reset() { + *x = ListDomainsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_domain_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ListDomainsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ListDomainsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListDomainsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListDomainsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ListDomainsRequest) ProtoMessage() {} + +func (x *ListDomainsRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_domain_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ListDomainsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListDomainsRequest.Merge(m, src) -} -func (m *ListDomainsRequest) XXX_Size() int { - return m.Size() -} -func (m *ListDomainsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListDomainsRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ListDomainsRequest proto.InternalMessageInfo +// Deprecated: Use ListDomainsRequest.ProtoReflect.Descriptor instead. +func (*ListDomainsRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_domain_proto_rawDescGZIP(), []int{4} +} -func (m *ListDomainsRequest) GetPageSize() int32 { - if m != nil { - return m.PageSize +func (x *ListDomainsRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize } return 0 } -func (m *ListDomainsRequest) GetNextPageToken() []byte { - if m != nil { - return m.NextPageToken +func (x *ListDomainsRequest) GetNextPageToken() []byte { + if x != nil { + return x.NextPageToken } return nil } type ListDomainsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Domains []*DescribeDomainResponse `protobuf:"bytes,1,rep,name=domains,proto3" json:"domains,omitempty"` NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } -func (m *ListDomainsResponse) Reset() { *m = ListDomainsResponse{} } -func (*ListDomainsResponse) ProtoMessage() {} -func (*ListDomainsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2e37d15268893114, []int{5} +func (x *ListDomainsResponse) Reset() { + *x = ListDomainsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_domain_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ListDomainsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ListDomainsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListDomainsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListDomainsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ListDomainsResponse) ProtoMessage() {} + +func (x *ListDomainsResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_domain_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ListDomainsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListDomainsResponse.Merge(m, src) -} -func (m *ListDomainsResponse) XXX_Size() int { - return m.Size() -} -func (m *ListDomainsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListDomainsResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ListDomainsResponse proto.InternalMessageInfo +// Deprecated: Use ListDomainsResponse.ProtoReflect.Descriptor instead. +func (*ListDomainsResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_domain_proto_rawDescGZIP(), []int{5} +} -func (m *ListDomainsResponse) GetDomains() []*DescribeDomainResponse { - if m != nil { - return m.Domains +func (x *ListDomainsResponse) GetDomains() []*DescribeDomainResponse { + if x != nil { + return x.Domains } return nil } -func (m *ListDomainsResponse) GetNextPageToken() []byte { - if m != nil { - return m.NextPageToken +func (x *ListDomainsResponse) GetNextPageToken() []byte { + if x != nil { + return x.NextPageToken } return nil } type UpdateDomainInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` OwnerEmail string `protobuf:"bytes,2,opt,name=owner_email,json=ownerEmail,proto3" json:"owner_email,omitempty"` Data map[string]string `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func (m *UpdateDomainInfo) Reset() { *m = UpdateDomainInfo{} } -func (*UpdateDomainInfo) ProtoMessage() {} -func (*UpdateDomainInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_2e37d15268893114, []int{6} +func (x *UpdateDomainInfo) Reset() { + *x = UpdateDomainInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_domain_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UpdateDomainInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *UpdateDomainInfo) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UpdateDomainInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UpdateDomainInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*UpdateDomainInfo) ProtoMessage() {} + +func (x *UpdateDomainInfo) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_domain_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *UpdateDomainInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateDomainInfo.Merge(m, src) -} -func (m *UpdateDomainInfo) XXX_Size() int { - return m.Size() -} -func (m *UpdateDomainInfo) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateDomainInfo.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_UpdateDomainInfo proto.InternalMessageInfo +// Deprecated: Use UpdateDomainInfo.ProtoReflect.Descriptor instead. +func (*UpdateDomainInfo) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_domain_proto_rawDescGZIP(), []int{6} +} -func (m *UpdateDomainInfo) GetDescription() string { - if m != nil { - return m.Description +func (x *UpdateDomainInfo) GetDescription() string { + if x != nil { + return x.Description } return "" } -func (m *UpdateDomainInfo) GetOwnerEmail() string { - if m != nil { - return m.OwnerEmail +func (x *UpdateDomainInfo) GetOwnerEmail() string { + if x != nil { + return x.OwnerEmail } return "" } -func (m *UpdateDomainInfo) GetData() map[string]string { - if m != nil { - return m.Data +func (x *UpdateDomainInfo) GetData() map[string]string { + if x != nil { + return x.Data } return nil } type UpdateDomainRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Info *UpdateDomainInfo `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"` Configuration *DomainConfiguration `protobuf:"bytes,3,opt,name=configuration,proto3" json:"configuration,omitempty"` ReplicationConfiguration *DomainReplicationConfiguration `protobuf:"bytes,4,opt,name=replication_configuration,json=replicationConfiguration,proto3" json:"replication_configuration,omitempty"` SecurityToken string `protobuf:"bytes,5,opt,name=security_token,json=securityToken,proto3" json:"security_token,omitempty"` DeleteBadBinary string `protobuf:"bytes,6,opt,name=delete_bad_binary,json=deleteBadBinary,proto3" json:"delete_bad_binary,omitempty"` - FailoverTimeout *time.Duration `protobuf:"bytes,7,opt,name=failover_timeout,json=failoverTimeout,proto3,stdduration" json:"failover_timeout,omitempty"` + FailoverTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=failover_timeout,json=failoverTimeout,proto3" json:"failover_timeout,omitempty"` } -func (m *UpdateDomainRequest) Reset() { *m = UpdateDomainRequest{} } -func (*UpdateDomainRequest) ProtoMessage() {} -func (*UpdateDomainRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_2e37d15268893114, []int{7} +func (x *UpdateDomainRequest) Reset() { + *x = UpdateDomainRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_domain_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UpdateDomainRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *UpdateDomainRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UpdateDomainRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UpdateDomainRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*UpdateDomainRequest) ProtoMessage() {} + +func (x *UpdateDomainRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_domain_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *UpdateDomainRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateDomainRequest.Merge(m, src) -} -func (m *UpdateDomainRequest) XXX_Size() int { - return m.Size() -} -func (m *UpdateDomainRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateDomainRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_UpdateDomainRequest proto.InternalMessageInfo +// Deprecated: Use UpdateDomainRequest.ProtoReflect.Descriptor instead. +func (*UpdateDomainRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_domain_proto_rawDescGZIP(), []int{7} +} -func (m *UpdateDomainRequest) GetName() string { - if m != nil { - return m.Name +func (x *UpdateDomainRequest) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *UpdateDomainRequest) GetInfo() *UpdateDomainInfo { - if m != nil { - return m.Info +func (x *UpdateDomainRequest) GetInfo() *UpdateDomainInfo { + if x != nil { + return x.Info } return nil } -func (m *UpdateDomainRequest) GetConfiguration() *DomainConfiguration { - if m != nil { - return m.Configuration +func (x *UpdateDomainRequest) GetConfiguration() *DomainConfiguration { + if x != nil { + return x.Configuration } return nil } -func (m *UpdateDomainRequest) GetReplicationConfiguration() *DomainReplicationConfiguration { - if m != nil { - return m.ReplicationConfiguration +func (x *UpdateDomainRequest) GetReplicationConfiguration() *DomainReplicationConfiguration { + if x != nil { + return x.ReplicationConfiguration } return nil } -func (m *UpdateDomainRequest) GetSecurityToken() string { - if m != nil { - return m.SecurityToken +func (x *UpdateDomainRequest) GetSecurityToken() string { + if x != nil { + return x.SecurityToken } return "" } -func (m *UpdateDomainRequest) GetDeleteBadBinary() string { - if m != nil { - return m.DeleteBadBinary +func (x *UpdateDomainRequest) GetDeleteBadBinary() string { + if x != nil { + return x.DeleteBadBinary } return "" } -func (m *UpdateDomainRequest) GetFailoverTimeout() *time.Duration { - if m != nil { - return m.FailoverTimeout +func (x *UpdateDomainRequest) GetFailoverTimeout() *durationpb.Duration { + if x != nil { + return x.FailoverTimeout } return nil } type UpdateDomainResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Info *DomainInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` Configuration *DomainConfiguration `protobuf:"bytes,2,opt,name=configuration,proto3" json:"configuration,omitempty"` ReplicationConfiguration *DomainReplicationConfiguration `protobuf:"bytes,3,opt,name=replication_configuration,json=replicationConfiguration,proto3" json:"replication_configuration,omitempty"` @@ -652,4410 +667,616 @@ type UpdateDomainResponse struct { IsGlobalDomain bool `protobuf:"varint,5,opt,name=is_global_domain,json=isGlobalDomain,proto3" json:"is_global_domain,omitempty"` } -func (m *UpdateDomainResponse) Reset() { *m = UpdateDomainResponse{} } -func (*UpdateDomainResponse) ProtoMessage() {} -func (*UpdateDomainResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2e37d15268893114, []int{8} +func (x *UpdateDomainResponse) Reset() { + *x = UpdateDomainResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_domain_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *UpdateDomainResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *UpdateDomainResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UpdateDomainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UpdateDomainResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*UpdateDomainResponse) ProtoMessage() {} + +func (x *UpdateDomainResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_domain_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *UpdateDomainResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateDomainResponse.Merge(m, src) -} -func (m *UpdateDomainResponse) XXX_Size() int { - return m.Size() -} -func (m *UpdateDomainResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateDomainResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_UpdateDomainResponse proto.InternalMessageInfo +// Deprecated: Use UpdateDomainResponse.ProtoReflect.Descriptor instead. +func (*UpdateDomainResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_domain_proto_rawDescGZIP(), []int{8} +} -func (m *UpdateDomainResponse) GetInfo() *DomainInfo { - if m != nil { - return m.Info +func (x *UpdateDomainResponse) GetInfo() *DomainInfo { + if x != nil { + return x.Info } return nil } -func (m *UpdateDomainResponse) GetConfiguration() *DomainConfiguration { - if m != nil { - return m.Configuration +func (x *UpdateDomainResponse) GetConfiguration() *DomainConfiguration { + if x != nil { + return x.Configuration } return nil } -func (m *UpdateDomainResponse) GetReplicationConfiguration() *DomainReplicationConfiguration { - if m != nil { - return m.ReplicationConfiguration +func (x *UpdateDomainResponse) GetReplicationConfiguration() *DomainReplicationConfiguration { + if x != nil { + return x.ReplicationConfiguration } return nil } -func (m *UpdateDomainResponse) GetFailoverVersion() int64 { - if m != nil { - return m.FailoverVersion +func (x *UpdateDomainResponse) GetFailoverVersion() int64 { + if x != nil { + return x.FailoverVersion } return 0 } -func (m *UpdateDomainResponse) GetIsGlobalDomain() bool { - if m != nil { - return m.IsGlobalDomain +func (x *UpdateDomainResponse) GetIsGlobalDomain() bool { + if x != nil { + return x.IsGlobalDomain } return false } type DeprecateDomainRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` SecurityToken string `protobuf:"bytes,2,opt,name=security_token,json=securityToken,proto3" json:"security_token,omitempty"` } -func (m *DeprecateDomainRequest) Reset() { *m = DeprecateDomainRequest{} } -func (*DeprecateDomainRequest) ProtoMessage() {} -func (*DeprecateDomainRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_2e37d15268893114, []int{9} +func (x *DeprecateDomainRequest) Reset() { + *x = DeprecateDomainRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_domain_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DeprecateDomainRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *DeprecateDomainRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DeprecateDomainRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeprecateDomainRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*DeprecateDomainRequest) ProtoMessage() {} + +func (x *DeprecateDomainRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_domain_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *DeprecateDomainRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeprecateDomainRequest.Merge(m, src) -} -func (m *DeprecateDomainRequest) XXX_Size() int { - return m.Size() -} -func (m *DeprecateDomainRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DeprecateDomainRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_DeprecateDomainRequest proto.InternalMessageInfo +// Deprecated: Use DeprecateDomainRequest.ProtoReflect.Descriptor instead. +func (*DeprecateDomainRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_domain_proto_rawDescGZIP(), []int{9} +} -func (m *DeprecateDomainRequest) GetName() string { - if m != nil { - return m.Name +func (x *DeprecateDomainRequest) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *DeprecateDomainRequest) GetSecurityToken() string { - if m != nil { - return m.SecurityToken +func (x *DeprecateDomainRequest) GetSecurityToken() string { + if x != nil { + return x.SecurityToken } return "" } type DeprecateDomainResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *DeprecateDomainResponse) Reset() { *m = DeprecateDomainResponse{} } -func (*DeprecateDomainResponse) ProtoMessage() {} -func (*DeprecateDomainResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2e37d15268893114, []int{10} -} -func (m *DeprecateDomainResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeprecateDomainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeprecateDomainResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *DeprecateDomainResponse) Reset() { + *x = DeprecateDomainResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_domain_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *DeprecateDomainResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeprecateDomainResponse.Merge(m, src) -} -func (m *DeprecateDomainResponse) XXX_Size() int { - return m.Size() -} -func (m *DeprecateDomainResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DeprecateDomainResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_DeprecateDomainResponse proto.InternalMessageInfo - -func init() { - proto.RegisterType((*RegisterDomainRequest)(nil), "uber.cadence.api.v1.RegisterDomainRequest") - proto.RegisterMapType((map[string]string)(nil), "uber.cadence.api.v1.RegisterDomainRequest.DataEntry") - proto.RegisterType((*RegisterDomainResponse)(nil), "uber.cadence.api.v1.RegisterDomainResponse") - proto.RegisterType((*DescribeDomainRequest)(nil), "uber.cadence.api.v1.DescribeDomainRequest") - proto.RegisterType((*DescribeDomainResponse)(nil), "uber.cadence.api.v1.DescribeDomainResponse") - proto.RegisterType((*ListDomainsRequest)(nil), "uber.cadence.api.v1.ListDomainsRequest") - proto.RegisterType((*ListDomainsResponse)(nil), "uber.cadence.api.v1.ListDomainsResponse") - proto.RegisterType((*UpdateDomainInfo)(nil), "uber.cadence.api.v1.UpdateDomainInfo") - proto.RegisterMapType((map[string]string)(nil), "uber.cadence.api.v1.UpdateDomainInfo.DataEntry") - proto.RegisterType((*UpdateDomainRequest)(nil), "uber.cadence.api.v1.UpdateDomainRequest") - proto.RegisterType((*UpdateDomainResponse)(nil), "uber.cadence.api.v1.UpdateDomainResponse") - proto.RegisterType((*DeprecateDomainRequest)(nil), "uber.cadence.api.v1.DeprecateDomainRequest") - proto.RegisterType((*DeprecateDomainResponse)(nil), "uber.cadence.api.v1.DeprecateDomainResponse") -} - -func init() { - proto.RegisterFile("github.com/uber/cadence/.gen/proto/api/v1/service_domain.proto", fileDescriptor_2e37d15268893114) -} -var fileDescriptor_2e37d15268893114 = []byte{ - // 1113 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x56, 0x4d, 0x6f, 0xdb, 0x46, - 0x13, 0x16, 0xf5, 0x91, 0xd8, 0x23, 0x7f, 0x65, 0x6d, 0xc7, 0xb4, 0xde, 0x17, 0xb4, 0xa0, 0x20, - 0xad, 0x92, 0x14, 0x54, 0x2d, 0x17, 0xfd, 0xba, 0x59, 0xb6, 0xd1, 0xa4, 0x28, 0x0c, 0x81, 0x8e, - 0x0b, 0xb4, 0x3d, 0x30, 0x2b, 0x72, 0xa4, 0x2c, 0x4c, 0x73, 0xd9, 0x25, 0x29, 0x47, 0x39, 0xf5, - 0xd0, 0x1f, 0xd0, 0x53, 0xd1, 0x9f, 0xd0, 0x3f, 0x52, 0xa0, 0x47, 0x03, 0xbd, 0xe4, 0xd4, 0xd6, - 0x72, 0x0f, 0x3d, 0xe6, 0x27, 0x14, 0x5c, 0x52, 0xb6, 0x3e, 0x68, 0x5b, 0x2d, 0x9a, 0x5b, 0x6f, - 0xe2, 0xec, 0xcc, 0xf3, 0xcc, 0xec, 0xec, 0x33, 0x23, 0xa8, 0x86, 0x2d, 0x14, 0x35, 0x8b, 0xda, - 0xe8, 0x5a, 0x58, 0xa3, 0x1e, 0xab, 0x75, 0x37, 0x6b, 0x3e, 0x8a, 0x2e, 0xb3, 0xd0, 0xb4, 0xf9, - 0x31, 0x65, 0xae, 0xee, 0x09, 0x1e, 0x70, 0xb2, 0x1c, 0x79, 0xea, 0x89, 0xa7, 0x4e, 0x3d, 0xa6, - 0x77, 0x37, 0x4b, 0x5a, 0x87, 0xf3, 0x8e, 0x83, 0x35, 0xe9, 0xd2, 0x0a, 0xdb, 0x35, 0x3b, 0x14, - 0x34, 0x60, 0x3c, 0x09, 0x2a, 0xfd, 0xdf, 0x46, 0x0f, 0xdd, 0x28, 0x84, 0xa1, 0x5f, 0xeb, 0xf0, - 0x0e, 0x97, 0xf6, 0xe4, 0xb4, 0x9c, 0x46, 0x3e, 0x4c, 0x5a, 0xf9, 0xf5, 0x16, 0xac, 0x1a, 0xd8, - 0x61, 0x7e, 0x80, 0x62, 0x57, 0x1e, 0x18, 0xf8, 0x75, 0x88, 0x7e, 0x40, 0x08, 0xe4, 0x5d, 0x7a, - 0x8c, 0xaa, 0x52, 0x56, 0xaa, 0xb3, 0x86, 0xfc, 0x4d, 0xca, 0x50, 0xb4, 0xd1, 0xb7, 0x04, 0xf3, - 0xa2, 0x14, 0xd4, 0xac, 0x3c, 0x1a, 0x36, 0x91, 0x0d, 0x28, 0xf2, 0x13, 0x17, 0x85, 0x89, 0xc7, - 0x94, 0x39, 0x6a, 0x4e, 0x7a, 0x80, 0x34, 0xed, 0x45, 0x16, 0xe2, 0xc2, 0xbd, 0x13, 0x2e, 0x8e, - 0xda, 0x0e, 0x3f, 0x31, 0xf1, 0x05, 0x5a, 0x61, 0x14, 0x66, 0x0a, 0x0c, 0xd0, 0x95, 0xbf, 0x3c, - 0x14, 0x8c, 0xdb, 0x6a, 0xbe, 0xac, 0x54, 0x8b, 0xf5, 0x75, 0x3d, 0x2e, 0x5f, 0x1f, 0x94, 0xaf, - 0xef, 0x26, 0xe5, 0x37, 0xf2, 0x3f, 0xfc, 0xb6, 0xa1, 0x18, 0xe5, 0x01, 0xd6, 0xde, 0x00, 0xca, - 0x18, 0x20, 0x35, 0x25, 0x10, 0x69, 0xc2, 0x8c, 0xe5, 0x84, 0x51, 0x79, 0xbe, 0x5a, 0x28, 0xe7, - 0xaa, 0xc5, 0xfa, 0x7b, 0x7a, 0xca, 0x45, 0xeb, 0x3b, 0xb1, 0x93, 0x81, 0x9e, 0xc3, 0x2c, 0x49, - 0xb1, 0xc3, 0xdd, 0x36, 0xeb, 0x24, 0x7c, 0xc6, 0x05, 0x0a, 0xd1, 0x61, 0x99, 0x5a, 0x01, 0xeb, - 0xa2, 0x99, 0x98, 0x4c, 0x79, 0x4f, 0xb7, 0x64, 0xa9, 0x77, 0xe2, 0xa3, 0x04, 0x6d, 0x3f, 0xba, - 0xb4, 0xc7, 0x90, 0xb7, 0x69, 0x40, 0xd5, 0xdb, 0xd7, 0xb0, 0xa7, 0xb6, 0x40, 0xdf, 0xa5, 0x01, - 0xdd, 0x73, 0x03, 0xd1, 0x33, 0x24, 0x02, 0xb9, 0x0f, 0x0b, 0x3e, 0x5a, 0xa1, 0x60, 0x41, 0xcf, - 0x0c, 0xf8, 0x11, 0xba, 0xea, 0x8c, 0x24, 0x9d, 0x1f, 0x58, 0x9f, 0x46, 0x46, 0x52, 0x85, 0x25, - 0xe6, 0x9b, 0x1d, 0x87, 0xb7, 0xa8, 0x93, 0x3c, 0x31, 0x75, 0xb6, 0xac, 0x54, 0x67, 0x8c, 0x05, - 0xe6, 0x7f, 0x22, 0xcd, 0x31, 0x0f, 0xf9, 0x0a, 0xd6, 0x9e, 0x33, 0x3f, 0xe0, 0xa2, 0x67, 0x52, - 0x61, 0x3d, 0x67, 0x5d, 0xea, 0x98, 0x7e, 0x40, 0x83, 0xd0, 0x57, 0xa1, 0xac, 0x54, 0x17, 0xea, - 0xf7, 0x52, 0xb3, 0xdd, 0x4e, 0x7c, 0x0f, 0xa4, 0xab, 0xb1, 0x9a, 0x60, 0x8c, 0x9a, 0xc9, 0xbb, - 0xb0, 0x32, 0x01, 0x1e, 0x0a, 0xa6, 0x16, 0x65, 0xce, 0x64, 0x2c, 0xe8, 0x50, 0x30, 0x42, 0xa1, - 0xd4, 0x65, 0x3e, 0x6b, 0x31, 0x27, 0xaa, 0x70, 0x3c, 0xa3, 0xb9, 0xe9, 0x33, 0x52, 0x2f, 0x61, - 0xc6, 0x92, 0x7a, 0x1f, 0xd6, 0xd2, 0x28, 0xa2, 0xbc, 0xe6, 0x65, 0x5e, 0xab, 0x93, 0xa1, 0x87, - 0x82, 0x95, 0x3e, 0x80, 0xd9, 0x8b, 0x6e, 0x90, 0x25, 0xc8, 0x1d, 0x61, 0x2f, 0x51, 0x46, 0xf4, - 0x93, 0xac, 0x40, 0xa1, 0x4b, 0x9d, 0x10, 0x13, 0x49, 0xc4, 0x1f, 0x1f, 0x67, 0x3f, 0x54, 0x2a, - 0x2a, 0xdc, 0x1d, 0x6f, 0xae, 0xef, 0x71, 0xd7, 0xc7, 0xca, 0x3e, 0xac, 0xee, 0x4a, 0xe5, 0xb4, - 0x70, 0x54, 0x79, 0x4b, 0x90, 0x65, 0x76, 0x8c, 0xfe, 0x38, 0x63, 0x64, 0x99, 0x4d, 0x56, 0x12, - 0x2d, 0x66, 0x13, 0x9b, 0xfc, 0x6a, 0xcc, 0x0f, 0xd4, 0xd8, 0x42, 0xb3, 0xd5, 0xab, 0xfc, 0x91, - 0x85, 0xbb, 0xe3, 0x80, 0x31, 0x15, 0xd9, 0x82, 0x3c, 0x73, 0xdb, 0x5c, 0x62, 0x16, 0xeb, 0x1b, - 0xa9, 0x57, 0x18, 0x87, 0x3c, 0x71, 0xdb, 0xdc, 0x90, 0xce, 0x64, 0x1f, 0xe6, 0xad, 0x61, 0x09, - 0x48, 0xf6, 0x62, 0xbd, 0x7a, 0x4d, 0xf4, 0xa8, 0x64, 0x46, 0xc3, 0x89, 0x07, 0xeb, 0xe2, 0x52, - 0x5d, 0xe6, 0x28, 0x76, 0x4e, 0x62, 0x6f, 0x5d, 0x83, 0x7d, 0xa5, 0x32, 0x55, 0x71, 0xc5, 0x09, - 0x79, 0x00, 0x4b, 0x6d, 0xca, 0x1c, 0xde, 0x45, 0x61, 0x76, 0x51, 0xf8, 0x11, 0x51, 0x34, 0x58, - 0x72, 0xc6, 0xe2, 0xc0, 0xfe, 0x79, 0x6c, 0x4e, 0xd5, 0x4c, 0x21, 0x4d, 0x33, 0x95, 0x2f, 0x80, - 0x7c, 0xc6, 0xfc, 0x20, 0xfe, 0xf2, 0x07, 0x3d, 0xfb, 0x1f, 0xcc, 0x7a, 0xb4, 0x83, 0xa6, 0xcf, - 0x5e, 0xc6, 0x23, 0xb3, 0x60, 0xcc, 0x44, 0x86, 0x03, 0xf6, 0x12, 0xc9, 0x5b, 0xb0, 0xe8, 0xe2, - 0x8b, 0xc0, 0x94, 0x1e, 0xb1, 0x70, 0xa3, 0xbb, 0x9c, 0x33, 0xe6, 0x23, 0x73, 0x93, 0x76, 0x50, - 0x0a, 0xb7, 0xf2, 0xad, 0x02, 0xcb, 0x23, 0xd8, 0x49, 0xfb, 0xf6, 0xe0, 0x76, 0x9c, 0x92, 0xaf, - 0x2a, 0x72, 0x88, 0x3c, 0x4a, 0xbf, 0xa7, 0xd4, 0xe6, 0x1b, 0x83, 0xd8, 0xa9, 0xd3, 0xf8, 0x45, - 0x81, 0xa5, 0x43, 0xcf, 0xa6, 0x01, 0x5e, 0xbe, 0x89, 0xf1, 0xd1, 0xaf, 0xdc, 0x38, 0xfa, 0xb3, - 0x13, 0xa3, 0x7f, 0x27, 0x19, 0x84, 0x39, 0x59, 0x43, 0x2d, 0xb5, 0x86, 0x71, 0xde, 0xf1, 0x19, - 0xf8, 0xcf, 0x85, 0xf8, 0x53, 0x0e, 0x96, 0x87, 0xd1, 0xaf, 0xdb, 0x73, 0x1f, 0x25, 0x7a, 0x89, - 0x5f, 0xfc, 0xfd, 0xa9, 0x32, 0xbd, 0x4a, 0x35, 0xb9, 0x37, 0xa8, 0x9a, 0xfc, 0x9b, 0x50, 0xcd, - 0xe4, 0x96, 0x29, 0xa4, 0x6d, 0x99, 0x87, 0x70, 0xc7, 0x46, 0x07, 0x03, 0x34, 0x5b, 0xd4, 0x36, - 0x5b, 0xcc, 0xa5, 0xa2, 0x97, 0x2c, 0xc1, 0xc5, 0xf8, 0xa0, 0x41, 0xed, 0x86, 0x34, 0x93, 0x4f, - 0x87, 0x84, 0x18, 0xb0, 0x63, 0xe4, 0x61, 0xa0, 0xde, 0x9e, 0x6e, 0xc3, 0x5f, 0x28, 0xf5, 0x69, - 0x1c, 0x57, 0xe9, 0x67, 0x61, 0x65, 0xb4, 0x8f, 0xff, 0x0d, 0xb9, 0x7f, 0x7d, 0xc8, 0x1d, 0x44, - 0xab, 0xc4, 0x13, 0x68, 0x4d, 0x25, 0x97, 0xc9, 0x17, 0x93, 0x4d, 0x79, 0x31, 0x95, 0x75, 0x58, - 0x9b, 0x00, 0x8d, 0x7b, 0x57, 0xff, 0x3e, 0x0f, 0xb3, 0xb1, 0x69, 0xbb, 0xf9, 0x84, 0x30, 0x58, - 0x18, 0xdd, 0x99, 0xe4, 0xe1, 0xf4, 0xff, 0x9a, 0x4a, 0x8f, 0xa6, 0xf2, 0x4d, 0x1e, 0x0d, 0x83, - 0x85, 0xd1, 0xb1, 0x79, 0x05, 0x55, 0xea, 0xa6, 0x2e, 0xfd, 0x9d, 0x39, 0x4c, 0x9e, 0x41, 0x71, - 0x68, 0xb8, 0x93, 0xb7, 0x53, 0x63, 0x27, 0x57, 0x4b, 0xa9, 0x7a, 0xb3, 0x63, 0xc2, 0x60, 0xc1, - 0xdc, 0xb0, 0x32, 0x48, 0xf5, 0xc6, 0xc1, 0x35, 0xe0, 0x78, 0x30, 0x85, 0x67, 0x42, 0xe2, 0xc0, - 0xe2, 0x58, 0x17, 0xc9, 0x55, 0xd7, 0x90, 0xf6, 0x80, 0x4a, 0xef, 0x4c, 0xe7, 0x1c, 0xb3, 0x35, - 0x9e, 0x9d, 0x9e, 0x69, 0x99, 0x57, 0x67, 0x5a, 0xe6, 0xf5, 0x99, 0xa6, 0x7c, 0xd3, 0xd7, 0x94, - 0x1f, 0xfb, 0x9a, 0xf2, 0x73, 0x5f, 0x53, 0x4e, 0xfb, 0x9a, 0xf2, 0x7b, 0x5f, 0x53, 0xfe, 0xec, - 0x6b, 0x99, 0xd7, 0x7d, 0x4d, 0xf9, 0xee, 0x5c, 0xcb, 0x9c, 0x9e, 0x6b, 0x99, 0x57, 0xe7, 0x5a, - 0x06, 0xd6, 0x2c, 0x7e, 0x9c, 0x46, 0xd3, 0x98, 0xd9, 0xf6, 0x58, 0x33, 0x9a, 0x34, 0x4d, 0xe5, - 0xcb, 0x02, 0xf5, 0x58, 0x77, 0xb3, 0x75, 0x4b, 0x4e, 0x9e, 0xad, 0xbf, 0x02, 0x00, 0x00, 0xff, - 0xff, 0xfe, 0x42, 0xc4, 0xe9, 0xa9, 0x0d, 0x00, 0x00, +func (x *DeprecateDomainResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (this *RegisterDomainRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } +func (*DeprecateDomainResponse) ProtoMessage() {} - that1, ok := that.(*RegisterDomainRequest) - if !ok { - that2, ok := that.(RegisterDomainRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Name != that1.Name { - return false - } - if this.Description != that1.Description { - return false - } - if this.OwnerEmail != that1.OwnerEmail { - return false - } - if this.WorkflowExecutionRetentionPeriod != nil && that1.WorkflowExecutionRetentionPeriod != nil { - if *this.WorkflowExecutionRetentionPeriod != *that1.WorkflowExecutionRetentionPeriod { - return false - } - } else if this.WorkflowExecutionRetentionPeriod != nil { - return false - } else if that1.WorkflowExecutionRetentionPeriod != nil { - return false - } - if len(this.Clusters) != len(that1.Clusters) { - return false - } - for i := range this.Clusters { - if !this.Clusters[i].Equal(that1.Clusters[i]) { - return false - } - } - if this.ActiveClusterName != that1.ActiveClusterName { - return false - } - if len(this.Data) != len(that1.Data) { - return false - } - for i := range this.Data { - if this.Data[i] != that1.Data[i] { - return false +func (x *DeprecateDomainResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_domain_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if this.SecurityToken != that1.SecurityToken { - return false - } - if this.IsGlobalDomain != that1.IsGlobalDomain { - return false - } - if this.HistoryArchivalStatus != that1.HistoryArchivalStatus { - return false - } - if this.HistoryArchivalUri != that1.HistoryArchivalUri { - return false - } - if this.VisibilityArchivalStatus != that1.VisibilityArchivalStatus { - return false - } - if this.VisibilityArchivalUri != that1.VisibilityArchivalUri { - return false - } - return true + return mi.MessageOf(x) } -func (this *RegisterDomainResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*RegisterDomainResponse) - if !ok { - that2, ok := that.(RegisterDomainResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true +// Deprecated: Use DeprecateDomainResponse.ProtoReflect.Descriptor instead. +func (*DeprecateDomainResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_domain_proto_rawDescGZIP(), []int{10} +} + +var File_uber_cadence_api_v1_service_domain_proto protoreflect.FileDescriptor + +var file_uber_cadence_api_v1_service_domain_proto_rawDesc = []byte{ + 0x0a, 0x28, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x64, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x1a, + 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x20, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x22, 0xd8, 0x06, 0x0a, 0x15, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x44, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x45, 0x6d, 0x61, + 0x69, 0x6c, 0x12, 0x68, 0x0a, 0x23, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x20, 0x77, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x74, + 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x50, 0x0a, 0x08, + 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x12, 0x2e, + 0x0a, 0x13, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x61, 0x63, 0x74, + 0x69, 0x76, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x48, + 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x76, 0x31, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x65, 0x63, 0x75, + 0x72, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0d, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, + 0x28, 0x0a, 0x10, 0x69, 0x73, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f, 0x64, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x69, 0x73, 0x47, 0x6c, 0x6f, + 0x62, 0x61, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x5b, 0x0a, 0x17, 0x68, 0x69, 0x73, + 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x61, 0x6c, 0x5f, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, + 0x15, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x61, 0x6c, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, + 0x79, 0x5f, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x61, 0x6c, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x0b, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x41, 0x72, 0x63, + 0x68, 0x69, 0x76, 0x61, 0x6c, 0x55, 0x72, 0x69, 0x12, 0x61, 0x0a, 0x1a, 0x76, 0x69, 0x73, 0x69, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x61, 0x6c, 0x5f, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x76, 0x31, 0x2e, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x52, 0x18, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x41, 0x72, 0x63, + 0x68, 0x69, 0x76, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x76, + 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, + 0x61, 0x6c, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x76, 0x69, + 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x61, 0x6c, + 0x55, 0x72, 0x69, 0x1a, 0x37, 0x0a, 0x09, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, + 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x18, 0x0a, 0x16, + 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4e, 0x0a, 0x15, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x62, 0x65, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x10, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x02, 0x69, + 0x64, 0x12, 0x14, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, + 0x00, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x42, 0x0d, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x62, 0x65, 0x5f, 0x62, 0x79, 0x22, 0xe4, 0x02, 0x0a, 0x16, 0x44, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x62, 0x65, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x33, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1f, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x6e, 0x66, 0x6f, + 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x4e, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x70, 0x0a, 0x19, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x18, + 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x66, 0x61, 0x69, 0x6c, + 0x6f, 0x76, 0x65, 0x72, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x0f, 0x66, 0x61, 0x69, 0x6c, 0x6f, 0x76, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x12, 0x28, 0x0a, 0x10, 0x69, 0x73, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, + 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x69, + 0x73, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x59, 0x0a, + 0x12, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, + 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, + 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x84, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, + 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x45, 0x0a, 0x07, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x2b, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, + 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x07, + 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, + 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, + 0xd3, 0x01, 0x0a, 0x10, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, + 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6f, 0x77, 0x6e, + 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x43, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, + 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x44, 0x61, 0x74, + 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x37, 0x0a, 0x09, + 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xbf, 0x03, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x39, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x25, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x4e, 0x0a, 0x0d, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x70, 0x0a, 0x19, + 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x33, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x18, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x25, + 0x0a, 0x0e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x2a, 0x0a, 0x11, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x5f, + 0x62, 0x61, 0x64, 0x5f, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x61, 0x64, 0x42, 0x69, 0x6e, 0x61, 0x72, + 0x79, 0x12, 0x44, 0x0a, 0x10, 0x66, 0x61, 0x69, 0x6c, 0x6f, 0x76, 0x65, 0x72, 0x5f, 0x74, 0x69, + 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x66, 0x61, 0x69, 0x6c, 0x6f, 0x76, 0x65, 0x72, + 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x22, 0xe2, 0x02, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x33, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, + 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x4e, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x70, 0x0a, 0x19, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x18, 0x72, + 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x66, 0x61, 0x69, 0x6c, 0x6f, + 0x76, 0x65, 0x72, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x0f, 0x66, 0x61, 0x69, 0x6c, 0x6f, 0x76, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x12, 0x28, 0x0a, 0x10, 0x69, 0x73, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f, + 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x69, 0x73, + 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x53, 0x0a, 0x16, + 0x44, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x65, + 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0d, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x22, 0x19, 0x0a, 0x17, 0x44, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x44, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x96, 0x04, 0x0a, + 0x09, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x41, 0x50, 0x49, 0x12, 0x69, 0x0a, 0x0e, 0x52, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x2a, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x76, 0x31, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x69, 0x0a, 0x0e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, + 0x65, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x2a, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x62, 0x65, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x60, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x12, + 0x27, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, + 0x69, 0x73, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x63, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x12, 0x28, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, 0x0a, 0x0f, 0x44, 0x65, 0x70, 0x72, 0x65, + 0x63, 0x61, 0x74, 0x65, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x2b, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x44, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, + 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x56, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x42, 0x08, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2f, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x2e, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x70, 0x69, 0x76, 0x31, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func (this *DescribeDomainRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*DescribeDomainRequest) - if !ok { - that2, ok := that.(DescribeDomainRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if that1.DescribeBy == nil { - if this.DescribeBy != nil { - return false - } - } else if this.DescribeBy == nil { - return false - } else if !this.DescribeBy.Equal(that1.DescribeBy) { - return false - } - return true -} -func (this *DescribeDomainRequest_Id) Equal(that interface{}) bool { - if that == nil { - return this == nil - } +var ( + file_uber_cadence_api_v1_service_domain_proto_rawDescOnce sync.Once + file_uber_cadence_api_v1_service_domain_proto_rawDescData = file_uber_cadence_api_v1_service_domain_proto_rawDesc +) - that1, ok := that.(*DescribeDomainRequest_Id) - if !ok { - that2, ok := that.(DescribeDomainRequest_Id) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Id != that1.Id { - return false +func file_uber_cadence_api_v1_service_domain_proto_rawDescGZIP() []byte { + file_uber_cadence_api_v1_service_domain_proto_rawDescOnce.Do(func() { + file_uber_cadence_api_v1_service_domain_proto_rawDescData = protoimpl.X.CompressGZIP(file_uber_cadence_api_v1_service_domain_proto_rawDescData) + }) + return file_uber_cadence_api_v1_service_domain_proto_rawDescData +} + +var file_uber_cadence_api_v1_service_domain_proto_msgTypes = make([]protoimpl.MessageInfo, 13) +var file_uber_cadence_api_v1_service_domain_proto_goTypes = []interface{}{ + (*RegisterDomainRequest)(nil), // 0: uber.cadence.api.v1.RegisterDomainRequest + (*RegisterDomainResponse)(nil), // 1: uber.cadence.api.v1.RegisterDomainResponse + (*DescribeDomainRequest)(nil), // 2: uber.cadence.api.v1.DescribeDomainRequest + (*DescribeDomainResponse)(nil), // 3: uber.cadence.api.v1.DescribeDomainResponse + (*ListDomainsRequest)(nil), // 4: uber.cadence.api.v1.ListDomainsRequest + (*ListDomainsResponse)(nil), // 5: uber.cadence.api.v1.ListDomainsResponse + (*UpdateDomainInfo)(nil), // 6: uber.cadence.api.v1.UpdateDomainInfo + (*UpdateDomainRequest)(nil), // 7: uber.cadence.api.v1.UpdateDomainRequest + (*UpdateDomainResponse)(nil), // 8: uber.cadence.api.v1.UpdateDomainResponse + (*DeprecateDomainRequest)(nil), // 9: uber.cadence.api.v1.DeprecateDomainRequest + (*DeprecateDomainResponse)(nil), // 10: uber.cadence.api.v1.DeprecateDomainResponse + nil, // 11: uber.cadence.api.v1.RegisterDomainRequest.DataEntry + nil, // 12: uber.cadence.api.v1.UpdateDomainInfo.DataEntry + (*durationpb.Duration)(nil), // 13: google.protobuf.Duration + (*ClusterReplicationConfiguration)(nil), // 14: uber.cadence.api.v1.ClusterReplicationConfiguration + (ArchivalStatus)(0), // 15: uber.cadence.api.v1.ArchivalStatus + (*DomainInfo)(nil), // 16: uber.cadence.api.v1.DomainInfo + (*DomainConfiguration)(nil), // 17: uber.cadence.api.v1.DomainConfiguration + (*DomainReplicationConfiguration)(nil), // 18: uber.cadence.api.v1.DomainReplicationConfiguration +} +var file_uber_cadence_api_v1_service_domain_proto_depIdxs = []int32{ + 13, // 0: uber.cadence.api.v1.RegisterDomainRequest.workflow_execution_retention_period:type_name -> google.protobuf.Duration + 14, // 1: uber.cadence.api.v1.RegisterDomainRequest.clusters:type_name -> uber.cadence.api.v1.ClusterReplicationConfiguration + 11, // 2: uber.cadence.api.v1.RegisterDomainRequest.data:type_name -> uber.cadence.api.v1.RegisterDomainRequest.DataEntry + 15, // 3: uber.cadence.api.v1.RegisterDomainRequest.history_archival_status:type_name -> uber.cadence.api.v1.ArchivalStatus + 15, // 4: uber.cadence.api.v1.RegisterDomainRequest.visibility_archival_status:type_name -> uber.cadence.api.v1.ArchivalStatus + 16, // 5: uber.cadence.api.v1.DescribeDomainResponse.info:type_name -> uber.cadence.api.v1.DomainInfo + 17, // 6: uber.cadence.api.v1.DescribeDomainResponse.configuration:type_name -> uber.cadence.api.v1.DomainConfiguration + 18, // 7: uber.cadence.api.v1.DescribeDomainResponse.replication_configuration:type_name -> uber.cadence.api.v1.DomainReplicationConfiguration + 3, // 8: uber.cadence.api.v1.ListDomainsResponse.domains:type_name -> uber.cadence.api.v1.DescribeDomainResponse + 12, // 9: uber.cadence.api.v1.UpdateDomainInfo.data:type_name -> uber.cadence.api.v1.UpdateDomainInfo.DataEntry + 6, // 10: uber.cadence.api.v1.UpdateDomainRequest.info:type_name -> uber.cadence.api.v1.UpdateDomainInfo + 17, // 11: uber.cadence.api.v1.UpdateDomainRequest.configuration:type_name -> uber.cadence.api.v1.DomainConfiguration + 18, // 12: uber.cadence.api.v1.UpdateDomainRequest.replication_configuration:type_name -> uber.cadence.api.v1.DomainReplicationConfiguration + 13, // 13: uber.cadence.api.v1.UpdateDomainRequest.failover_timeout:type_name -> google.protobuf.Duration + 16, // 14: uber.cadence.api.v1.UpdateDomainResponse.info:type_name -> uber.cadence.api.v1.DomainInfo + 17, // 15: uber.cadence.api.v1.UpdateDomainResponse.configuration:type_name -> uber.cadence.api.v1.DomainConfiguration + 18, // 16: uber.cadence.api.v1.UpdateDomainResponse.replication_configuration:type_name -> uber.cadence.api.v1.DomainReplicationConfiguration + 0, // 17: uber.cadence.api.v1.DomainAPI.RegisterDomain:input_type -> uber.cadence.api.v1.RegisterDomainRequest + 2, // 18: uber.cadence.api.v1.DomainAPI.DescribeDomain:input_type -> uber.cadence.api.v1.DescribeDomainRequest + 4, // 19: uber.cadence.api.v1.DomainAPI.ListDomains:input_type -> uber.cadence.api.v1.ListDomainsRequest + 7, // 20: uber.cadence.api.v1.DomainAPI.UpdateDomain:input_type -> uber.cadence.api.v1.UpdateDomainRequest + 9, // 21: uber.cadence.api.v1.DomainAPI.DeprecateDomain:input_type -> uber.cadence.api.v1.DeprecateDomainRequest + 1, // 22: uber.cadence.api.v1.DomainAPI.RegisterDomain:output_type -> uber.cadence.api.v1.RegisterDomainResponse + 3, // 23: uber.cadence.api.v1.DomainAPI.DescribeDomain:output_type -> uber.cadence.api.v1.DescribeDomainResponse + 5, // 24: uber.cadence.api.v1.DomainAPI.ListDomains:output_type -> uber.cadence.api.v1.ListDomainsResponse + 8, // 25: uber.cadence.api.v1.DomainAPI.UpdateDomain:output_type -> uber.cadence.api.v1.UpdateDomainResponse + 10, // 26: uber.cadence.api.v1.DomainAPI.DeprecateDomain:output_type -> uber.cadence.api.v1.DeprecateDomainResponse + 22, // [22:27] is the sub-list for method output_type + 17, // [17:22] is the sub-list for method input_type + 17, // [17:17] is the sub-list for extension type_name + 17, // [17:17] is the sub-list for extension extendee + 0, // [0:17] is the sub-list for field type_name +} + +func init() { file_uber_cadence_api_v1_service_domain_proto_init() } +func file_uber_cadence_api_v1_service_domain_proto_init() { + if File_uber_cadence_api_v1_service_domain_proto != nil { + return + } + file_uber_cadence_api_v1_domain_proto_init() + if !protoimpl.UnsafeEnabled { + file_uber_cadence_api_v1_service_domain_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RegisterDomainRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_domain_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RegisterDomainResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_domain_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DescribeDomainRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_domain_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DescribeDomainResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_domain_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListDomainsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_domain_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListDomainsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_domain_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateDomainInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_domain_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateDomainRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_domain_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateDomainResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_domain_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeprecateDomainRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_domain_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeprecateDomainResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_uber_cadence_api_v1_service_domain_proto_msgTypes[2].OneofWrappers = []interface{}{ + (*DescribeDomainRequest_Id)(nil), + (*DescribeDomainRequest_Name)(nil), } - return true + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_uber_cadence_api_v1_service_domain_proto_rawDesc, + NumEnums: 0, + NumMessages: 13, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_uber_cadence_api_v1_service_domain_proto_goTypes, + DependencyIndexes: file_uber_cadence_api_v1_service_domain_proto_depIdxs, + MessageInfos: file_uber_cadence_api_v1_service_domain_proto_msgTypes, + }.Build() + File_uber_cadence_api_v1_service_domain_proto = out.File + file_uber_cadence_api_v1_service_domain_proto_rawDesc = nil + file_uber_cadence_api_v1_service_domain_proto_goTypes = nil + file_uber_cadence_api_v1_service_domain_proto_depIdxs = nil } -func (this *DescribeDomainRequest_Name) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*DescribeDomainRequest_Name) - if !ok { - that2, ok := that.(DescribeDomainRequest_Name) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Name != that1.Name { - return false - } - return true -} -func (this *DescribeDomainResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*DescribeDomainResponse) - if !ok { - that2, ok := that.(DescribeDomainResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.Info.Equal(that1.Info) { - return false - } - if !this.Configuration.Equal(that1.Configuration) { - return false - } - if !this.ReplicationConfiguration.Equal(that1.ReplicationConfiguration) { - return false - } - if this.FailoverVersion != that1.FailoverVersion { - return false - } - if this.IsGlobalDomain != that1.IsGlobalDomain { - return false - } - return true -} -func (this *ListDomainsRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ListDomainsRequest) - if !ok { - that2, ok := that.(ListDomainsRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.PageSize != that1.PageSize { - return false - } - if !bytes.Equal(this.NextPageToken, that1.NextPageToken) { - return false - } - return true -} -func (this *ListDomainsResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ListDomainsResponse) - if !ok { - that2, ok := that.(ListDomainsResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if len(this.Domains) != len(that1.Domains) { - return false - } - for i := range this.Domains { - if !this.Domains[i].Equal(that1.Domains[i]) { - return false - } - } - if !bytes.Equal(this.NextPageToken, that1.NextPageToken) { - return false - } - return true -} -func (this *UpdateDomainInfo) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*UpdateDomainInfo) - if !ok { - that2, ok := that.(UpdateDomainInfo) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Description != that1.Description { - return false - } - if this.OwnerEmail != that1.OwnerEmail { - return false - } - if len(this.Data) != len(that1.Data) { - return false - } - for i := range this.Data { - if this.Data[i] != that1.Data[i] { - return false - } - } - return true -} -func (this *UpdateDomainRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*UpdateDomainRequest) - if !ok { - that2, ok := that.(UpdateDomainRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Name != that1.Name { - return false - } - if !this.Info.Equal(that1.Info) { - return false - } - if !this.Configuration.Equal(that1.Configuration) { - return false - } - if !this.ReplicationConfiguration.Equal(that1.ReplicationConfiguration) { - return false - } - if this.SecurityToken != that1.SecurityToken { - return false - } - if this.DeleteBadBinary != that1.DeleteBadBinary { - return false - } - if this.FailoverTimeout != nil && that1.FailoverTimeout != nil { - if *this.FailoverTimeout != *that1.FailoverTimeout { - return false - } - } else if this.FailoverTimeout != nil { - return false - } else if that1.FailoverTimeout != nil { - return false - } - return true -} -func (this *UpdateDomainResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*UpdateDomainResponse) - if !ok { - that2, ok := that.(UpdateDomainResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.Info.Equal(that1.Info) { - return false - } - if !this.Configuration.Equal(that1.Configuration) { - return false - } - if !this.ReplicationConfiguration.Equal(that1.ReplicationConfiguration) { - return false - } - if this.FailoverVersion != that1.FailoverVersion { - return false - } - if this.IsGlobalDomain != that1.IsGlobalDomain { - return false - } - return true -} -func (this *DeprecateDomainRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*DeprecateDomainRequest) - if !ok { - that2, ok := that.(DeprecateDomainRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Name != that1.Name { - return false - } - if this.SecurityToken != that1.SecurityToken { - return false - } - return true -} -func (this *DeprecateDomainResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*DeprecateDomainResponse) - if !ok { - that2, ok := that.(DeprecateDomainResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *RegisterDomainRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 17) - s = append(s, "&apiv1.RegisterDomainRequest{") - s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n") - s = append(s, "Description: "+fmt.Sprintf("%#v", this.Description)+",\n") - s = append(s, "OwnerEmail: "+fmt.Sprintf("%#v", this.OwnerEmail)+",\n") - s = append(s, "WorkflowExecutionRetentionPeriod: "+fmt.Sprintf("%#v", this.WorkflowExecutionRetentionPeriod)+",\n") - if this.Clusters != nil { - s = append(s, "Clusters: "+fmt.Sprintf("%#v", this.Clusters)+",\n") - } - s = append(s, "ActiveClusterName: "+fmt.Sprintf("%#v", this.ActiveClusterName)+",\n") - keysForData := make([]string, 0, len(this.Data)) - for k, _ := range this.Data { - keysForData = append(keysForData, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForData) - mapStringForData := "map[string]string{" - for _, k := range keysForData { - mapStringForData += fmt.Sprintf("%#v: %#v,", k, this.Data[k]) - } - mapStringForData += "}" - if this.Data != nil { - s = append(s, "Data: "+mapStringForData+",\n") - } - s = append(s, "SecurityToken: "+fmt.Sprintf("%#v", this.SecurityToken)+",\n") - s = append(s, "IsGlobalDomain: "+fmt.Sprintf("%#v", this.IsGlobalDomain)+",\n") - s = append(s, "HistoryArchivalStatus: "+fmt.Sprintf("%#v", this.HistoryArchivalStatus)+",\n") - s = append(s, "HistoryArchivalUri: "+fmt.Sprintf("%#v", this.HistoryArchivalUri)+",\n") - s = append(s, "VisibilityArchivalStatus: "+fmt.Sprintf("%#v", this.VisibilityArchivalStatus)+",\n") - s = append(s, "VisibilityArchivalUri: "+fmt.Sprintf("%#v", this.VisibilityArchivalUri)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RegisterDomainResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&apiv1.RegisterDomainResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DescribeDomainRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.DescribeDomainRequest{") - if this.DescribeBy != nil { - s = append(s, "DescribeBy: "+fmt.Sprintf("%#v", this.DescribeBy)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DescribeDomainRequest_Id) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.DescribeDomainRequest_Id{` + - `Id:` + fmt.Sprintf("%#v", this.Id) + `}`}, ", ") - return s -} -func (this *DescribeDomainRequest_Name) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.DescribeDomainRequest_Name{` + - `Name:` + fmt.Sprintf("%#v", this.Name) + `}`}, ", ") - return s -} -func (this *DescribeDomainResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 9) - s = append(s, "&apiv1.DescribeDomainResponse{") - if this.Info != nil { - s = append(s, "Info: "+fmt.Sprintf("%#v", this.Info)+",\n") - } - if this.Configuration != nil { - s = append(s, "Configuration: "+fmt.Sprintf("%#v", this.Configuration)+",\n") - } - if this.ReplicationConfiguration != nil { - s = append(s, "ReplicationConfiguration: "+fmt.Sprintf("%#v", this.ReplicationConfiguration)+",\n") - } - s = append(s, "FailoverVersion: "+fmt.Sprintf("%#v", this.FailoverVersion)+",\n") - s = append(s, "IsGlobalDomain: "+fmt.Sprintf("%#v", this.IsGlobalDomain)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ListDomainsRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.ListDomainsRequest{") - s = append(s, "PageSize: "+fmt.Sprintf("%#v", this.PageSize)+",\n") - s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ListDomainsResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.ListDomainsResponse{") - if this.Domains != nil { - s = append(s, "Domains: "+fmt.Sprintf("%#v", this.Domains)+",\n") - } - s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *UpdateDomainInfo) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&apiv1.UpdateDomainInfo{") - s = append(s, "Description: "+fmt.Sprintf("%#v", this.Description)+",\n") - s = append(s, "OwnerEmail: "+fmt.Sprintf("%#v", this.OwnerEmail)+",\n") - keysForData := make([]string, 0, len(this.Data)) - for k, _ := range this.Data { - keysForData = append(keysForData, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForData) - mapStringForData := "map[string]string{" - for _, k := range keysForData { - mapStringForData += fmt.Sprintf("%#v: %#v,", k, this.Data[k]) - } - mapStringForData += "}" - if this.Data != nil { - s = append(s, "Data: "+mapStringForData+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *UpdateDomainRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 11) - s = append(s, "&apiv1.UpdateDomainRequest{") - s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n") - if this.Info != nil { - s = append(s, "Info: "+fmt.Sprintf("%#v", this.Info)+",\n") - } - if this.Configuration != nil { - s = append(s, "Configuration: "+fmt.Sprintf("%#v", this.Configuration)+",\n") - } - if this.ReplicationConfiguration != nil { - s = append(s, "ReplicationConfiguration: "+fmt.Sprintf("%#v", this.ReplicationConfiguration)+",\n") - } - s = append(s, "SecurityToken: "+fmt.Sprintf("%#v", this.SecurityToken)+",\n") - s = append(s, "DeleteBadBinary: "+fmt.Sprintf("%#v", this.DeleteBadBinary)+",\n") - s = append(s, "FailoverTimeout: "+fmt.Sprintf("%#v", this.FailoverTimeout)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *UpdateDomainResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 9) - s = append(s, "&apiv1.UpdateDomainResponse{") - if this.Info != nil { - s = append(s, "Info: "+fmt.Sprintf("%#v", this.Info)+",\n") - } - if this.Configuration != nil { - s = append(s, "Configuration: "+fmt.Sprintf("%#v", this.Configuration)+",\n") - } - if this.ReplicationConfiguration != nil { - s = append(s, "ReplicationConfiguration: "+fmt.Sprintf("%#v", this.ReplicationConfiguration)+",\n") - } - s = append(s, "FailoverVersion: "+fmt.Sprintf("%#v", this.FailoverVersion)+",\n") - s = append(s, "IsGlobalDomain: "+fmt.Sprintf("%#v", this.IsGlobalDomain)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DeprecateDomainRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.DeprecateDomainRequest{") - s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n") - s = append(s, "SecurityToken: "+fmt.Sprintf("%#v", this.SecurityToken)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DeprecateDomainResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&apiv1.DeprecateDomainResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func valueToGoStringServiceDomain(v interface{}, typ string) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// 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 - -// DomainAPIClient is the client API for DomainAPI service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type DomainAPIClient interface { - // RegisterDomain creates a new domain which can be used as a container for all resources. Domain is a top level - // entity within Cadence, used as a container for all resources like workflow executions, task lists, etc. Domain - // acts as a sandbox and provides isolation for all resources within the domain. All resources belongs to exactly one - // domain. - RegisterDomain(ctx context.Context, in *RegisterDomainRequest, opts ...grpc.CallOption) (*RegisterDomainResponse, error) - // DescribeDomain returns the information and configuration for a registered domain. - DescribeDomain(ctx context.Context, in *DescribeDomainRequest, opts ...grpc.CallOption) (*DescribeDomainResponse, error) - // ListDomains returns the information and configuration for all domains. - ListDomains(ctx context.Context, in *ListDomainsRequest, opts ...grpc.CallOption) (*ListDomainsResponse, error) - // UpdateDomain is used to update the information and configuration for a registered domain. - UpdateDomain(ctx context.Context, in *UpdateDomainRequest, opts ...grpc.CallOption) (*UpdateDomainResponse, error) - // DeprecateDomain us used to update status of a registered domain to DEPRECATED. Once the domain is deprecated - // it cannot be used to start new workflow executions. Existing workflow executions will continue to run on - // deprecated domains. - DeprecateDomain(ctx context.Context, in *DeprecateDomainRequest, opts ...grpc.CallOption) (*DeprecateDomainResponse, error) -} - -type domainAPIClient struct { - cc *grpc.ClientConn -} - -func NewDomainAPIClient(cc *grpc.ClientConn) DomainAPIClient { - return &domainAPIClient{cc} -} - -func (c *domainAPIClient) RegisterDomain(ctx context.Context, in *RegisterDomainRequest, opts ...grpc.CallOption) (*RegisterDomainResponse, error) { - out := new(RegisterDomainResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.DomainAPI/RegisterDomain", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *domainAPIClient) DescribeDomain(ctx context.Context, in *DescribeDomainRequest, opts ...grpc.CallOption) (*DescribeDomainResponse, error) { - out := new(DescribeDomainResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.DomainAPI/DescribeDomain", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *domainAPIClient) ListDomains(ctx context.Context, in *ListDomainsRequest, opts ...grpc.CallOption) (*ListDomainsResponse, error) { - out := new(ListDomainsResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.DomainAPI/ListDomains", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *domainAPIClient) UpdateDomain(ctx context.Context, in *UpdateDomainRequest, opts ...grpc.CallOption) (*UpdateDomainResponse, error) { - out := new(UpdateDomainResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.DomainAPI/UpdateDomain", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *domainAPIClient) DeprecateDomain(ctx context.Context, in *DeprecateDomainRequest, opts ...grpc.CallOption) (*DeprecateDomainResponse, error) { - out := new(DeprecateDomainResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.DomainAPI/DeprecateDomain", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// DomainAPIServer is the server API for DomainAPI service. -type DomainAPIServer interface { - // RegisterDomain creates a new domain which can be used as a container for all resources. Domain is a top level - // entity within Cadence, used as a container for all resources like workflow executions, task lists, etc. Domain - // acts as a sandbox and provides isolation for all resources within the domain. All resources belongs to exactly one - // domain. - RegisterDomain(context.Context, *RegisterDomainRequest) (*RegisterDomainResponse, error) - // DescribeDomain returns the information and configuration for a registered domain. - DescribeDomain(context.Context, *DescribeDomainRequest) (*DescribeDomainResponse, error) - // ListDomains returns the information and configuration for all domains. - ListDomains(context.Context, *ListDomainsRequest) (*ListDomainsResponse, error) - // UpdateDomain is used to update the information and configuration for a registered domain. - UpdateDomain(context.Context, *UpdateDomainRequest) (*UpdateDomainResponse, error) - // DeprecateDomain us used to update status of a registered domain to DEPRECATED. Once the domain is deprecated - // it cannot be used to start new workflow executions. Existing workflow executions will continue to run on - // deprecated domains. - DeprecateDomain(context.Context, *DeprecateDomainRequest) (*DeprecateDomainResponse, error) -} - -// UnimplementedDomainAPIServer can be embedded to have forward compatible implementations. -type UnimplementedDomainAPIServer struct { -} - -func (*UnimplementedDomainAPIServer) RegisterDomain(ctx context.Context, req *RegisterDomainRequest) (*RegisterDomainResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RegisterDomain not implemented") -} -func (*UnimplementedDomainAPIServer) DescribeDomain(ctx context.Context, req *DescribeDomainRequest) (*DescribeDomainResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DescribeDomain not implemented") -} -func (*UnimplementedDomainAPIServer) ListDomains(ctx context.Context, req *ListDomainsRequest) (*ListDomainsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListDomains not implemented") -} -func (*UnimplementedDomainAPIServer) UpdateDomain(ctx context.Context, req *UpdateDomainRequest) (*UpdateDomainResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateDomain not implemented") -} -func (*UnimplementedDomainAPIServer) DeprecateDomain(ctx context.Context, req *DeprecateDomainRequest) (*DeprecateDomainResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeprecateDomain not implemented") -} - -func RegisterDomainAPIServer(s *grpc.Server, srv DomainAPIServer) { - s.RegisterService(&_DomainAPI_serviceDesc, srv) -} - -func _DomainAPI_RegisterDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RegisterDomainRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DomainAPIServer).RegisterDomain(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.DomainAPI/RegisterDomain", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DomainAPIServer).RegisterDomain(ctx, req.(*RegisterDomainRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DomainAPI_DescribeDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DescribeDomainRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DomainAPIServer).DescribeDomain(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.DomainAPI/DescribeDomain", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DomainAPIServer).DescribeDomain(ctx, req.(*DescribeDomainRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DomainAPI_ListDomains_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListDomainsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DomainAPIServer).ListDomains(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.DomainAPI/ListDomains", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DomainAPIServer).ListDomains(ctx, req.(*ListDomainsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DomainAPI_UpdateDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateDomainRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DomainAPIServer).UpdateDomain(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.DomainAPI/UpdateDomain", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DomainAPIServer).UpdateDomain(ctx, req.(*UpdateDomainRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DomainAPI_DeprecateDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeprecateDomainRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DomainAPIServer).DeprecateDomain(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.DomainAPI/DeprecateDomain", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DomainAPIServer).DeprecateDomain(ctx, req.(*DeprecateDomainRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _DomainAPI_serviceDesc = grpc.ServiceDesc{ - ServiceName: "uber.cadence.api.v1.DomainAPI", - HandlerType: (*DomainAPIServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "RegisterDomain", - Handler: _DomainAPI_RegisterDomain_Handler, - }, - { - MethodName: "DescribeDomain", - Handler: _DomainAPI_DescribeDomain_Handler, - }, - { - MethodName: "ListDomains", - Handler: _DomainAPI_ListDomains_Handler, - }, - { - MethodName: "UpdateDomain", - Handler: _DomainAPI_UpdateDomain_Handler, - }, - { - MethodName: "DeprecateDomain", - Handler: _DomainAPI_DeprecateDomain_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "github.com/uber/cadence/.gen/proto/api/v1/service_domain.proto", -} - -func (m *RegisterDomainRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RegisterDomainRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RegisterDomainRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.VisibilityArchivalUri) > 0 { - i -= len(m.VisibilityArchivalUri) - copy(dAtA[i:], m.VisibilityArchivalUri) - i = encodeVarintServiceDomain(dAtA, i, uint64(len(m.VisibilityArchivalUri))) - i-- - dAtA[i] = 0x6a - } - if m.VisibilityArchivalStatus != 0 { - i = encodeVarintServiceDomain(dAtA, i, uint64(m.VisibilityArchivalStatus)) - i-- - dAtA[i] = 0x60 - } - if len(m.HistoryArchivalUri) > 0 { - i -= len(m.HistoryArchivalUri) - copy(dAtA[i:], m.HistoryArchivalUri) - i = encodeVarintServiceDomain(dAtA, i, uint64(len(m.HistoryArchivalUri))) - i-- - dAtA[i] = 0x5a - } - if m.HistoryArchivalStatus != 0 { - i = encodeVarintServiceDomain(dAtA, i, uint64(m.HistoryArchivalStatus)) - i-- - dAtA[i] = 0x50 - } - if m.IsGlobalDomain { - i-- - if m.IsGlobalDomain { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x48 - } - if len(m.SecurityToken) > 0 { - i -= len(m.SecurityToken) - copy(dAtA[i:], m.SecurityToken) - i = encodeVarintServiceDomain(dAtA, i, uint64(len(m.SecurityToken))) - i-- - dAtA[i] = 0x42 - } - if len(m.Data) > 0 { - for k := range m.Data { - v := m.Data[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintServiceDomain(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintServiceDomain(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintServiceDomain(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x3a - } - } - if len(m.ActiveClusterName) > 0 { - i -= len(m.ActiveClusterName) - copy(dAtA[i:], m.ActiveClusterName) - i = encodeVarintServiceDomain(dAtA, i, uint64(len(m.ActiveClusterName))) - i-- - dAtA[i] = 0x32 - } - if len(m.Clusters) > 0 { - for iNdEx := len(m.Clusters) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Clusters[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceDomain(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - } - if m.WorkflowExecutionRetentionPeriod != nil { - n1, err1 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.WorkflowExecutionRetentionPeriod, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.WorkflowExecutionRetentionPeriod):]) - if err1 != nil { - return 0, err1 - } - i -= n1 - i = encodeVarintServiceDomain(dAtA, i, uint64(n1)) - i-- - dAtA[i] = 0x22 - } - if len(m.OwnerEmail) > 0 { - i -= len(m.OwnerEmail) - copy(dAtA[i:], m.OwnerEmail) - i = encodeVarintServiceDomain(dAtA, i, uint64(len(m.OwnerEmail))) - i-- - dAtA[i] = 0x1a - } - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintServiceDomain(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintServiceDomain(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RegisterDomainResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RegisterDomainResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RegisterDomainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *DescribeDomainRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DescribeDomainRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DescribeDomainRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.DescribeBy != nil { - { - size := m.DescribeBy.Size() - i -= size - if _, err := m.DescribeBy.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - return len(dAtA) - i, nil -} - -func (m *DescribeDomainRequest_Id) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DescribeDomainRequest_Id) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintServiceDomain(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} -func (m *DescribeDomainRequest_Name) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DescribeDomainRequest_Name) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintServiceDomain(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x12 - return len(dAtA) - i, nil -} -func (m *DescribeDomainResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DescribeDomainResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DescribeDomainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.IsGlobalDomain { - i-- - if m.IsGlobalDomain { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 - } - if m.FailoverVersion != 0 { - i = encodeVarintServiceDomain(dAtA, i, uint64(m.FailoverVersion)) - i-- - dAtA[i] = 0x20 - } - if m.ReplicationConfiguration != nil { - { - size, err := m.ReplicationConfiguration.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceDomain(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Configuration != nil { - { - size, err := m.Configuration.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceDomain(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Info != nil { - { - size, err := m.Info.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceDomain(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ListDomainsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ListDomainsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListDomainsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.NextPageToken) > 0 { - i -= len(m.NextPageToken) - copy(dAtA[i:], m.NextPageToken) - i = encodeVarintServiceDomain(dAtA, i, uint64(len(m.NextPageToken))) - i-- - dAtA[i] = 0x12 - } - if m.PageSize != 0 { - i = encodeVarintServiceDomain(dAtA, i, uint64(m.PageSize)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ListDomainsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ListDomainsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListDomainsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.NextPageToken) > 0 { - i -= len(m.NextPageToken) - copy(dAtA[i:], m.NextPageToken) - i = encodeVarintServiceDomain(dAtA, i, uint64(len(m.NextPageToken))) - i-- - dAtA[i] = 0x12 - } - if len(m.Domains) > 0 { - for iNdEx := len(m.Domains) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Domains[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceDomain(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *UpdateDomainInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *UpdateDomainInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpdateDomainInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Data) > 0 { - for k := range m.Data { - v := m.Data[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintServiceDomain(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintServiceDomain(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintServiceDomain(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x1a - } - } - if len(m.OwnerEmail) > 0 { - i -= len(m.OwnerEmail) - copy(dAtA[i:], m.OwnerEmail) - i = encodeVarintServiceDomain(dAtA, i, uint64(len(m.OwnerEmail))) - i-- - dAtA[i] = 0x12 - } - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintServiceDomain(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *UpdateDomainRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *UpdateDomainRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpdateDomainRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.FailoverTimeout != nil { - n5, err5 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.FailoverTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.FailoverTimeout):]) - if err5 != nil { - return 0, err5 - } - i -= n5 - i = encodeVarintServiceDomain(dAtA, i, uint64(n5)) - i-- - dAtA[i] = 0x3a - } - if len(m.DeleteBadBinary) > 0 { - i -= len(m.DeleteBadBinary) - copy(dAtA[i:], m.DeleteBadBinary) - i = encodeVarintServiceDomain(dAtA, i, uint64(len(m.DeleteBadBinary))) - i-- - dAtA[i] = 0x32 - } - if len(m.SecurityToken) > 0 { - i -= len(m.SecurityToken) - copy(dAtA[i:], m.SecurityToken) - i = encodeVarintServiceDomain(dAtA, i, uint64(len(m.SecurityToken))) - i-- - dAtA[i] = 0x2a - } - if m.ReplicationConfiguration != nil { - { - size, err := m.ReplicationConfiguration.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceDomain(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.Configuration != nil { - { - size, err := m.Configuration.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceDomain(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Info != nil { - { - size, err := m.Info.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceDomain(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintServiceDomain(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *UpdateDomainResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *UpdateDomainResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpdateDomainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.IsGlobalDomain { - i-- - if m.IsGlobalDomain { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 - } - if m.FailoverVersion != 0 { - i = encodeVarintServiceDomain(dAtA, i, uint64(m.FailoverVersion)) - i-- - dAtA[i] = 0x20 - } - if m.ReplicationConfiguration != nil { - { - size, err := m.ReplicationConfiguration.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceDomain(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Configuration != nil { - { - size, err := m.Configuration.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceDomain(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Info != nil { - { - size, err := m.Info.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceDomain(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DeprecateDomainRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeprecateDomainRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeprecateDomainRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.SecurityToken) > 0 { - i -= len(m.SecurityToken) - copy(dAtA[i:], m.SecurityToken) - i = encodeVarintServiceDomain(dAtA, i, uint64(len(m.SecurityToken))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintServiceDomain(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DeprecateDomainResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeprecateDomainResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeprecateDomainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func encodeVarintServiceDomain(dAtA []byte, offset int, v uint64) int { - offset -= sovServiceDomain(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *RegisterDomainRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovServiceDomain(uint64(l)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovServiceDomain(uint64(l)) - } - l = len(m.OwnerEmail) - if l > 0 { - n += 1 + l + sovServiceDomain(uint64(l)) - } - if m.WorkflowExecutionRetentionPeriod != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.WorkflowExecutionRetentionPeriod) - n += 1 + l + sovServiceDomain(uint64(l)) - } - if len(m.Clusters) > 0 { - for _, e := range m.Clusters { - l = e.Size() - n += 1 + l + sovServiceDomain(uint64(l)) - } - } - l = len(m.ActiveClusterName) - if l > 0 { - n += 1 + l + sovServiceDomain(uint64(l)) - } - if len(m.Data) > 0 { - for k, v := range m.Data { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovServiceDomain(uint64(len(k))) + 1 + len(v) + sovServiceDomain(uint64(len(v))) - n += mapEntrySize + 1 + sovServiceDomain(uint64(mapEntrySize)) - } - } - l = len(m.SecurityToken) - if l > 0 { - n += 1 + l + sovServiceDomain(uint64(l)) - } - if m.IsGlobalDomain { - n += 2 - } - if m.HistoryArchivalStatus != 0 { - n += 1 + sovServiceDomain(uint64(m.HistoryArchivalStatus)) - } - l = len(m.HistoryArchivalUri) - if l > 0 { - n += 1 + l + sovServiceDomain(uint64(l)) - } - if m.VisibilityArchivalStatus != 0 { - n += 1 + sovServiceDomain(uint64(m.VisibilityArchivalStatus)) - } - l = len(m.VisibilityArchivalUri) - if l > 0 { - n += 1 + l + sovServiceDomain(uint64(l)) - } - return n -} - -func (m *RegisterDomainResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *DescribeDomainRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.DescribeBy != nil { - n += m.DescribeBy.Size() - } - return n -} - -func (m *DescribeDomainRequest_Id) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - n += 1 + l + sovServiceDomain(uint64(l)) - return n -} -func (m *DescribeDomainRequest_Name) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovServiceDomain(uint64(l)) - return n -} -func (m *DescribeDomainResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Info != nil { - l = m.Info.Size() - n += 1 + l + sovServiceDomain(uint64(l)) - } - if m.Configuration != nil { - l = m.Configuration.Size() - n += 1 + l + sovServiceDomain(uint64(l)) - } - if m.ReplicationConfiguration != nil { - l = m.ReplicationConfiguration.Size() - n += 1 + l + sovServiceDomain(uint64(l)) - } - if m.FailoverVersion != 0 { - n += 1 + sovServiceDomain(uint64(m.FailoverVersion)) - } - if m.IsGlobalDomain { - n += 2 - } - return n -} - -func (m *ListDomainsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.PageSize != 0 { - n += 1 + sovServiceDomain(uint64(m.PageSize)) - } - l = len(m.NextPageToken) - if l > 0 { - n += 1 + l + sovServiceDomain(uint64(l)) - } - return n -} - -func (m *ListDomainsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Domains) > 0 { - for _, e := range m.Domains { - l = e.Size() - n += 1 + l + sovServiceDomain(uint64(l)) - } - } - l = len(m.NextPageToken) - if l > 0 { - n += 1 + l + sovServiceDomain(uint64(l)) - } - return n -} - -func (m *UpdateDomainInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Description) - if l > 0 { - n += 1 + l + sovServiceDomain(uint64(l)) - } - l = len(m.OwnerEmail) - if l > 0 { - n += 1 + l + sovServiceDomain(uint64(l)) - } - if len(m.Data) > 0 { - for k, v := range m.Data { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovServiceDomain(uint64(len(k))) + 1 + len(v) + sovServiceDomain(uint64(len(v))) - n += mapEntrySize + 1 + sovServiceDomain(uint64(mapEntrySize)) - } - } - return n -} - -func (m *UpdateDomainRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovServiceDomain(uint64(l)) - } - if m.Info != nil { - l = m.Info.Size() - n += 1 + l + sovServiceDomain(uint64(l)) - } - if m.Configuration != nil { - l = m.Configuration.Size() - n += 1 + l + sovServiceDomain(uint64(l)) - } - if m.ReplicationConfiguration != nil { - l = m.ReplicationConfiguration.Size() - n += 1 + l + sovServiceDomain(uint64(l)) - } - l = len(m.SecurityToken) - if l > 0 { - n += 1 + l + sovServiceDomain(uint64(l)) - } - l = len(m.DeleteBadBinary) - if l > 0 { - n += 1 + l + sovServiceDomain(uint64(l)) - } - if m.FailoverTimeout != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.FailoverTimeout) - n += 1 + l + sovServiceDomain(uint64(l)) - } - return n -} - -func (m *UpdateDomainResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Info != nil { - l = m.Info.Size() - n += 1 + l + sovServiceDomain(uint64(l)) - } - if m.Configuration != nil { - l = m.Configuration.Size() - n += 1 + l + sovServiceDomain(uint64(l)) - } - if m.ReplicationConfiguration != nil { - l = m.ReplicationConfiguration.Size() - n += 1 + l + sovServiceDomain(uint64(l)) - } - if m.FailoverVersion != 0 { - n += 1 + sovServiceDomain(uint64(m.FailoverVersion)) - } - if m.IsGlobalDomain { - n += 2 - } - return n -} - -func (m *DeprecateDomainRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovServiceDomain(uint64(l)) - } - l = len(m.SecurityToken) - if l > 0 { - n += 1 + l + sovServiceDomain(uint64(l)) - } - return n -} - -func (m *DeprecateDomainResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func sovServiceDomain(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozServiceDomain(x uint64) (n int) { - return sovServiceDomain(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *RegisterDomainRequest) String() string { - if this == nil { - return "nil" - } - repeatedStringForClusters := "[]*ClusterReplicationConfiguration{" - for _, f := range this.Clusters { - repeatedStringForClusters += strings.Replace(fmt.Sprintf("%v", f), "ClusterReplicationConfiguration", "ClusterReplicationConfiguration", 1) + "," - } - repeatedStringForClusters += "}" - keysForData := make([]string, 0, len(this.Data)) - for k, _ := range this.Data { - keysForData = append(keysForData, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForData) - mapStringForData := "map[string]string{" - for _, k := range keysForData { - mapStringForData += fmt.Sprintf("%v: %v,", k, this.Data[k]) - } - mapStringForData += "}" - s := strings.Join([]string{`&RegisterDomainRequest{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Description:` + fmt.Sprintf("%v", this.Description) + `,`, - `OwnerEmail:` + fmt.Sprintf("%v", this.OwnerEmail) + `,`, - `WorkflowExecutionRetentionPeriod:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecutionRetentionPeriod), "Duration", "duration.Duration", 1) + `,`, - `Clusters:` + repeatedStringForClusters + `,`, - `ActiveClusterName:` + fmt.Sprintf("%v", this.ActiveClusterName) + `,`, - `Data:` + mapStringForData + `,`, - `SecurityToken:` + fmt.Sprintf("%v", this.SecurityToken) + `,`, - `IsGlobalDomain:` + fmt.Sprintf("%v", this.IsGlobalDomain) + `,`, - `HistoryArchivalStatus:` + fmt.Sprintf("%v", this.HistoryArchivalStatus) + `,`, - `HistoryArchivalUri:` + fmt.Sprintf("%v", this.HistoryArchivalUri) + `,`, - `VisibilityArchivalStatus:` + fmt.Sprintf("%v", this.VisibilityArchivalStatus) + `,`, - `VisibilityArchivalUri:` + fmt.Sprintf("%v", this.VisibilityArchivalUri) + `,`, - `}`, - }, "") - return s -} -func (this *RegisterDomainResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RegisterDomainResponse{`, - `}`, - }, "") - return s -} -func (this *DescribeDomainRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DescribeDomainRequest{`, - `DescribeBy:` + fmt.Sprintf("%v", this.DescribeBy) + `,`, - `}`, - }, "") - return s -} -func (this *DescribeDomainRequest_Id) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DescribeDomainRequest_Id{`, - `Id:` + fmt.Sprintf("%v", this.Id) + `,`, - `}`, - }, "") - return s -} -func (this *DescribeDomainRequest_Name) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DescribeDomainRequest_Name{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `}`, - }, "") - return s -} -func (this *DescribeDomainResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DescribeDomainResponse{`, - `Info:` + strings.Replace(fmt.Sprintf("%v", this.Info), "DomainInfo", "DomainInfo", 1) + `,`, - `Configuration:` + strings.Replace(fmt.Sprintf("%v", this.Configuration), "DomainConfiguration", "DomainConfiguration", 1) + `,`, - `ReplicationConfiguration:` + strings.Replace(fmt.Sprintf("%v", this.ReplicationConfiguration), "DomainReplicationConfiguration", "DomainReplicationConfiguration", 1) + `,`, - `FailoverVersion:` + fmt.Sprintf("%v", this.FailoverVersion) + `,`, - `IsGlobalDomain:` + fmt.Sprintf("%v", this.IsGlobalDomain) + `,`, - `}`, - }, "") - return s -} -func (this *ListDomainsRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ListDomainsRequest{`, - `PageSize:` + fmt.Sprintf("%v", this.PageSize) + `,`, - `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, - `}`, - }, "") - return s -} -func (this *ListDomainsResponse) String() string { - if this == nil { - return "nil" - } - repeatedStringForDomains := "[]*DescribeDomainResponse{" - for _, f := range this.Domains { - repeatedStringForDomains += strings.Replace(f.String(), "DescribeDomainResponse", "DescribeDomainResponse", 1) + "," - } - repeatedStringForDomains += "}" - s := strings.Join([]string{`&ListDomainsResponse{`, - `Domains:` + repeatedStringForDomains + `,`, - `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, - `}`, - }, "") - return s -} -func (this *UpdateDomainInfo) String() string { - if this == nil { - return "nil" - } - keysForData := make([]string, 0, len(this.Data)) - for k, _ := range this.Data { - keysForData = append(keysForData, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForData) - mapStringForData := "map[string]string{" - for _, k := range keysForData { - mapStringForData += fmt.Sprintf("%v: %v,", k, this.Data[k]) - } - mapStringForData += "}" - s := strings.Join([]string{`&UpdateDomainInfo{`, - `Description:` + fmt.Sprintf("%v", this.Description) + `,`, - `OwnerEmail:` + fmt.Sprintf("%v", this.OwnerEmail) + `,`, - `Data:` + mapStringForData + `,`, - `}`, - }, "") - return s -} -func (this *UpdateDomainRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&UpdateDomainRequest{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Info:` + strings.Replace(this.Info.String(), "UpdateDomainInfo", "UpdateDomainInfo", 1) + `,`, - `Configuration:` + strings.Replace(fmt.Sprintf("%v", this.Configuration), "DomainConfiguration", "DomainConfiguration", 1) + `,`, - `ReplicationConfiguration:` + strings.Replace(fmt.Sprintf("%v", this.ReplicationConfiguration), "DomainReplicationConfiguration", "DomainReplicationConfiguration", 1) + `,`, - `SecurityToken:` + fmt.Sprintf("%v", this.SecurityToken) + `,`, - `DeleteBadBinary:` + fmt.Sprintf("%v", this.DeleteBadBinary) + `,`, - `FailoverTimeout:` + strings.Replace(fmt.Sprintf("%v", this.FailoverTimeout), "Duration", "duration.Duration", 1) + `,`, - `}`, - }, "") - return s -} -func (this *UpdateDomainResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&UpdateDomainResponse{`, - `Info:` + strings.Replace(fmt.Sprintf("%v", this.Info), "DomainInfo", "DomainInfo", 1) + `,`, - `Configuration:` + strings.Replace(fmt.Sprintf("%v", this.Configuration), "DomainConfiguration", "DomainConfiguration", 1) + `,`, - `ReplicationConfiguration:` + strings.Replace(fmt.Sprintf("%v", this.ReplicationConfiguration), "DomainReplicationConfiguration", "DomainReplicationConfiguration", 1) + `,`, - `FailoverVersion:` + fmt.Sprintf("%v", this.FailoverVersion) + `,`, - `IsGlobalDomain:` + fmt.Sprintf("%v", this.IsGlobalDomain) + `,`, - `}`, - }, "") - return s -} -func (this *DeprecateDomainRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeprecateDomainRequest{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `SecurityToken:` + fmt.Sprintf("%v", this.SecurityToken) + `,`, - `}`, - }, "") - return s -} -func (this *DeprecateDomainResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeprecateDomainResponse{`, - `}`, - }, "") - return s -} -func valueToStringServiceDomain(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *RegisterDomainRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RegisterDomainRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RegisterDomainRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceDomain - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceDomain - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OwnerEmail", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceDomain - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.OwnerEmail = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecutionRetentionPeriod", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceDomain - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecutionRetentionPeriod == nil { - m.WorkflowExecutionRetentionPeriod = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.WorkflowExecutionRetentionPeriod, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Clusters", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceDomain - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Clusters = append(m.Clusters, &ClusterReplicationConfiguration{}) - if err := m.Clusters[len(m.Clusters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActiveClusterName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceDomain - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ActiveClusterName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceDomain - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Data == nil { - m.Data = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthServiceDomain - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthServiceDomain - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthServiceDomain - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthServiceDomain - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipServiceDomain(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceDomain - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Data[mapkey] = mapvalue - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecurityToken", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceDomain - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SecurityToken = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsGlobalDomain", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsGlobalDomain = bool(v != 0) - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HistoryArchivalStatus", wireType) - } - m.HistoryArchivalStatus = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.HistoryArchivalStatus |= ArchivalStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HistoryArchivalUri", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceDomain - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HistoryArchivalUri = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 12: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field VisibilityArchivalStatus", wireType) - } - m.VisibilityArchivalStatus = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.VisibilityArchivalStatus |= ArchivalStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VisibilityArchivalUri", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceDomain - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VisibilityArchivalUri = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceDomain(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceDomain - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceDomain - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RegisterDomainResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RegisterDomainResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RegisterDomainResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipServiceDomain(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceDomain - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceDomain - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DescribeDomainRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DescribeDomainRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DescribeDomainRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceDomain - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DescribeBy = &DescribeDomainRequest_Id{string(dAtA[iNdEx:postIndex])} - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceDomain - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DescribeBy = &DescribeDomainRequest_Name{string(dAtA[iNdEx:postIndex])} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceDomain(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceDomain - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceDomain - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DescribeDomainResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DescribeDomainResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DescribeDomainResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceDomain - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Info == nil { - m.Info = &DomainInfo{} - } - if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Configuration", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceDomain - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Configuration == nil { - m.Configuration = &DomainConfiguration{} - } - if err := m.Configuration.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReplicationConfiguration", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceDomain - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ReplicationConfiguration == nil { - m.ReplicationConfiguration = &DomainReplicationConfiguration{} - } - if err := m.ReplicationConfiguration.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field FailoverVersion", wireType) - } - m.FailoverVersion = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.FailoverVersion |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsGlobalDomain", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsGlobalDomain = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipServiceDomain(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceDomain - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceDomain - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ListDomainsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListDomainsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListDomainsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) - } - m.PageSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PageSize |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServiceDomain - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServiceDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NextPageToken = append(m.NextPageToken[:0], dAtA[iNdEx:postIndex]...) - if m.NextPageToken == nil { - m.NextPageToken = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceDomain(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceDomain - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceDomain - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ListDomainsResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListDomainsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListDomainsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domains", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceDomain - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domains = append(m.Domains, &DescribeDomainResponse{}) - if err := m.Domains[len(m.Domains)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServiceDomain - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServiceDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NextPageToken = append(m.NextPageToken[:0], dAtA[iNdEx:postIndex]...) - if m.NextPageToken == nil { - m.NextPageToken = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceDomain(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceDomain - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceDomain - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UpdateDomainInfo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UpdateDomainInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateDomainInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceDomain - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OwnerEmail", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceDomain - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.OwnerEmail = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceDomain - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Data == nil { - m.Data = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthServiceDomain - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthServiceDomain - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthServiceDomain - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthServiceDomain - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipServiceDomain(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceDomain - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Data[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceDomain(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceDomain - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceDomain - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UpdateDomainRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UpdateDomainRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateDomainRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceDomain - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceDomain - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Info == nil { - m.Info = &UpdateDomainInfo{} - } - if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Configuration", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceDomain - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Configuration == nil { - m.Configuration = &DomainConfiguration{} - } - if err := m.Configuration.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReplicationConfiguration", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceDomain - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ReplicationConfiguration == nil { - m.ReplicationConfiguration = &DomainReplicationConfiguration{} - } - if err := m.ReplicationConfiguration.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecurityToken", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceDomain - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SecurityToken = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DeleteBadBinary", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceDomain - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DeleteBadBinary = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FailoverTimeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceDomain - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.FailoverTimeout == nil { - m.FailoverTimeout = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.FailoverTimeout, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceDomain(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceDomain - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceDomain - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UpdateDomainResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UpdateDomainResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateDomainResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceDomain - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Info == nil { - m.Info = &DomainInfo{} - } - if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Configuration", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceDomain - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Configuration == nil { - m.Configuration = &DomainConfiguration{} - } - if err := m.Configuration.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReplicationConfiguration", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceDomain - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ReplicationConfiguration == nil { - m.ReplicationConfiguration = &DomainReplicationConfiguration{} - } - if err := m.ReplicationConfiguration.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field FailoverVersion", wireType) - } - m.FailoverVersion = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.FailoverVersion |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsGlobalDomain", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsGlobalDomain = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipServiceDomain(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceDomain - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceDomain - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeprecateDomainRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeprecateDomainRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeprecateDomainRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceDomain - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecurityToken", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceDomain - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceDomain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SecurityToken = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceDomain(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceDomain - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceDomain - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeprecateDomainResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeprecateDomainResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeprecateDomainResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipServiceDomain(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceDomain - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceDomain - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipServiceDomain(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowServiceDomain - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthServiceDomain - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupServiceDomain - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthServiceDomain - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthServiceDomain = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowServiceDomain = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupServiceDomain = fmt.Errorf("proto: unexpected end of group") -) diff --git a/.gen/proto/api/v1/service_domain_grpc.pb.go b/.gen/proto/api/v1/service_domain_grpc.pb.go new file mode 100644 index 00000000000..8cf4d6c4048 --- /dev/null +++ b/.gen/proto/api/v1/service_domain_grpc.pb.go @@ -0,0 +1,288 @@ +// The MIT License (MIT) + +// Copyright (c) 2017-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-go-grpc. DO NOT EDIT. + +package apiv1 + +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 + +// DomainAPIClient is the client API for DomainAPI 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 DomainAPIClient interface { + // RegisterDomain creates a new domain which can be used as a container for all resources. Domain is a top level + // entity within Cadence, used as a container for all resources like workflow executions, task lists, etc. Domain + // acts as a sandbox and provides isolation for all resources within the domain. All resources belongs to exactly one + // domain. + RegisterDomain(ctx context.Context, in *RegisterDomainRequest, opts ...grpc.CallOption) (*RegisterDomainResponse, error) + // DescribeDomain returns the information and configuration for a registered domain. + DescribeDomain(ctx context.Context, in *DescribeDomainRequest, opts ...grpc.CallOption) (*DescribeDomainResponse, error) + // ListDomains returns the information and configuration for all domains. + ListDomains(ctx context.Context, in *ListDomainsRequest, opts ...grpc.CallOption) (*ListDomainsResponse, error) + // UpdateDomain is used to update the information and configuration for a registered domain. + UpdateDomain(ctx context.Context, in *UpdateDomainRequest, opts ...grpc.CallOption) (*UpdateDomainResponse, error) + // DeprecateDomain us used to update status of a registered domain to DEPRECATED. Once the domain is deprecated + // it cannot be used to start new workflow executions. Existing workflow executions will continue to run on + // deprecated domains. + DeprecateDomain(ctx context.Context, in *DeprecateDomainRequest, opts ...grpc.CallOption) (*DeprecateDomainResponse, error) +} + +type domainAPIClient struct { + cc grpc.ClientConnInterface +} + +func NewDomainAPIClient(cc grpc.ClientConnInterface) DomainAPIClient { + return &domainAPIClient{cc} +} + +func (c *domainAPIClient) RegisterDomain(ctx context.Context, in *RegisterDomainRequest, opts ...grpc.CallOption) (*RegisterDomainResponse, error) { + out := new(RegisterDomainResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.DomainAPI/RegisterDomain", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *domainAPIClient) DescribeDomain(ctx context.Context, in *DescribeDomainRequest, opts ...grpc.CallOption) (*DescribeDomainResponse, error) { + out := new(DescribeDomainResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.DomainAPI/DescribeDomain", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *domainAPIClient) ListDomains(ctx context.Context, in *ListDomainsRequest, opts ...grpc.CallOption) (*ListDomainsResponse, error) { + out := new(ListDomainsResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.DomainAPI/ListDomains", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *domainAPIClient) UpdateDomain(ctx context.Context, in *UpdateDomainRequest, opts ...grpc.CallOption) (*UpdateDomainResponse, error) { + out := new(UpdateDomainResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.DomainAPI/UpdateDomain", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *domainAPIClient) DeprecateDomain(ctx context.Context, in *DeprecateDomainRequest, opts ...grpc.CallOption) (*DeprecateDomainResponse, error) { + out := new(DeprecateDomainResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.DomainAPI/DeprecateDomain", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// DomainAPIServer is the server API for DomainAPI service. +// All implementations must embed UnimplementedDomainAPIServer +// for forward compatibility +type DomainAPIServer interface { + // RegisterDomain creates a new domain which can be used as a container for all resources. Domain is a top level + // entity within Cadence, used as a container for all resources like workflow executions, task lists, etc. Domain + // acts as a sandbox and provides isolation for all resources within the domain. All resources belongs to exactly one + // domain. + RegisterDomain(context.Context, *RegisterDomainRequest) (*RegisterDomainResponse, error) + // DescribeDomain returns the information and configuration for a registered domain. + DescribeDomain(context.Context, *DescribeDomainRequest) (*DescribeDomainResponse, error) + // ListDomains returns the information and configuration for all domains. + ListDomains(context.Context, *ListDomainsRequest) (*ListDomainsResponse, error) + // UpdateDomain is used to update the information and configuration for a registered domain. + UpdateDomain(context.Context, *UpdateDomainRequest) (*UpdateDomainResponse, error) + // DeprecateDomain us used to update status of a registered domain to DEPRECATED. Once the domain is deprecated + // it cannot be used to start new workflow executions. Existing workflow executions will continue to run on + // deprecated domains. + DeprecateDomain(context.Context, *DeprecateDomainRequest) (*DeprecateDomainResponse, error) + mustEmbedUnimplementedDomainAPIServer() +} + +// UnimplementedDomainAPIServer must be embedded to have forward compatible implementations. +type UnimplementedDomainAPIServer struct { +} + +func (UnimplementedDomainAPIServer) RegisterDomain(context.Context, *RegisterDomainRequest) (*RegisterDomainResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RegisterDomain not implemented") +} +func (UnimplementedDomainAPIServer) DescribeDomain(context.Context, *DescribeDomainRequest) (*DescribeDomainResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DescribeDomain not implemented") +} +func (UnimplementedDomainAPIServer) ListDomains(context.Context, *ListDomainsRequest) (*ListDomainsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListDomains not implemented") +} +func (UnimplementedDomainAPIServer) UpdateDomain(context.Context, *UpdateDomainRequest) (*UpdateDomainResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateDomain not implemented") +} +func (UnimplementedDomainAPIServer) DeprecateDomain(context.Context, *DeprecateDomainRequest) (*DeprecateDomainResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeprecateDomain not implemented") +} +func (UnimplementedDomainAPIServer) mustEmbedUnimplementedDomainAPIServer() {} + +// UnsafeDomainAPIServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to DomainAPIServer will +// result in compilation errors. +type UnsafeDomainAPIServer interface { + mustEmbedUnimplementedDomainAPIServer() +} + +func RegisterDomainAPIServer(s grpc.ServiceRegistrar, srv DomainAPIServer) { + s.RegisterService(&DomainAPI_ServiceDesc, srv) +} + +func _DomainAPI_RegisterDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RegisterDomainRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DomainAPIServer).RegisterDomain(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.DomainAPI/RegisterDomain", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DomainAPIServer).RegisterDomain(ctx, req.(*RegisterDomainRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DomainAPI_DescribeDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DescribeDomainRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DomainAPIServer).DescribeDomain(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.DomainAPI/DescribeDomain", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DomainAPIServer).DescribeDomain(ctx, req.(*DescribeDomainRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DomainAPI_ListDomains_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListDomainsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DomainAPIServer).ListDomains(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.DomainAPI/ListDomains", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DomainAPIServer).ListDomains(ctx, req.(*ListDomainsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DomainAPI_UpdateDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateDomainRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DomainAPIServer).UpdateDomain(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.DomainAPI/UpdateDomain", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DomainAPIServer).UpdateDomain(ctx, req.(*UpdateDomainRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DomainAPI_DeprecateDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeprecateDomainRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DomainAPIServer).DeprecateDomain(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.DomainAPI/DeprecateDomain", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DomainAPIServer).DeprecateDomain(ctx, req.(*DeprecateDomainRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// DomainAPI_ServiceDesc is the grpc.ServiceDesc for DomainAPI service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var DomainAPI_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "uber.cadence.api.v1.DomainAPI", + HandlerType: (*DomainAPIServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "RegisterDomain", + Handler: _DomainAPI_RegisterDomain_Handler, + }, + { + MethodName: "DescribeDomain", + Handler: _DomainAPI_DescribeDomain_Handler, + }, + { + MethodName: "ListDomains", + Handler: _DomainAPI_ListDomains_Handler, + }, + { + MethodName: "UpdateDomain", + Handler: _DomainAPI_UpdateDomain_Handler, + }, + { + MethodName: "DeprecateDomain", + Handler: _DomainAPI_DeprecateDomain_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "uber/cadence/api/v1/service_domain.proto", +} diff --git a/.gen/proto/api/v1/service_meta.pb.go b/.gen/proto/api/v1/service_meta.pb.go index 18cdf5c47ee..27ec58eeb39 100644 --- a/.gen/proto/api/v1/service_meta.pb.go +++ b/.gen/proto/api/v1/service_meta.pb.go @@ -1,701 +1,244 @@ -// The MIT License (MIT) - -// Copyright (c) 2017-2020 Uber Technologies Inc. - +// 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 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. +// 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. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.14.0 // source: uber/cadence/api/v1/service_meta.proto package apiv1 import ( - context "context" - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" reflect "reflect" - strings "strings" + sync "sync" - proto "github.com/gogo/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// 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 +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type HealthRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *HealthRequest) Reset() { *m = HealthRequest{} } -func (*HealthRequest) ProtoMessage() {} -func (*HealthRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f45a67f89288e7f3, []int{0} -} -func (m *HealthRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HealthRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_HealthRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *HealthRequest) Reset() { + *x = HealthRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_meta_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *HealthRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_HealthRequest.Merge(m, src) -} -func (m *HealthRequest) XXX_Size() int { - return m.Size() -} -func (m *HealthRequest) XXX_DiscardUnknown() { - xxx_messageInfo_HealthRequest.DiscardUnknown(m) -} -var xxx_messageInfo_HealthRequest proto.InternalMessageInfo - -type HealthResponse struct { - Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` +func (x *HealthRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *HealthResponse) Reset() { *m = HealthResponse{} } -func (*HealthResponse) ProtoMessage() {} -func (*HealthResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f45a67f89288e7f3, []int{1} -} -func (m *HealthResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HealthResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_HealthResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *HealthResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_HealthResponse.Merge(m, src) -} -func (m *HealthResponse) XXX_Size() int { - return m.Size() -} -func (m *HealthResponse) XXX_DiscardUnknown() { - xxx_messageInfo_HealthResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_HealthResponse proto.InternalMessageInfo - -func (m *HealthResponse) GetOk() bool { - if m != nil { - return m.Ok - } - return false -} - -func (m *HealthResponse) GetMessage() string { - if m != nil { - return m.Message - } - return "" -} - -func init() { - proto.RegisterType((*HealthRequest)(nil), "uber.cadence.api.v1.HealthRequest") - proto.RegisterType((*HealthResponse)(nil), "uber.cadence.api.v1.HealthResponse") -} - -func init() { - proto.RegisterFile("github.com/uber/cadence/.gen/proto/api/v1/service_meta.proto", fileDescriptor_f45a67f89288e7f3) -} - -var fileDescriptor_f45a67f89288e7f3 = []byte{ - // 262 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2b, 0x4d, 0x4a, 0x2d, - 0xd2, 0x4f, 0x4e, 0x4c, 0x49, 0xcd, 0x4b, 0x4e, 0xd5, 0x4f, 0x2c, 0xc8, 0xd4, 0x2f, 0x33, 0xd4, - 0x2f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0x8d, 0xcf, 0x4d, 0x2d, 0x49, 0xd4, 0x2b, 0x28, 0xca, - 0x2f, 0xc9, 0x17, 0x12, 0x06, 0xa9, 0xd3, 0x83, 0xaa, 0xd3, 0x4b, 0x2c, 0xc8, 0xd4, 0x2b, 0x33, - 0x54, 0xe2, 0xe7, 0xe2, 0xf5, 0x48, 0x4d, 0xcc, 0x29, 0xc9, 0x08, 0x4a, 0x2d, 0x2c, 0x4d, 0x2d, - 0x2e, 0x51, 0xb2, 0xe2, 0xe2, 0x83, 0x09, 0x14, 0x17, 0xe4, 0xe7, 0x15, 0xa7, 0x0a, 0xf1, 0x71, - 0x31, 0xe5, 0x67, 0x4b, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x04, 0x31, 0xe5, 0x67, 0x0b, 0x49, 0x70, - 0xb1, 0xe7, 0xa6, 0x16, 0x17, 0x27, 0xa6, 0xa7, 0x4a, 0x30, 0x29, 0x30, 0x6a, 0x70, 0x06, 0xc1, - 0xb8, 0x46, 0x31, 0x5c, 0xec, 0xbe, 0xa9, 0x25, 0x89, 0x8e, 0x01, 0x9e, 0x42, 0x81, 0x5c, 0x6c, - 0x10, 0x63, 0x84, 0x94, 0xf4, 0xb0, 0xd8, 0xab, 0x87, 0x62, 0xa9, 0x94, 0x32, 0x5e, 0x35, 0x10, - 0x77, 0x38, 0x25, 0x5c, 0x78, 0x28, 0xc7, 0x70, 0xe3, 0xa1, 0x1c, 0xc3, 0x87, 0x87, 0x72, 0x8c, - 0x0d, 0x8f, 0xe4, 0x18, 0x57, 0x3c, 0x92, 0x63, 0x3c, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, - 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x5f, 0x3c, 0x92, 0x63, 0xf8, 0xf0, 0x48, 0x8e, 0x71, 0xc2, 0x63, - 0x39, 0x86, 0x0b, 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63, 0xe0, 0x12, 0x4f, 0xce, 0xcf, 0xc5, - 0x66, 0xba, 0x13, 0x87, 0x63, 0x41, 0x66, 0x00, 0x28, 0x60, 0x02, 0x18, 0xa3, 0x58, 0x13, 0x0b, - 0x32, 0xcb, 0x0c, 0x93, 0xd8, 0xc0, 0x01, 0x65, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x60, 0x0d, - 0xb7, 0x47, 0x52, 0x01, 0x00, 0x00, -} - -func (this *HealthRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*HealthRequest) - if !ok { - that2, ok := that.(HealthRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *HealthResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } +func (*HealthRequest) ProtoMessage() {} - that1, ok := that.(*HealthResponse) - if !ok { - that2, ok := that.(HealthResponse) - if ok { - that1 = &that2 - } else { - return false +func (x *HealthRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_meta_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Ok != that1.Ok { - return false - } - if this.Message != that1.Message { - return false - } - return true -} -func (this *HealthRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&apiv1.HealthRequest{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *HealthResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.HealthResponse{") - s = append(s, "Ok: "+fmt.Sprintf("%#v", this.Ok)+",\n") - s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func valueToGoStringServiceMeta(v interface{}, typ string) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) + return mi.MessageOf(x) } -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// 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 - -// MetaAPIClient is the client API for MetaAPI service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type MetaAPIClient interface { - Health(ctx context.Context, in *HealthRequest, opts ...grpc.CallOption) (*HealthResponse, error) -} - -type metaAPIClient struct { - cc *grpc.ClientConn -} - -func NewMetaAPIClient(cc *grpc.ClientConn) MetaAPIClient { - return &metaAPIClient{cc} -} - -func (c *metaAPIClient) Health(ctx context.Context, in *HealthRequest, opts ...grpc.CallOption) (*HealthResponse, error) { - out := new(HealthResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.MetaAPI/Health", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// MetaAPIServer is the server API for MetaAPI service. -type MetaAPIServer interface { - Health(context.Context, *HealthRequest) (*HealthResponse, error) -} - -// UnimplementedMetaAPIServer can be embedded to have forward compatible implementations. -type UnimplementedMetaAPIServer struct { -} - -func (*UnimplementedMetaAPIServer) Health(ctx context.Context, req *HealthRequest) (*HealthResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Health not implemented") -} - -func RegisterMetaAPIServer(s *grpc.Server, srv MetaAPIServer) { - s.RegisterService(&_MetaAPI_serviceDesc, srv) +// Deprecated: Use HealthRequest.ProtoReflect.Descriptor instead. +func (*HealthRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_meta_proto_rawDescGZIP(), []int{0} } -func _MetaAPI_Health_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(HealthRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MetaAPIServer).Health(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.MetaAPI/Health", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MetaAPIServer).Health(ctx, req.(*HealthRequest)) - } - return interceptor(ctx, in, info, handler) -} +type HealthResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -var _MetaAPI_serviceDesc = grpc.ServiceDesc{ - ServiceName: "uber.cadence.api.v1.MetaAPI", - HandlerType: (*MetaAPIServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Health", - Handler: _MetaAPI_Health_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "github.com/uber/cadence/.gen/proto/api/v1/service_meta.proto", + Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` } -func (m *HealthRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *HealthResponse) Reset() { + *x = HealthResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_meta_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return dAtA[:n], nil } -func (m *HealthRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *HealthResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *HealthRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *HealthResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *HealthResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*HealthResponse) ProtoMessage() {} -func (m *HealthResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Message) > 0 { - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintServiceMeta(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x12 - } - if m.Ok { - i-- - if m.Ok { - dAtA[i] = 1 - } else { - dAtA[i] = 0 +func (x *HealthResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_meta_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0x8 + return ms } - return len(dAtA) - i, nil + return mi.MessageOf(x) } -func encodeVarintServiceMeta(dAtA []byte, offset int, v uint64) int { - offset -= sovServiceMeta(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *HealthRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n +// Deprecated: Use HealthResponse.ProtoReflect.Descriptor instead. +func (*HealthResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_meta_proto_rawDescGZIP(), []int{1} } -func (m *HealthResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Ok { - n += 2 +func (x *HealthResponse) GetOk() bool { + if x != nil { + return x.Ok } - l = len(m.Message) - if l > 0 { - n += 1 + l + sovServiceMeta(uint64(l)) - } - return n + return false } -func sovServiceMeta(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozServiceMeta(x uint64) (n int) { - return sovServiceMeta(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *HealthRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HealthRequest{`, - `}`, - }, "") - return s -} -func (this *HealthResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HealthResponse{`, - `Ok:` + fmt.Sprintf("%v", this.Ok) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `}`, - }, "") - return s -} -func valueToStringServiceMeta(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" +func (x *HealthResponse) GetMessage() string { + if x != nil { + return x.Message } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *HealthRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceMeta - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: HealthRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HealthRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipServiceMeta(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceMeta - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceMeta - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil + return "" } -func (m *HealthResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceMeta - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: HealthResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HealthResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Ok", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceMeta - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Ok = bool(v != 0) - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceMeta - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceMeta - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceMeta - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceMeta(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceMeta - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceMeta - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipServiceMeta(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowServiceMeta - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowServiceMeta - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowServiceMeta - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthServiceMeta - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupServiceMeta - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthServiceMeta - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF +var File_uber_cadence_api_v1_service_meta_proto protoreflect.FileDescriptor + +var file_uber_cadence_api_v1_service_meta_proto_rawDesc = []byte{ + 0x0a, 0x26, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6d, 0x65, + 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x22, 0x0f, 0x0a, + 0x0d, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x3a, + 0x0a, 0x0e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x0e, 0x0a, 0x02, 0x6f, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x02, 0x6f, 0x6b, + 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x5c, 0x0a, 0x07, 0x4d, 0x65, + 0x74, 0x61, 0x41, 0x50, 0x49, 0x12, 0x51, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x12, + 0x22, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x56, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x42, 0x08, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, + 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x62, 0x65, 0x72, + 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x2e, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x70, 0x69, 0x76, 0x31, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - ErrInvalidLengthServiceMeta = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowServiceMeta = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupServiceMeta = fmt.Errorf("proto: unexpected end of group") + file_uber_cadence_api_v1_service_meta_proto_rawDescOnce sync.Once + file_uber_cadence_api_v1_service_meta_proto_rawDescData = file_uber_cadence_api_v1_service_meta_proto_rawDesc ) + +func file_uber_cadence_api_v1_service_meta_proto_rawDescGZIP() []byte { + file_uber_cadence_api_v1_service_meta_proto_rawDescOnce.Do(func() { + file_uber_cadence_api_v1_service_meta_proto_rawDescData = protoimpl.X.CompressGZIP(file_uber_cadence_api_v1_service_meta_proto_rawDescData) + }) + return file_uber_cadence_api_v1_service_meta_proto_rawDescData +} + +var file_uber_cadence_api_v1_service_meta_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_uber_cadence_api_v1_service_meta_proto_goTypes = []interface{}{ + (*HealthRequest)(nil), // 0: uber.cadence.api.v1.HealthRequest + (*HealthResponse)(nil), // 1: uber.cadence.api.v1.HealthResponse +} +var file_uber_cadence_api_v1_service_meta_proto_depIdxs = []int32{ + 0, // 0: uber.cadence.api.v1.MetaAPI.Health:input_type -> uber.cadence.api.v1.HealthRequest + 1, // 1: uber.cadence.api.v1.MetaAPI.Health:output_type -> uber.cadence.api.v1.HealthResponse + 1, // [1:2] is the sub-list for method output_type + 0, // [0:1] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_uber_cadence_api_v1_service_meta_proto_init() } +func file_uber_cadence_api_v1_service_meta_proto_init() { + if File_uber_cadence_api_v1_service_meta_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_uber_cadence_api_v1_service_meta_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HealthRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_meta_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HealthResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_uber_cadence_api_v1_service_meta_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_uber_cadence_api_v1_service_meta_proto_goTypes, + DependencyIndexes: file_uber_cadence_api_v1_service_meta_proto_depIdxs, + MessageInfos: file_uber_cadence_api_v1_service_meta_proto_msgTypes, + }.Build() + File_uber_cadence_api_v1_service_meta_proto = out.File + file_uber_cadence_api_v1_service_meta_proto_rawDesc = nil + file_uber_cadence_api_v1_service_meta_proto_goTypes = nil + file_uber_cadence_api_v1_service_meta_proto_depIdxs = nil +} diff --git a/.gen/proto/api/v1/service_meta_grpc.pb.go b/.gen/proto/api/v1/service_meta_grpc.pb.go new file mode 100644 index 00000000000..5f6c22085e2 --- /dev/null +++ b/.gen/proto/api/v1/service_meta_grpc.pb.go @@ -0,0 +1,124 @@ +// The MIT License (MIT) + +// Copyright (c) 2017-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-go-grpc. DO NOT EDIT. + +package apiv1 + +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 + +// MetaAPIClient is the client API for MetaAPI 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 MetaAPIClient interface { + Health(ctx context.Context, in *HealthRequest, opts ...grpc.CallOption) (*HealthResponse, error) +} + +type metaAPIClient struct { + cc grpc.ClientConnInterface +} + +func NewMetaAPIClient(cc grpc.ClientConnInterface) MetaAPIClient { + return &metaAPIClient{cc} +} + +func (c *metaAPIClient) Health(ctx context.Context, in *HealthRequest, opts ...grpc.CallOption) (*HealthResponse, error) { + out := new(HealthResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.MetaAPI/Health", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// MetaAPIServer is the server API for MetaAPI service. +// All implementations must embed UnimplementedMetaAPIServer +// for forward compatibility +type MetaAPIServer interface { + Health(context.Context, *HealthRequest) (*HealthResponse, error) + mustEmbedUnimplementedMetaAPIServer() +} + +// UnimplementedMetaAPIServer must be embedded to have forward compatible implementations. +type UnimplementedMetaAPIServer struct { +} + +func (UnimplementedMetaAPIServer) Health(context.Context, *HealthRequest) (*HealthResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Health not implemented") +} +func (UnimplementedMetaAPIServer) mustEmbedUnimplementedMetaAPIServer() {} + +// UnsafeMetaAPIServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to MetaAPIServer will +// result in compilation errors. +type UnsafeMetaAPIServer interface { + mustEmbedUnimplementedMetaAPIServer() +} + +func RegisterMetaAPIServer(s grpc.ServiceRegistrar, srv MetaAPIServer) { + s.RegisterService(&MetaAPI_ServiceDesc, srv) +} + +func _MetaAPI_Health_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(HealthRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MetaAPIServer).Health(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.MetaAPI/Health", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MetaAPIServer).Health(ctx, req.(*HealthRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// MetaAPI_ServiceDesc is the grpc.ServiceDesc for MetaAPI service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var MetaAPI_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "uber.cadence.api.v1.MetaAPI", + HandlerType: (*MetaAPIServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Health", + Handler: _MetaAPI_Health_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "uber/cadence/api/v1/service_meta.proto", +} diff --git a/.gen/proto/api/v1/service_visibility.pb.go b/.gen/proto/api/v1/service_visibility.pb.go index 55efbdd0ce5..25d7a3967d6 100644 --- a/.gen/proto/api/v1/service_visibility.pb.go +++ b/.gen/proto/api/v1/service_visibility.pb.go @@ -1,5595 +1,1478 @@ -// The MIT License (MIT) - -// Copyright (c) 2017-2020 Uber Technologies Inc. - +// 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 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. +// 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. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.14.0 // source: uber/cadence/api/v1/service_visibility.proto package apiv1 import ( - bytes "bytes" - context "context" - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" reflect "reflect" - strings "strings" + sync "sync" - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// 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 +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type ListWorkflowExecutionsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` NextPageToken []byte `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` Query string `protobuf:"bytes,4,opt,name=query,proto3" json:"query,omitempty"` } -func (m *ListWorkflowExecutionsRequest) Reset() { *m = ListWorkflowExecutionsRequest{} } -func (*ListWorkflowExecutionsRequest) ProtoMessage() {} -func (*ListWorkflowExecutionsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a7341dc69cef4364, []int{0} +func (x *ListWorkflowExecutionsRequest) Reset() { + *x = ListWorkflowExecutionsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_visibility_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ListWorkflowExecutionsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ListWorkflowExecutionsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListWorkflowExecutionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListWorkflowExecutionsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ListWorkflowExecutionsRequest) ProtoMessage() {} + +func (x *ListWorkflowExecutionsRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_visibility_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ListWorkflowExecutionsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListWorkflowExecutionsRequest.Merge(m, src) -} -func (m *ListWorkflowExecutionsRequest) XXX_Size() int { - return m.Size() -} -func (m *ListWorkflowExecutionsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListWorkflowExecutionsRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ListWorkflowExecutionsRequest proto.InternalMessageInfo +// Deprecated: Use ListWorkflowExecutionsRequest.ProtoReflect.Descriptor instead. +func (*ListWorkflowExecutionsRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_visibility_proto_rawDescGZIP(), []int{0} +} -func (m *ListWorkflowExecutionsRequest) GetDomain() string { - if m != nil { - return m.Domain +func (x *ListWorkflowExecutionsRequest) GetDomain() string { + if x != nil { + return x.Domain } return "" } -func (m *ListWorkflowExecutionsRequest) GetPageSize() int32 { - if m != nil { - return m.PageSize +func (x *ListWorkflowExecutionsRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize } return 0 } -func (m *ListWorkflowExecutionsRequest) GetNextPageToken() []byte { - if m != nil { - return m.NextPageToken +func (x *ListWorkflowExecutionsRequest) GetNextPageToken() []byte { + if x != nil { + return x.NextPageToken } return nil } -func (m *ListWorkflowExecutionsRequest) GetQuery() string { - if m != nil { - return m.Query +func (x *ListWorkflowExecutionsRequest) GetQuery() string { + if x != nil { + return x.Query } return "" } type ListWorkflowExecutionsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Executions []*WorkflowExecutionInfo `protobuf:"bytes,1,rep,name=executions,proto3" json:"executions,omitempty"` NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } -func (m *ListWorkflowExecutionsResponse) Reset() { *m = ListWorkflowExecutionsResponse{} } -func (*ListWorkflowExecutionsResponse) ProtoMessage() {} -func (*ListWorkflowExecutionsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a7341dc69cef4364, []int{1} +func (x *ListWorkflowExecutionsResponse) Reset() { + *x = ListWorkflowExecutionsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_visibility_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ListWorkflowExecutionsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ListWorkflowExecutionsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListWorkflowExecutionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListWorkflowExecutionsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ListWorkflowExecutionsResponse) ProtoMessage() {} + +func (x *ListWorkflowExecutionsResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_visibility_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ListWorkflowExecutionsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListWorkflowExecutionsResponse.Merge(m, src) -} -func (m *ListWorkflowExecutionsResponse) XXX_Size() int { - return m.Size() -} -func (m *ListWorkflowExecutionsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListWorkflowExecutionsResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ListWorkflowExecutionsResponse proto.InternalMessageInfo +// Deprecated: Use ListWorkflowExecutionsResponse.ProtoReflect.Descriptor instead. +func (*ListWorkflowExecutionsResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_visibility_proto_rawDescGZIP(), []int{1} +} -func (m *ListWorkflowExecutionsResponse) GetExecutions() []*WorkflowExecutionInfo { - if m != nil { - return m.Executions +func (x *ListWorkflowExecutionsResponse) GetExecutions() []*WorkflowExecutionInfo { + if x != nil { + return x.Executions } return nil } -func (m *ListWorkflowExecutionsResponse) GetNextPageToken() []byte { - if m != nil { - return m.NextPageToken +func (x *ListWorkflowExecutionsResponse) GetNextPageToken() []byte { + if x != nil { + return x.NextPageToken } return nil } type ListOpenWorkflowExecutionsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` NextPageToken []byte `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` StartTimeFilter *StartTimeFilter `protobuf:"bytes,4,opt,name=start_time_filter,json=startTimeFilter,proto3" json:"start_time_filter,omitempty"` - // Types that are valid to be assigned to Filters: + // Types that are assignable to Filters: // *ListOpenWorkflowExecutionsRequest_ExecutionFilter // *ListOpenWorkflowExecutionsRequest_TypeFilter Filters isListOpenWorkflowExecutionsRequest_Filters `protobuf_oneof:"filters"` } -func (m *ListOpenWorkflowExecutionsRequest) Reset() { *m = ListOpenWorkflowExecutionsRequest{} } -func (*ListOpenWorkflowExecutionsRequest) ProtoMessage() {} -func (*ListOpenWorkflowExecutionsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a7341dc69cef4364, []int{2} -} -func (m *ListOpenWorkflowExecutionsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ListOpenWorkflowExecutionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListOpenWorkflowExecutionsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ListOpenWorkflowExecutionsRequest) Reset() { + *x = ListOpenWorkflowExecutionsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_visibility_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ListOpenWorkflowExecutionsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListOpenWorkflowExecutionsRequest.Merge(m, src) -} -func (m *ListOpenWorkflowExecutionsRequest) XXX_Size() int { - return m.Size() -} -func (m *ListOpenWorkflowExecutionsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListOpenWorkflowExecutionsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ListOpenWorkflowExecutionsRequest proto.InternalMessageInfo -type isListOpenWorkflowExecutionsRequest_Filters interface { - isListOpenWorkflowExecutionsRequest_Filters() - Equal(interface{}) bool - MarshalTo([]byte) (int, error) - Size() int +func (x *ListOpenWorkflowExecutionsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type ListOpenWorkflowExecutionsRequest_ExecutionFilter struct { - ExecutionFilter *WorkflowExecutionFilter `protobuf:"bytes,5,opt,name=execution_filter,json=executionFilter,proto3,oneof" json:"execution_filter,omitempty"` -} -type ListOpenWorkflowExecutionsRequest_TypeFilter struct { - TypeFilter *WorkflowTypeFilter `protobuf:"bytes,6,opt,name=type_filter,json=typeFilter,proto3,oneof" json:"type_filter,omitempty"` -} +func (*ListOpenWorkflowExecutionsRequest) ProtoMessage() {} -func (*ListOpenWorkflowExecutionsRequest_ExecutionFilter) isListOpenWorkflowExecutionsRequest_Filters() { +func (x *ListOpenWorkflowExecutionsRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_visibility_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (*ListOpenWorkflowExecutionsRequest_TypeFilter) isListOpenWorkflowExecutionsRequest_Filters() {} -func (m *ListOpenWorkflowExecutionsRequest) GetFilters() isListOpenWorkflowExecutionsRequest_Filters { - if m != nil { - return m.Filters - } - return nil +// Deprecated: Use ListOpenWorkflowExecutionsRequest.ProtoReflect.Descriptor instead. +func (*ListOpenWorkflowExecutionsRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_visibility_proto_rawDescGZIP(), []int{2} } -func (m *ListOpenWorkflowExecutionsRequest) GetDomain() string { - if m != nil { - return m.Domain +func (x *ListOpenWorkflowExecutionsRequest) GetDomain() string { + if x != nil { + return x.Domain } return "" } -func (m *ListOpenWorkflowExecutionsRequest) GetPageSize() int32 { - if m != nil { - return m.PageSize +func (x *ListOpenWorkflowExecutionsRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize } return 0 } -func (m *ListOpenWorkflowExecutionsRequest) GetNextPageToken() []byte { - if m != nil { - return m.NextPageToken +func (x *ListOpenWorkflowExecutionsRequest) GetNextPageToken() []byte { + if x != nil { + return x.NextPageToken + } + return nil +} + +func (x *ListOpenWorkflowExecutionsRequest) GetStartTimeFilter() *StartTimeFilter { + if x != nil { + return x.StartTimeFilter } return nil } -func (m *ListOpenWorkflowExecutionsRequest) GetStartTimeFilter() *StartTimeFilter { +func (m *ListOpenWorkflowExecutionsRequest) GetFilters() isListOpenWorkflowExecutionsRequest_Filters { if m != nil { - return m.StartTimeFilter + return m.Filters } return nil } -func (m *ListOpenWorkflowExecutionsRequest) GetExecutionFilter() *WorkflowExecutionFilter { - if x, ok := m.GetFilters().(*ListOpenWorkflowExecutionsRequest_ExecutionFilter); ok { +func (x *ListOpenWorkflowExecutionsRequest) GetExecutionFilter() *WorkflowExecutionFilter { + if x, ok := x.GetFilters().(*ListOpenWorkflowExecutionsRequest_ExecutionFilter); ok { return x.ExecutionFilter } return nil } -func (m *ListOpenWorkflowExecutionsRequest) GetTypeFilter() *WorkflowTypeFilter { - if x, ok := m.GetFilters().(*ListOpenWorkflowExecutionsRequest_TypeFilter); ok { +func (x *ListOpenWorkflowExecutionsRequest) GetTypeFilter() *WorkflowTypeFilter { + if x, ok := x.GetFilters().(*ListOpenWorkflowExecutionsRequest_TypeFilter); ok { return x.TypeFilter } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*ListOpenWorkflowExecutionsRequest) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*ListOpenWorkflowExecutionsRequest_ExecutionFilter)(nil), - (*ListOpenWorkflowExecutionsRequest_TypeFilter)(nil), - } +type isListOpenWorkflowExecutionsRequest_Filters interface { + isListOpenWorkflowExecutionsRequest_Filters() +} + +type ListOpenWorkflowExecutionsRequest_ExecutionFilter struct { + ExecutionFilter *WorkflowExecutionFilter `protobuf:"bytes,5,opt,name=execution_filter,json=executionFilter,proto3,oneof"` +} + +type ListOpenWorkflowExecutionsRequest_TypeFilter struct { + TypeFilter *WorkflowTypeFilter `protobuf:"bytes,6,opt,name=type_filter,json=typeFilter,proto3,oneof"` +} + +func (*ListOpenWorkflowExecutionsRequest_ExecutionFilter) isListOpenWorkflowExecutionsRequest_Filters() { } +func (*ListOpenWorkflowExecutionsRequest_TypeFilter) isListOpenWorkflowExecutionsRequest_Filters() {} + type ListOpenWorkflowExecutionsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Executions []*WorkflowExecutionInfo `protobuf:"bytes,1,rep,name=executions,proto3" json:"executions,omitempty"` NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } -func (m *ListOpenWorkflowExecutionsResponse) Reset() { *m = ListOpenWorkflowExecutionsResponse{} } -func (*ListOpenWorkflowExecutionsResponse) ProtoMessage() {} -func (*ListOpenWorkflowExecutionsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a7341dc69cef4364, []int{3} +func (x *ListOpenWorkflowExecutionsResponse) Reset() { + *x = ListOpenWorkflowExecutionsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_visibility_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ListOpenWorkflowExecutionsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ListOpenWorkflowExecutionsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListOpenWorkflowExecutionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListOpenWorkflowExecutionsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ListOpenWorkflowExecutionsResponse) ProtoMessage() {} + +func (x *ListOpenWorkflowExecutionsResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_visibility_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ListOpenWorkflowExecutionsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListOpenWorkflowExecutionsResponse.Merge(m, src) -} -func (m *ListOpenWorkflowExecutionsResponse) XXX_Size() int { - return m.Size() -} -func (m *ListOpenWorkflowExecutionsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListOpenWorkflowExecutionsResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ListOpenWorkflowExecutionsResponse proto.InternalMessageInfo +// Deprecated: Use ListOpenWorkflowExecutionsResponse.ProtoReflect.Descriptor instead. +func (*ListOpenWorkflowExecutionsResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_visibility_proto_rawDescGZIP(), []int{3} +} -func (m *ListOpenWorkflowExecutionsResponse) GetExecutions() []*WorkflowExecutionInfo { - if m != nil { - return m.Executions +func (x *ListOpenWorkflowExecutionsResponse) GetExecutions() []*WorkflowExecutionInfo { + if x != nil { + return x.Executions } return nil } -func (m *ListOpenWorkflowExecutionsResponse) GetNextPageToken() []byte { - if m != nil { - return m.NextPageToken +func (x *ListOpenWorkflowExecutionsResponse) GetNextPageToken() []byte { + if x != nil { + return x.NextPageToken } return nil } type ListClosedWorkflowExecutionsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` NextPageToken []byte `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` StartTimeFilter *StartTimeFilter `protobuf:"bytes,4,opt,name=start_time_filter,json=startTimeFilter,proto3" json:"start_time_filter,omitempty"` - // Types that are valid to be assigned to Filters: + // Types that are assignable to Filters: // *ListClosedWorkflowExecutionsRequest_ExecutionFilter // *ListClosedWorkflowExecutionsRequest_TypeFilter // *ListClosedWorkflowExecutionsRequest_StatusFilter Filters isListClosedWorkflowExecutionsRequest_Filters `protobuf_oneof:"filters"` } -func (m *ListClosedWorkflowExecutionsRequest) Reset() { *m = ListClosedWorkflowExecutionsRequest{} } -func (*ListClosedWorkflowExecutionsRequest) ProtoMessage() {} -func (*ListClosedWorkflowExecutionsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a7341dc69cef4364, []int{4} -} -func (m *ListClosedWorkflowExecutionsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ListClosedWorkflowExecutionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListClosedWorkflowExecutionsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ListClosedWorkflowExecutionsRequest) Reset() { + *x = ListClosedWorkflowExecutionsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_visibility_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ListClosedWorkflowExecutionsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListClosedWorkflowExecutionsRequest.Merge(m, src) -} -func (m *ListClosedWorkflowExecutionsRequest) XXX_Size() int { - return m.Size() -} -func (m *ListClosedWorkflowExecutionsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListClosedWorkflowExecutionsRequest.DiscardUnknown(m) -} -var xxx_messageInfo_ListClosedWorkflowExecutionsRequest proto.InternalMessageInfo - -type isListClosedWorkflowExecutionsRequest_Filters interface { - isListClosedWorkflowExecutionsRequest_Filters() - Equal(interface{}) bool - MarshalTo([]byte) (int, error) - Size() int +func (x *ListClosedWorkflowExecutionsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type ListClosedWorkflowExecutionsRequest_ExecutionFilter struct { - ExecutionFilter *WorkflowExecutionFilter `protobuf:"bytes,5,opt,name=execution_filter,json=executionFilter,proto3,oneof" json:"execution_filter,omitempty"` -} -type ListClosedWorkflowExecutionsRequest_TypeFilter struct { - TypeFilter *WorkflowTypeFilter `protobuf:"bytes,6,opt,name=type_filter,json=typeFilter,proto3,oneof" json:"type_filter,omitempty"` -} -type ListClosedWorkflowExecutionsRequest_StatusFilter struct { - StatusFilter *StatusFilter `protobuf:"bytes,7,opt,name=status_filter,json=statusFilter,proto3,oneof" json:"status_filter,omitempty"` -} +func (*ListClosedWorkflowExecutionsRequest) ProtoMessage() {} -func (*ListClosedWorkflowExecutionsRequest_ExecutionFilter) isListClosedWorkflowExecutionsRequest_Filters() { -} -func (*ListClosedWorkflowExecutionsRequest_TypeFilter) isListClosedWorkflowExecutionsRequest_Filters() { -} -func (*ListClosedWorkflowExecutionsRequest_StatusFilter) isListClosedWorkflowExecutionsRequest_Filters() { +func (x *ListClosedWorkflowExecutionsRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_visibility_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *ListClosedWorkflowExecutionsRequest) GetFilters() isListClosedWorkflowExecutionsRequest_Filters { - if m != nil { - return m.Filters - } - return nil +// Deprecated: Use ListClosedWorkflowExecutionsRequest.ProtoReflect.Descriptor instead. +func (*ListClosedWorkflowExecutionsRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_visibility_proto_rawDescGZIP(), []int{4} } -func (m *ListClosedWorkflowExecutionsRequest) GetDomain() string { - if m != nil { - return m.Domain +func (x *ListClosedWorkflowExecutionsRequest) GetDomain() string { + if x != nil { + return x.Domain } return "" } -func (m *ListClosedWorkflowExecutionsRequest) GetPageSize() int32 { - if m != nil { - return m.PageSize +func (x *ListClosedWorkflowExecutionsRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize } return 0 } -func (m *ListClosedWorkflowExecutionsRequest) GetNextPageToken() []byte { - if m != nil { - return m.NextPageToken +func (x *ListClosedWorkflowExecutionsRequest) GetNextPageToken() []byte { + if x != nil { + return x.NextPageToken + } + return nil +} + +func (x *ListClosedWorkflowExecutionsRequest) GetStartTimeFilter() *StartTimeFilter { + if x != nil { + return x.StartTimeFilter } return nil } -func (m *ListClosedWorkflowExecutionsRequest) GetStartTimeFilter() *StartTimeFilter { +func (m *ListClosedWorkflowExecutionsRequest) GetFilters() isListClosedWorkflowExecutionsRequest_Filters { if m != nil { - return m.StartTimeFilter + return m.Filters } return nil } -func (m *ListClosedWorkflowExecutionsRequest) GetExecutionFilter() *WorkflowExecutionFilter { - if x, ok := m.GetFilters().(*ListClosedWorkflowExecutionsRequest_ExecutionFilter); ok { +func (x *ListClosedWorkflowExecutionsRequest) GetExecutionFilter() *WorkflowExecutionFilter { + if x, ok := x.GetFilters().(*ListClosedWorkflowExecutionsRequest_ExecutionFilter); ok { return x.ExecutionFilter } return nil } -func (m *ListClosedWorkflowExecutionsRequest) GetTypeFilter() *WorkflowTypeFilter { - if x, ok := m.GetFilters().(*ListClosedWorkflowExecutionsRequest_TypeFilter); ok { +func (x *ListClosedWorkflowExecutionsRequest) GetTypeFilter() *WorkflowTypeFilter { + if x, ok := x.GetFilters().(*ListClosedWorkflowExecutionsRequest_TypeFilter); ok { return x.TypeFilter } return nil } -func (m *ListClosedWorkflowExecutionsRequest) GetStatusFilter() *StatusFilter { - if x, ok := m.GetFilters().(*ListClosedWorkflowExecutionsRequest_StatusFilter); ok { +func (x *ListClosedWorkflowExecutionsRequest) GetStatusFilter() *StatusFilter { + if x, ok := x.GetFilters().(*ListClosedWorkflowExecutionsRequest_StatusFilter); ok { return x.StatusFilter } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*ListClosedWorkflowExecutionsRequest) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*ListClosedWorkflowExecutionsRequest_ExecutionFilter)(nil), - (*ListClosedWorkflowExecutionsRequest_TypeFilter)(nil), - (*ListClosedWorkflowExecutionsRequest_StatusFilter)(nil), - } +type isListClosedWorkflowExecutionsRequest_Filters interface { + isListClosedWorkflowExecutionsRequest_Filters() +} + +type ListClosedWorkflowExecutionsRequest_ExecutionFilter struct { + ExecutionFilter *WorkflowExecutionFilter `protobuf:"bytes,5,opt,name=execution_filter,json=executionFilter,proto3,oneof"` +} + +type ListClosedWorkflowExecutionsRequest_TypeFilter struct { + TypeFilter *WorkflowTypeFilter `protobuf:"bytes,6,opt,name=type_filter,json=typeFilter,proto3,oneof"` +} + +type ListClosedWorkflowExecutionsRequest_StatusFilter struct { + StatusFilter *StatusFilter `protobuf:"bytes,7,opt,name=status_filter,json=statusFilter,proto3,oneof"` +} + +func (*ListClosedWorkflowExecutionsRequest_ExecutionFilter) isListClosedWorkflowExecutionsRequest_Filters() { +} + +func (*ListClosedWorkflowExecutionsRequest_TypeFilter) isListClosedWorkflowExecutionsRequest_Filters() { +} + +func (*ListClosedWorkflowExecutionsRequest_StatusFilter) isListClosedWorkflowExecutionsRequest_Filters() { } type ListClosedWorkflowExecutionsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Executions []*WorkflowExecutionInfo `protobuf:"bytes,1,rep,name=executions,proto3" json:"executions,omitempty"` NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } -func (m *ListClosedWorkflowExecutionsResponse) Reset() { *m = ListClosedWorkflowExecutionsResponse{} } -func (*ListClosedWorkflowExecutionsResponse) ProtoMessage() {} -func (*ListClosedWorkflowExecutionsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a7341dc69cef4364, []int{5} +func (x *ListClosedWorkflowExecutionsResponse) Reset() { + *x = ListClosedWorkflowExecutionsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_visibility_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ListClosedWorkflowExecutionsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ListClosedWorkflowExecutionsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListClosedWorkflowExecutionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListClosedWorkflowExecutionsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ListClosedWorkflowExecutionsResponse) ProtoMessage() {} + +func (x *ListClosedWorkflowExecutionsResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_visibility_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ListClosedWorkflowExecutionsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListClosedWorkflowExecutionsResponse.Merge(m, src) -} -func (m *ListClosedWorkflowExecutionsResponse) XXX_Size() int { - return m.Size() -} -func (m *ListClosedWorkflowExecutionsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListClosedWorkflowExecutionsResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ListClosedWorkflowExecutionsResponse proto.InternalMessageInfo +// Deprecated: Use ListClosedWorkflowExecutionsResponse.ProtoReflect.Descriptor instead. +func (*ListClosedWorkflowExecutionsResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_visibility_proto_rawDescGZIP(), []int{5} +} -func (m *ListClosedWorkflowExecutionsResponse) GetExecutions() []*WorkflowExecutionInfo { - if m != nil { - return m.Executions +func (x *ListClosedWorkflowExecutionsResponse) GetExecutions() []*WorkflowExecutionInfo { + if x != nil { + return x.Executions } return nil } -func (m *ListClosedWorkflowExecutionsResponse) GetNextPageToken() []byte { - if m != nil { - return m.NextPageToken +func (x *ListClosedWorkflowExecutionsResponse) GetNextPageToken() []byte { + if x != nil { + return x.NextPageToken } return nil } type ListArchivedWorkflowExecutionsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` NextPageToken []byte `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` Query string `protobuf:"bytes,4,opt,name=query,proto3" json:"query,omitempty"` } -func (m *ListArchivedWorkflowExecutionsRequest) Reset() { *m = ListArchivedWorkflowExecutionsRequest{} } -func (*ListArchivedWorkflowExecutionsRequest) ProtoMessage() {} -func (*ListArchivedWorkflowExecutionsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a7341dc69cef4364, []int{6} +func (x *ListArchivedWorkflowExecutionsRequest) Reset() { + *x = ListArchivedWorkflowExecutionsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_visibility_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ListArchivedWorkflowExecutionsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ListArchivedWorkflowExecutionsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListArchivedWorkflowExecutionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListArchivedWorkflowExecutionsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ListArchivedWorkflowExecutionsRequest) ProtoMessage() {} + +func (x *ListArchivedWorkflowExecutionsRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_visibility_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ListArchivedWorkflowExecutionsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListArchivedWorkflowExecutionsRequest.Merge(m, src) -} -func (m *ListArchivedWorkflowExecutionsRequest) XXX_Size() int { - return m.Size() -} -func (m *ListArchivedWorkflowExecutionsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListArchivedWorkflowExecutionsRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ListArchivedWorkflowExecutionsRequest proto.InternalMessageInfo +// Deprecated: Use ListArchivedWorkflowExecutionsRequest.ProtoReflect.Descriptor instead. +func (*ListArchivedWorkflowExecutionsRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_visibility_proto_rawDescGZIP(), []int{6} +} -func (m *ListArchivedWorkflowExecutionsRequest) GetDomain() string { - if m != nil { - return m.Domain +func (x *ListArchivedWorkflowExecutionsRequest) GetDomain() string { + if x != nil { + return x.Domain } return "" } -func (m *ListArchivedWorkflowExecutionsRequest) GetPageSize() int32 { - if m != nil { - return m.PageSize +func (x *ListArchivedWorkflowExecutionsRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize } return 0 } -func (m *ListArchivedWorkflowExecutionsRequest) GetNextPageToken() []byte { - if m != nil { - return m.NextPageToken +func (x *ListArchivedWorkflowExecutionsRequest) GetNextPageToken() []byte { + if x != nil { + return x.NextPageToken } return nil } -func (m *ListArchivedWorkflowExecutionsRequest) GetQuery() string { - if m != nil { - return m.Query +func (x *ListArchivedWorkflowExecutionsRequest) GetQuery() string { + if x != nil { + return x.Query } return "" } type ListArchivedWorkflowExecutionsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Executions []*WorkflowExecutionInfo `protobuf:"bytes,1,rep,name=executions,proto3" json:"executions,omitempty"` NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } -func (m *ListArchivedWorkflowExecutionsResponse) Reset() { - *m = ListArchivedWorkflowExecutionsResponse{} -} -func (*ListArchivedWorkflowExecutionsResponse) ProtoMessage() {} -func (*ListArchivedWorkflowExecutionsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a7341dc69cef4364, []int{7} +func (x *ListArchivedWorkflowExecutionsResponse) Reset() { + *x = ListArchivedWorkflowExecutionsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_visibility_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ListArchivedWorkflowExecutionsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ListArchivedWorkflowExecutionsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListArchivedWorkflowExecutionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListArchivedWorkflowExecutionsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ListArchivedWorkflowExecutionsResponse) ProtoMessage() {} + +func (x *ListArchivedWorkflowExecutionsResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_visibility_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ListArchivedWorkflowExecutionsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListArchivedWorkflowExecutionsResponse.Merge(m, src) -} -func (m *ListArchivedWorkflowExecutionsResponse) XXX_Size() int { - return m.Size() -} -func (m *ListArchivedWorkflowExecutionsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListArchivedWorkflowExecutionsResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ListArchivedWorkflowExecutionsResponse proto.InternalMessageInfo +// Deprecated: Use ListArchivedWorkflowExecutionsResponse.ProtoReflect.Descriptor instead. +func (*ListArchivedWorkflowExecutionsResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_visibility_proto_rawDescGZIP(), []int{7} +} -func (m *ListArchivedWorkflowExecutionsResponse) GetExecutions() []*WorkflowExecutionInfo { - if m != nil { - return m.Executions +func (x *ListArchivedWorkflowExecutionsResponse) GetExecutions() []*WorkflowExecutionInfo { + if x != nil { + return x.Executions } return nil } -func (m *ListArchivedWorkflowExecutionsResponse) GetNextPageToken() []byte { - if m != nil { - return m.NextPageToken +func (x *ListArchivedWorkflowExecutionsResponse) GetNextPageToken() []byte { + if x != nil { + return x.NextPageToken } return nil } type ScanWorkflowExecutionsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` NextPageToken []byte `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` Query string `protobuf:"bytes,4,opt,name=query,proto3" json:"query,omitempty"` } -func (m *ScanWorkflowExecutionsRequest) Reset() { *m = ScanWorkflowExecutionsRequest{} } -func (*ScanWorkflowExecutionsRequest) ProtoMessage() {} -func (*ScanWorkflowExecutionsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a7341dc69cef4364, []int{8} +func (x *ScanWorkflowExecutionsRequest) Reset() { + *x = ScanWorkflowExecutionsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_visibility_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ScanWorkflowExecutionsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ScanWorkflowExecutionsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ScanWorkflowExecutionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ScanWorkflowExecutionsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ScanWorkflowExecutionsRequest) ProtoMessage() {} + +func (x *ScanWorkflowExecutionsRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_visibility_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ScanWorkflowExecutionsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ScanWorkflowExecutionsRequest.Merge(m, src) -} -func (m *ScanWorkflowExecutionsRequest) XXX_Size() int { - return m.Size() -} -func (m *ScanWorkflowExecutionsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ScanWorkflowExecutionsRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ScanWorkflowExecutionsRequest proto.InternalMessageInfo +// Deprecated: Use ScanWorkflowExecutionsRequest.ProtoReflect.Descriptor instead. +func (*ScanWorkflowExecutionsRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_visibility_proto_rawDescGZIP(), []int{8} +} -func (m *ScanWorkflowExecutionsRequest) GetDomain() string { - if m != nil { - return m.Domain +func (x *ScanWorkflowExecutionsRequest) GetDomain() string { + if x != nil { + return x.Domain } return "" } -func (m *ScanWorkflowExecutionsRequest) GetPageSize() int32 { - if m != nil { - return m.PageSize +func (x *ScanWorkflowExecutionsRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize } return 0 } -func (m *ScanWorkflowExecutionsRequest) GetNextPageToken() []byte { - if m != nil { - return m.NextPageToken +func (x *ScanWorkflowExecutionsRequest) GetNextPageToken() []byte { + if x != nil { + return x.NextPageToken } return nil } -func (m *ScanWorkflowExecutionsRequest) GetQuery() string { - if m != nil { - return m.Query +func (x *ScanWorkflowExecutionsRequest) GetQuery() string { + if x != nil { + return x.Query } return "" } type ScanWorkflowExecutionsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Executions []*WorkflowExecutionInfo `protobuf:"bytes,1,rep,name=executions,proto3" json:"executions,omitempty"` NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } -func (m *ScanWorkflowExecutionsResponse) Reset() { *m = ScanWorkflowExecutionsResponse{} } -func (*ScanWorkflowExecutionsResponse) ProtoMessage() {} -func (*ScanWorkflowExecutionsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a7341dc69cef4364, []int{9} +func (x *ScanWorkflowExecutionsResponse) Reset() { + *x = ScanWorkflowExecutionsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_visibility_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ScanWorkflowExecutionsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ScanWorkflowExecutionsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ScanWorkflowExecutionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ScanWorkflowExecutionsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ScanWorkflowExecutionsResponse) ProtoMessage() {} + +func (x *ScanWorkflowExecutionsResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_visibility_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ScanWorkflowExecutionsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ScanWorkflowExecutionsResponse.Merge(m, src) -} -func (m *ScanWorkflowExecutionsResponse) XXX_Size() int { - return m.Size() -} -func (m *ScanWorkflowExecutionsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ScanWorkflowExecutionsResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ScanWorkflowExecutionsResponse proto.InternalMessageInfo +// Deprecated: Use ScanWorkflowExecutionsResponse.ProtoReflect.Descriptor instead. +func (*ScanWorkflowExecutionsResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_visibility_proto_rawDescGZIP(), []int{9} +} -func (m *ScanWorkflowExecutionsResponse) GetExecutions() []*WorkflowExecutionInfo { - if m != nil { - return m.Executions +func (x *ScanWorkflowExecutionsResponse) GetExecutions() []*WorkflowExecutionInfo { + if x != nil { + return x.Executions } return nil } -func (m *ScanWorkflowExecutionsResponse) GetNextPageToken() []byte { - if m != nil { - return m.NextPageToken +func (x *ScanWorkflowExecutionsResponse) GetNextPageToken() []byte { + if x != nil { + return x.NextPageToken } return nil } type CountWorkflowExecutionsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` } -func (m *CountWorkflowExecutionsRequest) Reset() { *m = CountWorkflowExecutionsRequest{} } -func (*CountWorkflowExecutionsRequest) ProtoMessage() {} -func (*CountWorkflowExecutionsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a7341dc69cef4364, []int{10} -} -func (m *CountWorkflowExecutionsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CountWorkflowExecutionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CountWorkflowExecutionsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *CountWorkflowExecutionsRequest) Reset() { + *x = CountWorkflowExecutionsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_visibility_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *CountWorkflowExecutionsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CountWorkflowExecutionsRequest.Merge(m, src) -} -func (m *CountWorkflowExecutionsRequest) XXX_Size() int { - return m.Size() -} -func (m *CountWorkflowExecutionsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CountWorkflowExecutionsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_CountWorkflowExecutionsRequest proto.InternalMessageInfo - -func (m *CountWorkflowExecutionsRequest) GetDomain() string { - if m != nil { - return m.Domain - } - return "" -} -func (m *CountWorkflowExecutionsRequest) GetQuery() string { - if m != nil { - return m.Query - } - return "" +func (x *CountWorkflowExecutionsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type CountWorkflowExecutionsResponse struct { - Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` -} +func (*CountWorkflowExecutionsRequest) ProtoMessage() {} -func (m *CountWorkflowExecutionsResponse) Reset() { *m = CountWorkflowExecutionsResponse{} } -func (*CountWorkflowExecutionsResponse) ProtoMessage() {} -func (*CountWorkflowExecutionsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a7341dc69cef4364, []int{11} -} -func (m *CountWorkflowExecutionsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CountWorkflowExecutionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CountWorkflowExecutionsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *CountWorkflowExecutionsRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_visibility_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil - } -} -func (m *CountWorkflowExecutionsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CountWorkflowExecutionsResponse.Merge(m, src) -} -func (m *CountWorkflowExecutionsResponse) XXX_Size() int { - return m.Size() -} -func (m *CountWorkflowExecutionsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CountWorkflowExecutionsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_CountWorkflowExecutionsResponse proto.InternalMessageInfo - -func (m *CountWorkflowExecutionsResponse) GetCount() int64 { - if m != nil { - return m.Count + return ms } - return 0 + return mi.MessageOf(x) } -type GetSearchAttributesRequest struct { +// Deprecated: Use CountWorkflowExecutionsRequest.ProtoReflect.Descriptor instead. +func (*CountWorkflowExecutionsRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_visibility_proto_rawDescGZIP(), []int{10} } -func (m *GetSearchAttributesRequest) Reset() { *m = GetSearchAttributesRequest{} } -func (*GetSearchAttributesRequest) ProtoMessage() {} -func (*GetSearchAttributesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a7341dc69cef4364, []int{12} -} -func (m *GetSearchAttributesRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetSearchAttributesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetSearchAttributesRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *CountWorkflowExecutionsRequest) GetDomain() string { + if x != nil { + return x.Domain } -} -func (m *GetSearchAttributesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetSearchAttributesRequest.Merge(m, src) -} -func (m *GetSearchAttributesRequest) XXX_Size() int { - return m.Size() -} -func (m *GetSearchAttributesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetSearchAttributesRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetSearchAttributesRequest proto.InternalMessageInfo - -type GetSearchAttributesResponse struct { - Keys map[string]IndexedValueType `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=uber.cadence.api.v1.IndexedValueType"` + return "" } -func (m *GetSearchAttributesResponse) Reset() { *m = GetSearchAttributesResponse{} } -func (*GetSearchAttributesResponse) ProtoMessage() {} -func (*GetSearchAttributesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a7341dc69cef4364, []int{13} -} -func (m *GetSearchAttributesResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetSearchAttributesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetSearchAttributesResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *CountWorkflowExecutionsRequest) GetQuery() string { + if x != nil { + return x.Query } -} -func (m *GetSearchAttributesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetSearchAttributesResponse.Merge(m, src) -} -func (m *GetSearchAttributesResponse) XXX_Size() int { - return m.Size() -} -func (m *GetSearchAttributesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetSearchAttributesResponse.DiscardUnknown(m) + return "" } -var xxx_messageInfo_GetSearchAttributesResponse proto.InternalMessageInfo - -func (m *GetSearchAttributesResponse) GetKeys() map[string]IndexedValueType { - if m != nil { - return m.Keys - } - return nil -} +type CountWorkflowExecutionsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func init() { - proto.RegisterType((*ListWorkflowExecutionsRequest)(nil), "uber.cadence.api.v1.ListWorkflowExecutionsRequest") - proto.RegisterType((*ListWorkflowExecutionsResponse)(nil), "uber.cadence.api.v1.ListWorkflowExecutionsResponse") - proto.RegisterType((*ListOpenWorkflowExecutionsRequest)(nil), "uber.cadence.api.v1.ListOpenWorkflowExecutionsRequest") - proto.RegisterType((*ListOpenWorkflowExecutionsResponse)(nil), "uber.cadence.api.v1.ListOpenWorkflowExecutionsResponse") - proto.RegisterType((*ListClosedWorkflowExecutionsRequest)(nil), "uber.cadence.api.v1.ListClosedWorkflowExecutionsRequest") - proto.RegisterType((*ListClosedWorkflowExecutionsResponse)(nil), "uber.cadence.api.v1.ListClosedWorkflowExecutionsResponse") - proto.RegisterType((*ListArchivedWorkflowExecutionsRequest)(nil), "uber.cadence.api.v1.ListArchivedWorkflowExecutionsRequest") - proto.RegisterType((*ListArchivedWorkflowExecutionsResponse)(nil), "uber.cadence.api.v1.ListArchivedWorkflowExecutionsResponse") - proto.RegisterType((*ScanWorkflowExecutionsRequest)(nil), "uber.cadence.api.v1.ScanWorkflowExecutionsRequest") - proto.RegisterType((*ScanWorkflowExecutionsResponse)(nil), "uber.cadence.api.v1.ScanWorkflowExecutionsResponse") - proto.RegisterType((*CountWorkflowExecutionsRequest)(nil), "uber.cadence.api.v1.CountWorkflowExecutionsRequest") - proto.RegisterType((*CountWorkflowExecutionsResponse)(nil), "uber.cadence.api.v1.CountWorkflowExecutionsResponse") - proto.RegisterType((*GetSearchAttributesRequest)(nil), "uber.cadence.api.v1.GetSearchAttributesRequest") - proto.RegisterType((*GetSearchAttributesResponse)(nil), "uber.cadence.api.v1.GetSearchAttributesResponse") - proto.RegisterMapType((map[string]IndexedValueType)(nil), "uber.cadence.api.v1.GetSearchAttributesResponse.KeysEntry") + Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` } -func init() { - proto.RegisterFile("github.com/uber/cadence/.gen/proto/api/v1/service_visibility.proto", fileDescriptor_a7341dc69cef4364) +func (x *CountWorkflowExecutionsResponse) Reset() { + *x = CountWorkflowExecutionsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_visibility_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -var fileDescriptor_a7341dc69cef4364 = []byte{ - // 851 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x57, 0x4f, 0x8f, 0xdb, 0x54, - 0x10, 0xcf, 0xdb, 0x34, 0xbb, 0xdd, 0xd9, 0x2e, 0x5b, 0x5e, 0xab, 0x36, 0x72, 0x8b, 0x49, 0xcd, - 0xb6, 0x44, 0xa8, 0x4a, 0xd8, 0x14, 0xd1, 0xb2, 0x3d, 0x65, 0xab, 0x42, 0xb7, 0xa0, 0x12, 0x39, - 0xab, 0x22, 0x38, 0x10, 0x1c, 0x67, 0xb6, 0x7d, 0x4a, 0x62, 0xbb, 0x7e, 0xcf, 0x69, 0xdc, 0x13, - 0x48, 0xbd, 0x22, 0x21, 0xe0, 0x00, 0x15, 0x1f, 0x80, 0x8f, 0xc2, 0x05, 0x29, 0xc7, 0x8a, 0x13, - 0x9b, 0xbd, 0x70, 0xec, 0x47, 0x40, 0xfe, 0x13, 0x2b, 0x85, 0x67, 0x67, 0xb3, 0x07, 0xc2, 0xa1, - 0xb7, 0xcc, 0x64, 0xe6, 0xf7, 0x7e, 0x33, 0x1e, 0xff, 0xde, 0x18, 0xae, 0x7a, 0x6d, 0x74, 0xab, - 0xa6, 0xd1, 0x41, 0xcb, 0xc4, 0xaa, 0xe1, 0xb0, 0xea, 0x60, 0xab, 0xca, 0xd1, 0x1d, 0x30, 0x13, - 0x5b, 0x03, 0xc6, 0x59, 0x9b, 0xf5, 0x98, 0xf0, 0x2b, 0x8e, 0x6b, 0x0b, 0x9b, 0x9e, 0x09, 0xa2, - 0x2b, 0x71, 0x74, 0xc5, 0x70, 0x58, 0x65, 0xb0, 0xa5, 0x6c, 0xca, 0x20, 0xfe, 0x99, 0xaa, 0x68, - 0xb2, 0xa8, 0xc7, 0xb6, 0xdb, 0xdd, 0xef, 0xd9, 0x8f, 0xa3, 0x18, 0xed, 0x7b, 0x02, 0x6f, 0x7c, - 0xc2, 0xb8, 0xf8, 0x2c, 0x76, 0xdf, 0x1e, 0xa2, 0xe9, 0x09, 0x66, 0x5b, 0x5c, 0xc7, 0x47, 0x1e, - 0x72, 0x41, 0xcf, 0xc1, 0x72, 0xc7, 0xee, 0x1b, 0xcc, 0x2a, 0x92, 0x12, 0x29, 0xaf, 0xea, 0xb1, - 0x45, 0x2f, 0xc0, 0xaa, 0x63, 0x3c, 0xc0, 0x16, 0x67, 0x4f, 0xb0, 0xb8, 0x54, 0x22, 0xe5, 0x82, - 0x7e, 0x32, 0x70, 0x34, 0xd9, 0x13, 0xa4, 0x57, 0x60, 0xc3, 0xc2, 0xa1, 0x68, 0x85, 0x11, 0xc2, - 0xee, 0xa2, 0x55, 0xcc, 0x97, 0x48, 0xf9, 0x94, 0xbe, 0x1e, 0xb8, 0x1b, 0xc6, 0x03, 0xdc, 0x0b, - 0x9c, 0xf4, 0x2c, 0x14, 0x1e, 0x79, 0xe8, 0xfa, 0xc5, 0x13, 0x21, 0x76, 0x64, 0x68, 0x3f, 0x12, - 0x50, 0xd3, 0x48, 0x71, 0xc7, 0xb6, 0x38, 0xd2, 0xbb, 0x00, 0x98, 0x78, 0x8b, 0xa4, 0x94, 0x2f, - 0xaf, 0xd5, 0xde, 0xa9, 0x48, 0x7a, 0x55, 0xf9, 0x17, 0xc8, 0xae, 0xb5, 0x6f, 0xeb, 0x53, 0xd9, - 0x32, 0xb2, 0x4b, 0x12, 0xb2, 0xda, 0xd3, 0x3c, 0x5c, 0x0a, 0x68, 0x7d, 0xea, 0xa0, 0xb5, 0xa0, - 0x7e, 0x35, 0xe0, 0x75, 0x2e, 0x0c, 0x57, 0xb4, 0x04, 0xeb, 0x63, 0x6b, 0x9f, 0xf5, 0x04, 0xba, - 0x61, 0xef, 0xd6, 0x6a, 0x9b, 0xd2, 0xea, 0x9b, 0x41, 0xf4, 0x1e, 0xeb, 0xe3, 0x87, 0x61, 0xac, - 0xbe, 0xc1, 0x5f, 0x76, 0xd0, 0xcf, 0xe1, 0x74, 0xd2, 0x8a, 0x09, 0x60, 0x21, 0x04, 0xbc, 0x7a, - 0xb4, 0x76, 0x46, 0x38, 0x77, 0x72, 0xfa, 0x06, 0xbe, 0xec, 0xa2, 0x77, 0x61, 0x4d, 0xf8, 0x4e, - 0x42, 0x73, 0x39, 0x44, 0x7d, 0x3b, 0x13, 0x75, 0xcf, 0x77, 0x30, 0x01, 0x04, 0x91, 0x58, 0x3b, - 0xab, 0xb0, 0x12, 0xc1, 0x70, 0xed, 0x27, 0x02, 0x5a, 0xd6, 0x63, 0x58, 0xe0, 0x84, 0x8c, 0xf2, - 0xf0, 0x56, 0x40, 0xed, 0x56, 0xcf, 0xe6, 0xd8, 0x79, 0x35, 0x23, 0xff, 0xe9, 0x8c, 0xd0, 0x3b, - 0xb0, 0xce, 0x85, 0x21, 0x3c, 0x3e, 0x41, 0x5b, 0x09, 0xd1, 0x2e, 0xa5, 0x15, 0x2d, 0x3c, 0x9e, - 0xe0, 0x9c, 0xe2, 0x53, 0xf6, 0xf4, 0xb4, 0x3d, 0x23, 0xb0, 0x99, 0xfd, 0x48, 0x17, 0x38, 0x6f, - 0xcf, 0x08, 0x5c, 0x0e, 0xc8, 0xd5, 0x5d, 0xf3, 0x21, 0x1b, 0x2c, 0x6c, 0xe2, 0xe4, 0x2a, 0xfe, - 0x0b, 0x81, 0x2b, 0xb3, 0xc8, 0x2d, 0xb0, 0x77, 0xc1, 0xcd, 0xd7, 0x34, 0x0d, 0xeb, 0x7f, 0x77, - 0xf3, 0xa5, 0x91, 0x5a, 0x60, 0xaf, 0xee, 0x81, 0x7a, 0xcb, 0xf6, 0xac, 0x63, 0x6c, 0x09, 0x49, - 0x99, 0x4b, 0xd3, 0x65, 0x5e, 0x87, 0x37, 0x53, 0xf1, 0xe2, 0x32, 0xcf, 0x42, 0xc1, 0x0c, 0x42, - 0x42, 0xbc, 0xbc, 0x1e, 0x19, 0xda, 0x45, 0x50, 0x3e, 0x42, 0xd1, 0x44, 0xc3, 0x35, 0x1f, 0xd6, - 0x85, 0x70, 0x59, 0xdb, 0x13, 0x38, 0x21, 0xa1, 0xfd, 0x4e, 0xe0, 0x82, 0xf4, 0xef, 0x18, 0xf3, - 0x1e, 0x9c, 0xe8, 0xa2, 0x3f, 0x69, 0xda, 0xb6, 0xb4, 0x69, 0x19, 0xf9, 0x95, 0x8f, 0xd1, 0xe7, - 0xb7, 0x2d, 0xe1, 0xfa, 0x7a, 0x88, 0xa3, 0x7c, 0x09, 0xab, 0x89, 0x8b, 0x9e, 0x86, 0x7c, 0x17, - 0xfd, 0xb8, 0xfc, 0xe0, 0x27, 0xbd, 0x09, 0x85, 0x81, 0xd1, 0xf3, 0xa2, 0x19, 0x79, 0xad, 0x76, - 0x59, 0x7a, 0xde, 0xae, 0xd5, 0xc1, 0x21, 0x76, 0xee, 0x07, 0x81, 0x81, 0xb2, 0xe9, 0x51, 0xce, - 0xf6, 0xd2, 0x0d, 0x52, 0xfb, 0x63, 0x05, 0xd6, 0xef, 0x27, 0x5b, 0x5d, 0xbd, 0xb1, 0x4b, 0xbf, - 0x21, 0x70, 0x4e, 0xbe, 0x19, 0xd1, 0x9a, 0x14, 0x3e, 0x73, 0xb7, 0x53, 0xae, 0xcd, 0x95, 0x13, - 0x77, 0xf1, 0x5b, 0x02, 0x4a, 0xfa, 0xfd, 0x4b, 0xdf, 0x4f, 0xc5, 0xcc, 0xdc, 0x9b, 0x94, 0xeb, - 0x73, 0xe7, 0xc5, 0x7c, 0x7e, 0x20, 0x70, 0x31, 0x4b, 0xa1, 0xe9, 0x8d, 0x54, 0xe4, 0x19, 0xf7, - 0xb4, 0xf2, 0xc1, 0x31, 0x32, 0x63, 0x56, 0x3f, 0xc7, 0x3b, 0x6c, 0xba, 0xfa, 0xd1, 0xed, 0x54, - 0xf4, 0x99, 0x7a, 0xae, 0xdc, 0x3c, 0x56, 0x6e, 0xcc, 0x2d, 0x98, 0x22, 0xb9, 0xca, 0xa4, 0x4c, - 0x51, 0xa6, 0x4e, 0xa6, 0x4c, 0xd1, 0x0c, 0x19, 0x7b, 0x4a, 0xe0, 0x7c, 0x8a, 0x06, 0x50, 0x39, - 0x60, 0xb6, 0x02, 0x29, 0xef, 0xcd, 0x97, 0x14, 0xd3, 0x18, 0xc2, 0x19, 0xc9, 0x1b, 0x4f, 0xab, - 0x47, 0xd7, 0x86, 0xe8, 0xf4, 0x77, 0xe7, 0x15, 0x93, 0x9d, 0xaf, 0x46, 0x07, 0x6a, 0xee, 0xf9, - 0x81, 0x9a, 0x7b, 0x71, 0xa0, 0x92, 0xaf, 0xc7, 0x2a, 0xf9, 0x75, 0xac, 0x92, 0xdf, 0xc6, 0x2a, - 0x19, 0x8d, 0x55, 0xf2, 0xe7, 0x58, 0x25, 0x7f, 0x8d, 0xd5, 0xdc, 0x8b, 0xb1, 0x4a, 0xbe, 0x3b, - 0x54, 0x73, 0xa3, 0x43, 0x35, 0xf7, 0xfc, 0x50, 0xcd, 0xc1, 0x79, 0xd3, 0xee, 0xcb, 0x8e, 0xda, - 0x39, 0x59, 0x77, 0x58, 0x23, 0xf8, 0xa4, 0x6b, 0x90, 0x2f, 0x0a, 0x86, 0xc3, 0x06, 0x5b, 0xed, - 0xe5, 0xf0, 0x13, 0xef, 0xda, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xa2, 0x5e, 0x80, 0x79, 0x71, - 0x0e, 0x00, 0x00, +func (x *CountWorkflowExecutionsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (this *ListWorkflowExecutionsRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } +func (*CountWorkflowExecutionsResponse) ProtoMessage() {} - that1, ok := that.(*ListWorkflowExecutionsRequest) - if !ok { - that2, ok := that.(ListWorkflowExecutionsRequest) - if ok { - that1 = &that2 - } else { - return false +func (x *CountWorkflowExecutionsResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_visibility_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if this.PageSize != that1.PageSize { - return false - } - if !bytes.Equal(this.NextPageToken, that1.NextPageToken) { - return false - } - if this.Query != that1.Query { - return false - } - return true + return mi.MessageOf(x) } -func (this *ListWorkflowExecutionsResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*ListWorkflowExecutionsResponse) - if !ok { - that2, ok := that.(ListWorkflowExecutionsResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if len(this.Executions) != len(that1.Executions) { - return false - } - for i := range this.Executions { - if !this.Executions[i].Equal(that1.Executions[i]) { - return false - } - } - if !bytes.Equal(this.NextPageToken, that1.NextPageToken) { - return false - } - return true +// Deprecated: Use CountWorkflowExecutionsResponse.ProtoReflect.Descriptor instead. +func (*CountWorkflowExecutionsResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_visibility_proto_rawDescGZIP(), []int{11} } -func (this *ListOpenWorkflowExecutionsRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*ListOpenWorkflowExecutionsRequest) - if !ok { - that2, ok := that.(ListOpenWorkflowExecutionsRequest) - if ok { - that1 = &that2 - } else { - return false - } +func (x *CountWorkflowExecutionsResponse) GetCount() int64 { + if x != nil { + return x.Count } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if this.PageSize != that1.PageSize { - return false - } - if !bytes.Equal(this.NextPageToken, that1.NextPageToken) { - return false - } - if !this.StartTimeFilter.Equal(that1.StartTimeFilter) { - return false - } - if that1.Filters == nil { - if this.Filters != nil { - return false - } - } else if this.Filters == nil { - return false - } else if !this.Filters.Equal(that1.Filters) { - return false - } - return true + return 0 } -func (this *ListOpenWorkflowExecutionsRequest_ExecutionFilter) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*ListOpenWorkflowExecutionsRequest_ExecutionFilter) - if !ok { - that2, ok := that.(ListOpenWorkflowExecutionsRequest_ExecutionFilter) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.ExecutionFilter.Equal(that1.ExecutionFilter) { - return false - } - return true +type GetSearchAttributesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (this *ListOpenWorkflowExecutionsRequest_TypeFilter) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*ListOpenWorkflowExecutionsRequest_TypeFilter) - if !ok { - that2, ok := that.(ListOpenWorkflowExecutionsRequest_TypeFilter) - if ok { - that1 = &that2 - } else { - return false - } +func (x *GetSearchAttributesRequest) Reset() { + *x = GetSearchAttributesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_visibility_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.TypeFilter.Equal(that1.TypeFilter) { - return false - } - return true } -func (this *ListOpenWorkflowExecutionsResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*ListOpenWorkflowExecutionsResponse) - if !ok { - that2, ok := that.(ListOpenWorkflowExecutionsResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if len(this.Executions) != len(that1.Executions) { - return false - } - for i := range this.Executions { - if !this.Executions[i].Equal(that1.Executions[i]) { - return false - } - } - if !bytes.Equal(this.NextPageToken, that1.NextPageToken) { - return false - } - return true +func (x *GetSearchAttributesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (this *ListClosedWorkflowExecutionsRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*ListClosedWorkflowExecutionsRequest) - if !ok { - that2, ok := that.(ListClosedWorkflowExecutionsRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if this.PageSize != that1.PageSize { - return false - } - if !bytes.Equal(this.NextPageToken, that1.NextPageToken) { - return false - } - if !this.StartTimeFilter.Equal(that1.StartTimeFilter) { - return false - } - if that1.Filters == nil { - if this.Filters != nil { - return false - } - } else if this.Filters == nil { - return false - } else if !this.Filters.Equal(that1.Filters) { - return false - } - return true -} -func (this *ListClosedWorkflowExecutionsRequest_ExecutionFilter) Equal(that interface{}) bool { - if that == nil { - return this == nil - } +func (*GetSearchAttributesRequest) ProtoMessage() {} - that1, ok := that.(*ListClosedWorkflowExecutionsRequest_ExecutionFilter) - if !ok { - that2, ok := that.(ListClosedWorkflowExecutionsRequest_ExecutionFilter) - if ok { - that1 = &that2 - } else { - return false +func (x *GetSearchAttributesRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_visibility_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.ExecutionFilter.Equal(that1.ExecutionFilter) { - return false - } - return true + return mi.MessageOf(x) } -func (this *ListClosedWorkflowExecutionsRequest_TypeFilter) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*ListClosedWorkflowExecutionsRequest_TypeFilter) - if !ok { - that2, ok := that.(ListClosedWorkflowExecutionsRequest_TypeFilter) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.TypeFilter.Equal(that1.TypeFilter) { - return false - } - return true +// Deprecated: Use GetSearchAttributesRequest.ProtoReflect.Descriptor instead. +func (*GetSearchAttributesRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_visibility_proto_rawDescGZIP(), []int{12} } -func (this *ListClosedWorkflowExecutionsRequest_StatusFilter) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*ListClosedWorkflowExecutionsRequest_StatusFilter) - if !ok { - that2, ok := that.(ListClosedWorkflowExecutionsRequest_StatusFilter) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.StatusFilter.Equal(that1.StatusFilter) { - return false - } - return true -} -func (this *ListClosedWorkflowExecutionsResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } +type GetSearchAttributesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields - that1, ok := that.(*ListClosedWorkflowExecutionsResponse) - if !ok { - that2, ok := that.(ListClosedWorkflowExecutionsResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if len(this.Executions) != len(that1.Executions) { - return false - } - for i := range this.Executions { - if !this.Executions[i].Equal(that1.Executions[i]) { - return false - } - } - if !bytes.Equal(this.NextPageToken, that1.NextPageToken) { - return false - } - return true + Keys map[string]IndexedValueType `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=uber.cadence.api.v1.IndexedValueType"` } -func (this *ListArchivedWorkflowExecutionsRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*ListArchivedWorkflowExecutionsRequest) - if !ok { - that2, ok := that.(ListArchivedWorkflowExecutionsRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if this.PageSize != that1.PageSize { - return false +func (x *GetSearchAttributesResponse) Reset() { + *x = GetSearchAttributesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_visibility_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if !bytes.Equal(this.NextPageToken, that1.NextPageToken) { - return false - } - if this.Query != that1.Query { - return false - } - return true } -func (this *ListArchivedWorkflowExecutionsResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*ListArchivedWorkflowExecutionsResponse) - if !ok { - that2, ok := that.(ListArchivedWorkflowExecutionsResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if len(this.Executions) != len(that1.Executions) { - return false - } - for i := range this.Executions { - if !this.Executions[i].Equal(that1.Executions[i]) { - return false - } - } - if !bytes.Equal(this.NextPageToken, that1.NextPageToken) { - return false - } - return true +func (x *GetSearchAttributesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (this *ScanWorkflowExecutionsRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*ScanWorkflowExecutionsRequest) - if !ok { - that2, ok := that.(ScanWorkflowExecutionsRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if this.PageSize != that1.PageSize { - return false - } - if !bytes.Equal(this.NextPageToken, that1.NextPageToken) { - return false - } - if this.Query != that1.Query { - return false - } - return true -} -func (this *ScanWorkflowExecutionsResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } +func (*GetSearchAttributesResponse) ProtoMessage() {} - that1, ok := that.(*ScanWorkflowExecutionsResponse) - if !ok { - that2, ok := that.(ScanWorkflowExecutionsResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if len(this.Executions) != len(that1.Executions) { - return false - } - for i := range this.Executions { - if !this.Executions[i].Equal(that1.Executions[i]) { - return false +func (x *GetSearchAttributesResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_visibility_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if !bytes.Equal(this.NextPageToken, that1.NextPageToken) { - return false - } - return true + return mi.MessageOf(x) } -func (this *CountWorkflowExecutionsRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*CountWorkflowExecutionsRequest) - if !ok { - that2, ok := that.(CountWorkflowExecutionsRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if this.Query != that1.Query { - return false - } - return true +// Deprecated: Use GetSearchAttributesResponse.ProtoReflect.Descriptor instead. +func (*GetSearchAttributesResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_visibility_proto_rawDescGZIP(), []int{13} } -func (this *CountWorkflowExecutionsResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*CountWorkflowExecutionsResponse) - if !ok { - that2, ok := that.(CountWorkflowExecutionsResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false +func (x *GetSearchAttributesResponse) GetKeys() map[string]IndexedValueType { + if x != nil { + return x.Keys } - if this.Count != that1.Count { - return false - } - return true + return nil } -func (this *GetSearchAttributesRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*GetSearchAttributesRequest) - if !ok { - that2, ok := that.(GetSearchAttributesRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true +var File_uber_cadence_api_v1_service_visibility_proto protoreflect.FileDescriptor + +var file_uber_cadence_api_v1_service_visibility_proto_rawDesc = []byte{ + 0x0a, 0x2c, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x76, 0x69, + 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x1a, 0x24, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x75, 0x62, 0x65, 0x72, 0x2f, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x77, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x92, 0x01, + 0x0a, 0x1d, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, + 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, + 0x53, 0x69, 0x7a, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, + 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x6e, + 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x14, 0x0a, 0x05, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, + 0x72, 0x79, 0x22, 0x94, 0x01, 0x0a, 0x1e, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x0a, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0a, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, + 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x84, 0x03, 0x0a, 0x21, 0x4c, 0x69, + 0x73, 0x74, 0x4f, 0x70, 0x65, 0x6e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, + 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, + 0x53, 0x69, 0x7a, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, + 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x6e, + 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x50, 0x0a, 0x11, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, + 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, + 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x0f, 0x73, + 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x59, + 0x0a, 0x10, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x69, 0x6c, 0x74, + 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x48, 0x00, 0x52, 0x0f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x4a, 0x0a, 0x0b, 0x74, 0x79, 0x70, + 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, + 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x48, 0x00, 0x52, 0x0a, 0x74, 0x79, 0x70, 0x65, 0x46, + 0x69, 0x6c, 0x74, 0x65, 0x72, 0x42, 0x09, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, + 0x22, 0x98, 0x01, 0x0a, 0x22, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x70, 0x65, 0x6e, 0x57, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x0a, 0x65, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0a, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, + 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x6e, 0x65, + 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xd0, 0x03, 0x0a, 0x23, + 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x70, + 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, + 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, + 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x12, 0x50, 0x0a, 0x11, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x66, + 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, + 0x72, 0x52, 0x0f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x46, 0x69, 0x6c, 0x74, + 0x65, 0x72, 0x12, 0x59, 0x0a, 0x10, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x48, 0x00, 0x52, 0x0f, 0x65, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x4a, 0x0a, + 0x0b, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x54, 0x79, 0x70, 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x48, 0x00, 0x52, 0x0a, 0x74, + 0x79, 0x70, 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x48, 0x0a, 0x0d, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x21, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x46, 0x69, 0x6c, + 0x74, 0x65, 0x72, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x46, 0x69, 0x6c, + 0x74, 0x65, 0x72, 0x42, 0x09, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x22, 0x9a, + 0x01, 0x0a, 0x24, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x64, 0x57, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x0a, 0x65, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0a, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, + 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x6e, 0x65, + 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x9a, 0x01, 0x0a, 0x25, + 0x4c, 0x69, 0x73, 0x74, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x1b, 0x0a, + 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, + 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x22, 0x9c, 0x01, 0x0a, 0x26, 0x4c, 0x69, 0x73, + 0x74, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x0a, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, + 0x6e, 0x66, 0x6f, 0x52, 0x0a, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, + 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, + 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, + 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x92, 0x01, 0x0a, 0x1d, 0x53, 0x63, 0x61, 0x6e, + 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x26, + 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, + 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x22, 0x94, 0x01, 0x0a, + 0x1e, 0x53, 0x63, 0x61, 0x6e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x4a, 0x0a, 0x0a, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, + 0x0a, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, + 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x22, 0x4e, 0x0a, 0x1e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x14, 0x0a, + 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, + 0x65, 0x72, 0x79, 0x22, 0x37, 0x0a, 0x1f, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x1c, 0x0a, 0x1a, + 0x47, 0x65, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xcd, 0x01, 0x0a, 0x1b, 0x47, + 0x65, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, 0x04, 0x6b, 0x65, + 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, + 0x65, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x1a, 0x5e, 0x0a, 0x09, 0x4b, 0x65, + 0x79, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x3b, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x49, + 0x6e, 0x64, 0x65, 0x78, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x32, 0xda, 0x07, 0x0a, 0x0d, 0x56, + 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x41, 0x50, 0x49, 0x12, 0x81, 0x01, 0x0a, + 0x16, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x32, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, + 0x73, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x8d, 0x01, 0x0a, 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x70, 0x65, 0x6e, 0x57, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, + 0x36, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x70, 0x65, 0x6e, 0x57, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, + 0x73, 0x74, 0x4f, 0x70, 0x65, 0x6e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x93, 0x01, 0x0a, 0x1c, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x64, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x12, 0x38, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6c, 0x6f, 0x73, + 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x99, 0x01, 0x0a, 0x1e, 0x4c, 0x69, 0x73, 0x74, 0x41, + 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3a, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3b, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, + 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x16, 0x53, 0x63, 0x61, 0x6e, 0x57, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x32, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x61, 0x6e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x33, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x61, 0x6e, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x84, 0x01, 0x0a, 0x17, 0x43, 0x6f, 0x75, 0x6e, 0x74, + 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x12, 0x33, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x57, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, + 0x75, 0x6e, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x78, 0x0a, + 0x13, 0x47, 0x65, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x12, 0x2f, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x65, + 0x61, 0x72, 0x63, 0x68, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, + 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x56, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x76, 0x31, 0x42, 0x08, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2f, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x62, 0x65, 0x72, 0x2f, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x2e, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x70, 0x69, 0x76, 0x31, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func (this *GetSearchAttributesResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*GetSearchAttributesResponse) - if !ok { - that2, ok := that.(GetSearchAttributesResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if len(this.Keys) != len(that1.Keys) { - return false - } - for i := range this.Keys { - if this.Keys[i] != that1.Keys[i] { - return false - } - } - return true -} -func (this *ListWorkflowExecutionsRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 8) - s = append(s, "&apiv1.ListWorkflowExecutionsRequest{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - s = append(s, "PageSize: "+fmt.Sprintf("%#v", this.PageSize)+",\n") - s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") - s = append(s, "Query: "+fmt.Sprintf("%#v", this.Query)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ListWorkflowExecutionsResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.ListWorkflowExecutionsResponse{") - if this.Executions != nil { - s = append(s, "Executions: "+fmt.Sprintf("%#v", this.Executions)+",\n") - } - s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ListOpenWorkflowExecutionsRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 10) - s = append(s, "&apiv1.ListOpenWorkflowExecutionsRequest{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - s = append(s, "PageSize: "+fmt.Sprintf("%#v", this.PageSize)+",\n") - s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") - if this.StartTimeFilter != nil { - s = append(s, "StartTimeFilter: "+fmt.Sprintf("%#v", this.StartTimeFilter)+",\n") - } - if this.Filters != nil { - s = append(s, "Filters: "+fmt.Sprintf("%#v", this.Filters)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ListOpenWorkflowExecutionsRequest_ExecutionFilter) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.ListOpenWorkflowExecutionsRequest_ExecutionFilter{` + - `ExecutionFilter:` + fmt.Sprintf("%#v", this.ExecutionFilter) + `}`}, ", ") - return s -} -func (this *ListOpenWorkflowExecutionsRequest_TypeFilter) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.ListOpenWorkflowExecutionsRequest_TypeFilter{` + - `TypeFilter:` + fmt.Sprintf("%#v", this.TypeFilter) + `}`}, ", ") - return s -} -func (this *ListOpenWorkflowExecutionsResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.ListOpenWorkflowExecutionsResponse{") - if this.Executions != nil { - s = append(s, "Executions: "+fmt.Sprintf("%#v", this.Executions)+",\n") - } - s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ListClosedWorkflowExecutionsRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 11) - s = append(s, "&apiv1.ListClosedWorkflowExecutionsRequest{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - s = append(s, "PageSize: "+fmt.Sprintf("%#v", this.PageSize)+",\n") - s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") - if this.StartTimeFilter != nil { - s = append(s, "StartTimeFilter: "+fmt.Sprintf("%#v", this.StartTimeFilter)+",\n") - } - if this.Filters != nil { - s = append(s, "Filters: "+fmt.Sprintf("%#v", this.Filters)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ListClosedWorkflowExecutionsRequest_ExecutionFilter) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.ListClosedWorkflowExecutionsRequest_ExecutionFilter{` + - `ExecutionFilter:` + fmt.Sprintf("%#v", this.ExecutionFilter) + `}`}, ", ") - return s -} -func (this *ListClosedWorkflowExecutionsRequest_TypeFilter) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.ListClosedWorkflowExecutionsRequest_TypeFilter{` + - `TypeFilter:` + fmt.Sprintf("%#v", this.TypeFilter) + `}`}, ", ") - return s -} -func (this *ListClosedWorkflowExecutionsRequest_StatusFilter) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&apiv1.ListClosedWorkflowExecutionsRequest_StatusFilter{` + - `StatusFilter:` + fmt.Sprintf("%#v", this.StatusFilter) + `}`}, ", ") - return s -} -func (this *ListClosedWorkflowExecutionsResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.ListClosedWorkflowExecutionsResponse{") - if this.Executions != nil { - s = append(s, "Executions: "+fmt.Sprintf("%#v", this.Executions)+",\n") - } - s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ListArchivedWorkflowExecutionsRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 8) - s = append(s, "&apiv1.ListArchivedWorkflowExecutionsRequest{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - s = append(s, "PageSize: "+fmt.Sprintf("%#v", this.PageSize)+",\n") - s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") - s = append(s, "Query: "+fmt.Sprintf("%#v", this.Query)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ListArchivedWorkflowExecutionsResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.ListArchivedWorkflowExecutionsResponse{") - if this.Executions != nil { - s = append(s, "Executions: "+fmt.Sprintf("%#v", this.Executions)+",\n") - } - s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ScanWorkflowExecutionsRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 8) - s = append(s, "&apiv1.ScanWorkflowExecutionsRequest{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - s = append(s, "PageSize: "+fmt.Sprintf("%#v", this.PageSize)+",\n") - s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") - s = append(s, "Query: "+fmt.Sprintf("%#v", this.Query)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ScanWorkflowExecutionsResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.ScanWorkflowExecutionsResponse{") - if this.Executions != nil { - s = append(s, "Executions: "+fmt.Sprintf("%#v", this.Executions)+",\n") - } - s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *CountWorkflowExecutionsRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.CountWorkflowExecutionsRequest{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - s = append(s, "Query: "+fmt.Sprintf("%#v", this.Query)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *CountWorkflowExecutionsResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&apiv1.CountWorkflowExecutionsResponse{") - s = append(s, "Count: "+fmt.Sprintf("%#v", this.Count)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetSearchAttributesRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&apiv1.GetSearchAttributesRequest{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetSearchAttributesResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&apiv1.GetSearchAttributesResponse{") - keysForKeys := make([]string, 0, len(this.Keys)) - for k, _ := range this.Keys { - keysForKeys = append(keysForKeys, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForKeys) - mapStringForKeys := "map[string]IndexedValueType{" - for _, k := range keysForKeys { - mapStringForKeys += fmt.Sprintf("%#v: %#v,", k, this.Keys[k]) - } - mapStringForKeys += "}" - if this.Keys != nil { - s = append(s, "Keys: "+mapStringForKeys+",\n") +var ( + file_uber_cadence_api_v1_service_visibility_proto_rawDescOnce sync.Once + file_uber_cadence_api_v1_service_visibility_proto_rawDescData = file_uber_cadence_api_v1_service_visibility_proto_rawDesc +) + +func file_uber_cadence_api_v1_service_visibility_proto_rawDescGZIP() []byte { + file_uber_cadence_api_v1_service_visibility_proto_rawDescOnce.Do(func() { + file_uber_cadence_api_v1_service_visibility_proto_rawDescData = protoimpl.X.CompressGZIP(file_uber_cadence_api_v1_service_visibility_proto_rawDescData) + }) + return file_uber_cadence_api_v1_service_visibility_proto_rawDescData +} + +var file_uber_cadence_api_v1_service_visibility_proto_msgTypes = make([]protoimpl.MessageInfo, 15) +var file_uber_cadence_api_v1_service_visibility_proto_goTypes = []interface{}{ + (*ListWorkflowExecutionsRequest)(nil), // 0: uber.cadence.api.v1.ListWorkflowExecutionsRequest + (*ListWorkflowExecutionsResponse)(nil), // 1: uber.cadence.api.v1.ListWorkflowExecutionsResponse + (*ListOpenWorkflowExecutionsRequest)(nil), // 2: uber.cadence.api.v1.ListOpenWorkflowExecutionsRequest + (*ListOpenWorkflowExecutionsResponse)(nil), // 3: uber.cadence.api.v1.ListOpenWorkflowExecutionsResponse + (*ListClosedWorkflowExecutionsRequest)(nil), // 4: uber.cadence.api.v1.ListClosedWorkflowExecutionsRequest + (*ListClosedWorkflowExecutionsResponse)(nil), // 5: uber.cadence.api.v1.ListClosedWorkflowExecutionsResponse + (*ListArchivedWorkflowExecutionsRequest)(nil), // 6: uber.cadence.api.v1.ListArchivedWorkflowExecutionsRequest + (*ListArchivedWorkflowExecutionsResponse)(nil), // 7: uber.cadence.api.v1.ListArchivedWorkflowExecutionsResponse + (*ScanWorkflowExecutionsRequest)(nil), // 8: uber.cadence.api.v1.ScanWorkflowExecutionsRequest + (*ScanWorkflowExecutionsResponse)(nil), // 9: uber.cadence.api.v1.ScanWorkflowExecutionsResponse + (*CountWorkflowExecutionsRequest)(nil), // 10: uber.cadence.api.v1.CountWorkflowExecutionsRequest + (*CountWorkflowExecutionsResponse)(nil), // 11: uber.cadence.api.v1.CountWorkflowExecutionsResponse + (*GetSearchAttributesRequest)(nil), // 12: uber.cadence.api.v1.GetSearchAttributesRequest + (*GetSearchAttributesResponse)(nil), // 13: uber.cadence.api.v1.GetSearchAttributesResponse + nil, // 14: uber.cadence.api.v1.GetSearchAttributesResponse.KeysEntry + (*WorkflowExecutionInfo)(nil), // 15: uber.cadence.api.v1.WorkflowExecutionInfo + (*StartTimeFilter)(nil), // 16: uber.cadence.api.v1.StartTimeFilter + (*WorkflowExecutionFilter)(nil), // 17: uber.cadence.api.v1.WorkflowExecutionFilter + (*WorkflowTypeFilter)(nil), // 18: uber.cadence.api.v1.WorkflowTypeFilter + (*StatusFilter)(nil), // 19: uber.cadence.api.v1.StatusFilter + (IndexedValueType)(0), // 20: uber.cadence.api.v1.IndexedValueType +} +var file_uber_cadence_api_v1_service_visibility_proto_depIdxs = []int32{ + 15, // 0: uber.cadence.api.v1.ListWorkflowExecutionsResponse.executions:type_name -> uber.cadence.api.v1.WorkflowExecutionInfo + 16, // 1: uber.cadence.api.v1.ListOpenWorkflowExecutionsRequest.start_time_filter:type_name -> uber.cadence.api.v1.StartTimeFilter + 17, // 2: uber.cadence.api.v1.ListOpenWorkflowExecutionsRequest.execution_filter:type_name -> uber.cadence.api.v1.WorkflowExecutionFilter + 18, // 3: uber.cadence.api.v1.ListOpenWorkflowExecutionsRequest.type_filter:type_name -> uber.cadence.api.v1.WorkflowTypeFilter + 15, // 4: uber.cadence.api.v1.ListOpenWorkflowExecutionsResponse.executions:type_name -> uber.cadence.api.v1.WorkflowExecutionInfo + 16, // 5: uber.cadence.api.v1.ListClosedWorkflowExecutionsRequest.start_time_filter:type_name -> uber.cadence.api.v1.StartTimeFilter + 17, // 6: uber.cadence.api.v1.ListClosedWorkflowExecutionsRequest.execution_filter:type_name -> uber.cadence.api.v1.WorkflowExecutionFilter + 18, // 7: uber.cadence.api.v1.ListClosedWorkflowExecutionsRequest.type_filter:type_name -> uber.cadence.api.v1.WorkflowTypeFilter + 19, // 8: uber.cadence.api.v1.ListClosedWorkflowExecutionsRequest.status_filter:type_name -> uber.cadence.api.v1.StatusFilter + 15, // 9: uber.cadence.api.v1.ListClosedWorkflowExecutionsResponse.executions:type_name -> uber.cadence.api.v1.WorkflowExecutionInfo + 15, // 10: uber.cadence.api.v1.ListArchivedWorkflowExecutionsResponse.executions:type_name -> uber.cadence.api.v1.WorkflowExecutionInfo + 15, // 11: uber.cadence.api.v1.ScanWorkflowExecutionsResponse.executions:type_name -> uber.cadence.api.v1.WorkflowExecutionInfo + 14, // 12: uber.cadence.api.v1.GetSearchAttributesResponse.keys:type_name -> uber.cadence.api.v1.GetSearchAttributesResponse.KeysEntry + 20, // 13: uber.cadence.api.v1.GetSearchAttributesResponse.KeysEntry.value:type_name -> uber.cadence.api.v1.IndexedValueType + 0, // 14: uber.cadence.api.v1.VisibilityAPI.ListWorkflowExecutions:input_type -> uber.cadence.api.v1.ListWorkflowExecutionsRequest + 2, // 15: uber.cadence.api.v1.VisibilityAPI.ListOpenWorkflowExecutions:input_type -> uber.cadence.api.v1.ListOpenWorkflowExecutionsRequest + 4, // 16: uber.cadence.api.v1.VisibilityAPI.ListClosedWorkflowExecutions:input_type -> uber.cadence.api.v1.ListClosedWorkflowExecutionsRequest + 6, // 17: uber.cadence.api.v1.VisibilityAPI.ListArchivedWorkflowExecutions:input_type -> uber.cadence.api.v1.ListArchivedWorkflowExecutionsRequest + 8, // 18: uber.cadence.api.v1.VisibilityAPI.ScanWorkflowExecutions:input_type -> uber.cadence.api.v1.ScanWorkflowExecutionsRequest + 10, // 19: uber.cadence.api.v1.VisibilityAPI.CountWorkflowExecutions:input_type -> uber.cadence.api.v1.CountWorkflowExecutionsRequest + 12, // 20: uber.cadence.api.v1.VisibilityAPI.GetSearchAttributes:input_type -> uber.cadence.api.v1.GetSearchAttributesRequest + 1, // 21: uber.cadence.api.v1.VisibilityAPI.ListWorkflowExecutions:output_type -> uber.cadence.api.v1.ListWorkflowExecutionsResponse + 3, // 22: uber.cadence.api.v1.VisibilityAPI.ListOpenWorkflowExecutions:output_type -> uber.cadence.api.v1.ListOpenWorkflowExecutionsResponse + 5, // 23: uber.cadence.api.v1.VisibilityAPI.ListClosedWorkflowExecutions:output_type -> uber.cadence.api.v1.ListClosedWorkflowExecutionsResponse + 7, // 24: uber.cadence.api.v1.VisibilityAPI.ListArchivedWorkflowExecutions:output_type -> uber.cadence.api.v1.ListArchivedWorkflowExecutionsResponse + 9, // 25: uber.cadence.api.v1.VisibilityAPI.ScanWorkflowExecutions:output_type -> uber.cadence.api.v1.ScanWorkflowExecutionsResponse + 11, // 26: uber.cadence.api.v1.VisibilityAPI.CountWorkflowExecutions:output_type -> uber.cadence.api.v1.CountWorkflowExecutionsResponse + 13, // 27: uber.cadence.api.v1.VisibilityAPI.GetSearchAttributes:output_type -> uber.cadence.api.v1.GetSearchAttributesResponse + 21, // [21:28] is the sub-list for method output_type + 14, // [14:21] is the sub-list for method input_type + 14, // [14:14] is the sub-list for extension type_name + 14, // [14:14] is the sub-list for extension extendee + 0, // [0:14] is the sub-list for field type_name +} + +func init() { file_uber_cadence_api_v1_service_visibility_proto_init() } +func file_uber_cadence_api_v1_service_visibility_proto_init() { + if File_uber_cadence_api_v1_service_visibility_proto != nil { + return + } + file_uber_cadence_api_v1_visibility_proto_init() + file_uber_cadence_api_v1_workflow_proto_init() + if !protoimpl.UnsafeEnabled { + file_uber_cadence_api_v1_service_visibility_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListWorkflowExecutionsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_visibility_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListWorkflowExecutionsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_visibility_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListOpenWorkflowExecutionsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_visibility_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListOpenWorkflowExecutionsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_visibility_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListClosedWorkflowExecutionsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_visibility_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListClosedWorkflowExecutionsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_visibility_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListArchivedWorkflowExecutionsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_visibility_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListArchivedWorkflowExecutionsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_visibility_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ScanWorkflowExecutionsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_visibility_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ScanWorkflowExecutionsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_visibility_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CountWorkflowExecutionsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_visibility_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CountWorkflowExecutionsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_visibility_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetSearchAttributesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_visibility_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetSearchAttributesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_uber_cadence_api_v1_service_visibility_proto_msgTypes[2].OneofWrappers = []interface{}{ + (*ListOpenWorkflowExecutionsRequest_ExecutionFilter)(nil), + (*ListOpenWorkflowExecutionsRequest_TypeFilter)(nil), } - s = append(s, "}") - return strings.Join(s, "") -} -func valueToGoStringServiceVisibility(v interface{}, typ string) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" + file_uber_cadence_api_v1_service_visibility_proto_msgTypes[4].OneofWrappers = []interface{}{ + (*ListClosedWorkflowExecutionsRequest_ExecutionFilter)(nil), + (*ListClosedWorkflowExecutionsRequest_TypeFilter)(nil), + (*ListClosedWorkflowExecutionsRequest_StatusFilter)(nil), } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_uber_cadence_api_v1_service_visibility_proto_rawDesc, + NumEnums: 0, + NumMessages: 15, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_uber_cadence_api_v1_service_visibility_proto_goTypes, + DependencyIndexes: file_uber_cadence_api_v1_service_visibility_proto_depIdxs, + MessageInfos: file_uber_cadence_api_v1_service_visibility_proto_msgTypes, + }.Build() + File_uber_cadence_api_v1_service_visibility_proto = out.File + file_uber_cadence_api_v1_service_visibility_proto_rawDesc = nil + file_uber_cadence_api_v1_service_visibility_proto_goTypes = nil + file_uber_cadence_api_v1_service_visibility_proto_depIdxs = nil } - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// 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 - -// VisibilityAPIClient is the client API for VisibilityAPI service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type VisibilityAPIClient interface { - // ListWorkflowExecutions is a visibility API to list workflow executions in a specific domain. - ListWorkflowExecutions(ctx context.Context, in *ListWorkflowExecutionsRequest, opts ...grpc.CallOption) (*ListWorkflowExecutionsResponse, error) - // ListOpenWorkflowExecutions is a visibility API to list the open executions in a specific domain. - ListOpenWorkflowExecutions(ctx context.Context, in *ListOpenWorkflowExecutionsRequest, opts ...grpc.CallOption) (*ListOpenWorkflowExecutionsResponse, error) - // ListClosedWorkflowExecutions is a visibility API to list the closed executions in a specific domain. - ListClosedWorkflowExecutions(ctx context.Context, in *ListClosedWorkflowExecutionsRequest, opts ...grpc.CallOption) (*ListClosedWorkflowExecutionsResponse, error) - // ListArchivedWorkflowExecutions is a visibility API to list archived workflow executions in a specific domain. - ListArchivedWorkflowExecutions(ctx context.Context, in *ListArchivedWorkflowExecutionsRequest, opts ...grpc.CallOption) (*ListArchivedWorkflowExecutionsResponse, error) - // ScanWorkflowExecutions is a visibility API to list large amount of workflow executions in a specific domain without order. - ScanWorkflowExecutions(ctx context.Context, in *ScanWorkflowExecutionsRequest, opts ...grpc.CallOption) (*ScanWorkflowExecutionsResponse, error) - // CountWorkflowExecutions is a visibility API to count of workflow executions in a specific domain. - CountWorkflowExecutions(ctx context.Context, in *CountWorkflowExecutionsRequest, opts ...grpc.CallOption) (*CountWorkflowExecutionsResponse, error) - // GetSearchAttributes is a visibility API to get all legal keys that could be used in list APIs. - GetSearchAttributes(ctx context.Context, in *GetSearchAttributesRequest, opts ...grpc.CallOption) (*GetSearchAttributesResponse, error) -} - -type visibilityAPIClient struct { - cc *grpc.ClientConn -} - -func NewVisibilityAPIClient(cc *grpc.ClientConn) VisibilityAPIClient { - return &visibilityAPIClient{cc} -} - -func (c *visibilityAPIClient) ListWorkflowExecutions(ctx context.Context, in *ListWorkflowExecutionsRequest, opts ...grpc.CallOption) (*ListWorkflowExecutionsResponse, error) { - out := new(ListWorkflowExecutionsResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.VisibilityAPI/ListWorkflowExecutions", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *visibilityAPIClient) ListOpenWorkflowExecutions(ctx context.Context, in *ListOpenWorkflowExecutionsRequest, opts ...grpc.CallOption) (*ListOpenWorkflowExecutionsResponse, error) { - out := new(ListOpenWorkflowExecutionsResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.VisibilityAPI/ListOpenWorkflowExecutions", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *visibilityAPIClient) ListClosedWorkflowExecutions(ctx context.Context, in *ListClosedWorkflowExecutionsRequest, opts ...grpc.CallOption) (*ListClosedWorkflowExecutionsResponse, error) { - out := new(ListClosedWorkflowExecutionsResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.VisibilityAPI/ListClosedWorkflowExecutions", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *visibilityAPIClient) ListArchivedWorkflowExecutions(ctx context.Context, in *ListArchivedWorkflowExecutionsRequest, opts ...grpc.CallOption) (*ListArchivedWorkflowExecutionsResponse, error) { - out := new(ListArchivedWorkflowExecutionsResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.VisibilityAPI/ListArchivedWorkflowExecutions", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *visibilityAPIClient) ScanWorkflowExecutions(ctx context.Context, in *ScanWorkflowExecutionsRequest, opts ...grpc.CallOption) (*ScanWorkflowExecutionsResponse, error) { - out := new(ScanWorkflowExecutionsResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.VisibilityAPI/ScanWorkflowExecutions", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *visibilityAPIClient) CountWorkflowExecutions(ctx context.Context, in *CountWorkflowExecutionsRequest, opts ...grpc.CallOption) (*CountWorkflowExecutionsResponse, error) { - out := new(CountWorkflowExecutionsResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.VisibilityAPI/CountWorkflowExecutions", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *visibilityAPIClient) GetSearchAttributes(ctx context.Context, in *GetSearchAttributesRequest, opts ...grpc.CallOption) (*GetSearchAttributesResponse, error) { - out := new(GetSearchAttributesResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.VisibilityAPI/GetSearchAttributes", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// VisibilityAPIServer is the server API for VisibilityAPI service. -type VisibilityAPIServer interface { - // ListWorkflowExecutions is a visibility API to list workflow executions in a specific domain. - ListWorkflowExecutions(context.Context, *ListWorkflowExecutionsRequest) (*ListWorkflowExecutionsResponse, error) - // ListOpenWorkflowExecutions is a visibility API to list the open executions in a specific domain. - ListOpenWorkflowExecutions(context.Context, *ListOpenWorkflowExecutionsRequest) (*ListOpenWorkflowExecutionsResponse, error) - // ListClosedWorkflowExecutions is a visibility API to list the closed executions in a specific domain. - ListClosedWorkflowExecutions(context.Context, *ListClosedWorkflowExecutionsRequest) (*ListClosedWorkflowExecutionsResponse, error) - // ListArchivedWorkflowExecutions is a visibility API to list archived workflow executions in a specific domain. - ListArchivedWorkflowExecutions(context.Context, *ListArchivedWorkflowExecutionsRequest) (*ListArchivedWorkflowExecutionsResponse, error) - // ScanWorkflowExecutions is a visibility API to list large amount of workflow executions in a specific domain without order. - ScanWorkflowExecutions(context.Context, *ScanWorkflowExecutionsRequest) (*ScanWorkflowExecutionsResponse, error) - // CountWorkflowExecutions is a visibility API to count of workflow executions in a specific domain. - CountWorkflowExecutions(context.Context, *CountWorkflowExecutionsRequest) (*CountWorkflowExecutionsResponse, error) - // GetSearchAttributes is a visibility API to get all legal keys that could be used in list APIs. - GetSearchAttributes(context.Context, *GetSearchAttributesRequest) (*GetSearchAttributesResponse, error) -} - -// UnimplementedVisibilityAPIServer can be embedded to have forward compatible implementations. -type UnimplementedVisibilityAPIServer struct { -} - -func (*UnimplementedVisibilityAPIServer) ListWorkflowExecutions(ctx context.Context, req *ListWorkflowExecutionsRequest) (*ListWorkflowExecutionsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListWorkflowExecutions not implemented") -} -func (*UnimplementedVisibilityAPIServer) ListOpenWorkflowExecutions(ctx context.Context, req *ListOpenWorkflowExecutionsRequest) (*ListOpenWorkflowExecutionsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListOpenWorkflowExecutions not implemented") -} -func (*UnimplementedVisibilityAPIServer) ListClosedWorkflowExecutions(ctx context.Context, req *ListClosedWorkflowExecutionsRequest) (*ListClosedWorkflowExecutionsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListClosedWorkflowExecutions not implemented") -} -func (*UnimplementedVisibilityAPIServer) ListArchivedWorkflowExecutions(ctx context.Context, req *ListArchivedWorkflowExecutionsRequest) (*ListArchivedWorkflowExecutionsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListArchivedWorkflowExecutions not implemented") -} -func (*UnimplementedVisibilityAPIServer) ScanWorkflowExecutions(ctx context.Context, req *ScanWorkflowExecutionsRequest) (*ScanWorkflowExecutionsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ScanWorkflowExecutions not implemented") -} -func (*UnimplementedVisibilityAPIServer) CountWorkflowExecutions(ctx context.Context, req *CountWorkflowExecutionsRequest) (*CountWorkflowExecutionsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CountWorkflowExecutions not implemented") -} -func (*UnimplementedVisibilityAPIServer) GetSearchAttributes(ctx context.Context, req *GetSearchAttributesRequest) (*GetSearchAttributesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetSearchAttributes not implemented") -} - -func RegisterVisibilityAPIServer(s *grpc.Server, srv VisibilityAPIServer) { - s.RegisterService(&_VisibilityAPI_serviceDesc, srv) -} - -func _VisibilityAPI_ListWorkflowExecutions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListWorkflowExecutionsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(VisibilityAPIServer).ListWorkflowExecutions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.VisibilityAPI/ListWorkflowExecutions", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(VisibilityAPIServer).ListWorkflowExecutions(ctx, req.(*ListWorkflowExecutionsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _VisibilityAPI_ListOpenWorkflowExecutions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListOpenWorkflowExecutionsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(VisibilityAPIServer).ListOpenWorkflowExecutions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.VisibilityAPI/ListOpenWorkflowExecutions", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(VisibilityAPIServer).ListOpenWorkflowExecutions(ctx, req.(*ListOpenWorkflowExecutionsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _VisibilityAPI_ListClosedWorkflowExecutions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListClosedWorkflowExecutionsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(VisibilityAPIServer).ListClosedWorkflowExecutions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.VisibilityAPI/ListClosedWorkflowExecutions", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(VisibilityAPIServer).ListClosedWorkflowExecutions(ctx, req.(*ListClosedWorkflowExecutionsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _VisibilityAPI_ListArchivedWorkflowExecutions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListArchivedWorkflowExecutionsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(VisibilityAPIServer).ListArchivedWorkflowExecutions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.VisibilityAPI/ListArchivedWorkflowExecutions", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(VisibilityAPIServer).ListArchivedWorkflowExecutions(ctx, req.(*ListArchivedWorkflowExecutionsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _VisibilityAPI_ScanWorkflowExecutions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ScanWorkflowExecutionsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(VisibilityAPIServer).ScanWorkflowExecutions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.VisibilityAPI/ScanWorkflowExecutions", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(VisibilityAPIServer).ScanWorkflowExecutions(ctx, req.(*ScanWorkflowExecutionsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _VisibilityAPI_CountWorkflowExecutions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CountWorkflowExecutionsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(VisibilityAPIServer).CountWorkflowExecutions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.VisibilityAPI/CountWorkflowExecutions", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(VisibilityAPIServer).CountWorkflowExecutions(ctx, req.(*CountWorkflowExecutionsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _VisibilityAPI_GetSearchAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetSearchAttributesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(VisibilityAPIServer).GetSearchAttributes(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.VisibilityAPI/GetSearchAttributes", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(VisibilityAPIServer).GetSearchAttributes(ctx, req.(*GetSearchAttributesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _VisibilityAPI_serviceDesc = grpc.ServiceDesc{ - ServiceName: "uber.cadence.api.v1.VisibilityAPI", - HandlerType: (*VisibilityAPIServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ListWorkflowExecutions", - Handler: _VisibilityAPI_ListWorkflowExecutions_Handler, - }, - { - MethodName: "ListOpenWorkflowExecutions", - Handler: _VisibilityAPI_ListOpenWorkflowExecutions_Handler, - }, - { - MethodName: "ListClosedWorkflowExecutions", - Handler: _VisibilityAPI_ListClosedWorkflowExecutions_Handler, - }, - { - MethodName: "ListArchivedWorkflowExecutions", - Handler: _VisibilityAPI_ListArchivedWorkflowExecutions_Handler, - }, - { - MethodName: "ScanWorkflowExecutions", - Handler: _VisibilityAPI_ScanWorkflowExecutions_Handler, - }, - { - MethodName: "CountWorkflowExecutions", - Handler: _VisibilityAPI_CountWorkflowExecutions_Handler, - }, - { - MethodName: "GetSearchAttributes", - Handler: _VisibilityAPI_GetSearchAttributes_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "github.com/uber/cadence/.gen/proto/api/v1/service_visibility.proto", -} - -func (m *ListWorkflowExecutionsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ListWorkflowExecutionsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListWorkflowExecutionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Query) > 0 { - i -= len(m.Query) - copy(dAtA[i:], m.Query) - i = encodeVarintServiceVisibility(dAtA, i, uint64(len(m.Query))) - i-- - dAtA[i] = 0x22 - } - if len(m.NextPageToken) > 0 { - i -= len(m.NextPageToken) - copy(dAtA[i:], m.NextPageToken) - i = encodeVarintServiceVisibility(dAtA, i, uint64(len(m.NextPageToken))) - i-- - dAtA[i] = 0x1a - } - if m.PageSize != 0 { - i = encodeVarintServiceVisibility(dAtA, i, uint64(m.PageSize)) - i-- - dAtA[i] = 0x10 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintServiceVisibility(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ListWorkflowExecutionsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ListWorkflowExecutionsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListWorkflowExecutionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.NextPageToken) > 0 { - i -= len(m.NextPageToken) - copy(dAtA[i:], m.NextPageToken) - i = encodeVarintServiceVisibility(dAtA, i, uint64(len(m.NextPageToken))) - i-- - dAtA[i] = 0x12 - } - if len(m.Executions) > 0 { - for iNdEx := len(m.Executions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Executions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceVisibility(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ListOpenWorkflowExecutionsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ListOpenWorkflowExecutionsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListOpenWorkflowExecutionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Filters != nil { - { - size := m.Filters.Size() - i -= size - if _, err := m.Filters.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - if m.StartTimeFilter != nil { - { - size, err := m.StartTimeFilter.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceVisibility(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.NextPageToken) > 0 { - i -= len(m.NextPageToken) - copy(dAtA[i:], m.NextPageToken) - i = encodeVarintServiceVisibility(dAtA, i, uint64(len(m.NextPageToken))) - i-- - dAtA[i] = 0x1a - } - if m.PageSize != 0 { - i = encodeVarintServiceVisibility(dAtA, i, uint64(m.PageSize)) - i-- - dAtA[i] = 0x10 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintServiceVisibility(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ListOpenWorkflowExecutionsRequest_ExecutionFilter) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListOpenWorkflowExecutionsRequest_ExecutionFilter) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ExecutionFilter != nil { - { - size, err := m.ExecutionFilter.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceVisibility(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - return len(dAtA) - i, nil -} -func (m *ListOpenWorkflowExecutionsRequest_TypeFilter) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListOpenWorkflowExecutionsRequest_TypeFilter) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.TypeFilter != nil { - { - size, err := m.TypeFilter.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceVisibility(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - return len(dAtA) - i, nil -} -func (m *ListOpenWorkflowExecutionsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ListOpenWorkflowExecutionsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListOpenWorkflowExecutionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.NextPageToken) > 0 { - i -= len(m.NextPageToken) - copy(dAtA[i:], m.NextPageToken) - i = encodeVarintServiceVisibility(dAtA, i, uint64(len(m.NextPageToken))) - i-- - dAtA[i] = 0x12 - } - if len(m.Executions) > 0 { - for iNdEx := len(m.Executions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Executions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceVisibility(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ListClosedWorkflowExecutionsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ListClosedWorkflowExecutionsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListClosedWorkflowExecutionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Filters != nil { - { - size := m.Filters.Size() - i -= size - if _, err := m.Filters.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - if m.StartTimeFilter != nil { - { - size, err := m.StartTimeFilter.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceVisibility(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.NextPageToken) > 0 { - i -= len(m.NextPageToken) - copy(dAtA[i:], m.NextPageToken) - i = encodeVarintServiceVisibility(dAtA, i, uint64(len(m.NextPageToken))) - i-- - dAtA[i] = 0x1a - } - if m.PageSize != 0 { - i = encodeVarintServiceVisibility(dAtA, i, uint64(m.PageSize)) - i-- - dAtA[i] = 0x10 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintServiceVisibility(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ListClosedWorkflowExecutionsRequest_ExecutionFilter) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListClosedWorkflowExecutionsRequest_ExecutionFilter) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ExecutionFilter != nil { - { - size, err := m.ExecutionFilter.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceVisibility(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - return len(dAtA) - i, nil -} -func (m *ListClosedWorkflowExecutionsRequest_TypeFilter) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListClosedWorkflowExecutionsRequest_TypeFilter) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.TypeFilter != nil { - { - size, err := m.TypeFilter.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceVisibility(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - return len(dAtA) - i, nil -} -func (m *ListClosedWorkflowExecutionsRequest_StatusFilter) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListClosedWorkflowExecutionsRequest_StatusFilter) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.StatusFilter != nil { - { - size, err := m.StatusFilter.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceVisibility(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - return len(dAtA) - i, nil -} -func (m *ListClosedWorkflowExecutionsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ListClosedWorkflowExecutionsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListClosedWorkflowExecutionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.NextPageToken) > 0 { - i -= len(m.NextPageToken) - copy(dAtA[i:], m.NextPageToken) - i = encodeVarintServiceVisibility(dAtA, i, uint64(len(m.NextPageToken))) - i-- - dAtA[i] = 0x12 - } - if len(m.Executions) > 0 { - for iNdEx := len(m.Executions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Executions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceVisibility(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ListArchivedWorkflowExecutionsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ListArchivedWorkflowExecutionsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListArchivedWorkflowExecutionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Query) > 0 { - i -= len(m.Query) - copy(dAtA[i:], m.Query) - i = encodeVarintServiceVisibility(dAtA, i, uint64(len(m.Query))) - i-- - dAtA[i] = 0x22 - } - if len(m.NextPageToken) > 0 { - i -= len(m.NextPageToken) - copy(dAtA[i:], m.NextPageToken) - i = encodeVarintServiceVisibility(dAtA, i, uint64(len(m.NextPageToken))) - i-- - dAtA[i] = 0x1a - } - if m.PageSize != 0 { - i = encodeVarintServiceVisibility(dAtA, i, uint64(m.PageSize)) - i-- - dAtA[i] = 0x10 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintServiceVisibility(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ListArchivedWorkflowExecutionsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ListArchivedWorkflowExecutionsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListArchivedWorkflowExecutionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.NextPageToken) > 0 { - i -= len(m.NextPageToken) - copy(dAtA[i:], m.NextPageToken) - i = encodeVarintServiceVisibility(dAtA, i, uint64(len(m.NextPageToken))) - i-- - dAtA[i] = 0x12 - } - if len(m.Executions) > 0 { - for iNdEx := len(m.Executions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Executions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceVisibility(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ScanWorkflowExecutionsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ScanWorkflowExecutionsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ScanWorkflowExecutionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Query) > 0 { - i -= len(m.Query) - copy(dAtA[i:], m.Query) - i = encodeVarintServiceVisibility(dAtA, i, uint64(len(m.Query))) - i-- - dAtA[i] = 0x22 - } - if len(m.NextPageToken) > 0 { - i -= len(m.NextPageToken) - copy(dAtA[i:], m.NextPageToken) - i = encodeVarintServiceVisibility(dAtA, i, uint64(len(m.NextPageToken))) - i-- - dAtA[i] = 0x1a - } - if m.PageSize != 0 { - i = encodeVarintServiceVisibility(dAtA, i, uint64(m.PageSize)) - i-- - dAtA[i] = 0x10 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintServiceVisibility(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ScanWorkflowExecutionsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ScanWorkflowExecutionsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ScanWorkflowExecutionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.NextPageToken) > 0 { - i -= len(m.NextPageToken) - copy(dAtA[i:], m.NextPageToken) - i = encodeVarintServiceVisibility(dAtA, i, uint64(len(m.NextPageToken))) - i-- - dAtA[i] = 0x12 - } - if len(m.Executions) > 0 { - for iNdEx := len(m.Executions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Executions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceVisibility(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *CountWorkflowExecutionsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CountWorkflowExecutionsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CountWorkflowExecutionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Query) > 0 { - i -= len(m.Query) - copy(dAtA[i:], m.Query) - i = encodeVarintServiceVisibility(dAtA, i, uint64(len(m.Query))) - i-- - dAtA[i] = 0x12 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintServiceVisibility(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *CountWorkflowExecutionsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CountWorkflowExecutionsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CountWorkflowExecutionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Count != 0 { - i = encodeVarintServiceVisibility(dAtA, i, uint64(m.Count)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *GetSearchAttributesRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetSearchAttributesRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetSearchAttributesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *GetSearchAttributesResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetSearchAttributesResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetSearchAttributesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Keys) > 0 { - for k := range m.Keys { - v := m.Keys[k] - baseI := i - i = encodeVarintServiceVisibility(dAtA, i, uint64(v)) - i-- - dAtA[i] = 0x10 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintServiceVisibility(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintServiceVisibility(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func encodeVarintServiceVisibility(dAtA []byte, offset int, v uint64) int { - offset -= sovServiceVisibility(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *ListWorkflowExecutionsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovServiceVisibility(uint64(l)) - } - if m.PageSize != 0 { - n += 1 + sovServiceVisibility(uint64(m.PageSize)) - } - l = len(m.NextPageToken) - if l > 0 { - n += 1 + l + sovServiceVisibility(uint64(l)) - } - l = len(m.Query) - if l > 0 { - n += 1 + l + sovServiceVisibility(uint64(l)) - } - return n -} - -func (m *ListWorkflowExecutionsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Executions) > 0 { - for _, e := range m.Executions { - l = e.Size() - n += 1 + l + sovServiceVisibility(uint64(l)) - } - } - l = len(m.NextPageToken) - if l > 0 { - n += 1 + l + sovServiceVisibility(uint64(l)) - } - return n -} - -func (m *ListOpenWorkflowExecutionsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovServiceVisibility(uint64(l)) - } - if m.PageSize != 0 { - n += 1 + sovServiceVisibility(uint64(m.PageSize)) - } - l = len(m.NextPageToken) - if l > 0 { - n += 1 + l + sovServiceVisibility(uint64(l)) - } - if m.StartTimeFilter != nil { - l = m.StartTimeFilter.Size() - n += 1 + l + sovServiceVisibility(uint64(l)) - } - if m.Filters != nil { - n += m.Filters.Size() - } - return n -} - -func (m *ListOpenWorkflowExecutionsRequest_ExecutionFilter) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ExecutionFilter != nil { - l = m.ExecutionFilter.Size() - n += 1 + l + sovServiceVisibility(uint64(l)) - } - return n -} -func (m *ListOpenWorkflowExecutionsRequest_TypeFilter) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.TypeFilter != nil { - l = m.TypeFilter.Size() - n += 1 + l + sovServiceVisibility(uint64(l)) - } - return n -} -func (m *ListOpenWorkflowExecutionsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Executions) > 0 { - for _, e := range m.Executions { - l = e.Size() - n += 1 + l + sovServiceVisibility(uint64(l)) - } - } - l = len(m.NextPageToken) - if l > 0 { - n += 1 + l + sovServiceVisibility(uint64(l)) - } - return n -} - -func (m *ListClosedWorkflowExecutionsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovServiceVisibility(uint64(l)) - } - if m.PageSize != 0 { - n += 1 + sovServiceVisibility(uint64(m.PageSize)) - } - l = len(m.NextPageToken) - if l > 0 { - n += 1 + l + sovServiceVisibility(uint64(l)) - } - if m.StartTimeFilter != nil { - l = m.StartTimeFilter.Size() - n += 1 + l + sovServiceVisibility(uint64(l)) - } - if m.Filters != nil { - n += m.Filters.Size() - } - return n -} - -func (m *ListClosedWorkflowExecutionsRequest_ExecutionFilter) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ExecutionFilter != nil { - l = m.ExecutionFilter.Size() - n += 1 + l + sovServiceVisibility(uint64(l)) - } - return n -} -func (m *ListClosedWorkflowExecutionsRequest_TypeFilter) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.TypeFilter != nil { - l = m.TypeFilter.Size() - n += 1 + l + sovServiceVisibility(uint64(l)) - } - return n -} -func (m *ListClosedWorkflowExecutionsRequest_StatusFilter) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.StatusFilter != nil { - l = m.StatusFilter.Size() - n += 1 + l + sovServiceVisibility(uint64(l)) - } - return n -} -func (m *ListClosedWorkflowExecutionsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Executions) > 0 { - for _, e := range m.Executions { - l = e.Size() - n += 1 + l + sovServiceVisibility(uint64(l)) - } - } - l = len(m.NextPageToken) - if l > 0 { - n += 1 + l + sovServiceVisibility(uint64(l)) - } - return n -} - -func (m *ListArchivedWorkflowExecutionsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovServiceVisibility(uint64(l)) - } - if m.PageSize != 0 { - n += 1 + sovServiceVisibility(uint64(m.PageSize)) - } - l = len(m.NextPageToken) - if l > 0 { - n += 1 + l + sovServiceVisibility(uint64(l)) - } - l = len(m.Query) - if l > 0 { - n += 1 + l + sovServiceVisibility(uint64(l)) - } - return n -} - -func (m *ListArchivedWorkflowExecutionsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Executions) > 0 { - for _, e := range m.Executions { - l = e.Size() - n += 1 + l + sovServiceVisibility(uint64(l)) - } - } - l = len(m.NextPageToken) - if l > 0 { - n += 1 + l + sovServiceVisibility(uint64(l)) - } - return n -} - -func (m *ScanWorkflowExecutionsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovServiceVisibility(uint64(l)) - } - if m.PageSize != 0 { - n += 1 + sovServiceVisibility(uint64(m.PageSize)) - } - l = len(m.NextPageToken) - if l > 0 { - n += 1 + l + sovServiceVisibility(uint64(l)) - } - l = len(m.Query) - if l > 0 { - n += 1 + l + sovServiceVisibility(uint64(l)) - } - return n -} - -func (m *ScanWorkflowExecutionsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Executions) > 0 { - for _, e := range m.Executions { - l = e.Size() - n += 1 + l + sovServiceVisibility(uint64(l)) - } - } - l = len(m.NextPageToken) - if l > 0 { - n += 1 + l + sovServiceVisibility(uint64(l)) - } - return n -} - -func (m *CountWorkflowExecutionsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovServiceVisibility(uint64(l)) - } - l = len(m.Query) - if l > 0 { - n += 1 + l + sovServiceVisibility(uint64(l)) - } - return n -} - -func (m *CountWorkflowExecutionsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Count != 0 { - n += 1 + sovServiceVisibility(uint64(m.Count)) - } - return n -} - -func (m *GetSearchAttributesRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *GetSearchAttributesResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Keys) > 0 { - for k, v := range m.Keys { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovServiceVisibility(uint64(len(k))) + 1 + sovServiceVisibility(uint64(v)) - n += mapEntrySize + 1 + sovServiceVisibility(uint64(mapEntrySize)) - } - } - return n -} - -func sovServiceVisibility(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozServiceVisibility(x uint64) (n int) { - return sovServiceVisibility(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *ListWorkflowExecutionsRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ListWorkflowExecutionsRequest{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `PageSize:` + fmt.Sprintf("%v", this.PageSize) + `,`, - `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, - `Query:` + fmt.Sprintf("%v", this.Query) + `,`, - `}`, - }, "") - return s -} -func (this *ListWorkflowExecutionsResponse) String() string { - if this == nil { - return "nil" - } - repeatedStringForExecutions := "[]*WorkflowExecutionInfo{" - for _, f := range this.Executions { - repeatedStringForExecutions += strings.Replace(fmt.Sprintf("%v", f), "WorkflowExecutionInfo", "WorkflowExecutionInfo", 1) + "," - } - repeatedStringForExecutions += "}" - s := strings.Join([]string{`&ListWorkflowExecutionsResponse{`, - `Executions:` + repeatedStringForExecutions + `,`, - `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, - `}`, - }, "") - return s -} -func (this *ListOpenWorkflowExecutionsRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ListOpenWorkflowExecutionsRequest{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `PageSize:` + fmt.Sprintf("%v", this.PageSize) + `,`, - `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, - `StartTimeFilter:` + strings.Replace(fmt.Sprintf("%v", this.StartTimeFilter), "StartTimeFilter", "StartTimeFilter", 1) + `,`, - `Filters:` + fmt.Sprintf("%v", this.Filters) + `,`, - `}`, - }, "") - return s -} -func (this *ListOpenWorkflowExecutionsRequest_ExecutionFilter) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ListOpenWorkflowExecutionsRequest_ExecutionFilter{`, - `ExecutionFilter:` + strings.Replace(fmt.Sprintf("%v", this.ExecutionFilter), "WorkflowExecutionFilter", "WorkflowExecutionFilter", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ListOpenWorkflowExecutionsRequest_TypeFilter) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ListOpenWorkflowExecutionsRequest_TypeFilter{`, - `TypeFilter:` + strings.Replace(fmt.Sprintf("%v", this.TypeFilter), "WorkflowTypeFilter", "WorkflowTypeFilter", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ListOpenWorkflowExecutionsResponse) String() string { - if this == nil { - return "nil" - } - repeatedStringForExecutions := "[]*WorkflowExecutionInfo{" - for _, f := range this.Executions { - repeatedStringForExecutions += strings.Replace(fmt.Sprintf("%v", f), "WorkflowExecutionInfo", "WorkflowExecutionInfo", 1) + "," - } - repeatedStringForExecutions += "}" - s := strings.Join([]string{`&ListOpenWorkflowExecutionsResponse{`, - `Executions:` + repeatedStringForExecutions + `,`, - `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, - `}`, - }, "") - return s -} -func (this *ListClosedWorkflowExecutionsRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ListClosedWorkflowExecutionsRequest{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `PageSize:` + fmt.Sprintf("%v", this.PageSize) + `,`, - `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, - `StartTimeFilter:` + strings.Replace(fmt.Sprintf("%v", this.StartTimeFilter), "StartTimeFilter", "StartTimeFilter", 1) + `,`, - `Filters:` + fmt.Sprintf("%v", this.Filters) + `,`, - `}`, - }, "") - return s -} -func (this *ListClosedWorkflowExecutionsRequest_ExecutionFilter) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ListClosedWorkflowExecutionsRequest_ExecutionFilter{`, - `ExecutionFilter:` + strings.Replace(fmt.Sprintf("%v", this.ExecutionFilter), "WorkflowExecutionFilter", "WorkflowExecutionFilter", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ListClosedWorkflowExecutionsRequest_TypeFilter) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ListClosedWorkflowExecutionsRequest_TypeFilter{`, - `TypeFilter:` + strings.Replace(fmt.Sprintf("%v", this.TypeFilter), "WorkflowTypeFilter", "WorkflowTypeFilter", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ListClosedWorkflowExecutionsRequest_StatusFilter) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ListClosedWorkflowExecutionsRequest_StatusFilter{`, - `StatusFilter:` + strings.Replace(fmt.Sprintf("%v", this.StatusFilter), "StatusFilter", "StatusFilter", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ListClosedWorkflowExecutionsResponse) String() string { - if this == nil { - return "nil" - } - repeatedStringForExecutions := "[]*WorkflowExecutionInfo{" - for _, f := range this.Executions { - repeatedStringForExecutions += strings.Replace(fmt.Sprintf("%v", f), "WorkflowExecutionInfo", "WorkflowExecutionInfo", 1) + "," - } - repeatedStringForExecutions += "}" - s := strings.Join([]string{`&ListClosedWorkflowExecutionsResponse{`, - `Executions:` + repeatedStringForExecutions + `,`, - `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, - `}`, - }, "") - return s -} -func (this *ListArchivedWorkflowExecutionsRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ListArchivedWorkflowExecutionsRequest{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `PageSize:` + fmt.Sprintf("%v", this.PageSize) + `,`, - `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, - `Query:` + fmt.Sprintf("%v", this.Query) + `,`, - `}`, - }, "") - return s -} -func (this *ListArchivedWorkflowExecutionsResponse) String() string { - if this == nil { - return "nil" - } - repeatedStringForExecutions := "[]*WorkflowExecutionInfo{" - for _, f := range this.Executions { - repeatedStringForExecutions += strings.Replace(fmt.Sprintf("%v", f), "WorkflowExecutionInfo", "WorkflowExecutionInfo", 1) + "," - } - repeatedStringForExecutions += "}" - s := strings.Join([]string{`&ListArchivedWorkflowExecutionsResponse{`, - `Executions:` + repeatedStringForExecutions + `,`, - `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, - `}`, - }, "") - return s -} -func (this *ScanWorkflowExecutionsRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ScanWorkflowExecutionsRequest{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `PageSize:` + fmt.Sprintf("%v", this.PageSize) + `,`, - `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, - `Query:` + fmt.Sprintf("%v", this.Query) + `,`, - `}`, - }, "") - return s -} -func (this *ScanWorkflowExecutionsResponse) String() string { - if this == nil { - return "nil" - } - repeatedStringForExecutions := "[]*WorkflowExecutionInfo{" - for _, f := range this.Executions { - repeatedStringForExecutions += strings.Replace(fmt.Sprintf("%v", f), "WorkflowExecutionInfo", "WorkflowExecutionInfo", 1) + "," - } - repeatedStringForExecutions += "}" - s := strings.Join([]string{`&ScanWorkflowExecutionsResponse{`, - `Executions:` + repeatedStringForExecutions + `,`, - `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, - `}`, - }, "") - return s -} -func (this *CountWorkflowExecutionsRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CountWorkflowExecutionsRequest{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `Query:` + fmt.Sprintf("%v", this.Query) + `,`, - `}`, - }, "") - return s -} -func (this *CountWorkflowExecutionsResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CountWorkflowExecutionsResponse{`, - `Count:` + fmt.Sprintf("%v", this.Count) + `,`, - `}`, - }, "") - return s -} -func (this *GetSearchAttributesRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&GetSearchAttributesRequest{`, - `}`, - }, "") - return s -} -func (this *GetSearchAttributesResponse) String() string { - if this == nil { - return "nil" - } - keysForKeys := make([]string, 0, len(this.Keys)) - for k, _ := range this.Keys { - keysForKeys = append(keysForKeys, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForKeys) - mapStringForKeys := "map[string]IndexedValueType{" - for _, k := range keysForKeys { - mapStringForKeys += fmt.Sprintf("%v: %v,", k, this.Keys[k]) - } - mapStringForKeys += "}" - s := strings.Join([]string{`&GetSearchAttributesResponse{`, - `Keys:` + mapStringForKeys + `,`, - `}`, - }, "") - return s -} -func valueToStringServiceVisibility(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *ListWorkflowExecutionsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListWorkflowExecutionsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListWorkflowExecutionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceVisibility - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceVisibility - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) - } - m.PageSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PageSize |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServiceVisibility - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServiceVisibility - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NextPageToken = append(m.NextPageToken[:0], dAtA[iNdEx:postIndex]...) - if m.NextPageToken == nil { - m.NextPageToken = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceVisibility - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceVisibility - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Query = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceVisibility(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceVisibility - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceVisibility - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ListWorkflowExecutionsResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListWorkflowExecutionsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListWorkflowExecutionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Executions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceVisibility - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceVisibility - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Executions = append(m.Executions, &WorkflowExecutionInfo{}) - if err := m.Executions[len(m.Executions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServiceVisibility - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServiceVisibility - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NextPageToken = append(m.NextPageToken[:0], dAtA[iNdEx:postIndex]...) - if m.NextPageToken == nil { - m.NextPageToken = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceVisibility(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceVisibility - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceVisibility - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ListOpenWorkflowExecutionsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListOpenWorkflowExecutionsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListOpenWorkflowExecutionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceVisibility - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceVisibility - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) - } - m.PageSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PageSize |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServiceVisibility - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServiceVisibility - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NextPageToken = append(m.NextPageToken[:0], dAtA[iNdEx:postIndex]...) - if m.NextPageToken == nil { - m.NextPageToken = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartTimeFilter", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceVisibility - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceVisibility - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StartTimeFilter == nil { - m.StartTimeFilter = &StartTimeFilter{} - } - if err := m.StartTimeFilter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExecutionFilter", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceVisibility - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceVisibility - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &WorkflowExecutionFilter{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Filters = &ListOpenWorkflowExecutionsRequest_ExecutionFilter{v} - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TypeFilter", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceVisibility - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceVisibility - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &WorkflowTypeFilter{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Filters = &ListOpenWorkflowExecutionsRequest_TypeFilter{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceVisibility(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceVisibility - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceVisibility - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ListOpenWorkflowExecutionsResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListOpenWorkflowExecutionsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListOpenWorkflowExecutionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Executions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceVisibility - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceVisibility - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Executions = append(m.Executions, &WorkflowExecutionInfo{}) - if err := m.Executions[len(m.Executions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServiceVisibility - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServiceVisibility - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NextPageToken = append(m.NextPageToken[:0], dAtA[iNdEx:postIndex]...) - if m.NextPageToken == nil { - m.NextPageToken = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceVisibility(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceVisibility - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceVisibility - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ListClosedWorkflowExecutionsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListClosedWorkflowExecutionsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListClosedWorkflowExecutionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceVisibility - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceVisibility - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) - } - m.PageSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PageSize |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServiceVisibility - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServiceVisibility - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NextPageToken = append(m.NextPageToken[:0], dAtA[iNdEx:postIndex]...) - if m.NextPageToken == nil { - m.NextPageToken = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartTimeFilter", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceVisibility - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceVisibility - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StartTimeFilter == nil { - m.StartTimeFilter = &StartTimeFilter{} - } - if err := m.StartTimeFilter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExecutionFilter", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceVisibility - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceVisibility - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &WorkflowExecutionFilter{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Filters = &ListClosedWorkflowExecutionsRequest_ExecutionFilter{v} - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TypeFilter", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceVisibility - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceVisibility - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &WorkflowTypeFilter{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Filters = &ListClosedWorkflowExecutionsRequest_TypeFilter{v} - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StatusFilter", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceVisibility - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceVisibility - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &StatusFilter{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Filters = &ListClosedWorkflowExecutionsRequest_StatusFilter{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceVisibility(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceVisibility - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceVisibility - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ListClosedWorkflowExecutionsResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListClosedWorkflowExecutionsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListClosedWorkflowExecutionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Executions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceVisibility - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceVisibility - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Executions = append(m.Executions, &WorkflowExecutionInfo{}) - if err := m.Executions[len(m.Executions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServiceVisibility - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServiceVisibility - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NextPageToken = append(m.NextPageToken[:0], dAtA[iNdEx:postIndex]...) - if m.NextPageToken == nil { - m.NextPageToken = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceVisibility(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceVisibility - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceVisibility - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ListArchivedWorkflowExecutionsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListArchivedWorkflowExecutionsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListArchivedWorkflowExecutionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceVisibility - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceVisibility - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) - } - m.PageSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PageSize |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServiceVisibility - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServiceVisibility - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NextPageToken = append(m.NextPageToken[:0], dAtA[iNdEx:postIndex]...) - if m.NextPageToken == nil { - m.NextPageToken = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceVisibility - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceVisibility - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Query = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceVisibility(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceVisibility - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceVisibility - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ListArchivedWorkflowExecutionsResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListArchivedWorkflowExecutionsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListArchivedWorkflowExecutionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Executions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceVisibility - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceVisibility - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Executions = append(m.Executions, &WorkflowExecutionInfo{}) - if err := m.Executions[len(m.Executions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServiceVisibility - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServiceVisibility - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NextPageToken = append(m.NextPageToken[:0], dAtA[iNdEx:postIndex]...) - if m.NextPageToken == nil { - m.NextPageToken = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceVisibility(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceVisibility - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceVisibility - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ScanWorkflowExecutionsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ScanWorkflowExecutionsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ScanWorkflowExecutionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceVisibility - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceVisibility - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) - } - m.PageSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PageSize |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServiceVisibility - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServiceVisibility - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NextPageToken = append(m.NextPageToken[:0], dAtA[iNdEx:postIndex]...) - if m.NextPageToken == nil { - m.NextPageToken = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceVisibility - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceVisibility - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Query = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceVisibility(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceVisibility - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceVisibility - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ScanWorkflowExecutionsResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ScanWorkflowExecutionsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ScanWorkflowExecutionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Executions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceVisibility - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceVisibility - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Executions = append(m.Executions, &WorkflowExecutionInfo{}) - if err := m.Executions[len(m.Executions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServiceVisibility - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServiceVisibility - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NextPageToken = append(m.NextPageToken[:0], dAtA[iNdEx:postIndex]...) - if m.NextPageToken == nil { - m.NextPageToken = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceVisibility(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceVisibility - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceVisibility - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CountWorkflowExecutionsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CountWorkflowExecutionsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CountWorkflowExecutionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceVisibility - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceVisibility - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceVisibility - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceVisibility - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Query = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceVisibility(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceVisibility - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceVisibility - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CountWorkflowExecutionsResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CountWorkflowExecutionsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CountWorkflowExecutionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) - } - m.Count = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Count |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipServiceVisibility(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceVisibility - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceVisibility - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetSearchAttributesRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetSearchAttributesRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetSearchAttributesRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipServiceVisibility(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceVisibility - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceVisibility - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetSearchAttributesResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetSearchAttributesResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetSearchAttributesResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keys", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceVisibility - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceVisibility - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Keys == nil { - m.Keys = make(map[string]IndexedValueType) - } - var mapkey string - var mapvalue IndexedValueType - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthServiceVisibility - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthServiceVisibility - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapvalue |= IndexedValueType(b&0x7F) << shift - if b < 0x80 { - break - } - } - } else { - iNdEx = entryPreIndex - skippy, err := skipServiceVisibility(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceVisibility - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Keys[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceVisibility(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceVisibility - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceVisibility - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipServiceVisibility(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowServiceVisibility - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthServiceVisibility - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupServiceVisibility - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthServiceVisibility - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthServiceVisibility = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowServiceVisibility = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupServiceVisibility = fmt.Errorf("proto: unexpected end of group") -) diff --git a/.gen/proto/api/v1/service_visibility_grpc.pb.go b/.gen/proto/api/v1/service_visibility_grpc.pb.go new file mode 100644 index 00000000000..bbe8a7d4239 --- /dev/null +++ b/.gen/proto/api/v1/service_visibility_grpc.pb.go @@ -0,0 +1,354 @@ +// The MIT License (MIT) + +// Copyright (c) 2017-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-go-grpc. DO NOT EDIT. + +package apiv1 + +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 + +// VisibilityAPIClient is the client API for VisibilityAPI 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 VisibilityAPIClient interface { + // ListWorkflowExecutions is a visibility API to list workflow executions in a specific domain. + ListWorkflowExecutions(ctx context.Context, in *ListWorkflowExecutionsRequest, opts ...grpc.CallOption) (*ListWorkflowExecutionsResponse, error) + // ListOpenWorkflowExecutions is a visibility API to list the open executions in a specific domain. + ListOpenWorkflowExecutions(ctx context.Context, in *ListOpenWorkflowExecutionsRequest, opts ...grpc.CallOption) (*ListOpenWorkflowExecutionsResponse, error) + // ListClosedWorkflowExecutions is a visibility API to list the closed executions in a specific domain. + ListClosedWorkflowExecutions(ctx context.Context, in *ListClosedWorkflowExecutionsRequest, opts ...grpc.CallOption) (*ListClosedWorkflowExecutionsResponse, error) + // ListArchivedWorkflowExecutions is a visibility API to list archived workflow executions in a specific domain. + ListArchivedWorkflowExecutions(ctx context.Context, in *ListArchivedWorkflowExecutionsRequest, opts ...grpc.CallOption) (*ListArchivedWorkflowExecutionsResponse, error) + // ScanWorkflowExecutions is a visibility API to list large amount of workflow executions in a specific domain without order. + ScanWorkflowExecutions(ctx context.Context, in *ScanWorkflowExecutionsRequest, opts ...grpc.CallOption) (*ScanWorkflowExecutionsResponse, error) + // CountWorkflowExecutions is a visibility API to count of workflow executions in a specific domain. + CountWorkflowExecutions(ctx context.Context, in *CountWorkflowExecutionsRequest, opts ...grpc.CallOption) (*CountWorkflowExecutionsResponse, error) + // GetSearchAttributes is a visibility API to get all legal keys that could be used in list APIs. + GetSearchAttributes(ctx context.Context, in *GetSearchAttributesRequest, opts ...grpc.CallOption) (*GetSearchAttributesResponse, error) +} + +type visibilityAPIClient struct { + cc grpc.ClientConnInterface +} + +func NewVisibilityAPIClient(cc grpc.ClientConnInterface) VisibilityAPIClient { + return &visibilityAPIClient{cc} +} + +func (c *visibilityAPIClient) ListWorkflowExecutions(ctx context.Context, in *ListWorkflowExecutionsRequest, opts ...grpc.CallOption) (*ListWorkflowExecutionsResponse, error) { + out := new(ListWorkflowExecutionsResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.VisibilityAPI/ListWorkflowExecutions", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *visibilityAPIClient) ListOpenWorkflowExecutions(ctx context.Context, in *ListOpenWorkflowExecutionsRequest, opts ...grpc.CallOption) (*ListOpenWorkflowExecutionsResponse, error) { + out := new(ListOpenWorkflowExecutionsResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.VisibilityAPI/ListOpenWorkflowExecutions", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *visibilityAPIClient) ListClosedWorkflowExecutions(ctx context.Context, in *ListClosedWorkflowExecutionsRequest, opts ...grpc.CallOption) (*ListClosedWorkflowExecutionsResponse, error) { + out := new(ListClosedWorkflowExecutionsResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.VisibilityAPI/ListClosedWorkflowExecutions", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *visibilityAPIClient) ListArchivedWorkflowExecutions(ctx context.Context, in *ListArchivedWorkflowExecutionsRequest, opts ...grpc.CallOption) (*ListArchivedWorkflowExecutionsResponse, error) { + out := new(ListArchivedWorkflowExecutionsResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.VisibilityAPI/ListArchivedWorkflowExecutions", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *visibilityAPIClient) ScanWorkflowExecutions(ctx context.Context, in *ScanWorkflowExecutionsRequest, opts ...grpc.CallOption) (*ScanWorkflowExecutionsResponse, error) { + out := new(ScanWorkflowExecutionsResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.VisibilityAPI/ScanWorkflowExecutions", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *visibilityAPIClient) CountWorkflowExecutions(ctx context.Context, in *CountWorkflowExecutionsRequest, opts ...grpc.CallOption) (*CountWorkflowExecutionsResponse, error) { + out := new(CountWorkflowExecutionsResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.VisibilityAPI/CountWorkflowExecutions", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *visibilityAPIClient) GetSearchAttributes(ctx context.Context, in *GetSearchAttributesRequest, opts ...grpc.CallOption) (*GetSearchAttributesResponse, error) { + out := new(GetSearchAttributesResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.VisibilityAPI/GetSearchAttributes", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// VisibilityAPIServer is the server API for VisibilityAPI service. +// All implementations must embed UnimplementedVisibilityAPIServer +// for forward compatibility +type VisibilityAPIServer interface { + // ListWorkflowExecutions is a visibility API to list workflow executions in a specific domain. + ListWorkflowExecutions(context.Context, *ListWorkflowExecutionsRequest) (*ListWorkflowExecutionsResponse, error) + // ListOpenWorkflowExecutions is a visibility API to list the open executions in a specific domain. + ListOpenWorkflowExecutions(context.Context, *ListOpenWorkflowExecutionsRequest) (*ListOpenWorkflowExecutionsResponse, error) + // ListClosedWorkflowExecutions is a visibility API to list the closed executions in a specific domain. + ListClosedWorkflowExecutions(context.Context, *ListClosedWorkflowExecutionsRequest) (*ListClosedWorkflowExecutionsResponse, error) + // ListArchivedWorkflowExecutions is a visibility API to list archived workflow executions in a specific domain. + ListArchivedWorkflowExecutions(context.Context, *ListArchivedWorkflowExecutionsRequest) (*ListArchivedWorkflowExecutionsResponse, error) + // ScanWorkflowExecutions is a visibility API to list large amount of workflow executions in a specific domain without order. + ScanWorkflowExecutions(context.Context, *ScanWorkflowExecutionsRequest) (*ScanWorkflowExecutionsResponse, error) + // CountWorkflowExecutions is a visibility API to count of workflow executions in a specific domain. + CountWorkflowExecutions(context.Context, *CountWorkflowExecutionsRequest) (*CountWorkflowExecutionsResponse, error) + // GetSearchAttributes is a visibility API to get all legal keys that could be used in list APIs. + GetSearchAttributes(context.Context, *GetSearchAttributesRequest) (*GetSearchAttributesResponse, error) + mustEmbedUnimplementedVisibilityAPIServer() +} + +// UnimplementedVisibilityAPIServer must be embedded to have forward compatible implementations. +type UnimplementedVisibilityAPIServer struct { +} + +func (UnimplementedVisibilityAPIServer) ListWorkflowExecutions(context.Context, *ListWorkflowExecutionsRequest) (*ListWorkflowExecutionsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListWorkflowExecutions not implemented") +} +func (UnimplementedVisibilityAPIServer) ListOpenWorkflowExecutions(context.Context, *ListOpenWorkflowExecutionsRequest) (*ListOpenWorkflowExecutionsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListOpenWorkflowExecutions not implemented") +} +func (UnimplementedVisibilityAPIServer) ListClosedWorkflowExecutions(context.Context, *ListClosedWorkflowExecutionsRequest) (*ListClosedWorkflowExecutionsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListClosedWorkflowExecutions not implemented") +} +func (UnimplementedVisibilityAPIServer) ListArchivedWorkflowExecutions(context.Context, *ListArchivedWorkflowExecutionsRequest) (*ListArchivedWorkflowExecutionsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListArchivedWorkflowExecutions not implemented") +} +func (UnimplementedVisibilityAPIServer) ScanWorkflowExecutions(context.Context, *ScanWorkflowExecutionsRequest) (*ScanWorkflowExecutionsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ScanWorkflowExecutions not implemented") +} +func (UnimplementedVisibilityAPIServer) CountWorkflowExecutions(context.Context, *CountWorkflowExecutionsRequest) (*CountWorkflowExecutionsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CountWorkflowExecutions not implemented") +} +func (UnimplementedVisibilityAPIServer) GetSearchAttributes(context.Context, *GetSearchAttributesRequest) (*GetSearchAttributesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetSearchAttributes not implemented") +} +func (UnimplementedVisibilityAPIServer) mustEmbedUnimplementedVisibilityAPIServer() {} + +// UnsafeVisibilityAPIServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to VisibilityAPIServer will +// result in compilation errors. +type UnsafeVisibilityAPIServer interface { + mustEmbedUnimplementedVisibilityAPIServer() +} + +func RegisterVisibilityAPIServer(s grpc.ServiceRegistrar, srv VisibilityAPIServer) { + s.RegisterService(&VisibilityAPI_ServiceDesc, srv) +} + +func _VisibilityAPI_ListWorkflowExecutions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListWorkflowExecutionsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VisibilityAPIServer).ListWorkflowExecutions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.VisibilityAPI/ListWorkflowExecutions", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VisibilityAPIServer).ListWorkflowExecutions(ctx, req.(*ListWorkflowExecutionsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _VisibilityAPI_ListOpenWorkflowExecutions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListOpenWorkflowExecutionsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VisibilityAPIServer).ListOpenWorkflowExecutions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.VisibilityAPI/ListOpenWorkflowExecutions", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VisibilityAPIServer).ListOpenWorkflowExecutions(ctx, req.(*ListOpenWorkflowExecutionsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _VisibilityAPI_ListClosedWorkflowExecutions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListClosedWorkflowExecutionsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VisibilityAPIServer).ListClosedWorkflowExecutions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.VisibilityAPI/ListClosedWorkflowExecutions", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VisibilityAPIServer).ListClosedWorkflowExecutions(ctx, req.(*ListClosedWorkflowExecutionsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _VisibilityAPI_ListArchivedWorkflowExecutions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListArchivedWorkflowExecutionsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VisibilityAPIServer).ListArchivedWorkflowExecutions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.VisibilityAPI/ListArchivedWorkflowExecutions", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VisibilityAPIServer).ListArchivedWorkflowExecutions(ctx, req.(*ListArchivedWorkflowExecutionsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _VisibilityAPI_ScanWorkflowExecutions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ScanWorkflowExecutionsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VisibilityAPIServer).ScanWorkflowExecutions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.VisibilityAPI/ScanWorkflowExecutions", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VisibilityAPIServer).ScanWorkflowExecutions(ctx, req.(*ScanWorkflowExecutionsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _VisibilityAPI_CountWorkflowExecutions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CountWorkflowExecutionsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VisibilityAPIServer).CountWorkflowExecutions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.VisibilityAPI/CountWorkflowExecutions", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VisibilityAPIServer).CountWorkflowExecutions(ctx, req.(*CountWorkflowExecutionsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _VisibilityAPI_GetSearchAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetSearchAttributesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VisibilityAPIServer).GetSearchAttributes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.VisibilityAPI/GetSearchAttributes", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VisibilityAPIServer).GetSearchAttributes(ctx, req.(*GetSearchAttributesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// VisibilityAPI_ServiceDesc is the grpc.ServiceDesc for VisibilityAPI service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var VisibilityAPI_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "uber.cadence.api.v1.VisibilityAPI", + HandlerType: (*VisibilityAPIServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ListWorkflowExecutions", + Handler: _VisibilityAPI_ListWorkflowExecutions_Handler, + }, + { + MethodName: "ListOpenWorkflowExecutions", + Handler: _VisibilityAPI_ListOpenWorkflowExecutions_Handler, + }, + { + MethodName: "ListClosedWorkflowExecutions", + Handler: _VisibilityAPI_ListClosedWorkflowExecutions_Handler, + }, + { + MethodName: "ListArchivedWorkflowExecutions", + Handler: _VisibilityAPI_ListArchivedWorkflowExecutions_Handler, + }, + { + MethodName: "ScanWorkflowExecutions", + Handler: _VisibilityAPI_ScanWorkflowExecutions_Handler, + }, + { + MethodName: "CountWorkflowExecutions", + Handler: _VisibilityAPI_CountWorkflowExecutions_Handler, + }, + { + MethodName: "GetSearchAttributes", + Handler: _VisibilityAPI_GetSearchAttributes_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "uber/cadence/api/v1/service_visibility.proto", +} diff --git a/.gen/proto/api/v1/service_worker.pb.go b/.gen/proto/api/v1/service_worker.pb.go index c7cb1f0975a..01b11441aca 100644 --- a/.gen/proto/api/v1/service_worker.pb.go +++ b/.gen/proto/api/v1/service_worker.pb.go @@ -1,132 +1,129 @@ -// The MIT License (MIT) - -// Copyright (c) 2017-2020 Uber Technologies Inc. - +// 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 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. +// 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. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.14.0 // source: uber/cadence/api/v1/service_worker.proto package apiv1 import ( - bytes "bytes" - context "context" - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" reflect "reflect" - strings "strings" - time "time" - - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" - github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" - _ "github.com/golang/protobuf/ptypes/duration" - _ "github.com/golang/protobuf/ptypes/timestamp" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" + sync "sync" + + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf -var _ = time.Kitchen +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// 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 +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type PollForDecisionTaskRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` TaskList *TaskList `protobuf:"bytes,2,opt,name=task_list,json=taskList,proto3" json:"task_list,omitempty"` Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` BinaryChecksum string `protobuf:"bytes,4,opt,name=binary_checksum,json=binaryChecksum,proto3" json:"binary_checksum,omitempty"` } -func (m *PollForDecisionTaskRequest) Reset() { *m = PollForDecisionTaskRequest{} } -func (*PollForDecisionTaskRequest) ProtoMessage() {} -func (*PollForDecisionTaskRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00684e887839a48c, []int{0} -} -func (m *PollForDecisionTaskRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PollForDecisionTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PollForDecisionTaskRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *PollForDecisionTaskRequest) Reset() { + *x = PollForDecisionTaskRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *PollForDecisionTaskRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PollForDecisionTaskRequest.Merge(m, src) -} -func (m *PollForDecisionTaskRequest) XXX_Size() int { - return m.Size() + +func (x *PollForDecisionTaskRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PollForDecisionTaskRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PollForDecisionTaskRequest.DiscardUnknown(m) + +func (*PollForDecisionTaskRequest) ProtoMessage() {} + +func (x *PollForDecisionTaskRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PollForDecisionTaskRequest proto.InternalMessageInfo +// Deprecated: Use PollForDecisionTaskRequest.ProtoReflect.Descriptor instead. +func (*PollForDecisionTaskRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_worker_proto_rawDescGZIP(), []int{0} +} -func (m *PollForDecisionTaskRequest) GetDomain() string { - if m != nil { - return m.Domain +func (x *PollForDecisionTaskRequest) GetDomain() string { + if x != nil { + return x.Domain } return "" } -func (m *PollForDecisionTaskRequest) GetTaskList() *TaskList { - if m != nil { - return m.TaskList +func (x *PollForDecisionTaskRequest) GetTaskList() *TaskList { + if x != nil { + return x.TaskList } return nil } -func (m *PollForDecisionTaskRequest) GetIdentity() string { - if m != nil { - return m.Identity +func (x *PollForDecisionTaskRequest) GetIdentity() string { + if x != nil { + return x.Identity } return "" } -func (m *PollForDecisionTaskRequest) GetBinaryChecksum() string { - if m != nil { - return m.BinaryChecksum +func (x *PollForDecisionTaskRequest) GetBinaryChecksum() string { + if x != nil { + return x.BinaryChecksum } return "" } type PollForDecisionTaskResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + TaskToken []byte `protobuf:"bytes,1,opt,name=task_token,json=taskToken,proto3" json:"task_token,omitempty"` WorkflowExecution *WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` WorkflowType *WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` @@ -138,142 +135,146 @@ type PollForDecisionTaskResponse struct { NextPageToken []byte `protobuf:"bytes,9,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` Query *WorkflowQuery `protobuf:"bytes,10,opt,name=query,proto3" json:"query,omitempty"` WorkflowExecutionTaskList *TaskList `protobuf:"bytes,11,opt,name=workflow_execution_task_list,json=workflowExecutionTaskList,proto3" json:"workflow_execution_task_list,omitempty"` - ScheduledTime *time.Time `protobuf:"bytes,12,opt,name=scheduled_time,json=scheduledTime,proto3,stdtime" json:"scheduled_time,omitempty"` - StartedTime *time.Time `protobuf:"bytes,13,opt,name=started_time,json=startedTime,proto3,stdtime" json:"started_time,omitempty"` + ScheduledTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=scheduled_time,json=scheduledTime,proto3" json:"scheduled_time,omitempty"` + StartedTime *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=started_time,json=startedTime,proto3" json:"started_time,omitempty"` Queries map[string]*WorkflowQuery `protobuf:"bytes,14,rep,name=queries,proto3" json:"queries,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func (m *PollForDecisionTaskResponse) Reset() { *m = PollForDecisionTaskResponse{} } -func (*PollForDecisionTaskResponse) ProtoMessage() {} -func (*PollForDecisionTaskResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_00684e887839a48c, []int{1} -} -func (m *PollForDecisionTaskResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PollForDecisionTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PollForDecisionTaskResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *PollForDecisionTaskResponse) Reset() { + *x = PollForDecisionTaskResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *PollForDecisionTaskResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PollForDecisionTaskResponse.Merge(m, src) -} -func (m *PollForDecisionTaskResponse) XXX_Size() int { - return m.Size() + +func (x *PollForDecisionTaskResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PollForDecisionTaskResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PollForDecisionTaskResponse.DiscardUnknown(m) + +func (*PollForDecisionTaskResponse) ProtoMessage() {} + +func (x *PollForDecisionTaskResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PollForDecisionTaskResponse proto.InternalMessageInfo +// Deprecated: Use PollForDecisionTaskResponse.ProtoReflect.Descriptor instead. +func (*PollForDecisionTaskResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_worker_proto_rawDescGZIP(), []int{1} +} -func (m *PollForDecisionTaskResponse) GetTaskToken() []byte { - if m != nil { - return m.TaskToken +func (x *PollForDecisionTaskResponse) GetTaskToken() []byte { + if x != nil { + return x.TaskToken } return nil } -func (m *PollForDecisionTaskResponse) GetWorkflowExecution() *WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *PollForDecisionTaskResponse) GetWorkflowExecution() *WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *PollForDecisionTaskResponse) GetWorkflowType() *WorkflowType { - if m != nil { - return m.WorkflowType +func (x *PollForDecisionTaskResponse) GetWorkflowType() *WorkflowType { + if x != nil { + return x.WorkflowType } return nil } -func (m *PollForDecisionTaskResponse) GetPreviousStartedEventId() int64 { - if m != nil { - return m.PreviousStartedEventId +func (x *PollForDecisionTaskResponse) GetPreviousStartedEventId() int64 { + if x != nil { + return x.PreviousStartedEventId } return 0 } -func (m *PollForDecisionTaskResponse) GetStartedEventId() int64 { - if m != nil { - return m.StartedEventId +func (x *PollForDecisionTaskResponse) GetStartedEventId() int64 { + if x != nil { + return x.StartedEventId } return 0 } -func (m *PollForDecisionTaskResponse) GetAttempt() int64 { - if m != nil { - return m.Attempt +func (x *PollForDecisionTaskResponse) GetAttempt() int64 { + if x != nil { + return x.Attempt } return 0 } -func (m *PollForDecisionTaskResponse) GetBacklogCountHint() int64 { - if m != nil { - return m.BacklogCountHint +func (x *PollForDecisionTaskResponse) GetBacklogCountHint() int64 { + if x != nil { + return x.BacklogCountHint } return 0 } -func (m *PollForDecisionTaskResponse) GetHistory() *History { - if m != nil { - return m.History +func (x *PollForDecisionTaskResponse) GetHistory() *History { + if x != nil { + return x.History } return nil } -func (m *PollForDecisionTaskResponse) GetNextPageToken() []byte { - if m != nil { - return m.NextPageToken +func (x *PollForDecisionTaskResponse) GetNextPageToken() []byte { + if x != nil { + return x.NextPageToken } return nil } -func (m *PollForDecisionTaskResponse) GetQuery() *WorkflowQuery { - if m != nil { - return m.Query +func (x *PollForDecisionTaskResponse) GetQuery() *WorkflowQuery { + if x != nil { + return x.Query } return nil } -func (m *PollForDecisionTaskResponse) GetWorkflowExecutionTaskList() *TaskList { - if m != nil { - return m.WorkflowExecutionTaskList +func (x *PollForDecisionTaskResponse) GetWorkflowExecutionTaskList() *TaskList { + if x != nil { + return x.WorkflowExecutionTaskList } return nil } -func (m *PollForDecisionTaskResponse) GetScheduledTime() *time.Time { - if m != nil { - return m.ScheduledTime +func (x *PollForDecisionTaskResponse) GetScheduledTime() *timestamppb.Timestamp { + if x != nil { + return x.ScheduledTime } return nil } -func (m *PollForDecisionTaskResponse) GetStartedTime() *time.Time { - if m != nil { - return m.StartedTime +func (x *PollForDecisionTaskResponse) GetStartedTime() *timestamppb.Timestamp { + if x != nil { + return x.StartedTime } return nil } -func (m *PollForDecisionTaskResponse) GetQueries() map[string]*WorkflowQuery { - if m != nil { - return m.Queries +func (x *PollForDecisionTaskResponse) GetQueries() map[string]*WorkflowQuery { + if x != nil { + return x.Queries } return nil } type RespondDecisionTaskCompletedRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + TaskToken []byte `protobuf:"bytes,1,opt,name=task_token,json=taskToken,proto3" json:"task_token,omitempty"` Decisions []*Decision `protobuf:"bytes,2,rep,name=decisions,proto3" json:"decisions,omitempty"` ExecutionContext []byte `protobuf:"bytes,3,opt,name=execution_context,json=executionContext,proto3" json:"execution_context,omitempty"` @@ -285,153 +286,161 @@ type RespondDecisionTaskCompletedRequest struct { QueryResults map[string]*WorkflowQueryResult `protobuf:"bytes,9,rep,name=query_results,json=queryResults,proto3" json:"query_results,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func (m *RespondDecisionTaskCompletedRequest) Reset() { *m = RespondDecisionTaskCompletedRequest{} } -func (*RespondDecisionTaskCompletedRequest) ProtoMessage() {} -func (*RespondDecisionTaskCompletedRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00684e887839a48c, []int{2} -} -func (m *RespondDecisionTaskCompletedRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RespondDecisionTaskCompletedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RespondDecisionTaskCompletedRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RespondDecisionTaskCompletedRequest) Reset() { + *x = RespondDecisionTaskCompletedRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RespondDecisionTaskCompletedRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RespondDecisionTaskCompletedRequest.Merge(m, src) -} -func (m *RespondDecisionTaskCompletedRequest) XXX_Size() int { - return m.Size() + +func (x *RespondDecisionTaskCompletedRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RespondDecisionTaskCompletedRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RespondDecisionTaskCompletedRequest.DiscardUnknown(m) + +func (*RespondDecisionTaskCompletedRequest) ProtoMessage() {} + +func (x *RespondDecisionTaskCompletedRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RespondDecisionTaskCompletedRequest proto.InternalMessageInfo +// Deprecated: Use RespondDecisionTaskCompletedRequest.ProtoReflect.Descriptor instead. +func (*RespondDecisionTaskCompletedRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_worker_proto_rawDescGZIP(), []int{2} +} -func (m *RespondDecisionTaskCompletedRequest) GetTaskToken() []byte { - if m != nil { - return m.TaskToken +func (x *RespondDecisionTaskCompletedRequest) GetTaskToken() []byte { + if x != nil { + return x.TaskToken } return nil } -func (m *RespondDecisionTaskCompletedRequest) GetDecisions() []*Decision { - if m != nil { - return m.Decisions +func (x *RespondDecisionTaskCompletedRequest) GetDecisions() []*Decision { + if x != nil { + return x.Decisions } return nil } -func (m *RespondDecisionTaskCompletedRequest) GetExecutionContext() []byte { - if m != nil { - return m.ExecutionContext +func (x *RespondDecisionTaskCompletedRequest) GetExecutionContext() []byte { + if x != nil { + return x.ExecutionContext } return nil } -func (m *RespondDecisionTaskCompletedRequest) GetIdentity() string { - if m != nil { - return m.Identity +func (x *RespondDecisionTaskCompletedRequest) GetIdentity() string { + if x != nil { + return x.Identity } return "" } -func (m *RespondDecisionTaskCompletedRequest) GetStickyAttributes() *StickyExecutionAttributes { - if m != nil { - return m.StickyAttributes +func (x *RespondDecisionTaskCompletedRequest) GetStickyAttributes() *StickyExecutionAttributes { + if x != nil { + return x.StickyAttributes } return nil } -func (m *RespondDecisionTaskCompletedRequest) GetReturnNewDecisionTask() bool { - if m != nil { - return m.ReturnNewDecisionTask +func (x *RespondDecisionTaskCompletedRequest) GetReturnNewDecisionTask() bool { + if x != nil { + return x.ReturnNewDecisionTask } return false } -func (m *RespondDecisionTaskCompletedRequest) GetForceCreateNewDecisionTask() bool { - if m != nil { - return m.ForceCreateNewDecisionTask +func (x *RespondDecisionTaskCompletedRequest) GetForceCreateNewDecisionTask() bool { + if x != nil { + return x.ForceCreateNewDecisionTask } return false } -func (m *RespondDecisionTaskCompletedRequest) GetBinaryChecksum() string { - if m != nil { - return m.BinaryChecksum +func (x *RespondDecisionTaskCompletedRequest) GetBinaryChecksum() string { + if x != nil { + return x.BinaryChecksum } return "" } -func (m *RespondDecisionTaskCompletedRequest) GetQueryResults() map[string]*WorkflowQueryResult { - if m != nil { - return m.QueryResults +func (x *RespondDecisionTaskCompletedRequest) GetQueryResults() map[string]*WorkflowQueryResult { + if x != nil { + return x.QueryResults } return nil } type RespondDecisionTaskCompletedResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + DecisionTask *PollForDecisionTaskResponse `protobuf:"bytes,1,opt,name=decision_task,json=decisionTask,proto3" json:"decision_task,omitempty"` ActivitiesToDispatchLocally map[string]*ActivityLocalDispatchInfo `protobuf:"bytes,2,rep,name=activities_to_dispatch_locally,json=activitiesToDispatchLocally,proto3" json:"activities_to_dispatch_locally,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func (m *RespondDecisionTaskCompletedResponse) Reset() { *m = RespondDecisionTaskCompletedResponse{} } -func (*RespondDecisionTaskCompletedResponse) ProtoMessage() {} -func (*RespondDecisionTaskCompletedResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_00684e887839a48c, []int{3} -} -func (m *RespondDecisionTaskCompletedResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RespondDecisionTaskCompletedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RespondDecisionTaskCompletedResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RespondDecisionTaskCompletedResponse) Reset() { + *x = RespondDecisionTaskCompletedResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RespondDecisionTaskCompletedResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RespondDecisionTaskCompletedResponse.Merge(m, src) -} -func (m *RespondDecisionTaskCompletedResponse) XXX_Size() int { - return m.Size() + +func (x *RespondDecisionTaskCompletedResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RespondDecisionTaskCompletedResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RespondDecisionTaskCompletedResponse.DiscardUnknown(m) + +func (*RespondDecisionTaskCompletedResponse) ProtoMessage() {} + +func (x *RespondDecisionTaskCompletedResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RespondDecisionTaskCompletedResponse proto.InternalMessageInfo +// Deprecated: Use RespondDecisionTaskCompletedResponse.ProtoReflect.Descriptor instead. +func (*RespondDecisionTaskCompletedResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_worker_proto_rawDescGZIP(), []int{3} +} -func (m *RespondDecisionTaskCompletedResponse) GetDecisionTask() *PollForDecisionTaskResponse { - if m != nil { - return m.DecisionTask +func (x *RespondDecisionTaskCompletedResponse) GetDecisionTask() *PollForDecisionTaskResponse { + if x != nil { + return x.DecisionTask } return nil } -func (m *RespondDecisionTaskCompletedResponse) GetActivitiesToDispatchLocally() map[string]*ActivityLocalDispatchInfo { - if m != nil { - return m.ActivitiesToDispatchLocally +func (x *RespondDecisionTaskCompletedResponse) GetActivitiesToDispatchLocally() map[string]*ActivityLocalDispatchInfo { + if x != nil { + return x.ActivitiesToDispatchLocally } return nil } type RespondDecisionTaskFailedRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + TaskToken []byte `protobuf:"bytes,1,opt,name=task_token,json=taskToken,proto3" json:"task_token,omitempty"` Cause DecisionTaskFailedCause `protobuf:"varint,2,opt,name=cause,proto3,enum=uber.cadence.api.v1.DecisionTaskFailedCause" json:"cause,omitempty"` Details *Payload `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"` @@ -439,433 +448,455 @@ type RespondDecisionTaskFailedRequest struct { BinaryChecksum string `protobuf:"bytes,5,opt,name=binary_checksum,json=binaryChecksum,proto3" json:"binary_checksum,omitempty"` } -func (m *RespondDecisionTaskFailedRequest) Reset() { *m = RespondDecisionTaskFailedRequest{} } -func (*RespondDecisionTaskFailedRequest) ProtoMessage() {} -func (*RespondDecisionTaskFailedRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00684e887839a48c, []int{4} -} -func (m *RespondDecisionTaskFailedRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RespondDecisionTaskFailedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RespondDecisionTaskFailedRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RespondDecisionTaskFailedRequest) Reset() { + *x = RespondDecisionTaskFailedRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RespondDecisionTaskFailedRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RespondDecisionTaskFailedRequest.Merge(m, src) -} -func (m *RespondDecisionTaskFailedRequest) XXX_Size() int { - return m.Size() + +func (x *RespondDecisionTaskFailedRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RespondDecisionTaskFailedRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RespondDecisionTaskFailedRequest.DiscardUnknown(m) + +func (*RespondDecisionTaskFailedRequest) ProtoMessage() {} + +func (x *RespondDecisionTaskFailedRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RespondDecisionTaskFailedRequest proto.InternalMessageInfo +// Deprecated: Use RespondDecisionTaskFailedRequest.ProtoReflect.Descriptor instead. +func (*RespondDecisionTaskFailedRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_worker_proto_rawDescGZIP(), []int{4} +} -func (m *RespondDecisionTaskFailedRequest) GetTaskToken() []byte { - if m != nil { - return m.TaskToken +func (x *RespondDecisionTaskFailedRequest) GetTaskToken() []byte { + if x != nil { + return x.TaskToken } return nil } -func (m *RespondDecisionTaskFailedRequest) GetCause() DecisionTaskFailedCause { - if m != nil { - return m.Cause +func (x *RespondDecisionTaskFailedRequest) GetCause() DecisionTaskFailedCause { + if x != nil { + return x.Cause } - return DECISION_TASK_FAILED_CAUSE_INVALID + return DecisionTaskFailedCause_DECISION_TASK_FAILED_CAUSE_INVALID } -func (m *RespondDecisionTaskFailedRequest) GetDetails() *Payload { - if m != nil { - return m.Details +func (x *RespondDecisionTaskFailedRequest) GetDetails() *Payload { + if x != nil { + return x.Details } return nil } -func (m *RespondDecisionTaskFailedRequest) GetIdentity() string { - if m != nil { - return m.Identity +func (x *RespondDecisionTaskFailedRequest) GetIdentity() string { + if x != nil { + return x.Identity } return "" } -func (m *RespondDecisionTaskFailedRequest) GetBinaryChecksum() string { - if m != nil { - return m.BinaryChecksum +func (x *RespondDecisionTaskFailedRequest) GetBinaryChecksum() string { + if x != nil { + return x.BinaryChecksum } return "" } type RespondDecisionTaskFailedResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *RespondDecisionTaskFailedResponse) Reset() { *m = RespondDecisionTaskFailedResponse{} } -func (*RespondDecisionTaskFailedResponse) ProtoMessage() {} -func (*RespondDecisionTaskFailedResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_00684e887839a48c, []int{5} -} -func (m *RespondDecisionTaskFailedResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RespondDecisionTaskFailedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RespondDecisionTaskFailedResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RespondDecisionTaskFailedResponse) Reset() { + *x = RespondDecisionTaskFailedResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RespondDecisionTaskFailedResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RespondDecisionTaskFailedResponse.Merge(m, src) -} -func (m *RespondDecisionTaskFailedResponse) XXX_Size() int { - return m.Size() + +func (x *RespondDecisionTaskFailedResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RespondDecisionTaskFailedResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RespondDecisionTaskFailedResponse.DiscardUnknown(m) + +func (*RespondDecisionTaskFailedResponse) ProtoMessage() {} + +func (x *RespondDecisionTaskFailedResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RespondDecisionTaskFailedResponse proto.InternalMessageInfo +// Deprecated: Use RespondDecisionTaskFailedResponse.ProtoReflect.Descriptor instead. +func (*RespondDecisionTaskFailedResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_worker_proto_rawDescGZIP(), []int{5} +} type PollForActivityTaskRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` TaskList *TaskList `protobuf:"bytes,2,opt,name=task_list,json=taskList,proto3" json:"task_list,omitempty"` Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` TaskListMetadata *TaskListMetadata `protobuf:"bytes,4,opt,name=task_list_metadata,json=taskListMetadata,proto3" json:"task_list_metadata,omitempty"` } -func (m *PollForActivityTaskRequest) Reset() { *m = PollForActivityTaskRequest{} } -func (*PollForActivityTaskRequest) ProtoMessage() {} -func (*PollForActivityTaskRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00684e887839a48c, []int{6} -} -func (m *PollForActivityTaskRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PollForActivityTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PollForActivityTaskRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *PollForActivityTaskRequest) Reset() { + *x = PollForActivityTaskRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *PollForActivityTaskRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PollForActivityTaskRequest.Merge(m, src) -} -func (m *PollForActivityTaskRequest) XXX_Size() int { - return m.Size() + +func (x *PollForActivityTaskRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PollForActivityTaskRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PollForActivityTaskRequest.DiscardUnknown(m) + +func (*PollForActivityTaskRequest) ProtoMessage() {} + +func (x *PollForActivityTaskRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PollForActivityTaskRequest proto.InternalMessageInfo +// Deprecated: Use PollForActivityTaskRequest.ProtoReflect.Descriptor instead. +func (*PollForActivityTaskRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_worker_proto_rawDescGZIP(), []int{6} +} -func (m *PollForActivityTaskRequest) GetDomain() string { - if m != nil { - return m.Domain +func (x *PollForActivityTaskRequest) GetDomain() string { + if x != nil { + return x.Domain } return "" } -func (m *PollForActivityTaskRequest) GetTaskList() *TaskList { - if m != nil { - return m.TaskList +func (x *PollForActivityTaskRequest) GetTaskList() *TaskList { + if x != nil { + return x.TaskList } return nil } -func (m *PollForActivityTaskRequest) GetIdentity() string { - if m != nil { - return m.Identity +func (x *PollForActivityTaskRequest) GetIdentity() string { + if x != nil { + return x.Identity } return "" } -func (m *PollForActivityTaskRequest) GetTaskListMetadata() *TaskListMetadata { - if m != nil { - return m.TaskListMetadata +func (x *PollForActivityTaskRequest) GetTaskListMetadata() *TaskListMetadata { + if x != nil { + return x.TaskListMetadata } return nil } type PollForActivityTaskResponse struct { - TaskToken []byte `protobuf:"bytes,1,opt,name=task_token,json=taskToken,proto3" json:"task_token,omitempty"` - WorkflowExecution *WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` - ActivityId string `protobuf:"bytes,3,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` - ActivityType *ActivityType `protobuf:"bytes,4,opt,name=activity_type,json=activityType,proto3" json:"activity_type,omitempty"` - Input *Payload `protobuf:"bytes,5,opt,name=input,proto3" json:"input,omitempty"` - ScheduledTime *time.Time `protobuf:"bytes,6,opt,name=scheduled_time,json=scheduledTime,proto3,stdtime" json:"scheduled_time,omitempty"` - StartedTime *time.Time `protobuf:"bytes,7,opt,name=started_time,json=startedTime,proto3,stdtime" json:"started_time,omitempty"` - ScheduleToCloseTimeout *time.Duration `protobuf:"bytes,8,opt,name=schedule_to_close_timeout,json=scheduleToCloseTimeout,proto3,stdduration" json:"schedule_to_close_timeout,omitempty"` - StartToCloseTimeout *time.Duration `protobuf:"bytes,9,opt,name=start_to_close_timeout,json=startToCloseTimeout,proto3,stdduration" json:"start_to_close_timeout,omitempty"` - HeartbeatTimeout *time.Duration `protobuf:"bytes,10,opt,name=heartbeat_timeout,json=heartbeatTimeout,proto3,stdduration" json:"heartbeat_timeout,omitempty"` - Attempt int32 `protobuf:"varint,11,opt,name=attempt,proto3" json:"attempt,omitempty"` - ScheduledTimeOfThisAttempt *time.Time `protobuf:"bytes,12,opt,name=scheduled_time_of_this_attempt,json=scheduledTimeOfThisAttempt,proto3,stdtime" json:"scheduled_time_of_this_attempt,omitempty"` - HeartbeatDetails *Payload `protobuf:"bytes,13,opt,name=heartbeat_details,json=heartbeatDetails,proto3" json:"heartbeat_details,omitempty"` - WorkflowType *WorkflowType `protobuf:"bytes,14,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` - WorkflowDomain string `protobuf:"bytes,15,opt,name=workflow_domain,json=workflowDomain,proto3" json:"workflow_domain,omitempty"` - Header *Header `protobuf:"bytes,16,opt,name=header,proto3" json:"header,omitempty"` -} - -func (m *PollForActivityTaskResponse) Reset() { *m = PollForActivityTaskResponse{} } -func (*PollForActivityTaskResponse) ProtoMessage() {} -func (*PollForActivityTaskResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_00684e887839a48c, []int{7} -} -func (m *PollForActivityTaskResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PollForActivityTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PollForActivityTaskResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TaskToken []byte `protobuf:"bytes,1,opt,name=task_token,json=taskToken,proto3" json:"task_token,omitempty"` + WorkflowExecution *WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` + ActivityId string `protobuf:"bytes,3,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` + ActivityType *ActivityType `protobuf:"bytes,4,opt,name=activity_type,json=activityType,proto3" json:"activity_type,omitempty"` + Input *Payload `protobuf:"bytes,5,opt,name=input,proto3" json:"input,omitempty"` + ScheduledTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=scheduled_time,json=scheduledTime,proto3" json:"scheduled_time,omitempty"` + StartedTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=started_time,json=startedTime,proto3" json:"started_time,omitempty"` + ScheduleToCloseTimeout *durationpb.Duration `protobuf:"bytes,8,opt,name=schedule_to_close_timeout,json=scheduleToCloseTimeout,proto3" json:"schedule_to_close_timeout,omitempty"` + StartToCloseTimeout *durationpb.Duration `protobuf:"bytes,9,opt,name=start_to_close_timeout,json=startToCloseTimeout,proto3" json:"start_to_close_timeout,omitempty"` + HeartbeatTimeout *durationpb.Duration `protobuf:"bytes,10,opt,name=heartbeat_timeout,json=heartbeatTimeout,proto3" json:"heartbeat_timeout,omitempty"` + Attempt int32 `protobuf:"varint,11,opt,name=attempt,proto3" json:"attempt,omitempty"` + ScheduledTimeOfThisAttempt *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=scheduled_time_of_this_attempt,json=scheduledTimeOfThisAttempt,proto3" json:"scheduled_time_of_this_attempt,omitempty"` + HeartbeatDetails *Payload `protobuf:"bytes,13,opt,name=heartbeat_details,json=heartbeatDetails,proto3" json:"heartbeat_details,omitempty"` + WorkflowType *WorkflowType `protobuf:"bytes,14,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` + WorkflowDomain string `protobuf:"bytes,15,opt,name=workflow_domain,json=workflowDomain,proto3" json:"workflow_domain,omitempty"` + Header *Header `protobuf:"bytes,16,opt,name=header,proto3" json:"header,omitempty"` } -func (m *PollForActivityTaskResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PollForActivityTaskResponse.Merge(m, src) + +func (x *PollForActivityTaskResponse) Reset() { + *x = PollForActivityTaskResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *PollForActivityTaskResponse) XXX_Size() int { - return m.Size() + +func (x *PollForActivityTaskResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PollForActivityTaskResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PollForActivityTaskResponse.DiscardUnknown(m) + +func (*PollForActivityTaskResponse) ProtoMessage() {} + +func (x *PollForActivityTaskResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PollForActivityTaskResponse proto.InternalMessageInfo +// Deprecated: Use PollForActivityTaskResponse.ProtoReflect.Descriptor instead. +func (*PollForActivityTaskResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_worker_proto_rawDescGZIP(), []int{7} +} -func (m *PollForActivityTaskResponse) GetTaskToken() []byte { - if m != nil { - return m.TaskToken +func (x *PollForActivityTaskResponse) GetTaskToken() []byte { + if x != nil { + return x.TaskToken } return nil } -func (m *PollForActivityTaskResponse) GetWorkflowExecution() *WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *PollForActivityTaskResponse) GetWorkflowExecution() *WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *PollForActivityTaskResponse) GetActivityId() string { - if m != nil { - return m.ActivityId +func (x *PollForActivityTaskResponse) GetActivityId() string { + if x != nil { + return x.ActivityId } return "" } -func (m *PollForActivityTaskResponse) GetActivityType() *ActivityType { - if m != nil { - return m.ActivityType +func (x *PollForActivityTaskResponse) GetActivityType() *ActivityType { + if x != nil { + return x.ActivityType } return nil } -func (m *PollForActivityTaskResponse) GetInput() *Payload { - if m != nil { - return m.Input +func (x *PollForActivityTaskResponse) GetInput() *Payload { + if x != nil { + return x.Input } return nil } -func (m *PollForActivityTaskResponse) GetScheduledTime() *time.Time { - if m != nil { - return m.ScheduledTime +func (x *PollForActivityTaskResponse) GetScheduledTime() *timestamppb.Timestamp { + if x != nil { + return x.ScheduledTime } return nil } -func (m *PollForActivityTaskResponse) GetStartedTime() *time.Time { - if m != nil { - return m.StartedTime +func (x *PollForActivityTaskResponse) GetStartedTime() *timestamppb.Timestamp { + if x != nil { + return x.StartedTime } return nil } -func (m *PollForActivityTaskResponse) GetScheduleToCloseTimeout() *time.Duration { - if m != nil { - return m.ScheduleToCloseTimeout +func (x *PollForActivityTaskResponse) GetScheduleToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.ScheduleToCloseTimeout } return nil } -func (m *PollForActivityTaskResponse) GetStartToCloseTimeout() *time.Duration { - if m != nil { - return m.StartToCloseTimeout +func (x *PollForActivityTaskResponse) GetStartToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.StartToCloseTimeout } return nil } -func (m *PollForActivityTaskResponse) GetHeartbeatTimeout() *time.Duration { - if m != nil { - return m.HeartbeatTimeout +func (x *PollForActivityTaskResponse) GetHeartbeatTimeout() *durationpb.Duration { + if x != nil { + return x.HeartbeatTimeout } return nil } -func (m *PollForActivityTaskResponse) GetAttempt() int32 { - if m != nil { - return m.Attempt +func (x *PollForActivityTaskResponse) GetAttempt() int32 { + if x != nil { + return x.Attempt } return 0 } -func (m *PollForActivityTaskResponse) GetScheduledTimeOfThisAttempt() *time.Time { - if m != nil { - return m.ScheduledTimeOfThisAttempt +func (x *PollForActivityTaskResponse) GetScheduledTimeOfThisAttempt() *timestamppb.Timestamp { + if x != nil { + return x.ScheduledTimeOfThisAttempt } return nil } -func (m *PollForActivityTaskResponse) GetHeartbeatDetails() *Payload { - if m != nil { - return m.HeartbeatDetails +func (x *PollForActivityTaskResponse) GetHeartbeatDetails() *Payload { + if x != nil { + return x.HeartbeatDetails } return nil } -func (m *PollForActivityTaskResponse) GetWorkflowType() *WorkflowType { - if m != nil { - return m.WorkflowType +func (x *PollForActivityTaskResponse) GetWorkflowType() *WorkflowType { + if x != nil { + return x.WorkflowType } return nil } -func (m *PollForActivityTaskResponse) GetWorkflowDomain() string { - if m != nil { - return m.WorkflowDomain +func (x *PollForActivityTaskResponse) GetWorkflowDomain() string { + if x != nil { + return x.WorkflowDomain } return "" } -func (m *PollForActivityTaskResponse) GetHeader() *Header { - if m != nil { - return m.Header +func (x *PollForActivityTaskResponse) GetHeader() *Header { + if x != nil { + return x.Header } return nil } type RespondActivityTaskCompletedRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + TaskToken []byte `protobuf:"bytes,1,opt,name=task_token,json=taskToken,proto3" json:"task_token,omitempty"` Result *Payload `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"` Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` } -func (m *RespondActivityTaskCompletedRequest) Reset() { *m = RespondActivityTaskCompletedRequest{} } -func (*RespondActivityTaskCompletedRequest) ProtoMessage() {} -func (*RespondActivityTaskCompletedRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00684e887839a48c, []int{8} -} -func (m *RespondActivityTaskCompletedRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RespondActivityTaskCompletedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RespondActivityTaskCompletedRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RespondActivityTaskCompletedRequest) Reset() { + *x = RespondActivityTaskCompletedRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RespondActivityTaskCompletedRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RespondActivityTaskCompletedRequest.Merge(m, src) -} -func (m *RespondActivityTaskCompletedRequest) XXX_Size() int { - return m.Size() + +func (x *RespondActivityTaskCompletedRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RespondActivityTaskCompletedRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RespondActivityTaskCompletedRequest.DiscardUnknown(m) + +func (*RespondActivityTaskCompletedRequest) ProtoMessage() {} + +func (x *RespondActivityTaskCompletedRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RespondActivityTaskCompletedRequest proto.InternalMessageInfo +// Deprecated: Use RespondActivityTaskCompletedRequest.ProtoReflect.Descriptor instead. +func (*RespondActivityTaskCompletedRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_worker_proto_rawDescGZIP(), []int{8} +} -func (m *RespondActivityTaskCompletedRequest) GetTaskToken() []byte { - if m != nil { - return m.TaskToken +func (x *RespondActivityTaskCompletedRequest) GetTaskToken() []byte { + if x != nil { + return x.TaskToken } return nil } -func (m *RespondActivityTaskCompletedRequest) GetResult() *Payload { - if m != nil { - return m.Result +func (x *RespondActivityTaskCompletedRequest) GetResult() *Payload { + if x != nil { + return x.Result } return nil } -func (m *RespondActivityTaskCompletedRequest) GetIdentity() string { - if m != nil { - return m.Identity +func (x *RespondActivityTaskCompletedRequest) GetIdentity() string { + if x != nil { + return x.Identity } return "" } type RespondActivityTaskCompletedResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *RespondActivityTaskCompletedResponse) Reset() { *m = RespondActivityTaskCompletedResponse{} } -func (*RespondActivityTaskCompletedResponse) ProtoMessage() {} -func (*RespondActivityTaskCompletedResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_00684e887839a48c, []int{9} -} -func (m *RespondActivityTaskCompletedResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RespondActivityTaskCompletedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RespondActivityTaskCompletedResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RespondActivityTaskCompletedResponse) Reset() { + *x = RespondActivityTaskCompletedResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RespondActivityTaskCompletedResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RespondActivityTaskCompletedResponse.Merge(m, src) -} -func (m *RespondActivityTaskCompletedResponse) XXX_Size() int { - return m.Size() + +func (x *RespondActivityTaskCompletedResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RespondActivityTaskCompletedResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RespondActivityTaskCompletedResponse.DiscardUnknown(m) + +func (*RespondActivityTaskCompletedResponse) ProtoMessage() {} + +func (x *RespondActivityTaskCompletedResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RespondActivityTaskCompletedResponse proto.InternalMessageInfo +// Deprecated: Use RespondActivityTaskCompletedResponse.ProtoReflect.Descriptor instead. +func (*RespondActivityTaskCompletedResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_worker_proto_rawDescGZIP(), []int{9} +} type RespondActivityTaskCompletedByIDRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` WorkflowExecution *WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` ActivityId string `protobuf:"bytes,3,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` @@ -873,207 +904,217 @@ type RespondActivityTaskCompletedByIDRequest struct { Identity string `protobuf:"bytes,5,opt,name=identity,proto3" json:"identity,omitempty"` } -func (m *RespondActivityTaskCompletedByIDRequest) Reset() { - *m = RespondActivityTaskCompletedByIDRequest{} +func (x *RespondActivityTaskCompletedByIDRequest) Reset() { + *x = RespondActivityTaskCompletedByIDRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RespondActivityTaskCompletedByIDRequest) String() string { + return protoimpl.X.MessageStringOf(x) } + func (*RespondActivityTaskCompletedByIDRequest) ProtoMessage() {} -func (*RespondActivityTaskCompletedByIDRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00684e887839a48c, []int{10} -} -func (m *RespondActivityTaskCompletedByIDRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RespondActivityTaskCompletedByIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RespondActivityTaskCompletedByIDRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *RespondActivityTaskCompletedByIDRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *RespondActivityTaskCompletedByIDRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RespondActivityTaskCompletedByIDRequest.Merge(m, src) -} -func (m *RespondActivityTaskCompletedByIDRequest) XXX_Size() int { - return m.Size() -} -func (m *RespondActivityTaskCompletedByIDRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RespondActivityTaskCompletedByIDRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_RespondActivityTaskCompletedByIDRequest proto.InternalMessageInfo +// Deprecated: Use RespondActivityTaskCompletedByIDRequest.ProtoReflect.Descriptor instead. +func (*RespondActivityTaskCompletedByIDRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_worker_proto_rawDescGZIP(), []int{10} +} -func (m *RespondActivityTaskCompletedByIDRequest) GetDomain() string { - if m != nil { - return m.Domain +func (x *RespondActivityTaskCompletedByIDRequest) GetDomain() string { + if x != nil { + return x.Domain } return "" } -func (m *RespondActivityTaskCompletedByIDRequest) GetWorkflowExecution() *WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *RespondActivityTaskCompletedByIDRequest) GetWorkflowExecution() *WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *RespondActivityTaskCompletedByIDRequest) GetActivityId() string { - if m != nil { - return m.ActivityId +func (x *RespondActivityTaskCompletedByIDRequest) GetActivityId() string { + if x != nil { + return x.ActivityId } return "" } -func (m *RespondActivityTaskCompletedByIDRequest) GetResult() *Payload { - if m != nil { - return m.Result +func (x *RespondActivityTaskCompletedByIDRequest) GetResult() *Payload { + if x != nil { + return x.Result } return nil } -func (m *RespondActivityTaskCompletedByIDRequest) GetIdentity() string { - if m != nil { - return m.Identity +func (x *RespondActivityTaskCompletedByIDRequest) GetIdentity() string { + if x != nil { + return x.Identity } return "" } type RespondActivityTaskCompletedByIDResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *RespondActivityTaskCompletedByIDResponse) Reset() { + *x = RespondActivityTaskCompletedByIDResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RespondActivityTaskCompletedByIDResponse) Reset() { - *m = RespondActivityTaskCompletedByIDResponse{} +func (x *RespondActivityTaskCompletedByIDResponse) String() string { + return protoimpl.X.MessageStringOf(x) } + func (*RespondActivityTaskCompletedByIDResponse) ProtoMessage() {} -func (*RespondActivityTaskCompletedByIDResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_00684e887839a48c, []int{11} -} -func (m *RespondActivityTaskCompletedByIDResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RespondActivityTaskCompletedByIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RespondActivityTaskCompletedByIDResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *RespondActivityTaskCompletedByIDResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *RespondActivityTaskCompletedByIDResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RespondActivityTaskCompletedByIDResponse.Merge(m, src) -} -func (m *RespondActivityTaskCompletedByIDResponse) XXX_Size() int { - return m.Size() -} -func (m *RespondActivityTaskCompletedByIDResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RespondActivityTaskCompletedByIDResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_RespondActivityTaskCompletedByIDResponse proto.InternalMessageInfo +// Deprecated: Use RespondActivityTaskCompletedByIDResponse.ProtoReflect.Descriptor instead. +func (*RespondActivityTaskCompletedByIDResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_worker_proto_rawDescGZIP(), []int{11} +} type RespondActivityTaskFailedRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + TaskToken []byte `protobuf:"bytes,1,opt,name=task_token,json=taskToken,proto3" json:"task_token,omitempty"` Failure *Failure `protobuf:"bytes,2,opt,name=failure,proto3" json:"failure,omitempty"` Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` } -func (m *RespondActivityTaskFailedRequest) Reset() { *m = RespondActivityTaskFailedRequest{} } -func (*RespondActivityTaskFailedRequest) ProtoMessage() {} -func (*RespondActivityTaskFailedRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00684e887839a48c, []int{12} -} -func (m *RespondActivityTaskFailedRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RespondActivityTaskFailedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RespondActivityTaskFailedRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RespondActivityTaskFailedRequest) Reset() { + *x = RespondActivityTaskFailedRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RespondActivityTaskFailedRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RespondActivityTaskFailedRequest.Merge(m, src) -} -func (m *RespondActivityTaskFailedRequest) XXX_Size() int { - return m.Size() + +func (x *RespondActivityTaskFailedRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RespondActivityTaskFailedRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RespondActivityTaskFailedRequest.DiscardUnknown(m) + +func (*RespondActivityTaskFailedRequest) ProtoMessage() {} + +func (x *RespondActivityTaskFailedRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RespondActivityTaskFailedRequest proto.InternalMessageInfo +// Deprecated: Use RespondActivityTaskFailedRequest.ProtoReflect.Descriptor instead. +func (*RespondActivityTaskFailedRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_worker_proto_rawDescGZIP(), []int{12} +} -func (m *RespondActivityTaskFailedRequest) GetTaskToken() []byte { - if m != nil { - return m.TaskToken +func (x *RespondActivityTaskFailedRequest) GetTaskToken() []byte { + if x != nil { + return x.TaskToken } return nil } -func (m *RespondActivityTaskFailedRequest) GetFailure() *Failure { - if m != nil { - return m.Failure +func (x *RespondActivityTaskFailedRequest) GetFailure() *Failure { + if x != nil { + return x.Failure } return nil } -func (m *RespondActivityTaskFailedRequest) GetIdentity() string { - if m != nil { - return m.Identity +func (x *RespondActivityTaskFailedRequest) GetIdentity() string { + if x != nil { + return x.Identity } return "" } type RespondActivityTaskFailedResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *RespondActivityTaskFailedResponse) Reset() { *m = RespondActivityTaskFailedResponse{} } -func (*RespondActivityTaskFailedResponse) ProtoMessage() {} -func (*RespondActivityTaskFailedResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_00684e887839a48c, []int{13} -} -func (m *RespondActivityTaskFailedResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RespondActivityTaskFailedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RespondActivityTaskFailedResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RespondActivityTaskFailedResponse) Reset() { + *x = RespondActivityTaskFailedResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RespondActivityTaskFailedResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RespondActivityTaskFailedResponse.Merge(m, src) -} -func (m *RespondActivityTaskFailedResponse) XXX_Size() int { - return m.Size() + +func (x *RespondActivityTaskFailedResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RespondActivityTaskFailedResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RespondActivityTaskFailedResponse.DiscardUnknown(m) + +func (*RespondActivityTaskFailedResponse) ProtoMessage() {} + +func (x *RespondActivityTaskFailedResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RespondActivityTaskFailedResponse proto.InternalMessageInfo +// Deprecated: Use RespondActivityTaskFailedResponse.ProtoReflect.Descriptor instead. +func (*RespondActivityTaskFailedResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_worker_proto_rawDescGZIP(), []int{13} +} type RespondActivityTaskFailedByIDRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` WorkflowExecution *WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` ActivityId string `protobuf:"bytes,3,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` @@ -1081,203 +1122,217 @@ type RespondActivityTaskFailedByIDRequest struct { Identity string `protobuf:"bytes,5,opt,name=identity,proto3" json:"identity,omitempty"` } -func (m *RespondActivityTaskFailedByIDRequest) Reset() { *m = RespondActivityTaskFailedByIDRequest{} } -func (*RespondActivityTaskFailedByIDRequest) ProtoMessage() {} -func (*RespondActivityTaskFailedByIDRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00684e887839a48c, []int{14} -} -func (m *RespondActivityTaskFailedByIDRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RespondActivityTaskFailedByIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RespondActivityTaskFailedByIDRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RespondActivityTaskFailedByIDRequest) Reset() { + *x = RespondActivityTaskFailedByIDRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RespondActivityTaskFailedByIDRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RespondActivityTaskFailedByIDRequest.Merge(m, src) -} -func (m *RespondActivityTaskFailedByIDRequest) XXX_Size() int { - return m.Size() + +func (x *RespondActivityTaskFailedByIDRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RespondActivityTaskFailedByIDRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RespondActivityTaskFailedByIDRequest.DiscardUnknown(m) + +func (*RespondActivityTaskFailedByIDRequest) ProtoMessage() {} + +func (x *RespondActivityTaskFailedByIDRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RespondActivityTaskFailedByIDRequest proto.InternalMessageInfo +// Deprecated: Use RespondActivityTaskFailedByIDRequest.ProtoReflect.Descriptor instead. +func (*RespondActivityTaskFailedByIDRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_worker_proto_rawDescGZIP(), []int{14} +} -func (m *RespondActivityTaskFailedByIDRequest) GetDomain() string { - if m != nil { - return m.Domain +func (x *RespondActivityTaskFailedByIDRequest) GetDomain() string { + if x != nil { + return x.Domain } return "" } -func (m *RespondActivityTaskFailedByIDRequest) GetWorkflowExecution() *WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *RespondActivityTaskFailedByIDRequest) GetWorkflowExecution() *WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *RespondActivityTaskFailedByIDRequest) GetActivityId() string { - if m != nil { - return m.ActivityId +func (x *RespondActivityTaskFailedByIDRequest) GetActivityId() string { + if x != nil { + return x.ActivityId } return "" } -func (m *RespondActivityTaskFailedByIDRequest) GetFailure() *Failure { - if m != nil { - return m.Failure +func (x *RespondActivityTaskFailedByIDRequest) GetFailure() *Failure { + if x != nil { + return x.Failure } return nil } -func (m *RespondActivityTaskFailedByIDRequest) GetIdentity() string { - if m != nil { - return m.Identity +func (x *RespondActivityTaskFailedByIDRequest) GetIdentity() string { + if x != nil { + return x.Identity } return "" } type RespondActivityTaskFailedByIDResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *RespondActivityTaskFailedByIDResponse) Reset() { *m = RespondActivityTaskFailedByIDResponse{} } -func (*RespondActivityTaskFailedByIDResponse) ProtoMessage() {} -func (*RespondActivityTaskFailedByIDResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_00684e887839a48c, []int{15} -} -func (m *RespondActivityTaskFailedByIDResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RespondActivityTaskFailedByIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RespondActivityTaskFailedByIDResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RespondActivityTaskFailedByIDResponse) Reset() { + *x = RespondActivityTaskFailedByIDResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RespondActivityTaskFailedByIDResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RespondActivityTaskFailedByIDResponse.Merge(m, src) -} -func (m *RespondActivityTaskFailedByIDResponse) XXX_Size() int { - return m.Size() + +func (x *RespondActivityTaskFailedByIDResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RespondActivityTaskFailedByIDResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RespondActivityTaskFailedByIDResponse.DiscardUnknown(m) + +func (*RespondActivityTaskFailedByIDResponse) ProtoMessage() {} + +func (x *RespondActivityTaskFailedByIDResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RespondActivityTaskFailedByIDResponse proto.InternalMessageInfo +// Deprecated: Use RespondActivityTaskFailedByIDResponse.ProtoReflect.Descriptor instead. +func (*RespondActivityTaskFailedByIDResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_worker_proto_rawDescGZIP(), []int{15} +} type RespondActivityTaskCanceledRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + TaskToken []byte `protobuf:"bytes,1,opt,name=task_token,json=taskToken,proto3" json:"task_token,omitempty"` Details *Payload `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"` Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` } -func (m *RespondActivityTaskCanceledRequest) Reset() { *m = RespondActivityTaskCanceledRequest{} } -func (*RespondActivityTaskCanceledRequest) ProtoMessage() {} -func (*RespondActivityTaskCanceledRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00684e887839a48c, []int{16} -} -func (m *RespondActivityTaskCanceledRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RespondActivityTaskCanceledRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RespondActivityTaskCanceledRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RespondActivityTaskCanceledRequest) Reset() { + *x = RespondActivityTaskCanceledRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RespondActivityTaskCanceledRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RespondActivityTaskCanceledRequest.Merge(m, src) -} -func (m *RespondActivityTaskCanceledRequest) XXX_Size() int { - return m.Size() + +func (x *RespondActivityTaskCanceledRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RespondActivityTaskCanceledRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RespondActivityTaskCanceledRequest.DiscardUnknown(m) + +func (*RespondActivityTaskCanceledRequest) ProtoMessage() {} + +func (x *RespondActivityTaskCanceledRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RespondActivityTaskCanceledRequest proto.InternalMessageInfo +// Deprecated: Use RespondActivityTaskCanceledRequest.ProtoReflect.Descriptor instead. +func (*RespondActivityTaskCanceledRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_worker_proto_rawDescGZIP(), []int{16} +} -func (m *RespondActivityTaskCanceledRequest) GetTaskToken() []byte { - if m != nil { - return m.TaskToken +func (x *RespondActivityTaskCanceledRequest) GetTaskToken() []byte { + if x != nil { + return x.TaskToken } return nil } -func (m *RespondActivityTaskCanceledRequest) GetDetails() *Payload { - if m != nil { - return m.Details +func (x *RespondActivityTaskCanceledRequest) GetDetails() *Payload { + if x != nil { + return x.Details } return nil } -func (m *RespondActivityTaskCanceledRequest) GetIdentity() string { - if m != nil { - return m.Identity +func (x *RespondActivityTaskCanceledRequest) GetIdentity() string { + if x != nil { + return x.Identity } return "" } type RespondActivityTaskCanceledResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *RespondActivityTaskCanceledResponse) Reset() { *m = RespondActivityTaskCanceledResponse{} } -func (*RespondActivityTaskCanceledResponse) ProtoMessage() {} -func (*RespondActivityTaskCanceledResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_00684e887839a48c, []int{17} -} -func (m *RespondActivityTaskCanceledResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RespondActivityTaskCanceledResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RespondActivityTaskCanceledResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RespondActivityTaskCanceledResponse) Reset() { + *x = RespondActivityTaskCanceledResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RespondActivityTaskCanceledResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RespondActivityTaskCanceledResponse.Merge(m, src) -} -func (m *RespondActivityTaskCanceledResponse) XXX_Size() int { - return m.Size() + +func (x *RespondActivityTaskCanceledResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RespondActivityTaskCanceledResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RespondActivityTaskCanceledResponse.DiscardUnknown(m) + +func (*RespondActivityTaskCanceledResponse) ProtoMessage() {} + +func (x *RespondActivityTaskCanceledResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RespondActivityTaskCanceledResponse proto.InternalMessageInfo +// Deprecated: Use RespondActivityTaskCanceledResponse.ProtoReflect.Descriptor instead. +func (*RespondActivityTaskCanceledResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_worker_proto_rawDescGZIP(), []int{17} +} type RespondActivityTaskCanceledByIDRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` WorkflowExecution *WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` ActivityId string `protobuf:"bytes,3,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` @@ -1285,215 +1340,226 @@ type RespondActivityTaskCanceledByIDRequest struct { Identity string `protobuf:"bytes,5,opt,name=identity,proto3" json:"identity,omitempty"` } -func (m *RespondActivityTaskCanceledByIDRequest) Reset() { - *m = RespondActivityTaskCanceledByIDRequest{} +func (x *RespondActivityTaskCanceledByIDRequest) Reset() { + *x = RespondActivityTaskCanceledByIDRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RespondActivityTaskCanceledByIDRequest) String() string { + return protoimpl.X.MessageStringOf(x) } + func (*RespondActivityTaskCanceledByIDRequest) ProtoMessage() {} -func (*RespondActivityTaskCanceledByIDRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00684e887839a48c, []int{18} -} -func (m *RespondActivityTaskCanceledByIDRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RespondActivityTaskCanceledByIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RespondActivityTaskCanceledByIDRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *RespondActivityTaskCanceledByIDRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *RespondActivityTaskCanceledByIDRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RespondActivityTaskCanceledByIDRequest.Merge(m, src) -} -func (m *RespondActivityTaskCanceledByIDRequest) XXX_Size() int { - return m.Size() -} -func (m *RespondActivityTaskCanceledByIDRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RespondActivityTaskCanceledByIDRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_RespondActivityTaskCanceledByIDRequest proto.InternalMessageInfo +// Deprecated: Use RespondActivityTaskCanceledByIDRequest.ProtoReflect.Descriptor instead. +func (*RespondActivityTaskCanceledByIDRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_worker_proto_rawDescGZIP(), []int{18} +} -func (m *RespondActivityTaskCanceledByIDRequest) GetDomain() string { - if m != nil { - return m.Domain +func (x *RespondActivityTaskCanceledByIDRequest) GetDomain() string { + if x != nil { + return x.Domain } return "" } -func (m *RespondActivityTaskCanceledByIDRequest) GetWorkflowExecution() *WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *RespondActivityTaskCanceledByIDRequest) GetWorkflowExecution() *WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *RespondActivityTaskCanceledByIDRequest) GetActivityId() string { - if m != nil { - return m.ActivityId +func (x *RespondActivityTaskCanceledByIDRequest) GetActivityId() string { + if x != nil { + return x.ActivityId } return "" } -func (m *RespondActivityTaskCanceledByIDRequest) GetDetails() *Payload { - if m != nil { - return m.Details +func (x *RespondActivityTaskCanceledByIDRequest) GetDetails() *Payload { + if x != nil { + return x.Details } return nil } -func (m *RespondActivityTaskCanceledByIDRequest) GetIdentity() string { - if m != nil { - return m.Identity +func (x *RespondActivityTaskCanceledByIDRequest) GetIdentity() string { + if x != nil { + return x.Identity } return "" } type RespondActivityTaskCanceledByIDResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *RespondActivityTaskCanceledByIDResponse) Reset() { + *x = RespondActivityTaskCanceledByIDResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RespondActivityTaskCanceledByIDResponse) Reset() { - *m = RespondActivityTaskCanceledByIDResponse{} +func (x *RespondActivityTaskCanceledByIDResponse) String() string { + return protoimpl.X.MessageStringOf(x) } + func (*RespondActivityTaskCanceledByIDResponse) ProtoMessage() {} -func (*RespondActivityTaskCanceledByIDResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_00684e887839a48c, []int{19} -} -func (m *RespondActivityTaskCanceledByIDResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RespondActivityTaskCanceledByIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RespondActivityTaskCanceledByIDResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *RespondActivityTaskCanceledByIDResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *RespondActivityTaskCanceledByIDResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RespondActivityTaskCanceledByIDResponse.Merge(m, src) -} -func (m *RespondActivityTaskCanceledByIDResponse) XXX_Size() int { - return m.Size() -} -func (m *RespondActivityTaskCanceledByIDResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RespondActivityTaskCanceledByIDResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_RespondActivityTaskCanceledByIDResponse proto.InternalMessageInfo +// Deprecated: Use RespondActivityTaskCanceledByIDResponse.ProtoReflect.Descriptor instead. +func (*RespondActivityTaskCanceledByIDResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_worker_proto_rawDescGZIP(), []int{19} +} type RecordActivityTaskHeartbeatRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + TaskToken []byte `protobuf:"bytes,1,opt,name=task_token,json=taskToken,proto3" json:"task_token,omitempty"` Details *Payload `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"` Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` } -func (m *RecordActivityTaskHeartbeatRequest) Reset() { *m = RecordActivityTaskHeartbeatRequest{} } -func (*RecordActivityTaskHeartbeatRequest) ProtoMessage() {} -func (*RecordActivityTaskHeartbeatRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00684e887839a48c, []int{20} -} -func (m *RecordActivityTaskHeartbeatRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RecordActivityTaskHeartbeatRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RecordActivityTaskHeartbeatRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RecordActivityTaskHeartbeatRequest) Reset() { + *x = RecordActivityTaskHeartbeatRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RecordActivityTaskHeartbeatRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RecordActivityTaskHeartbeatRequest.Merge(m, src) -} -func (m *RecordActivityTaskHeartbeatRequest) XXX_Size() int { - return m.Size() + +func (x *RecordActivityTaskHeartbeatRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RecordActivityTaskHeartbeatRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RecordActivityTaskHeartbeatRequest.DiscardUnknown(m) + +func (*RecordActivityTaskHeartbeatRequest) ProtoMessage() {} + +func (x *RecordActivityTaskHeartbeatRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RecordActivityTaskHeartbeatRequest proto.InternalMessageInfo +// Deprecated: Use RecordActivityTaskHeartbeatRequest.ProtoReflect.Descriptor instead. +func (*RecordActivityTaskHeartbeatRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_worker_proto_rawDescGZIP(), []int{20} +} -func (m *RecordActivityTaskHeartbeatRequest) GetTaskToken() []byte { - if m != nil { - return m.TaskToken +func (x *RecordActivityTaskHeartbeatRequest) GetTaskToken() []byte { + if x != nil { + return x.TaskToken } return nil } -func (m *RecordActivityTaskHeartbeatRequest) GetDetails() *Payload { - if m != nil { - return m.Details +func (x *RecordActivityTaskHeartbeatRequest) GetDetails() *Payload { + if x != nil { + return x.Details } return nil } -func (m *RecordActivityTaskHeartbeatRequest) GetIdentity() string { - if m != nil { - return m.Identity +func (x *RecordActivityTaskHeartbeatRequest) GetIdentity() string { + if x != nil { + return x.Identity } return "" } type RecordActivityTaskHeartbeatResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + CancelRequested bool `protobuf:"varint,1,opt,name=cancel_requested,json=cancelRequested,proto3" json:"cancel_requested,omitempty"` } -func (m *RecordActivityTaskHeartbeatResponse) Reset() { *m = RecordActivityTaskHeartbeatResponse{} } -func (*RecordActivityTaskHeartbeatResponse) ProtoMessage() {} -func (*RecordActivityTaskHeartbeatResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_00684e887839a48c, []int{21} -} -func (m *RecordActivityTaskHeartbeatResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RecordActivityTaskHeartbeatResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RecordActivityTaskHeartbeatResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RecordActivityTaskHeartbeatResponse) Reset() { + *x = RecordActivityTaskHeartbeatResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RecordActivityTaskHeartbeatResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RecordActivityTaskHeartbeatResponse.Merge(m, src) -} -func (m *RecordActivityTaskHeartbeatResponse) XXX_Size() int { - return m.Size() + +func (x *RecordActivityTaskHeartbeatResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RecordActivityTaskHeartbeatResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RecordActivityTaskHeartbeatResponse.DiscardUnknown(m) + +func (*RecordActivityTaskHeartbeatResponse) ProtoMessage() {} + +func (x *RecordActivityTaskHeartbeatResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RecordActivityTaskHeartbeatResponse proto.InternalMessageInfo +// Deprecated: Use RecordActivityTaskHeartbeatResponse.ProtoReflect.Descriptor instead. +func (*RecordActivityTaskHeartbeatResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_worker_proto_rawDescGZIP(), []int{21} +} -func (m *RecordActivityTaskHeartbeatResponse) GetCancelRequested() bool { - if m != nil { - return m.CancelRequested +func (x *RecordActivityTaskHeartbeatResponse) GetCancelRequested() bool { + if x != nil { + return x.CancelRequested } return false } type RecordActivityTaskHeartbeatByIDRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` WorkflowExecution *WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` ActivityId string `protobuf:"bytes,3,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` @@ -1501,10133 +1567,1406 @@ type RecordActivityTaskHeartbeatByIDRequest struct { Identity string `protobuf:"bytes,5,opt,name=identity,proto3" json:"identity,omitempty"` } -func (m *RecordActivityTaskHeartbeatByIDRequest) Reset() { - *m = RecordActivityTaskHeartbeatByIDRequest{} +func (x *RecordActivityTaskHeartbeatByIDRequest) Reset() { + *x = RecordActivityTaskHeartbeatByIDRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RecordActivityTaskHeartbeatByIDRequest) String() string { + return protoimpl.X.MessageStringOf(x) } + func (*RecordActivityTaskHeartbeatByIDRequest) ProtoMessage() {} -func (*RecordActivityTaskHeartbeatByIDRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00684e887839a48c, []int{22} -} -func (m *RecordActivityTaskHeartbeatByIDRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RecordActivityTaskHeartbeatByIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RecordActivityTaskHeartbeatByIDRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *RecordActivityTaskHeartbeatByIDRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *RecordActivityTaskHeartbeatByIDRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RecordActivityTaskHeartbeatByIDRequest.Merge(m, src) -} -func (m *RecordActivityTaskHeartbeatByIDRequest) XXX_Size() int { - return m.Size() -} -func (m *RecordActivityTaskHeartbeatByIDRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RecordActivityTaskHeartbeatByIDRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_RecordActivityTaskHeartbeatByIDRequest proto.InternalMessageInfo +// Deprecated: Use RecordActivityTaskHeartbeatByIDRequest.ProtoReflect.Descriptor instead. +func (*RecordActivityTaskHeartbeatByIDRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_worker_proto_rawDescGZIP(), []int{22} +} -func (m *RecordActivityTaskHeartbeatByIDRequest) GetDomain() string { - if m != nil { - return m.Domain +func (x *RecordActivityTaskHeartbeatByIDRequest) GetDomain() string { + if x != nil { + return x.Domain } return "" } -func (m *RecordActivityTaskHeartbeatByIDRequest) GetWorkflowExecution() *WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *RecordActivityTaskHeartbeatByIDRequest) GetWorkflowExecution() *WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *RecordActivityTaskHeartbeatByIDRequest) GetActivityId() string { - if m != nil { - return m.ActivityId +func (x *RecordActivityTaskHeartbeatByIDRequest) GetActivityId() string { + if x != nil { + return x.ActivityId } return "" } -func (m *RecordActivityTaskHeartbeatByIDRequest) GetDetails() *Payload { - if m != nil { - return m.Details +func (x *RecordActivityTaskHeartbeatByIDRequest) GetDetails() *Payload { + if x != nil { + return x.Details } return nil } -func (m *RecordActivityTaskHeartbeatByIDRequest) GetIdentity() string { - if m != nil { - return m.Identity +func (x *RecordActivityTaskHeartbeatByIDRequest) GetIdentity() string { + if x != nil { + return x.Identity } return "" } type RecordActivityTaskHeartbeatByIDResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + CancelRequested bool `protobuf:"varint,1,opt,name=cancel_requested,json=cancelRequested,proto3" json:"cancel_requested,omitempty"` } -func (m *RecordActivityTaskHeartbeatByIDResponse) Reset() { - *m = RecordActivityTaskHeartbeatByIDResponse{} +func (x *RecordActivityTaskHeartbeatByIDResponse) Reset() { + *x = RecordActivityTaskHeartbeatByIDResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RecordActivityTaskHeartbeatByIDResponse) String() string { + return protoimpl.X.MessageStringOf(x) } + func (*RecordActivityTaskHeartbeatByIDResponse) ProtoMessage() {} -func (*RecordActivityTaskHeartbeatByIDResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_00684e887839a48c, []int{23} -} -func (m *RecordActivityTaskHeartbeatByIDResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RecordActivityTaskHeartbeatByIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RecordActivityTaskHeartbeatByIDResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *RecordActivityTaskHeartbeatByIDResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *RecordActivityTaskHeartbeatByIDResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RecordActivityTaskHeartbeatByIDResponse.Merge(m, src) -} -func (m *RecordActivityTaskHeartbeatByIDResponse) XXX_Size() int { - return m.Size() -} -func (m *RecordActivityTaskHeartbeatByIDResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RecordActivityTaskHeartbeatByIDResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_RecordActivityTaskHeartbeatByIDResponse proto.InternalMessageInfo +// Deprecated: Use RecordActivityTaskHeartbeatByIDResponse.ProtoReflect.Descriptor instead. +func (*RecordActivityTaskHeartbeatByIDResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_worker_proto_rawDescGZIP(), []int{23} +} -func (m *RecordActivityTaskHeartbeatByIDResponse) GetCancelRequested() bool { - if m != nil { - return m.CancelRequested +func (x *RecordActivityTaskHeartbeatByIDResponse) GetCancelRequested() bool { + if x != nil { + return x.CancelRequested } return false } type RespondQueryTaskCompletedRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + TaskToken []byte `protobuf:"bytes,1,opt,name=task_token,json=taskToken,proto3" json:"task_token,omitempty"` Result *WorkflowQueryResult `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"` WorkerVersionInfo *WorkerVersionInfo `protobuf:"bytes,3,opt,name=worker_version_info,json=workerVersionInfo,proto3" json:"worker_version_info,omitempty"` } -func (m *RespondQueryTaskCompletedRequest) Reset() { *m = RespondQueryTaskCompletedRequest{} } -func (*RespondQueryTaskCompletedRequest) ProtoMessage() {} -func (*RespondQueryTaskCompletedRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00684e887839a48c, []int{24} -} -func (m *RespondQueryTaskCompletedRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RespondQueryTaskCompletedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RespondQueryTaskCompletedRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RespondQueryTaskCompletedRequest) Reset() { + *x = RespondQueryTaskCompletedRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RespondQueryTaskCompletedRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RespondQueryTaskCompletedRequest.Merge(m, src) -} -func (m *RespondQueryTaskCompletedRequest) XXX_Size() int { - return m.Size() + +func (x *RespondQueryTaskCompletedRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RespondQueryTaskCompletedRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RespondQueryTaskCompletedRequest.DiscardUnknown(m) + +func (*RespondQueryTaskCompletedRequest) ProtoMessage() {} + +func (x *RespondQueryTaskCompletedRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RespondQueryTaskCompletedRequest proto.InternalMessageInfo +// Deprecated: Use RespondQueryTaskCompletedRequest.ProtoReflect.Descriptor instead. +func (*RespondQueryTaskCompletedRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_worker_proto_rawDescGZIP(), []int{24} +} -func (m *RespondQueryTaskCompletedRequest) GetTaskToken() []byte { - if m != nil { - return m.TaskToken +func (x *RespondQueryTaskCompletedRequest) GetTaskToken() []byte { + if x != nil { + return x.TaskToken } return nil } -func (m *RespondQueryTaskCompletedRequest) GetResult() *WorkflowQueryResult { - if m != nil { - return m.Result +func (x *RespondQueryTaskCompletedRequest) GetResult() *WorkflowQueryResult { + if x != nil { + return x.Result } return nil } -func (m *RespondQueryTaskCompletedRequest) GetWorkerVersionInfo() *WorkerVersionInfo { - if m != nil { - return m.WorkerVersionInfo +func (x *RespondQueryTaskCompletedRequest) GetWorkerVersionInfo() *WorkerVersionInfo { + if x != nil { + return x.WorkerVersionInfo } return nil } type RespondQueryTaskCompletedResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *RespondQueryTaskCompletedResponse) Reset() { *m = RespondQueryTaskCompletedResponse{} } -func (*RespondQueryTaskCompletedResponse) ProtoMessage() {} -func (*RespondQueryTaskCompletedResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_00684e887839a48c, []int{25} -} -func (m *RespondQueryTaskCompletedResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RespondQueryTaskCompletedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RespondQueryTaskCompletedResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RespondQueryTaskCompletedResponse) Reset() { + *x = RespondQueryTaskCompletedResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RespondQueryTaskCompletedResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RespondQueryTaskCompletedResponse.Merge(m, src) -} -func (m *RespondQueryTaskCompletedResponse) XXX_Size() int { - return m.Size() -} -func (m *RespondQueryTaskCompletedResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RespondQueryTaskCompletedResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RespondQueryTaskCompletedResponse proto.InternalMessageInfo -type RequestCancelWorkflowExecutionRequest struct { - Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` - WorkflowExecution *WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` - Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` - RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` +func (x *RespondQueryTaskCompletedResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RequestCancelWorkflowExecutionRequest) Reset() { *m = RequestCancelWorkflowExecutionRequest{} } -func (*RequestCancelWorkflowExecutionRequest) ProtoMessage() {} -func (*RequestCancelWorkflowExecutionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_00684e887839a48c, []int{26} -} -func (m *RequestCancelWorkflowExecutionRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RequestCancelWorkflowExecutionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RequestCancelWorkflowExecutionRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*RespondQueryTaskCompletedResponse) ProtoMessage() {} + +func (x *RespondQueryTaskCompletedResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *RequestCancelWorkflowExecutionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequestCancelWorkflowExecutionRequest.Merge(m, src) -} -func (m *RequestCancelWorkflowExecutionRequest) XXX_Size() int { - return m.Size() -} -func (m *RequestCancelWorkflowExecutionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RequestCancelWorkflowExecutionRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_RequestCancelWorkflowExecutionRequest proto.InternalMessageInfo - -func (m *RequestCancelWorkflowExecutionRequest) GetDomain() string { - if m != nil { - return m.Domain - } - return "" +// Deprecated: Use RespondQueryTaskCompletedResponse.ProtoReflect.Descriptor instead. +func (*RespondQueryTaskCompletedResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_worker_proto_rawDescGZIP(), []int{25} } -func (m *RequestCancelWorkflowExecutionRequest) GetWorkflowExecution() *WorkflowExecution { - if m != nil { - return m.WorkflowExecution - } - return nil -} +type RequestCancelWorkflowExecutionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *RequestCancelWorkflowExecutionRequest) GetIdentity() string { - if m != nil { - return m.Identity - } - return "" + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` + WorkflowExecution *WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` + Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` + RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` } -func (m *RequestCancelWorkflowExecutionRequest) GetRequestId() string { - if m != nil { - return m.RequestId +func (x *RequestCancelWorkflowExecutionRequest) Reset() { + *x = RequestCancelWorkflowExecutionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -type RequestCancelWorkflowExecutionResponse struct { +func (x *RequestCancelWorkflowExecutionRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RequestCancelWorkflowExecutionResponse) Reset() { - *m = RequestCancelWorkflowExecutionResponse{} -} -func (*RequestCancelWorkflowExecutionResponse) ProtoMessage() {} -func (*RequestCancelWorkflowExecutionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_00684e887839a48c, []int{27} -} -func (m *RequestCancelWorkflowExecutionResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RequestCancelWorkflowExecutionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RequestCancelWorkflowExecutionResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RequestCancelWorkflowExecutionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequestCancelWorkflowExecutionResponse.Merge(m, src) -} -func (m *RequestCancelWorkflowExecutionResponse) XXX_Size() int { - return m.Size() -} -func (m *RequestCancelWorkflowExecutionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RequestCancelWorkflowExecutionResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RequestCancelWorkflowExecutionResponse proto.InternalMessageInfo - -func init() { - proto.RegisterType((*PollForDecisionTaskRequest)(nil), "uber.cadence.api.v1.PollForDecisionTaskRequest") - proto.RegisterType((*PollForDecisionTaskResponse)(nil), "uber.cadence.api.v1.PollForDecisionTaskResponse") - proto.RegisterMapType((map[string]*WorkflowQuery)(nil), "uber.cadence.api.v1.PollForDecisionTaskResponse.QueriesEntry") - proto.RegisterType((*RespondDecisionTaskCompletedRequest)(nil), "uber.cadence.api.v1.RespondDecisionTaskCompletedRequest") - proto.RegisterMapType((map[string]*WorkflowQueryResult)(nil), "uber.cadence.api.v1.RespondDecisionTaskCompletedRequest.QueryResultsEntry") - proto.RegisterType((*RespondDecisionTaskCompletedResponse)(nil), "uber.cadence.api.v1.RespondDecisionTaskCompletedResponse") - proto.RegisterMapType((map[string]*ActivityLocalDispatchInfo)(nil), "uber.cadence.api.v1.RespondDecisionTaskCompletedResponse.ActivitiesToDispatchLocallyEntry") - proto.RegisterType((*RespondDecisionTaskFailedRequest)(nil), "uber.cadence.api.v1.RespondDecisionTaskFailedRequest") - proto.RegisterType((*RespondDecisionTaskFailedResponse)(nil), "uber.cadence.api.v1.RespondDecisionTaskFailedResponse") - proto.RegisterType((*PollForActivityTaskRequest)(nil), "uber.cadence.api.v1.PollForActivityTaskRequest") - proto.RegisterType((*PollForActivityTaskResponse)(nil), "uber.cadence.api.v1.PollForActivityTaskResponse") - proto.RegisterType((*RespondActivityTaskCompletedRequest)(nil), "uber.cadence.api.v1.RespondActivityTaskCompletedRequest") - proto.RegisterType((*RespondActivityTaskCompletedResponse)(nil), "uber.cadence.api.v1.RespondActivityTaskCompletedResponse") - proto.RegisterType((*RespondActivityTaskCompletedByIDRequest)(nil), "uber.cadence.api.v1.RespondActivityTaskCompletedByIDRequest") - proto.RegisterType((*RespondActivityTaskCompletedByIDResponse)(nil), "uber.cadence.api.v1.RespondActivityTaskCompletedByIDResponse") - proto.RegisterType((*RespondActivityTaskFailedRequest)(nil), "uber.cadence.api.v1.RespondActivityTaskFailedRequest") - proto.RegisterType((*RespondActivityTaskFailedResponse)(nil), "uber.cadence.api.v1.RespondActivityTaskFailedResponse") - proto.RegisterType((*RespondActivityTaskFailedByIDRequest)(nil), "uber.cadence.api.v1.RespondActivityTaskFailedByIDRequest") - proto.RegisterType((*RespondActivityTaskFailedByIDResponse)(nil), "uber.cadence.api.v1.RespondActivityTaskFailedByIDResponse") - proto.RegisterType((*RespondActivityTaskCanceledRequest)(nil), "uber.cadence.api.v1.RespondActivityTaskCanceledRequest") - proto.RegisterType((*RespondActivityTaskCanceledResponse)(nil), "uber.cadence.api.v1.RespondActivityTaskCanceledResponse") - proto.RegisterType((*RespondActivityTaskCanceledByIDRequest)(nil), "uber.cadence.api.v1.RespondActivityTaskCanceledByIDRequest") - proto.RegisterType((*RespondActivityTaskCanceledByIDResponse)(nil), "uber.cadence.api.v1.RespondActivityTaskCanceledByIDResponse") - proto.RegisterType((*RecordActivityTaskHeartbeatRequest)(nil), "uber.cadence.api.v1.RecordActivityTaskHeartbeatRequest") - proto.RegisterType((*RecordActivityTaskHeartbeatResponse)(nil), "uber.cadence.api.v1.RecordActivityTaskHeartbeatResponse") - proto.RegisterType((*RecordActivityTaskHeartbeatByIDRequest)(nil), "uber.cadence.api.v1.RecordActivityTaskHeartbeatByIDRequest") - proto.RegisterType((*RecordActivityTaskHeartbeatByIDResponse)(nil), "uber.cadence.api.v1.RecordActivityTaskHeartbeatByIDResponse") - proto.RegisterType((*RespondQueryTaskCompletedRequest)(nil), "uber.cadence.api.v1.RespondQueryTaskCompletedRequest") - proto.RegisterType((*RespondQueryTaskCompletedResponse)(nil), "uber.cadence.api.v1.RespondQueryTaskCompletedResponse") - proto.RegisterType((*RequestCancelWorkflowExecutionRequest)(nil), "uber.cadence.api.v1.RequestCancelWorkflowExecutionRequest") - proto.RegisterType((*RequestCancelWorkflowExecutionResponse)(nil), "uber.cadence.api.v1.RequestCancelWorkflowExecutionResponse") -} - -func init() { - proto.RegisterFile("github.com/uber/cadence/.gen/proto/api/v1/service_worker.proto", fileDescriptor_00684e887839a48c) -} - -var fileDescriptor_00684e887839a48c = []byte{ - // 2025 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x59, 0xcd, 0x6f, 0x1c, 0x49, - 0x15, 0x77, 0xdb, 0x1e, 0xdb, 0xf3, 0xfc, 0x35, 0xae, 0x88, 0x30, 0x9e, 0x24, 0x1d, 0x67, 0x96, - 0x24, 0x5e, 0x58, 0x8d, 0x89, 0x17, 0xb2, 0xf9, 0xd8, 0x45, 0xf8, 0x23, 0x21, 0x46, 0x01, 0xbc, - 0x9d, 0xd9, 0x5d, 0x29, 0x48, 0xdb, 0x94, 0xbb, 0xcb, 0x9e, 0x96, 0x7b, 0xba, 0x26, 0xdd, 0xd5, - 0xe3, 0xcc, 0x05, 0x21, 0x8e, 0x0b, 0x48, 0x91, 0x10, 0x0b, 0x48, 0x48, 0xb9, 0xc2, 0x89, 0x13, - 0xff, 0x03, 0xdc, 0xc2, 0x6d, 0x25, 0x0e, 0x60, 0xe7, 0xc2, 0x71, 0xff, 0x04, 0xd4, 0x55, 0xd5, - 0x3d, 0x3d, 0x33, 0x35, 0x3d, 0x1f, 0x42, 0x72, 0xa4, 0xbd, 0x79, 0xaa, 0x7e, 0xef, 0x57, 0xaf, - 0xde, 0x7b, 0xf5, 0xea, 0xd7, 0x65, 0x58, 0x0f, 0x0f, 0x88, 0xbf, 0x61, 0x61, 0x9b, 0x78, 0x16, - 0xd9, 0xc0, 0x0d, 0x67, 0xa3, 0x79, 0x6b, 0x23, 0x20, 0x7e, 0xd3, 0xb1, 0x88, 0x79, 0x42, 0xfd, - 0x63, 0xe2, 0x57, 0x1a, 0x3e, 0x65, 0x14, 0x5d, 0x88, 0x90, 0x15, 0x89, 0xac, 0xe0, 0x86, 0x53, - 0x69, 0xde, 0x2a, 0xe9, 0x47, 0x94, 0x1e, 0xb9, 0x64, 0x83, 0x43, 0x0e, 0xc2, 0xc3, 0x0d, 0x3b, - 0xf4, 0x31, 0x73, 0xa8, 0x27, 0x8c, 0x4a, 0x57, 0xbb, 0xe7, 0x99, 0x53, 0x27, 0x01, 0xc3, 0xf5, - 0x86, 0x04, 0x5c, 0xb6, 0x49, 0x83, 0x78, 0x11, 0xa7, 0x43, 0x82, 0x8d, 0x23, 0x7a, 0x44, 0xf9, - 0xb8, 0x9c, 0x5d, 0x53, 0x79, 0x67, 0xd1, 0x7a, 0x3d, 0x59, 0xa0, 0xac, 0x42, 0xd8, 0xc4, 0x72, - 0x82, 0xb6, 0x13, 0xd7, 0x54, 0x98, 0x9a, 0x13, 0x30, 0xea, 0xb7, 0x62, 0x3f, 0x55, 0x90, 0x67, - 0x21, 0x49, 0x00, 0xca, 0x75, 0x18, 0x0e, 0x8e, 0x5d, 0x27, 0x60, 0x59, 0x98, 0x28, 0x86, 0x87, - 0x2e, 0x3d, 0x11, 0x98, 0xf2, 0xdf, 0x34, 0x28, 0xed, 0x53, 0xd7, 0x7d, 0x48, 0xfd, 0x5d, 0xe9, - 0x65, 0x15, 0x07, 0xc7, 0x06, 0x79, 0x16, 0x92, 0x80, 0xa1, 0x8b, 0x30, 0x63, 0xd3, 0x3a, 0x76, - 0xbc, 0xa2, 0xb6, 0xa6, 0xad, 0xe7, 0x0d, 0xf9, 0x0b, 0xdd, 0x83, 0x7c, 0xb4, 0x98, 0x19, 0xad, - 0x56, 0x9c, 0x5c, 0xd3, 0xd6, 0xe7, 0x37, 0xaf, 0x54, 0x14, 0x09, 0xa9, 0x44, 0x64, 0x8f, 0x9d, - 0x80, 0x19, 0x73, 0x4c, 0xfe, 0x85, 0x4a, 0x30, 0xe7, 0xd8, 0xc4, 0x63, 0x0e, 0x6b, 0x15, 0xa7, - 0x38, 0x6b, 0xf2, 0x1b, 0xdd, 0x84, 0xe5, 0x03, 0xc7, 0xc3, 0x7e, 0xcb, 0xb4, 0x6a, 0xc4, 0x3a, - 0x0e, 0xc2, 0x7a, 0x71, 0x9a, 0x43, 0x96, 0xc4, 0xf0, 0x8e, 0x1c, 0x2d, 0xff, 0x63, 0x16, 0x2e, - 0x29, 0xfd, 0x0e, 0x1a, 0xd4, 0x0b, 0x08, 0xba, 0x02, 0xc0, 0x1d, 0x64, 0xf4, 0x98, 0x08, 0xe7, - 0x17, 0x0c, 0xee, 0x72, 0x35, 0x1a, 0x40, 0x1f, 0x01, 0x8a, 0x03, 0x61, 0x92, 0xe7, 0xc4, 0x0a, - 0xa3, 0x1a, 0x91, 0x1b, 0xb9, 0xa1, 0xdc, 0xc8, 0x27, 0x12, 0xfe, 0x20, 0x46, 0x1b, 0x2b, 0x27, - 0xdd, 0x43, 0xe8, 0x21, 0x2c, 0x26, 0xb4, 0xac, 0xd5, 0x20, 0x7c, 0x7f, 0xf3, 0x9b, 0xd7, 0x32, - 0x19, 0xab, 0xad, 0x06, 0x31, 0x16, 0x4e, 0x52, 0xbf, 0xd0, 0x5d, 0x58, 0x6d, 0xf8, 0xa4, 0xe9, - 0xd0, 0x30, 0x30, 0x03, 0x86, 0x7d, 0x46, 0x6c, 0x93, 0x34, 0x89, 0xc7, 0x4c, 0xc7, 0xe6, 0x01, - 0x99, 0x32, 0x2e, 0xc6, 0x80, 0x27, 0x62, 0xfe, 0x41, 0x34, 0xbd, 0x67, 0xa3, 0x75, 0x28, 0xf4, - 0x58, 0xe4, 0xb8, 0xc5, 0x52, 0xd0, 0x89, 0x2c, 0xc2, 0x2c, 0x66, 0x8c, 0xd4, 0x1b, 0xac, 0x38, - 0xc3, 0x01, 0xf1, 0x4f, 0xf4, 0x0e, 0xa0, 0x03, 0x6c, 0x1d, 0xbb, 0xf4, 0xc8, 0xb4, 0x68, 0xe8, - 0x31, 0xb3, 0xe6, 0x78, 0xac, 0x38, 0xcb, 0x41, 0x05, 0x39, 0xb3, 0x13, 0x4d, 0x3c, 0x72, 0x3c, - 0x86, 0x6e, 0xc3, 0xac, 0x2c, 0xde, 0xe2, 0x1c, 0xdf, 0xee, 0x65, 0xe5, 0x76, 0x1f, 0x09, 0x8c, - 0x11, 0x83, 0xd1, 0x0d, 0x58, 0xf6, 0xc8, 0x73, 0x66, 0x36, 0xf0, 0x11, 0x91, 0x79, 0xca, 0xf3, - 0x3c, 0x2d, 0x46, 0xc3, 0xfb, 0xf8, 0x88, 0x88, 0x5c, 0xdd, 0x81, 0x1c, 0xaf, 0xfc, 0x22, 0x70, - 0xf6, 0x72, 0x66, 0x30, 0x3f, 0x8c, 0x90, 0x86, 0x30, 0x40, 0x9f, 0xc2, 0xe5, 0xde, 0x2c, 0x9b, - 0xed, 0xc2, 0x9d, 0x1f, 0xa6, 0x70, 0x57, 0x7b, 0xd2, 0x1c, 0x4f, 0xa1, 0x1f, 0xc0, 0x52, 0x60, - 0xd5, 0x88, 0x1d, 0xba, 0xc4, 0x36, 0xa3, 0x4e, 0x52, 0x5c, 0xe0, 0x8c, 0xa5, 0x8a, 0x68, 0x33, - 0x95, 0xb8, 0xcd, 0x54, 0xaa, 0x71, 0x9b, 0xd9, 0x9e, 0x7e, 0xf1, 0xef, 0xab, 0x9a, 0xb1, 0x98, - 0xd8, 0x45, 0x33, 0x68, 0x07, 0x16, 0xe2, 0xa4, 0x71, 0x9a, 0xc5, 0x21, 0x69, 0xe6, 0xa5, 0x15, - 0x27, 0xf9, 0x04, 0x66, 0xa3, 0x6d, 0x3b, 0x24, 0x28, 0x2e, 0xad, 0x4d, 0xad, 0xcf, 0x6f, 0x7e, - 0xa0, 0xdc, 0x58, 0xc6, 0xa9, 0xa9, 0x7c, 0x28, 0xec, 0x1f, 0x78, 0x2c, 0x4a, 0x94, 0x64, 0x2b, - 0x7d, 0x0a, 0x0b, 0xe9, 0x09, 0x54, 0x80, 0xa9, 0x63, 0xd2, 0x92, 0x1d, 0x21, 0xfa, 0x33, 0x4a, - 0x51, 0x13, 0xbb, 0x21, 0x91, 0x27, 0x68, 0xa8, 0x14, 0x71, 0x83, 0x7b, 0x93, 0x77, 0xb4, 0xf2, - 0x5f, 0x72, 0xf0, 0x96, 0x70, 0xc1, 0x4e, 0x7b, 0xb5, 0x43, 0xeb, 0x0d, 0x97, 0x30, 0x62, 0xc7, - 0xcd, 0x68, 0xc0, 0x99, 0xbe, 0x0f, 0xf9, 0xb8, 0xd1, 0x06, 0xc5, 0x49, 0x1e, 0x01, 0x75, 0x6a, - 0xe3, 0x45, 0x8c, 0x36, 0x1e, 0x7d, 0x0b, 0x56, 0xda, 0x15, 0x62, 0x51, 0x8f, 0x91, 0xe7, 0x8c, - 0x9f, 0xde, 0x05, 0xa3, 0x90, 0x4c, 0xec, 0x88, 0xf1, 0x8e, 0x0e, 0x36, 0xdd, 0xd5, 0xc1, 0x7e, - 0x0a, 0x2b, 0x01, 0x73, 0xac, 0xe3, 0x96, 0x89, 0x19, 0xf3, 0x9d, 0x83, 0x90, 0x91, 0x80, 0x1f, - 0xc0, 0xf9, 0xcd, 0x8a, 0xd2, 0x9b, 0x27, 0x1c, 0x9d, 0x14, 0xd7, 0x56, 0x62, 0x65, 0x14, 0x04, - 0x51, 0x7b, 0x04, 0xbd, 0x07, 0x45, 0x9f, 0xb0, 0xd0, 0xf7, 0x4c, 0x8f, 0x9c, 0x98, 0xb1, 0xf7, - 0xbc, 0xa2, 0xf9, 0x19, 0x9e, 0x33, 0xbe, 0x26, 0xe6, 0x7f, 0x4c, 0x4e, 0xd2, 0xa1, 0x44, 0xdb, - 0xa0, 0x1f, 0x52, 0xdf, 0x22, 0xa6, 0xe5, 0x13, 0xcc, 0x88, 0xc2, 0x7c, 0x96, 0x9b, 0x97, 0x38, - 0x6a, 0x87, 0x83, 0xba, 0x39, 0x14, 0xbd, 0x79, 0x4e, 0xd5, 0x9b, 0x11, 0x85, 0x45, 0x7e, 0xfe, - 0x4c, 0x9f, 0x04, 0xa1, 0xcb, 0x82, 0x62, 0x9e, 0x27, 0xe3, 0x87, 0xca, 0xed, 0x0f, 0x91, 0xf8, - 0x8a, 0xa8, 0x18, 0x41, 0x26, 0x6a, 0x73, 0xe1, 0x59, 0x6a, 0xa8, 0xe4, 0xc0, 0x4a, 0x0f, 0x44, - 0x51, 0xa5, 0xdf, 0xeb, 0xac, 0xd2, 0xf5, 0x21, 0xaa, 0x94, 0x13, 0xa6, 0x6b, 0xf5, 0xe5, 0x14, - 0x7c, 0x23, 0xdb, 0x65, 0x79, 0x01, 0x7d, 0x04, 0x8b, 0x9d, 0x01, 0xd6, 0xf8, 0xa2, 0xdf, 0x1e, - 0xf5, 0x4c, 0x1a, 0x0b, 0x76, 0x3a, 0x09, 0x2f, 0x35, 0xd0, 0xb1, 0xc5, 0x9c, 0xa6, 0xc3, 0x1c, - 0x12, 0x98, 0x8c, 0x9a, 0xb6, 0x13, 0x34, 0x30, 0xb3, 0x6a, 0xa6, 0x4b, 0x2d, 0xec, 0xba, 0x2d, - 0x59, 0xfa, 0x4f, 0xc7, 0x88, 0xb6, 0xec, 0x02, 0x5b, 0x09, 0x7f, 0x95, 0xee, 0x4a, 0xf6, 0xc7, - 0x82, 0x5c, 0x44, 0xff, 0x12, 0xee, 0x8f, 0x28, 0xfd, 0x1c, 0xd6, 0x06, 0x11, 0x28, 0x72, 0xb3, - 0xdb, 0x99, 0x1b, 0xf5, 0x51, 0x91, 0xbc, 0x2d, 0xce, 0x15, 0x13, 0xef, 0x79, 0x87, 0x34, 0x9d, - 0xa1, 0x5f, 0x4e, 0xc2, 0x9a, 0x62, 0x9b, 0x0f, 0xb1, 0xe3, 0x0e, 0xdd, 0x4a, 0xb6, 0x21, 0x67, - 0xe1, 0x30, 0x10, 0xde, 0x2c, 0x6d, 0xbe, 0x93, 0xd9, 0x46, 0xda, 0xec, 0x3b, 0x91, 0x8d, 0x21, - 0x4c, 0xa3, 0x6b, 0xd1, 0x26, 0x0c, 0x3b, 0x6e, 0x20, 0x55, 0x80, 0xfa, 0x5a, 0xdc, 0xc7, 0x2d, - 0x97, 0x62, 0xdb, 0x88, 0xc1, 0x99, 0xcd, 0x45, 0x71, 0x04, 0x73, 0x4a, 0x79, 0xf4, 0x16, 0x5c, - 0xcb, 0x88, 0x81, 0xc8, 0x73, 0xf9, 0xb4, 0xad, 0xfd, 0xe2, 0xc8, 0x9e, 0xa7, 0xf6, 0x7b, 0x02, - 0x28, 0xe1, 0x35, 0xeb, 0x84, 0x61, 0x1b, 0x33, 0xcc, 0x43, 0x30, 0xbf, 0x79, 0x3d, 0x73, 0x81, - 0x1f, 0x49, 0xb0, 0x51, 0x60, 0x5d, 0x23, 0xe5, 0xbf, 0xce, 0x25, 0x3a, 0xb1, 0x73, 0x8f, 0xe7, - 0xaa, 0x13, 0xaf, 0xc2, 0xbc, 0x3c, 0x42, 0xad, 0x48, 0x9f, 0x89, 0x48, 0x40, 0x3c, 0xb4, 0x67, - 0x47, 0x42, 0x32, 0x01, 0x70, 0x21, 0x39, 0x9d, 0x21, 0x24, 0x93, 0x8d, 0x71, 0x21, 0x89, 0x53, - 0xbf, 0xd0, 0x26, 0xe4, 0x1c, 0xaf, 0x11, 0x32, 0x79, 0x03, 0x65, 0x97, 0xa0, 0x80, 0x2a, 0x54, - 0xcd, 0xcc, 0xff, 0x47, 0xd5, 0xcc, 0x8e, 0xa3, 0x6a, 0x9e, 0xc2, 0x6a, 0xcc, 0x1a, 0x75, 0x3b, - 0xcb, 0xa5, 0x01, 0xe1, 0x74, 0x34, 0x64, 0x52, 0x6f, 0xae, 0xf6, 0x30, 0xee, 0xca, 0xaf, 0xbe, - 0xed, 0xe9, 0x3f, 0x44, 0x84, 0x17, 0x63, 0x86, 0x2a, 0xdd, 0x89, 0xec, 0xab, 0xc2, 0x1c, 0x55, - 0xe1, 0x22, 0x5f, 0xaa, 0x97, 0x38, 0x3f, 0x1c, 0xf1, 0x05, 0x6e, 0xde, 0xc5, 0xfa, 0x18, 0x56, - 0x6a, 0x04, 0xfb, 0xec, 0x80, 0x60, 0x96, 0x10, 0xc2, 0x70, 0x84, 0x85, 0xc4, 0x32, 0x66, 0x4b, - 0xa9, 0xf4, 0x48, 0xae, 0xe6, 0xda, 0x2a, 0xdd, 0x06, 0xbd, 0x33, 0x4f, 0x26, 0x3d, 0x34, 0x59, - 0xcd, 0x09, 0xcc, 0xd8, 0x60, 0x58, 0x35, 0x5a, 0xea, 0xc8, 0xdb, 0x4f, 0x0e, 0xab, 0x35, 0x27, - 0xd8, 0x92, 0xab, 0xec, 0xa5, 0x77, 0x13, 0x37, 0xb4, 0xc5, 0x21, 0xaa, 0xa9, 0xbd, 0x95, 0x5d, - 0xd9, 0xd9, 0x7a, 0xbe, 0x8e, 0x96, 0xc6, 0xfb, 0x3a, 0xba, 0x09, 0xcb, 0x09, 0x8f, 0xec, 0x50, - 0xcb, 0xa2, 0x0b, 0xc6, 0xc3, 0xbb, 0xa2, 0x53, 0xbd, 0x0b, 0x33, 0x35, 0x82, 0x6d, 0xe2, 0x17, - 0x0b, 0x7c, 0xa5, 0x4b, 0xea, 0x0f, 0x13, 0x0e, 0x31, 0x24, 0xb4, 0xfc, 0xb9, 0x96, 0xa8, 0xd1, - 0x74, 0xc7, 0x18, 0x55, 0x8d, 0x7e, 0x07, 0x66, 0x84, 0xfc, 0x91, 0xdd, 0x22, 0x3b, 0x58, 0x12, - 0x9b, 0xd5, 0x1f, 0xcb, 0x37, 0x12, 0xe5, 0xd1, 0xc7, 0x2f, 0xd9, 0xd6, 0x7f, 0x35, 0x09, 0x37, - 0xb3, 0x80, 0xdb, 0xad, 0xbd, 0xdd, 0x41, 0x3d, 0xfe, 0xbc, 0xfa, 0x5e, 0x3b, 0x6a, 0xd3, 0x63, - 0x46, 0x2d, 0xd7, 0x15, 0xb5, 0x6f, 0xc2, 0xfa, 0xe0, 0x60, 0xc8, 0xc8, 0xfd, 0x4e, 0x4b, 0xa4, - 0x43, 0x1a, 0x3c, 0x92, 0x74, 0xb8, 0x0d, 0xb3, 0x87, 0xd8, 0x71, 0x43, 0x9f, 0x64, 0x26, 0xfe, - 0xa1, 0xc0, 0x18, 0x31, 0x38, 0x33, 0xf3, 0xed, 0xdb, 0x5c, 0xe5, 0x96, 0x74, 0xfe, 0xb3, 0x49, - 0x65, 0x7d, 0x08, 0xd4, 0x9b, 0x9c, 0xf3, 0x54, 0xc4, 0xa6, 0xc7, 0x8d, 0x58, 0x77, 0xd6, 0x6f, - 0xc2, 0xf5, 0x01, 0xb1, 0x90, 0x51, 0xfb, 0xbd, 0x06, 0x65, 0x55, 0x7d, 0x60, 0xcf, 0x22, 0x23, - 0x25, 0x3d, 0x6e, 0x8d, 0x93, 0xe3, 0x6a, 0xbd, 0xee, 0xa4, 0x5f, 0x57, 0xb7, 0xa1, 0xc4, 0x31, - 0xb9, 0x81, 0x5f, 0x4f, 0xc2, 0x8d, 0x0c, 0xdc, 0x1b, 0x9e, 0xf8, 0x38, 0x6a, 0xd3, 0xe3, 0x46, - 0xad, 0x3b, 0xf1, 0x6f, 0xab, 0x7b, 0x5f, 0x47, 0x34, 0x3a, 0x52, 0x6f, 0x51, 0xbf, 0x03, 0xfa, - 0x28, 0xbe, 0xb5, 0xce, 0x31, 0xf5, 0xfb, 0x51, 0xea, 0x33, 0x1c, 0x93, 0xda, 0xf5, 0x6d, 0x28, - 0x58, 0x7c, 0x63, 0xa6, 0x2f, 0x7c, 0x25, 0x36, 0xf7, 0x6f, 0xce, 0x58, 0x16, 0xe3, 0x46, 0x3c, - 0x2c, 0xab, 0xa4, 0x2f, 0xe5, 0x57, 0xad, 0x4a, 0xaa, 0x51, 0x95, 0x0c, 0x88, 0xc6, 0xe8, 0x41, - 0xfe, 0x57, 0xfb, 0xfa, 0xe0, 0xaf, 0x07, 0xe3, 0xc8, 0x86, 0xef, 0x77, 0xc9, 0x86, 0xe1, 0x1f, - 0x29, 0xe2, 0xcb, 0xf0, 0x63, 0xb8, 0x20, 0xfe, 0x4f, 0x62, 0x36, 0x89, 0xcf, 0x9f, 0x1f, 0x1c, - 0xef, 0x90, 0xca, 0x6f, 0xd0, 0xfe, 0x89, 0x22, 0xfe, 0xc7, 0x02, 0xce, 0xbf, 0xa7, 0x57, 0x4e, - 0xba, 0x87, 0x52, 0x97, 0x90, 0x6a, 0x73, 0xf2, 0x4c, 0xfd, 0x53, 0x8b, 0x1a, 0x2f, 0xdf, 0xa9, - 0x38, 0x73, 0xbd, 0x35, 0x70, 0x3e, 0x65, 0x96, 0xf5, 0xe1, 0x79, 0x05, 0x40, 0xe6, 0x36, 0x7e, - 0x5e, 0xcf, 0x1b, 0x79, 0x39, 0xb2, 0x67, 0x97, 0xd7, 0xa3, 0xa3, 0x93, 0xbd, 0x25, 0xb1, 0xfb, - 0xcd, 0xdf, 0x14, 0x20, 0x2f, 0x62, 0xb9, 0xb5, 0xbf, 0x87, 0x9e, 0xc3, 0x05, 0xc5, 0xbb, 0x0e, - 0xda, 0x18, 0xfe, 0x05, 0x88, 0x2f, 0x5a, 0x1a, 0xf9, 0xc9, 0x08, 0xfd, 0x56, 0x83, 0xcb, 0x59, - 0x2f, 0x3d, 0xe8, 0xce, 0xb8, 0x4f, 0x71, 0xa5, 0xbb, 0x63, 0x3f, 0x2b, 0xa1, 0xcf, 0x34, 0x58, - 0xed, 0xfb, 0x28, 0x81, 0xbe, 0x3b, 0x2c, 0x71, 0x87, 0x1a, 0x2b, 0xdd, 0x1e, 0xd5, 0x4c, 0x3a, - 0xd3, 0x4e, 0x4e, 0xba, 0x05, 0x64, 0x27, 0x47, 0xf1, 0x48, 0x92, 0x9d, 0x1c, 0xe5, 0x8b, 0x43, - 0x2a, 0x39, 0x4a, 0x45, 0x9a, 0x9d, 0x9c, 0xac, 0x4f, 0x92, 0xec, 0xe4, 0x64, 0x7e, 0x34, 0xa0, - 0x97, 0x6a, 0xe9, 0xdb, 0xa1, 0x93, 0xd1, 0xfb, 0x23, 0xf3, 0xa7, 0x2e, 0x96, 0xd2, 0x07, 0x63, - 0x5a, 0xf7, 0x96, 0x4f, 0xaf, 0xa6, 0xcb, 0x2e, 0x9f, 0xbe, 0x62, 0x3e, 0xbb, 0x7c, 0xfa, 0x8b, - 0x6d, 0xf4, 0xb9, 0x06, 0x57, 0x32, 0x05, 0x26, 0xba, 0x3b, 0x1a, 0x73, 0x3a, 0x50, 0xf7, 0xc6, - 0x31, 0x95, 0x8e, 0xbd, 0xd0, 0xe0, 0x52, 0x86, 0x00, 0x42, 0xef, 0x0d, 0x9d, 0x84, 0x4e, 0x05, - 0x5c, 0xba, 0x33, 0xba, 0xa1, 0x74, 0xe9, 0x4f, 0x1a, 0x5c, 0x1d, 0xa0, 0xc9, 0xd0, 0xfd, 0x51, - 0xd9, 0xd3, 0xf1, 0x7a, 0x7f, 0x3c, 0xe3, 0x8e, 0x88, 0xf5, 0x15, 0x03, 0x7d, 0x23, 0x36, 0x48, - 0x38, 0xf6, 0x8d, 0xd8, 0x60, 0x61, 0x27, 0x22, 0x96, 0xa9, 0x4f, 0xfa, 0x46, 0x6c, 0x18, 0x8d, - 0xd7, 0x37, 0x62, 0xc3, 0x49, 0xa2, 0xd4, 0x49, 0xec, 0x95, 0x02, 0xd9, 0x27, 0xb1, 0xaf, 0x2e, - 0xca, 0x3e, 0x89, 0xfd, 0x15, 0x07, 0xfa, 0xa3, 0x06, 0x7a, 0xf6, 0xf5, 0x8c, 0xfa, 0x9d, 0xa7, - 0x21, 0x64, 0x4a, 0xe9, 0xfe, 0x58, 0xb6, 0xc2, 0xb7, 0xed, 0x9f, 0xbd, 0x3a, 0xd5, 0x27, 0xbe, - 0x38, 0xd5, 0x27, 0xbe, 0x3c, 0xd5, 0xb5, 0x5f, 0x9c, 0xe9, 0xda, 0x9f, 0xcf, 0x74, 0xed, 0xef, - 0x67, 0xba, 0xf6, 0xea, 0x4c, 0xd7, 0xfe, 0x73, 0xa6, 0x6b, 0xff, 0x3d, 0xd3, 0x27, 0xbe, 0x3c, - 0xd3, 0xb5, 0x17, 0xaf, 0xf5, 0x89, 0x57, 0xaf, 0xf5, 0x89, 0x2f, 0x5e, 0xeb, 0x13, 0xf0, 0x75, - 0x8b, 0xd6, 0x55, 0xab, 0x6e, 0xcf, 0x6d, 0x35, 0x9c, 0x7d, 0x9f, 0x32, 0xba, 0xaf, 0x3d, 0xcd, - 0xe1, 0x86, 0xd3, 0xbc, 0x75, 0x30, 0xc3, 0xdf, 0xf4, 0xde, 0xfd, 0x5f, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x61, 0xd9, 0x0f, 0x6c, 0x37, 0x23, 0x00, 0x00, -} - -func (this *PollForDecisionTaskRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*PollForDecisionTaskRequest) - if !ok { - that2, ok := that.(PollForDecisionTaskRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if !this.TaskList.Equal(that1.TaskList) { - return false - } - if this.Identity != that1.Identity { - return false - } - if this.BinaryChecksum != that1.BinaryChecksum { - return false - } - return true -} -func (this *PollForDecisionTaskResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } +func (*RequestCancelWorkflowExecutionRequest) ProtoMessage() {} - that1, ok := that.(*PollForDecisionTaskResponse) - if !ok { - that2, ok := that.(PollForDecisionTaskResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !bytes.Equal(this.TaskToken, that1.TaskToken) { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if !this.WorkflowType.Equal(that1.WorkflowType) { - return false - } - if this.PreviousStartedEventId != that1.PreviousStartedEventId { - return false - } - if this.StartedEventId != that1.StartedEventId { - return false - } - if this.Attempt != that1.Attempt { - return false - } - if this.BacklogCountHint != that1.BacklogCountHint { - return false - } - if !this.History.Equal(that1.History) { - return false - } - if !bytes.Equal(this.NextPageToken, that1.NextPageToken) { - return false - } - if !this.Query.Equal(that1.Query) { - return false - } - if !this.WorkflowExecutionTaskList.Equal(that1.WorkflowExecutionTaskList) { - return false - } - if that1.ScheduledTime == nil { - if this.ScheduledTime != nil { - return false +func (x *RequestCancelWorkflowExecutionRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - } else if !this.ScheduledTime.Equal(*that1.ScheduledTime) { - return false + return ms } - if that1.StartedTime == nil { - if this.StartedTime != nil { - return false - } - } else if !this.StartedTime.Equal(*that1.StartedTime) { - return false - } - if len(this.Queries) != len(that1.Queries) { - return false - } - for i := range this.Queries { - if !this.Queries[i].Equal(that1.Queries[i]) { - return false - } - } - return true + return mi.MessageOf(x) } -func (this *RespondDecisionTaskCompletedRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*RespondDecisionTaskCompletedRequest) - if !ok { - that2, ok := that.(RespondDecisionTaskCompletedRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !bytes.Equal(this.TaskToken, that1.TaskToken) { - return false - } - if len(this.Decisions) != len(that1.Decisions) { - return false - } - for i := range this.Decisions { - if !this.Decisions[i].Equal(that1.Decisions[i]) { - return false - } - } - if !bytes.Equal(this.ExecutionContext, that1.ExecutionContext) { - return false - } - if this.Identity != that1.Identity { - return false - } - if !this.StickyAttributes.Equal(that1.StickyAttributes) { - return false - } - if this.ReturnNewDecisionTask != that1.ReturnNewDecisionTask { - return false - } - if this.ForceCreateNewDecisionTask != that1.ForceCreateNewDecisionTask { - return false - } - if this.BinaryChecksum != that1.BinaryChecksum { - return false - } - if len(this.QueryResults) != len(that1.QueryResults) { - return false - } - for i := range this.QueryResults { - if !this.QueryResults[i].Equal(that1.QueryResults[i]) { - return false - } - } - return true +// Deprecated: Use RequestCancelWorkflowExecutionRequest.ProtoReflect.Descriptor instead. +func (*RequestCancelWorkflowExecutionRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_worker_proto_rawDescGZIP(), []int{26} } -func (this *RespondDecisionTaskCompletedResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*RespondDecisionTaskCompletedResponse) - if !ok { - that2, ok := that.(RespondDecisionTaskCompletedResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.DecisionTask.Equal(that1.DecisionTask) { - return false - } - if len(this.ActivitiesToDispatchLocally) != len(that1.ActivitiesToDispatchLocally) { - return false +func (x *RequestCancelWorkflowExecutionRequest) GetDomain() string { + if x != nil { + return x.Domain } - for i := range this.ActivitiesToDispatchLocally { - if !this.ActivitiesToDispatchLocally[i].Equal(that1.ActivitiesToDispatchLocally[i]) { - return false - } - } - return true + return "" } -func (this *RespondDecisionTaskFailedRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*RespondDecisionTaskFailedRequest) - if !ok { - that2, ok := that.(RespondDecisionTaskFailedRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !bytes.Equal(this.TaskToken, that1.TaskToken) { - return false - } - if this.Cause != that1.Cause { - return false +func (x *RequestCancelWorkflowExecutionRequest) GetWorkflowExecution() *WorkflowExecution { + if x != nil { + return x.WorkflowExecution } - if !this.Details.Equal(that1.Details) { - return false - } - if this.Identity != that1.Identity { - return false - } - if this.BinaryChecksum != that1.BinaryChecksum { - return false - } - return true + return nil } -func (this *RespondDecisionTaskFailedResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*RespondDecisionTaskFailedResponse) - if !ok { - that2, ok := that.(RespondDecisionTaskFailedResponse) - if ok { - that1 = &that2 - } else { - return false - } +func (x *RequestCancelWorkflowExecutionRequest) GetIdentity() string { + if x != nil { + return x.Identity } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true + return "" } -func (this *PollForActivityTaskRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*PollForActivityTaskRequest) - if !ok { - that2, ok := that.(PollForActivityTaskRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false +func (x *RequestCancelWorkflowExecutionRequest) GetRequestId() string { + if x != nil { + return x.RequestId } - if !this.TaskList.Equal(that1.TaskList) { - return false - } - if this.Identity != that1.Identity { - return false - } - if !this.TaskListMetadata.Equal(that1.TaskListMetadata) { - return false - } - return true + return "" } -func (this *PollForActivityTaskResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*PollForActivityTaskResponse) - if !ok { - that2, ok := that.(PollForActivityTaskResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !bytes.Equal(this.TaskToken, that1.TaskToken) { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if this.ActivityId != that1.ActivityId { - return false - } - if !this.ActivityType.Equal(that1.ActivityType) { - return false - } - if !this.Input.Equal(that1.Input) { - return false - } - if that1.ScheduledTime == nil { - if this.ScheduledTime != nil { - return false - } - } else if !this.ScheduledTime.Equal(*that1.ScheduledTime) { - return false - } - if that1.StartedTime == nil { - if this.StartedTime != nil { - return false - } - } else if !this.StartedTime.Equal(*that1.StartedTime) { - return false - } - if this.ScheduleToCloseTimeout != nil && that1.ScheduleToCloseTimeout != nil { - if *this.ScheduleToCloseTimeout != *that1.ScheduleToCloseTimeout { - return false - } - } else if this.ScheduleToCloseTimeout != nil { - return false - } else if that1.ScheduleToCloseTimeout != nil { - return false - } - if this.StartToCloseTimeout != nil && that1.StartToCloseTimeout != nil { - if *this.StartToCloseTimeout != *that1.StartToCloseTimeout { - return false - } - } else if this.StartToCloseTimeout != nil { - return false - } else if that1.StartToCloseTimeout != nil { - return false - } - if this.HeartbeatTimeout != nil && that1.HeartbeatTimeout != nil { - if *this.HeartbeatTimeout != *that1.HeartbeatTimeout { - return false - } - } else if this.HeartbeatTimeout != nil { - return false - } else if that1.HeartbeatTimeout != nil { - return false - } - if this.Attempt != that1.Attempt { - return false - } - if that1.ScheduledTimeOfThisAttempt == nil { - if this.ScheduledTimeOfThisAttempt != nil { - return false - } - } else if !this.ScheduledTimeOfThisAttempt.Equal(*that1.ScheduledTimeOfThisAttempt) { - return false - } - if !this.HeartbeatDetails.Equal(that1.HeartbeatDetails) { - return false - } - if !this.WorkflowType.Equal(that1.WorkflowType) { - return false - } - if this.WorkflowDomain != that1.WorkflowDomain { - return false - } - if !this.Header.Equal(that1.Header) { - return false - } - return true +type RequestCancelWorkflowExecutionResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (this *RespondActivityTaskCompletedRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*RespondActivityTaskCompletedRequest) - if !ok { - that2, ok := that.(RespondActivityTaskCompletedRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false +func (x *RequestCancelWorkflowExecutionResponse) Reset() { + *x = RequestCancelWorkflowExecutionResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if !bytes.Equal(this.TaskToken, that1.TaskToken) { - return false - } - if !this.Result.Equal(that1.Result) { - return false - } - if this.Identity != that1.Identity { - return false - } - return true } -func (this *RespondActivityTaskCompletedResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*RespondActivityTaskCompletedResponse) - if !ok { - that2, ok := that.(RespondActivityTaskCompletedResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true +func (x *RequestCancelWorkflowExecutionResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (this *RespondActivityTaskCompletedByIDRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*RespondActivityTaskCompletedByIDRequest) - if !ok { - that2, ok := that.(RespondActivityTaskCompletedByIDRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if this.ActivityId != that1.ActivityId { - return false - } - if !this.Result.Equal(that1.Result) { - return false - } - if this.Identity != that1.Identity { - return false - } - return true -} -func (this *RespondActivityTaskCompletedByIDResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } +func (*RequestCancelWorkflowExecutionResponse) ProtoMessage() {} - that1, ok := that.(*RespondActivityTaskCompletedByIDResponse) - if !ok { - that2, ok := that.(RespondActivityTaskCompletedByIDResponse) - if ok { - that1 = &that2 - } else { - return false +func (x *RequestCancelWorkflowExecutionResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_worker_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true + return mi.MessageOf(x) } -func (this *RespondActivityTaskFailedRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*RespondActivityTaskFailedRequest) - if !ok { - that2, ok := that.(RespondActivityTaskFailedRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !bytes.Equal(this.TaskToken, that1.TaskToken) { - return false - } - if !this.Failure.Equal(that1.Failure) { - return false - } - if this.Identity != that1.Identity { - return false - } - return true +// Deprecated: Use RequestCancelWorkflowExecutionResponse.ProtoReflect.Descriptor instead. +func (*RequestCancelWorkflowExecutionResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_worker_proto_rawDescGZIP(), []int{27} +} + +var File_uber_cadence_api_v1_service_worker_proto protoreflect.FileDescriptor + +var file_uber_cadence_api_v1_service_worker_proto_rawDesc = []byte{ + 0x0a, 0x28, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x77, 0x6f, + 0x72, 0x6b, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x1a, + 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x20, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x22, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x68, 0x69, 0x73, 0x74, + 0x6f, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x75, 0x62, 0x65, 0x72, 0x2f, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x71, + 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x75, 0x62, 0x65, 0x72, + 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, + 0x74, 0x61, 0x73, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, + 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x22, 0xb5, 0x01, 0x0a, 0x1a, 0x50, 0x6f, 0x6c, 0x6c, 0x46, 0x6f, 0x72, 0x44, 0x65, + 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x3a, 0x0a, 0x09, 0x74, 0x61, 0x73, + 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x08, 0x74, 0x61, 0x73, + 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, + 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, + 0x79, 0x12, 0x27, 0x0a, 0x0f, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x5f, 0x63, 0x68, 0x65, 0x63, + 0x6b, 0x73, 0x75, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x62, 0x69, 0x6e, 0x61, + 0x72, 0x79, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x22, 0xbd, 0x07, 0x0a, 0x1b, 0x50, + 0x6f, 0x6c, 0x6c, 0x46, 0x6f, 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, + 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, + 0x73, 0x6b, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, + 0x74, 0x61, 0x73, 0x6b, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x77, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x46, 0x0a, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x77, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x12, 0x39, 0x0a, 0x19, 0x70, 0x72, 0x65, 0x76, + 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x16, 0x70, 0x72, 0x65, + 0x76, 0x69, 0x6f, 0x75, 0x73, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x73, + 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x18, 0x0a, + 0x07, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, + 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x12, 0x2c, 0x0a, 0x12, 0x62, 0x61, 0x63, 0x6b, 0x6c, + 0x6f, 0x67, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x68, 0x69, 0x6e, 0x74, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x10, 0x62, 0x61, 0x63, 0x6b, 0x6c, 0x6f, 0x67, 0x43, 0x6f, 0x75, 0x6e, + 0x74, 0x48, 0x69, 0x6e, 0x74, 0x12, 0x36, 0x0a, 0x07, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, + 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x69, 0x73, + 0x74, 0x6f, 0x72, 0x79, 0x52, 0x07, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x26, 0x0a, + 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x38, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x0a, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, + 0x5e, 0x0a, 0x1c, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, + 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, + 0x4c, 0x69, 0x73, 0x74, 0x52, 0x19, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, + 0x41, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, + 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x54, 0x69, + 0x6d, 0x65, 0x12, 0x3d, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x69, + 0x6d, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, + 0x65, 0x12, 0x57, 0x0a, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x0e, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x6c, 0x46, 0x6f, 0x72, + 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x1a, 0x5e, 0x0a, 0x0c, 0x51, 0x75, + 0x65, 0x72, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x38, 0x0a, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xa9, 0x05, 0x0a, 0x23, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, + 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x12, 0x3b, 0x0a, 0x09, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x69, 0x73, + 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2b, + 0x0a, 0x11, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x74, + 0x65, 0x78, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x10, 0x65, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x69, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x5b, 0x0a, 0x11, 0x73, 0x74, 0x69, 0x63, 0x6b, + 0x79, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x69, 0x63, 0x6b, 0x79, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x52, 0x10, 0x73, 0x74, 0x69, 0x63, 0x6b, 0x79, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x12, 0x37, 0x0a, 0x18, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x5f, 0x6e, + 0x65, 0x77, 0x5f, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x73, 0x6b, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x4e, 0x65, + 0x77, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x42, 0x0a, + 0x1e, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x6e, 0x65, + 0x77, 0x5f, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1a, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x4e, 0x65, 0x77, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, + 0x6b, 0x12, 0x27, 0x0a, 0x0f, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x5f, 0x63, 0x68, 0x65, 0x63, + 0x6b, 0x73, 0x75, 0x6d, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x62, 0x69, 0x6e, 0x61, + 0x72, 0x79, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x12, 0x6f, 0x0a, 0x0d, 0x71, 0x75, + 0x65, 0x72, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x4a, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x44, + 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, + 0x65, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x71, + 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x1a, 0x69, 0x0a, 0x11, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, + 0x65, 0x79, 0x12, 0x3e, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x28, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x9f, 0x03, 0x0a, 0x24, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x64, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, + 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x55, 0x0a, 0x0d, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x73, 0x6b, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, + 0x6c, 0x46, 0x6f, 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0c, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, + 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x9f, 0x01, 0x0a, 0x1e, 0x61, 0x63, 0x74, 0x69, 0x76, + 0x69, 0x74, 0x69, 0x65, 0x73, 0x5f, 0x74, 0x6f, 0x5f, 0x64, 0x69, 0x73, 0x70, 0x61, 0x74, 0x63, + 0x68, 0x5f, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x6c, 0x79, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x5a, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x44, 0x65, 0x63, + 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, + 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, + 0x69, 0x74, 0x69, 0x65, 0x73, 0x54, 0x6f, 0x44, 0x69, 0x73, 0x70, 0x61, 0x74, 0x63, 0x68, 0x4c, + 0x6f, 0x63, 0x61, 0x6c, 0x6c, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x1b, 0x61, 0x63, 0x74, + 0x69, 0x76, 0x69, 0x74, 0x69, 0x65, 0x73, 0x54, 0x6f, 0x44, 0x69, 0x73, 0x70, 0x61, 0x74, 0x63, + 0x68, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x6c, 0x79, 0x1a, 0x7e, 0x0a, 0x20, 0x41, 0x63, 0x74, 0x69, + 0x76, 0x69, 0x74, 0x69, 0x65, 0x73, 0x54, 0x6f, 0x44, 0x69, 0x73, 0x70, 0x61, 0x74, 0x63, 0x68, + 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x6c, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x44, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x4c, 0x6f, 0x63, 0x61, + 0x6c, 0x44, 0x69, 0x73, 0x70, 0x61, 0x74, 0x63, 0x68, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x82, 0x02, 0x0a, 0x20, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x64, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, + 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, + 0x0a, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x42, 0x0a, 0x05, + 0x63, 0x61, 0x75, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x46, 0x61, + 0x69, 0x6c, 0x65, 0x64, 0x43, 0x61, 0x75, 0x73, 0x65, 0x52, 0x05, 0x63, 0x61, 0x75, 0x73, 0x65, + 0x12, 0x36, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, + 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x74, 0x79, 0x12, 0x27, 0x0a, 0x0f, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x5f, 0x63, + 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x62, + 0x69, 0x6e, 0x61, 0x72, 0x79, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x22, 0x23, 0x0a, + 0x21, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x54, 0x61, 0x73, 0x6b, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0xe1, 0x01, 0x0a, 0x1a, 0x50, 0x6f, 0x6c, 0x6c, 0x46, 0x6f, 0x72, 0x41, 0x63, + 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x3a, 0x0a, 0x09, 0x74, 0x61, 0x73, + 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x08, 0x74, 0x61, 0x73, + 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, + 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, + 0x79, 0x12, 0x53, 0x0a, 0x12, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x6d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x52, 0x10, 0x74, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x8b, 0x08, 0x0a, 0x1b, 0x50, 0x6f, 0x6c, 0x6c, 0x46, + 0x6f, 0x72, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x74, 0x61, 0x73, 0x6b, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, + 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x46, 0x0a, + 0x0d, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, + 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, + 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x32, 0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, + 0x61, 0x64, 0x52, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x41, 0x0a, 0x0e, 0x73, 0x63, 0x68, + 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0d, 0x73, + 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3d, 0x0a, 0x0c, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0b, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x54, 0x0a, 0x19, 0x73, + 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x74, 0x6f, 0x5f, 0x63, 0x6c, 0x6f, 0x73, 0x65, + 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x16, 0x73, 0x63, 0x68, 0x65, 0x64, + 0x75, 0x6c, 0x65, 0x54, 0x6f, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, + 0x74, 0x12, 0x4e, 0x0a, 0x16, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x6f, 0x5f, 0x63, 0x6c, + 0x6f, 0x73, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x54, 0x6f, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, + 0x74, 0x12, 0x46, 0x0a, 0x11, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x5f, 0x74, + 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, + 0x61, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x74, 0x74, + 0x65, 0x6d, 0x70, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x61, 0x74, 0x74, 0x65, + 0x6d, 0x70, 0x74, 0x12, 0x5e, 0x0a, 0x1e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, + 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x74, 0x68, 0x69, 0x73, 0x5f, 0x61, 0x74, + 0x74, 0x65, 0x6d, 0x70, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x1a, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, + 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x4f, 0x66, 0x54, 0x68, 0x69, 0x73, 0x41, 0x74, 0x74, 0x65, + 0x6d, 0x70, 0x74, 0x12, 0x49, 0x0a, 0x11, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, + 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x10, 0x68, 0x65, + 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x46, + 0x0a, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, + 0x33, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1b, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, + 0x61, 0x64, 0x65, 0x72, 0x22, 0x96, 0x01, 0x0a, 0x23, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, + 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, + 0x6c, 0x65, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, + 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x34, 0x0a, 0x06, 0x72, + 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, + 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0x26, 0x0a, + 0x24, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, + 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x8b, 0x02, 0x0a, 0x27, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, + 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x77, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x49, + 0x64, 0x12, 0x34, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, + 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x74, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x74, 0x79, 0x22, 0x2a, 0x0a, 0x28, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x41, 0x63, + 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, + 0x74, 0x65, 0x64, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x95, 0x01, 0x0a, 0x20, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, + 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x6f, 0x6b, + 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x12, 0x36, 0x0a, 0x07, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x61, 0x69, 0x6c, 0x75, + 0x72, 0x65, 0x52, 0x07, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x69, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0x23, 0x0a, 0x21, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x46, 0x61, + 0x69, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x8a, 0x02, 0x0a, + 0x24, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, + 0x54, 0x61, 0x73, 0x6b, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x55, 0x0a, + 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, + 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, + 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x36, 0x0a, 0x07, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x61, 0x69, + 0x6c, 0x75, 0x72, 0x65, 0x52, 0x07, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x12, 0x1a, 0x0a, + 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0x27, 0x0a, 0x25, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, + 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x97, 0x01, 0x0a, 0x22, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x41, 0x63, + 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, + 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x73, + 0x6b, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x74, + 0x61, 0x73, 0x6b, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x36, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, + 0x69, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, + 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0x25, 0x0a, 0x23, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, + 0x61, 0x73, 0x6b, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x8c, 0x02, 0x0a, 0x26, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x41, + 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x61, 0x6e, 0x63, 0x65, + 0x6c, 0x65, 0x64, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, + 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, + 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x36, + 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x07, 0x64, + 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x74, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x74, 0x79, 0x22, 0x29, 0x0a, 0x27, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x41, 0x63, 0x74, + 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x65, + 0x64, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x97, 0x01, + 0x0a, 0x22, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, + 0x54, 0x61, 0x73, 0x6b, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x6f, 0x6b, + 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x12, 0x36, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, + 0x61, 0x64, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x69, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0x50, 0x0a, 0x23, 0x52, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x65, 0x61, + 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, + 0x0a, 0x10, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x22, 0x8c, 0x02, 0x0a, 0x26, 0x52, 0x65, + 0x63, 0x6f, 0x72, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, + 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x55, 0x0a, 0x12, + 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, + 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, + 0x74, 0x79, 0x49, 0x64, 0x12, 0x36, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, + 0x6f, 0x61, 0x64, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x1a, 0x0a, 0x08, + 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0x54, 0x0a, 0x27, 0x52, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x65, + 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x5f, 0x72, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x63, + 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x22, 0xdb, + 0x01, 0x0a, 0x20, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, + 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x12, 0x40, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x06, 0x72, 0x65, + 0x73, 0x75, 0x6c, 0x74, 0x12, 0x56, 0x0a, 0x13, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x56, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x65, + 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x23, 0x0a, 0x21, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x61, 0x73, 0x6b, + 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0xd1, 0x01, 0x0a, 0x25, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x61, 0x6e, + 0x63, 0x65, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, + 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0x28, 0x0a, 0x26, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, + 0x8d, 0x10, 0x0a, 0x09, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x41, 0x50, 0x49, 0x12, 0x78, 0x0a, + 0x13, 0x50, 0x6f, 0x6c, 0x6c, 0x46, 0x6f, 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x54, 0x61, 0x73, 0x6b, 0x12, 0x2f, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x6c, 0x46, + 0x6f, 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x6c, + 0x46, 0x6f, 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x93, 0x01, 0x0a, 0x1c, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x64, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x43, + 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x38, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, + 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, + 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, + 0x6c, 0x65, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x8a, 0x01, + 0x0a, 0x19, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, + 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x12, 0x35, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, + 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, + 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x46, 0x61, 0x69, 0x6c, + 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x78, 0x0a, 0x13, 0x50, 0x6f, + 0x6c, 0x6c, 0x46, 0x6f, 0x72, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, + 0x6b, 0x12, 0x2f, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x6c, 0x46, 0x6f, 0x72, 0x41, + 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x6c, 0x46, 0x6f, 0x72, + 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x93, 0x01, 0x0a, 0x1c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, + 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, + 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x38, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x43, + 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x39, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x41, 0x63, 0x74, + 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, + 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x9f, 0x01, 0x0a, 0x20, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, + 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x42, 0x79, 0x49, 0x44, 0x12, + 0x3c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x41, 0x63, 0x74, + 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, + 0x65, 0x64, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3d, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, + 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, + 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x8a, 0x01, 0x0a, + 0x19, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, + 0x54, 0x61, 0x73, 0x6b, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x12, 0x35, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, + 0x54, 0x61, 0x73, 0x6b, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x36, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x41, + 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x46, 0x61, 0x69, 0x6c, 0x65, + 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x96, 0x01, 0x0a, 0x1d, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, + 0x6b, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x42, 0x79, 0x49, 0x44, 0x12, 0x39, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, + 0x79, 0x54, 0x61, 0x73, 0x6b, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x42, 0x79, 0x49, 0x44, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, + 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x90, 0x01, 0x0a, 0x1b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x41, 0x63, + 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, + 0x65, 0x64, 0x12, 0x37, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, + 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x61, 0x6e, 0x63, + 0x65, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, + 0x79, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x9c, 0x01, 0x0a, 0x1f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x61, 0x6e, + 0x63, 0x65, 0x6c, 0x65, 0x64, 0x42, 0x79, 0x49, 0x44, 0x12, 0x3b, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, + 0x61, 0x73, 0x6b, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x65, 0x64, 0x42, 0x79, 0x49, 0x44, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, + 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x65, 0x64, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x90, 0x01, 0x0a, 0x1b, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x41, + 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x65, 0x61, 0x72, 0x74, + 0x62, 0x65, 0x61, 0x74, 0x12, 0x37, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x65, 0x61, + 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, + 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x9c, 0x01, 0x0a, 0x1f, 0x52, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x65, + 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x42, 0x79, 0x49, 0x44, 0x12, 0x3b, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, + 0x54, 0x61, 0x73, 0x6b, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x42, 0x79, 0x49, + 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, + 0x6b, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x8a, 0x01, 0x0a, 0x19, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, + 0x65, 0x74, 0x65, 0x64, 0x12, 0x35, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, + 0x65, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x61, + 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x99, 0x01, 0x0a, 0x1e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, + 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3a, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x3b, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, + 0x56, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x42, 0x08, 0x41, 0x70, 0x69, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, + 0x2e, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, + 0x31, 0x3b, 0x61, 0x70, 0x69, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func (this *RespondActivityTaskFailedResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*RespondActivityTaskFailedResponse) - if !ok { - that2, ok := that.(RespondActivityTaskFailedResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *RespondActivityTaskFailedByIDRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } +var ( + file_uber_cadence_api_v1_service_worker_proto_rawDescOnce sync.Once + file_uber_cadence_api_v1_service_worker_proto_rawDescData = file_uber_cadence_api_v1_service_worker_proto_rawDesc +) - that1, ok := that.(*RespondActivityTaskFailedByIDRequest) - if !ok { - that2, ok := that.(RespondActivityTaskFailedByIDRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if this.ActivityId != that1.ActivityId { - return false - } - if !this.Failure.Equal(that1.Failure) { - return false - } - if this.Identity != that1.Identity { - return false - } - return true +func file_uber_cadence_api_v1_service_worker_proto_rawDescGZIP() []byte { + file_uber_cadence_api_v1_service_worker_proto_rawDescOnce.Do(func() { + file_uber_cadence_api_v1_service_worker_proto_rawDescData = protoimpl.X.CompressGZIP(file_uber_cadence_api_v1_service_worker_proto_rawDescData) + }) + return file_uber_cadence_api_v1_service_worker_proto_rawDescData +} + +var file_uber_cadence_api_v1_service_worker_proto_msgTypes = make([]protoimpl.MessageInfo, 31) +var file_uber_cadence_api_v1_service_worker_proto_goTypes = []interface{}{ + (*PollForDecisionTaskRequest)(nil), // 0: uber.cadence.api.v1.PollForDecisionTaskRequest + (*PollForDecisionTaskResponse)(nil), // 1: uber.cadence.api.v1.PollForDecisionTaskResponse + (*RespondDecisionTaskCompletedRequest)(nil), // 2: uber.cadence.api.v1.RespondDecisionTaskCompletedRequest + (*RespondDecisionTaskCompletedResponse)(nil), // 3: uber.cadence.api.v1.RespondDecisionTaskCompletedResponse + (*RespondDecisionTaskFailedRequest)(nil), // 4: uber.cadence.api.v1.RespondDecisionTaskFailedRequest + (*RespondDecisionTaskFailedResponse)(nil), // 5: uber.cadence.api.v1.RespondDecisionTaskFailedResponse + (*PollForActivityTaskRequest)(nil), // 6: uber.cadence.api.v1.PollForActivityTaskRequest + (*PollForActivityTaskResponse)(nil), // 7: uber.cadence.api.v1.PollForActivityTaskResponse + (*RespondActivityTaskCompletedRequest)(nil), // 8: uber.cadence.api.v1.RespondActivityTaskCompletedRequest + (*RespondActivityTaskCompletedResponse)(nil), // 9: uber.cadence.api.v1.RespondActivityTaskCompletedResponse + (*RespondActivityTaskCompletedByIDRequest)(nil), // 10: uber.cadence.api.v1.RespondActivityTaskCompletedByIDRequest + (*RespondActivityTaskCompletedByIDResponse)(nil), // 11: uber.cadence.api.v1.RespondActivityTaskCompletedByIDResponse + (*RespondActivityTaskFailedRequest)(nil), // 12: uber.cadence.api.v1.RespondActivityTaskFailedRequest + (*RespondActivityTaskFailedResponse)(nil), // 13: uber.cadence.api.v1.RespondActivityTaskFailedResponse + (*RespondActivityTaskFailedByIDRequest)(nil), // 14: uber.cadence.api.v1.RespondActivityTaskFailedByIDRequest + (*RespondActivityTaskFailedByIDResponse)(nil), // 15: uber.cadence.api.v1.RespondActivityTaskFailedByIDResponse + (*RespondActivityTaskCanceledRequest)(nil), // 16: uber.cadence.api.v1.RespondActivityTaskCanceledRequest + (*RespondActivityTaskCanceledResponse)(nil), // 17: uber.cadence.api.v1.RespondActivityTaskCanceledResponse + (*RespondActivityTaskCanceledByIDRequest)(nil), // 18: uber.cadence.api.v1.RespondActivityTaskCanceledByIDRequest + (*RespondActivityTaskCanceledByIDResponse)(nil), // 19: uber.cadence.api.v1.RespondActivityTaskCanceledByIDResponse + (*RecordActivityTaskHeartbeatRequest)(nil), // 20: uber.cadence.api.v1.RecordActivityTaskHeartbeatRequest + (*RecordActivityTaskHeartbeatResponse)(nil), // 21: uber.cadence.api.v1.RecordActivityTaskHeartbeatResponse + (*RecordActivityTaskHeartbeatByIDRequest)(nil), // 22: uber.cadence.api.v1.RecordActivityTaskHeartbeatByIDRequest + (*RecordActivityTaskHeartbeatByIDResponse)(nil), // 23: uber.cadence.api.v1.RecordActivityTaskHeartbeatByIDResponse + (*RespondQueryTaskCompletedRequest)(nil), // 24: uber.cadence.api.v1.RespondQueryTaskCompletedRequest + (*RespondQueryTaskCompletedResponse)(nil), // 25: uber.cadence.api.v1.RespondQueryTaskCompletedResponse + (*RequestCancelWorkflowExecutionRequest)(nil), // 26: uber.cadence.api.v1.RequestCancelWorkflowExecutionRequest + (*RequestCancelWorkflowExecutionResponse)(nil), // 27: uber.cadence.api.v1.RequestCancelWorkflowExecutionResponse + nil, // 28: uber.cadence.api.v1.PollForDecisionTaskResponse.QueriesEntry + nil, // 29: uber.cadence.api.v1.RespondDecisionTaskCompletedRequest.QueryResultsEntry + nil, // 30: uber.cadence.api.v1.RespondDecisionTaskCompletedResponse.ActivitiesToDispatchLocallyEntry + (*TaskList)(nil), // 31: uber.cadence.api.v1.TaskList + (*WorkflowExecution)(nil), // 32: uber.cadence.api.v1.WorkflowExecution + (*WorkflowType)(nil), // 33: uber.cadence.api.v1.WorkflowType + (*History)(nil), // 34: uber.cadence.api.v1.History + (*WorkflowQuery)(nil), // 35: uber.cadence.api.v1.WorkflowQuery + (*timestamppb.Timestamp)(nil), // 36: google.protobuf.Timestamp + (*Decision)(nil), // 37: uber.cadence.api.v1.Decision + (*StickyExecutionAttributes)(nil), // 38: uber.cadence.api.v1.StickyExecutionAttributes + (DecisionTaskFailedCause)(0), // 39: uber.cadence.api.v1.DecisionTaskFailedCause + (*Payload)(nil), // 40: uber.cadence.api.v1.Payload + (*TaskListMetadata)(nil), // 41: uber.cadence.api.v1.TaskListMetadata + (*ActivityType)(nil), // 42: uber.cadence.api.v1.ActivityType + (*durationpb.Duration)(nil), // 43: google.protobuf.Duration + (*Header)(nil), // 44: uber.cadence.api.v1.Header + (*Failure)(nil), // 45: uber.cadence.api.v1.Failure + (*WorkflowQueryResult)(nil), // 46: uber.cadence.api.v1.WorkflowQueryResult + (*WorkerVersionInfo)(nil), // 47: uber.cadence.api.v1.WorkerVersionInfo + (*ActivityLocalDispatchInfo)(nil), // 48: uber.cadence.api.v1.ActivityLocalDispatchInfo +} +var file_uber_cadence_api_v1_service_worker_proto_depIdxs = []int32{ + 31, // 0: uber.cadence.api.v1.PollForDecisionTaskRequest.task_list:type_name -> uber.cadence.api.v1.TaskList + 32, // 1: uber.cadence.api.v1.PollForDecisionTaskResponse.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 33, // 2: uber.cadence.api.v1.PollForDecisionTaskResponse.workflow_type:type_name -> uber.cadence.api.v1.WorkflowType + 34, // 3: uber.cadence.api.v1.PollForDecisionTaskResponse.history:type_name -> uber.cadence.api.v1.History + 35, // 4: uber.cadence.api.v1.PollForDecisionTaskResponse.query:type_name -> uber.cadence.api.v1.WorkflowQuery + 31, // 5: uber.cadence.api.v1.PollForDecisionTaskResponse.workflow_execution_task_list:type_name -> uber.cadence.api.v1.TaskList + 36, // 6: uber.cadence.api.v1.PollForDecisionTaskResponse.scheduled_time:type_name -> google.protobuf.Timestamp + 36, // 7: uber.cadence.api.v1.PollForDecisionTaskResponse.started_time:type_name -> google.protobuf.Timestamp + 28, // 8: uber.cadence.api.v1.PollForDecisionTaskResponse.queries:type_name -> uber.cadence.api.v1.PollForDecisionTaskResponse.QueriesEntry + 37, // 9: uber.cadence.api.v1.RespondDecisionTaskCompletedRequest.decisions:type_name -> uber.cadence.api.v1.Decision + 38, // 10: uber.cadence.api.v1.RespondDecisionTaskCompletedRequest.sticky_attributes:type_name -> uber.cadence.api.v1.StickyExecutionAttributes + 29, // 11: uber.cadence.api.v1.RespondDecisionTaskCompletedRequest.query_results:type_name -> uber.cadence.api.v1.RespondDecisionTaskCompletedRequest.QueryResultsEntry + 1, // 12: uber.cadence.api.v1.RespondDecisionTaskCompletedResponse.decision_task:type_name -> uber.cadence.api.v1.PollForDecisionTaskResponse + 30, // 13: uber.cadence.api.v1.RespondDecisionTaskCompletedResponse.activities_to_dispatch_locally:type_name -> uber.cadence.api.v1.RespondDecisionTaskCompletedResponse.ActivitiesToDispatchLocallyEntry + 39, // 14: uber.cadence.api.v1.RespondDecisionTaskFailedRequest.cause:type_name -> uber.cadence.api.v1.DecisionTaskFailedCause + 40, // 15: uber.cadence.api.v1.RespondDecisionTaskFailedRequest.details:type_name -> uber.cadence.api.v1.Payload + 31, // 16: uber.cadence.api.v1.PollForActivityTaskRequest.task_list:type_name -> uber.cadence.api.v1.TaskList + 41, // 17: uber.cadence.api.v1.PollForActivityTaskRequest.task_list_metadata:type_name -> uber.cadence.api.v1.TaskListMetadata + 32, // 18: uber.cadence.api.v1.PollForActivityTaskResponse.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 42, // 19: uber.cadence.api.v1.PollForActivityTaskResponse.activity_type:type_name -> uber.cadence.api.v1.ActivityType + 40, // 20: uber.cadence.api.v1.PollForActivityTaskResponse.input:type_name -> uber.cadence.api.v1.Payload + 36, // 21: uber.cadence.api.v1.PollForActivityTaskResponse.scheduled_time:type_name -> google.protobuf.Timestamp + 36, // 22: uber.cadence.api.v1.PollForActivityTaskResponse.started_time:type_name -> google.protobuf.Timestamp + 43, // 23: uber.cadence.api.v1.PollForActivityTaskResponse.schedule_to_close_timeout:type_name -> google.protobuf.Duration + 43, // 24: uber.cadence.api.v1.PollForActivityTaskResponse.start_to_close_timeout:type_name -> google.protobuf.Duration + 43, // 25: uber.cadence.api.v1.PollForActivityTaskResponse.heartbeat_timeout:type_name -> google.protobuf.Duration + 36, // 26: uber.cadence.api.v1.PollForActivityTaskResponse.scheduled_time_of_this_attempt:type_name -> google.protobuf.Timestamp + 40, // 27: uber.cadence.api.v1.PollForActivityTaskResponse.heartbeat_details:type_name -> uber.cadence.api.v1.Payload + 33, // 28: uber.cadence.api.v1.PollForActivityTaskResponse.workflow_type:type_name -> uber.cadence.api.v1.WorkflowType + 44, // 29: uber.cadence.api.v1.PollForActivityTaskResponse.header:type_name -> uber.cadence.api.v1.Header + 40, // 30: uber.cadence.api.v1.RespondActivityTaskCompletedRequest.result:type_name -> uber.cadence.api.v1.Payload + 32, // 31: uber.cadence.api.v1.RespondActivityTaskCompletedByIDRequest.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 40, // 32: uber.cadence.api.v1.RespondActivityTaskCompletedByIDRequest.result:type_name -> uber.cadence.api.v1.Payload + 45, // 33: uber.cadence.api.v1.RespondActivityTaskFailedRequest.failure:type_name -> uber.cadence.api.v1.Failure + 32, // 34: uber.cadence.api.v1.RespondActivityTaskFailedByIDRequest.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 45, // 35: uber.cadence.api.v1.RespondActivityTaskFailedByIDRequest.failure:type_name -> uber.cadence.api.v1.Failure + 40, // 36: uber.cadence.api.v1.RespondActivityTaskCanceledRequest.details:type_name -> uber.cadence.api.v1.Payload + 32, // 37: uber.cadence.api.v1.RespondActivityTaskCanceledByIDRequest.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 40, // 38: uber.cadence.api.v1.RespondActivityTaskCanceledByIDRequest.details:type_name -> uber.cadence.api.v1.Payload + 40, // 39: uber.cadence.api.v1.RecordActivityTaskHeartbeatRequest.details:type_name -> uber.cadence.api.v1.Payload + 32, // 40: uber.cadence.api.v1.RecordActivityTaskHeartbeatByIDRequest.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 40, // 41: uber.cadence.api.v1.RecordActivityTaskHeartbeatByIDRequest.details:type_name -> uber.cadence.api.v1.Payload + 46, // 42: uber.cadence.api.v1.RespondQueryTaskCompletedRequest.result:type_name -> uber.cadence.api.v1.WorkflowQueryResult + 47, // 43: uber.cadence.api.v1.RespondQueryTaskCompletedRequest.worker_version_info:type_name -> uber.cadence.api.v1.WorkerVersionInfo + 32, // 44: uber.cadence.api.v1.RequestCancelWorkflowExecutionRequest.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 35, // 45: uber.cadence.api.v1.PollForDecisionTaskResponse.QueriesEntry.value:type_name -> uber.cadence.api.v1.WorkflowQuery + 46, // 46: uber.cadence.api.v1.RespondDecisionTaskCompletedRequest.QueryResultsEntry.value:type_name -> uber.cadence.api.v1.WorkflowQueryResult + 48, // 47: uber.cadence.api.v1.RespondDecisionTaskCompletedResponse.ActivitiesToDispatchLocallyEntry.value:type_name -> uber.cadence.api.v1.ActivityLocalDispatchInfo + 0, // 48: uber.cadence.api.v1.WorkerAPI.PollForDecisionTask:input_type -> uber.cadence.api.v1.PollForDecisionTaskRequest + 2, // 49: uber.cadence.api.v1.WorkerAPI.RespondDecisionTaskCompleted:input_type -> uber.cadence.api.v1.RespondDecisionTaskCompletedRequest + 4, // 50: uber.cadence.api.v1.WorkerAPI.RespondDecisionTaskFailed:input_type -> uber.cadence.api.v1.RespondDecisionTaskFailedRequest + 6, // 51: uber.cadence.api.v1.WorkerAPI.PollForActivityTask:input_type -> uber.cadence.api.v1.PollForActivityTaskRequest + 8, // 52: uber.cadence.api.v1.WorkerAPI.RespondActivityTaskCompleted:input_type -> uber.cadence.api.v1.RespondActivityTaskCompletedRequest + 10, // 53: uber.cadence.api.v1.WorkerAPI.RespondActivityTaskCompletedByID:input_type -> uber.cadence.api.v1.RespondActivityTaskCompletedByIDRequest + 12, // 54: uber.cadence.api.v1.WorkerAPI.RespondActivityTaskFailed:input_type -> uber.cadence.api.v1.RespondActivityTaskFailedRequest + 14, // 55: uber.cadence.api.v1.WorkerAPI.RespondActivityTaskFailedByID:input_type -> uber.cadence.api.v1.RespondActivityTaskFailedByIDRequest + 16, // 56: uber.cadence.api.v1.WorkerAPI.RespondActivityTaskCanceled:input_type -> uber.cadence.api.v1.RespondActivityTaskCanceledRequest + 18, // 57: uber.cadence.api.v1.WorkerAPI.RespondActivityTaskCanceledByID:input_type -> uber.cadence.api.v1.RespondActivityTaskCanceledByIDRequest + 20, // 58: uber.cadence.api.v1.WorkerAPI.RecordActivityTaskHeartbeat:input_type -> uber.cadence.api.v1.RecordActivityTaskHeartbeatRequest + 22, // 59: uber.cadence.api.v1.WorkerAPI.RecordActivityTaskHeartbeatByID:input_type -> uber.cadence.api.v1.RecordActivityTaskHeartbeatByIDRequest + 24, // 60: uber.cadence.api.v1.WorkerAPI.RespondQueryTaskCompleted:input_type -> uber.cadence.api.v1.RespondQueryTaskCompletedRequest + 26, // 61: uber.cadence.api.v1.WorkerAPI.RequestCancelWorkflowExecution:input_type -> uber.cadence.api.v1.RequestCancelWorkflowExecutionRequest + 1, // 62: uber.cadence.api.v1.WorkerAPI.PollForDecisionTask:output_type -> uber.cadence.api.v1.PollForDecisionTaskResponse + 3, // 63: uber.cadence.api.v1.WorkerAPI.RespondDecisionTaskCompleted:output_type -> uber.cadence.api.v1.RespondDecisionTaskCompletedResponse + 5, // 64: uber.cadence.api.v1.WorkerAPI.RespondDecisionTaskFailed:output_type -> uber.cadence.api.v1.RespondDecisionTaskFailedResponse + 7, // 65: uber.cadence.api.v1.WorkerAPI.PollForActivityTask:output_type -> uber.cadence.api.v1.PollForActivityTaskResponse + 9, // 66: uber.cadence.api.v1.WorkerAPI.RespondActivityTaskCompleted:output_type -> uber.cadence.api.v1.RespondActivityTaskCompletedResponse + 11, // 67: uber.cadence.api.v1.WorkerAPI.RespondActivityTaskCompletedByID:output_type -> uber.cadence.api.v1.RespondActivityTaskCompletedByIDResponse + 13, // 68: uber.cadence.api.v1.WorkerAPI.RespondActivityTaskFailed:output_type -> uber.cadence.api.v1.RespondActivityTaskFailedResponse + 15, // 69: uber.cadence.api.v1.WorkerAPI.RespondActivityTaskFailedByID:output_type -> uber.cadence.api.v1.RespondActivityTaskFailedByIDResponse + 17, // 70: uber.cadence.api.v1.WorkerAPI.RespondActivityTaskCanceled:output_type -> uber.cadence.api.v1.RespondActivityTaskCanceledResponse + 19, // 71: uber.cadence.api.v1.WorkerAPI.RespondActivityTaskCanceledByID:output_type -> uber.cadence.api.v1.RespondActivityTaskCanceledByIDResponse + 21, // 72: uber.cadence.api.v1.WorkerAPI.RecordActivityTaskHeartbeat:output_type -> uber.cadence.api.v1.RecordActivityTaskHeartbeatResponse + 23, // 73: uber.cadence.api.v1.WorkerAPI.RecordActivityTaskHeartbeatByID:output_type -> uber.cadence.api.v1.RecordActivityTaskHeartbeatByIDResponse + 25, // 74: uber.cadence.api.v1.WorkerAPI.RespondQueryTaskCompleted:output_type -> uber.cadence.api.v1.RespondQueryTaskCompletedResponse + 27, // 75: uber.cadence.api.v1.WorkerAPI.RequestCancelWorkflowExecution:output_type -> uber.cadence.api.v1.RequestCancelWorkflowExecutionResponse + 62, // [62:76] is the sub-list for method output_type + 48, // [48:62] is the sub-list for method input_type + 48, // [48:48] is the sub-list for extension type_name + 48, // [48:48] is the sub-list for extension extendee + 0, // [0:48] is the sub-list for field type_name +} + +func init() { file_uber_cadence_api_v1_service_worker_proto_init() } +func file_uber_cadence_api_v1_service_worker_proto_init() { + if File_uber_cadence_api_v1_service_worker_proto != nil { + return + } + file_uber_cadence_api_v1_common_proto_init() + file_uber_cadence_api_v1_decision_proto_init() + file_uber_cadence_api_v1_history_proto_init() + file_uber_cadence_api_v1_query_proto_init() + file_uber_cadence_api_v1_tasklist_proto_init() + file_uber_cadence_api_v1_workflow_proto_init() + if !protoimpl.UnsafeEnabled { + file_uber_cadence_api_v1_service_worker_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PollForDecisionTaskRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_worker_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PollForDecisionTaskResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_worker_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RespondDecisionTaskCompletedRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_worker_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RespondDecisionTaskCompletedResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_worker_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RespondDecisionTaskFailedRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_worker_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RespondDecisionTaskFailedResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_worker_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PollForActivityTaskRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_worker_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PollForActivityTaskResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_worker_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RespondActivityTaskCompletedRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_worker_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RespondActivityTaskCompletedResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_worker_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RespondActivityTaskCompletedByIDRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_worker_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RespondActivityTaskCompletedByIDResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_worker_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RespondActivityTaskFailedRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_worker_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RespondActivityTaskFailedResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_worker_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RespondActivityTaskFailedByIDRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_worker_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RespondActivityTaskFailedByIDResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_worker_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RespondActivityTaskCanceledRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_worker_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RespondActivityTaskCanceledResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_worker_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RespondActivityTaskCanceledByIDRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_worker_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RespondActivityTaskCanceledByIDResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_worker_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RecordActivityTaskHeartbeatRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_worker_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RecordActivityTaskHeartbeatResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_worker_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RecordActivityTaskHeartbeatByIDRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_worker_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RecordActivityTaskHeartbeatByIDResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_worker_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RespondQueryTaskCompletedRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_worker_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RespondQueryTaskCompletedResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_worker_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestCancelWorkflowExecutionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_worker_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestCancelWorkflowExecutionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_uber_cadence_api_v1_service_worker_proto_rawDesc, + NumEnums: 0, + NumMessages: 31, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_uber_cadence_api_v1_service_worker_proto_goTypes, + DependencyIndexes: file_uber_cadence_api_v1_service_worker_proto_depIdxs, + MessageInfos: file_uber_cadence_api_v1_service_worker_proto_msgTypes, + }.Build() + File_uber_cadence_api_v1_service_worker_proto = out.File + file_uber_cadence_api_v1_service_worker_proto_rawDesc = nil + file_uber_cadence_api_v1_service_worker_proto_goTypes = nil + file_uber_cadence_api_v1_service_worker_proto_depIdxs = nil } -func (this *RespondActivityTaskFailedByIDResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RespondActivityTaskFailedByIDResponse) - if !ok { - that2, ok := that.(RespondActivityTaskFailedByIDResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *RespondActivityTaskCanceledRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RespondActivityTaskCanceledRequest) - if !ok { - that2, ok := that.(RespondActivityTaskCanceledRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !bytes.Equal(this.TaskToken, that1.TaskToken) { - return false - } - if !this.Details.Equal(that1.Details) { - return false - } - if this.Identity != that1.Identity { - return false - } - return true -} -func (this *RespondActivityTaskCanceledResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RespondActivityTaskCanceledResponse) - if !ok { - that2, ok := that.(RespondActivityTaskCanceledResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *RespondActivityTaskCanceledByIDRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RespondActivityTaskCanceledByIDRequest) - if !ok { - that2, ok := that.(RespondActivityTaskCanceledByIDRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if this.ActivityId != that1.ActivityId { - return false - } - if !this.Details.Equal(that1.Details) { - return false - } - if this.Identity != that1.Identity { - return false - } - return true -} -func (this *RespondActivityTaskCanceledByIDResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RespondActivityTaskCanceledByIDResponse) - if !ok { - that2, ok := that.(RespondActivityTaskCanceledByIDResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *RecordActivityTaskHeartbeatRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RecordActivityTaskHeartbeatRequest) - if !ok { - that2, ok := that.(RecordActivityTaskHeartbeatRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !bytes.Equal(this.TaskToken, that1.TaskToken) { - return false - } - if !this.Details.Equal(that1.Details) { - return false - } - if this.Identity != that1.Identity { - return false - } - return true -} -func (this *RecordActivityTaskHeartbeatResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RecordActivityTaskHeartbeatResponse) - if !ok { - that2, ok := that.(RecordActivityTaskHeartbeatResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.CancelRequested != that1.CancelRequested { - return false - } - return true -} -func (this *RecordActivityTaskHeartbeatByIDRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RecordActivityTaskHeartbeatByIDRequest) - if !ok { - that2, ok := that.(RecordActivityTaskHeartbeatByIDRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if this.ActivityId != that1.ActivityId { - return false - } - if !this.Details.Equal(that1.Details) { - return false - } - if this.Identity != that1.Identity { - return false - } - return true -} -func (this *RecordActivityTaskHeartbeatByIDResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RecordActivityTaskHeartbeatByIDResponse) - if !ok { - that2, ok := that.(RecordActivityTaskHeartbeatByIDResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.CancelRequested != that1.CancelRequested { - return false - } - return true -} -func (this *RespondQueryTaskCompletedRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RespondQueryTaskCompletedRequest) - if !ok { - that2, ok := that.(RespondQueryTaskCompletedRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !bytes.Equal(this.TaskToken, that1.TaskToken) { - return false - } - if !this.Result.Equal(that1.Result) { - return false - } - if !this.WorkerVersionInfo.Equal(that1.WorkerVersionInfo) { - return false - } - return true -} -func (this *RespondQueryTaskCompletedResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RespondQueryTaskCompletedResponse) - if !ok { - that2, ok := that.(RespondQueryTaskCompletedResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *RequestCancelWorkflowExecutionRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RequestCancelWorkflowExecutionRequest) - if !ok { - that2, ok := that.(RequestCancelWorkflowExecutionRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if this.Identity != that1.Identity { - return false - } - if this.RequestId != that1.RequestId { - return false - } - return true -} -func (this *RequestCancelWorkflowExecutionResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RequestCancelWorkflowExecutionResponse) - if !ok { - that2, ok := that.(RequestCancelWorkflowExecutionResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *PollForDecisionTaskRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 8) - s = append(s, "&apiv1.PollForDecisionTaskRequest{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - if this.TaskList != nil { - s = append(s, "TaskList: "+fmt.Sprintf("%#v", this.TaskList)+",\n") - } - s = append(s, "Identity: "+fmt.Sprintf("%#v", this.Identity)+",\n") - s = append(s, "BinaryChecksum: "+fmt.Sprintf("%#v", this.BinaryChecksum)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *PollForDecisionTaskResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 18) - s = append(s, "&apiv1.PollForDecisionTaskResponse{") - s = append(s, "TaskToken: "+fmt.Sprintf("%#v", this.TaskToken)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - if this.WorkflowType != nil { - s = append(s, "WorkflowType: "+fmt.Sprintf("%#v", this.WorkflowType)+",\n") - } - s = append(s, "PreviousStartedEventId: "+fmt.Sprintf("%#v", this.PreviousStartedEventId)+",\n") - s = append(s, "StartedEventId: "+fmt.Sprintf("%#v", this.StartedEventId)+",\n") - s = append(s, "Attempt: "+fmt.Sprintf("%#v", this.Attempt)+",\n") - s = append(s, "BacklogCountHint: "+fmt.Sprintf("%#v", this.BacklogCountHint)+",\n") - if this.History != nil { - s = append(s, "History: "+fmt.Sprintf("%#v", this.History)+",\n") - } - s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") - if this.Query != nil { - s = append(s, "Query: "+fmt.Sprintf("%#v", this.Query)+",\n") - } - if this.WorkflowExecutionTaskList != nil { - s = append(s, "WorkflowExecutionTaskList: "+fmt.Sprintf("%#v", this.WorkflowExecutionTaskList)+",\n") - } - s = append(s, "ScheduledTime: "+fmt.Sprintf("%#v", this.ScheduledTime)+",\n") - s = append(s, "StartedTime: "+fmt.Sprintf("%#v", this.StartedTime)+",\n") - keysForQueries := make([]string, 0, len(this.Queries)) - for k, _ := range this.Queries { - keysForQueries = append(keysForQueries, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForQueries) - mapStringForQueries := "map[string]*WorkflowQuery{" - for _, k := range keysForQueries { - mapStringForQueries += fmt.Sprintf("%#v: %#v,", k, this.Queries[k]) - } - mapStringForQueries += "}" - if this.Queries != nil { - s = append(s, "Queries: "+mapStringForQueries+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RespondDecisionTaskCompletedRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 13) - s = append(s, "&apiv1.RespondDecisionTaskCompletedRequest{") - s = append(s, "TaskToken: "+fmt.Sprintf("%#v", this.TaskToken)+",\n") - if this.Decisions != nil { - s = append(s, "Decisions: "+fmt.Sprintf("%#v", this.Decisions)+",\n") - } - s = append(s, "ExecutionContext: "+fmt.Sprintf("%#v", this.ExecutionContext)+",\n") - s = append(s, "Identity: "+fmt.Sprintf("%#v", this.Identity)+",\n") - if this.StickyAttributes != nil { - s = append(s, "StickyAttributes: "+fmt.Sprintf("%#v", this.StickyAttributes)+",\n") - } - s = append(s, "ReturnNewDecisionTask: "+fmt.Sprintf("%#v", this.ReturnNewDecisionTask)+",\n") - s = append(s, "ForceCreateNewDecisionTask: "+fmt.Sprintf("%#v", this.ForceCreateNewDecisionTask)+",\n") - s = append(s, "BinaryChecksum: "+fmt.Sprintf("%#v", this.BinaryChecksum)+",\n") - keysForQueryResults := make([]string, 0, len(this.QueryResults)) - for k, _ := range this.QueryResults { - keysForQueryResults = append(keysForQueryResults, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForQueryResults) - mapStringForQueryResults := "map[string]*WorkflowQueryResult{" - for _, k := range keysForQueryResults { - mapStringForQueryResults += fmt.Sprintf("%#v: %#v,", k, this.QueryResults[k]) - } - mapStringForQueryResults += "}" - if this.QueryResults != nil { - s = append(s, "QueryResults: "+mapStringForQueryResults+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RespondDecisionTaskCompletedResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.RespondDecisionTaskCompletedResponse{") - if this.DecisionTask != nil { - s = append(s, "DecisionTask: "+fmt.Sprintf("%#v", this.DecisionTask)+",\n") - } - keysForActivitiesToDispatchLocally := make([]string, 0, len(this.ActivitiesToDispatchLocally)) - for k, _ := range this.ActivitiesToDispatchLocally { - keysForActivitiesToDispatchLocally = append(keysForActivitiesToDispatchLocally, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForActivitiesToDispatchLocally) - mapStringForActivitiesToDispatchLocally := "map[string]*ActivityLocalDispatchInfo{" - for _, k := range keysForActivitiesToDispatchLocally { - mapStringForActivitiesToDispatchLocally += fmt.Sprintf("%#v: %#v,", k, this.ActivitiesToDispatchLocally[k]) - } - mapStringForActivitiesToDispatchLocally += "}" - if this.ActivitiesToDispatchLocally != nil { - s = append(s, "ActivitiesToDispatchLocally: "+mapStringForActivitiesToDispatchLocally+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RespondDecisionTaskFailedRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 9) - s = append(s, "&apiv1.RespondDecisionTaskFailedRequest{") - s = append(s, "TaskToken: "+fmt.Sprintf("%#v", this.TaskToken)+",\n") - s = append(s, "Cause: "+fmt.Sprintf("%#v", this.Cause)+",\n") - if this.Details != nil { - s = append(s, "Details: "+fmt.Sprintf("%#v", this.Details)+",\n") - } - s = append(s, "Identity: "+fmt.Sprintf("%#v", this.Identity)+",\n") - s = append(s, "BinaryChecksum: "+fmt.Sprintf("%#v", this.BinaryChecksum)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RespondDecisionTaskFailedResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&apiv1.RespondDecisionTaskFailedResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *PollForActivityTaskRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 8) - s = append(s, "&apiv1.PollForActivityTaskRequest{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - if this.TaskList != nil { - s = append(s, "TaskList: "+fmt.Sprintf("%#v", this.TaskList)+",\n") - } - s = append(s, "Identity: "+fmt.Sprintf("%#v", this.Identity)+",\n") - if this.TaskListMetadata != nil { - s = append(s, "TaskListMetadata: "+fmt.Sprintf("%#v", this.TaskListMetadata)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *PollForActivityTaskResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 20) - s = append(s, "&apiv1.PollForActivityTaskResponse{") - s = append(s, "TaskToken: "+fmt.Sprintf("%#v", this.TaskToken)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "ActivityId: "+fmt.Sprintf("%#v", this.ActivityId)+",\n") - if this.ActivityType != nil { - s = append(s, "ActivityType: "+fmt.Sprintf("%#v", this.ActivityType)+",\n") - } - if this.Input != nil { - s = append(s, "Input: "+fmt.Sprintf("%#v", this.Input)+",\n") - } - s = append(s, "ScheduledTime: "+fmt.Sprintf("%#v", this.ScheduledTime)+",\n") - s = append(s, "StartedTime: "+fmt.Sprintf("%#v", this.StartedTime)+",\n") - s = append(s, "ScheduleToCloseTimeout: "+fmt.Sprintf("%#v", this.ScheduleToCloseTimeout)+",\n") - s = append(s, "StartToCloseTimeout: "+fmt.Sprintf("%#v", this.StartToCloseTimeout)+",\n") - s = append(s, "HeartbeatTimeout: "+fmt.Sprintf("%#v", this.HeartbeatTimeout)+",\n") - s = append(s, "Attempt: "+fmt.Sprintf("%#v", this.Attempt)+",\n") - s = append(s, "ScheduledTimeOfThisAttempt: "+fmt.Sprintf("%#v", this.ScheduledTimeOfThisAttempt)+",\n") - if this.HeartbeatDetails != nil { - s = append(s, "HeartbeatDetails: "+fmt.Sprintf("%#v", this.HeartbeatDetails)+",\n") - } - if this.WorkflowType != nil { - s = append(s, "WorkflowType: "+fmt.Sprintf("%#v", this.WorkflowType)+",\n") - } - s = append(s, "WorkflowDomain: "+fmt.Sprintf("%#v", this.WorkflowDomain)+",\n") - if this.Header != nil { - s = append(s, "Header: "+fmt.Sprintf("%#v", this.Header)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RespondActivityTaskCompletedRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&apiv1.RespondActivityTaskCompletedRequest{") - s = append(s, "TaskToken: "+fmt.Sprintf("%#v", this.TaskToken)+",\n") - if this.Result != nil { - s = append(s, "Result: "+fmt.Sprintf("%#v", this.Result)+",\n") - } - s = append(s, "Identity: "+fmt.Sprintf("%#v", this.Identity)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RespondActivityTaskCompletedResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&apiv1.RespondActivityTaskCompletedResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RespondActivityTaskCompletedByIDRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 9) - s = append(s, "&apiv1.RespondActivityTaskCompletedByIDRequest{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "ActivityId: "+fmt.Sprintf("%#v", this.ActivityId)+",\n") - if this.Result != nil { - s = append(s, "Result: "+fmt.Sprintf("%#v", this.Result)+",\n") - } - s = append(s, "Identity: "+fmt.Sprintf("%#v", this.Identity)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RespondActivityTaskCompletedByIDResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&apiv1.RespondActivityTaskCompletedByIDResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RespondActivityTaskFailedRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&apiv1.RespondActivityTaskFailedRequest{") - s = append(s, "TaskToken: "+fmt.Sprintf("%#v", this.TaskToken)+",\n") - if this.Failure != nil { - s = append(s, "Failure: "+fmt.Sprintf("%#v", this.Failure)+",\n") - } - s = append(s, "Identity: "+fmt.Sprintf("%#v", this.Identity)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RespondActivityTaskFailedResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&apiv1.RespondActivityTaskFailedResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RespondActivityTaskFailedByIDRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 9) - s = append(s, "&apiv1.RespondActivityTaskFailedByIDRequest{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "ActivityId: "+fmt.Sprintf("%#v", this.ActivityId)+",\n") - if this.Failure != nil { - s = append(s, "Failure: "+fmt.Sprintf("%#v", this.Failure)+",\n") - } - s = append(s, "Identity: "+fmt.Sprintf("%#v", this.Identity)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RespondActivityTaskFailedByIDResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&apiv1.RespondActivityTaskFailedByIDResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RespondActivityTaskCanceledRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&apiv1.RespondActivityTaskCanceledRequest{") - s = append(s, "TaskToken: "+fmt.Sprintf("%#v", this.TaskToken)+",\n") - if this.Details != nil { - s = append(s, "Details: "+fmt.Sprintf("%#v", this.Details)+",\n") - } - s = append(s, "Identity: "+fmt.Sprintf("%#v", this.Identity)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RespondActivityTaskCanceledResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&apiv1.RespondActivityTaskCanceledResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RespondActivityTaskCanceledByIDRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 9) - s = append(s, "&apiv1.RespondActivityTaskCanceledByIDRequest{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "ActivityId: "+fmt.Sprintf("%#v", this.ActivityId)+",\n") - if this.Details != nil { - s = append(s, "Details: "+fmt.Sprintf("%#v", this.Details)+",\n") - } - s = append(s, "Identity: "+fmt.Sprintf("%#v", this.Identity)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RespondActivityTaskCanceledByIDResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&apiv1.RespondActivityTaskCanceledByIDResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RecordActivityTaskHeartbeatRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&apiv1.RecordActivityTaskHeartbeatRequest{") - s = append(s, "TaskToken: "+fmt.Sprintf("%#v", this.TaskToken)+",\n") - if this.Details != nil { - s = append(s, "Details: "+fmt.Sprintf("%#v", this.Details)+",\n") - } - s = append(s, "Identity: "+fmt.Sprintf("%#v", this.Identity)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RecordActivityTaskHeartbeatResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&apiv1.RecordActivityTaskHeartbeatResponse{") - s = append(s, "CancelRequested: "+fmt.Sprintf("%#v", this.CancelRequested)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RecordActivityTaskHeartbeatByIDRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 9) - s = append(s, "&apiv1.RecordActivityTaskHeartbeatByIDRequest{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "ActivityId: "+fmt.Sprintf("%#v", this.ActivityId)+",\n") - if this.Details != nil { - s = append(s, "Details: "+fmt.Sprintf("%#v", this.Details)+",\n") - } - s = append(s, "Identity: "+fmt.Sprintf("%#v", this.Identity)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RecordActivityTaskHeartbeatByIDResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&apiv1.RecordActivityTaskHeartbeatByIDResponse{") - s = append(s, "CancelRequested: "+fmt.Sprintf("%#v", this.CancelRequested)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RespondQueryTaskCompletedRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&apiv1.RespondQueryTaskCompletedRequest{") - s = append(s, "TaskToken: "+fmt.Sprintf("%#v", this.TaskToken)+",\n") - if this.Result != nil { - s = append(s, "Result: "+fmt.Sprintf("%#v", this.Result)+",\n") - } - if this.WorkerVersionInfo != nil { - s = append(s, "WorkerVersionInfo: "+fmt.Sprintf("%#v", this.WorkerVersionInfo)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RespondQueryTaskCompletedResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&apiv1.RespondQueryTaskCompletedResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RequestCancelWorkflowExecutionRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 8) - s = append(s, "&apiv1.RequestCancelWorkflowExecutionRequest{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "Identity: "+fmt.Sprintf("%#v", this.Identity)+",\n") - s = append(s, "RequestId: "+fmt.Sprintf("%#v", this.RequestId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RequestCancelWorkflowExecutionResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&apiv1.RequestCancelWorkflowExecutionResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func valueToGoStringServiceWorker(v interface{}, typ string) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// 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 - -// WorkerAPIClient is the client API for WorkerAPI service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type WorkerAPIClient interface { - // PollForDecisionTask is called by application worker to process DecisionTask from a specific taskList. - // A DecisionTask is dispatched to callers for active workflow executions, with pending decisions. - // Application is then expected to call 'RespondDecisionTaskCompleted' API when it is done processing the DecisionTask. - // It will also create a 'DecisionTaskStarted' event in the history for that session before handing off DecisionTask to - // application worker. - PollForDecisionTask(ctx context.Context, in *PollForDecisionTaskRequest, opts ...grpc.CallOption) (*PollForDecisionTaskResponse, error) - // RespondDecisionTaskCompleted is called by application worker to complete a DecisionTask handed as a result of - // 'PollForDecisionTask' API call. Completing a DecisionTask will result in new events for the workflow execution and - // potentially new ActivityTask being created for corresponding decisions. It will also create a DecisionTaskCompleted - // event in the history for that session. Use the 'taskToken' provided as response of PollForDecisionTask API call - // for completing the DecisionTask. - // The response could contain a new decision task if there is one or if the request asking for one. - RespondDecisionTaskCompleted(ctx context.Context, in *RespondDecisionTaskCompletedRequest, opts ...grpc.CallOption) (*RespondDecisionTaskCompletedResponse, error) - // RespondDecisionTaskFailed is called by application worker to indicate failure. This results in - // DecisionTaskFailedEvent written to the history and a new DecisionTask created. This API can be used by client to - // either clear sticky tasklist or report any panics during DecisionTask processing. Cadence will only append first - // DecisionTaskFailed event to the history of workflow execution for consecutive failures. - RespondDecisionTaskFailed(ctx context.Context, in *RespondDecisionTaskFailedRequest, opts ...grpc.CallOption) (*RespondDecisionTaskFailedResponse, error) - // PollForActivityTask is called by application worker to process ActivityTask from a specific taskList. ActivityTask - // is dispatched to callers whenever a ScheduleTask decision is made for a workflow execution. - // Application is expected to call 'RespondActivityTaskCompleted' or 'RespondActivityTaskFailed' once it is done - // processing the task. - // Application also needs to call 'RecordActivityTaskHeartbeat' API within 'heartbeatTimeoutSeconds' interval to - // prevent the task from getting timed out. An event 'ActivityTaskStarted' event is also written to workflow execution - // history before the ActivityTask is dispatched to application worker. - PollForActivityTask(ctx context.Context, in *PollForActivityTaskRequest, opts ...grpc.CallOption) (*PollForActivityTaskResponse, error) - // RespondActivityTaskCompleted is called by application worker when it is done processing an ActivityTask. It will - // result in a new 'ActivityTaskCompleted' event being written to the workflow history and a new DecisionTask - // created for the workflow so new decisions could be made. Use the 'taskToken' provided as response of - // PollForActivityTask API call for completion. It fails with 'EntityNotExistsError' if the taskToken is not valid - // anymore due to activity timeout. - RespondActivityTaskCompleted(ctx context.Context, in *RespondActivityTaskCompletedRequest, opts ...grpc.CallOption) (*RespondActivityTaskCompletedResponse, error) - // RespondActivityTaskCompletedByID is called by application worker when it is done processing an ActivityTask. - // It will result in a new 'ActivityTaskCompleted' event being written to the workflow history and a new DecisionTask - // created for the workflow so new decisions could be made. Similar to RespondActivityTaskCompleted but use Domain, - // WorkflowID and ActivityID instead of 'taskToken' for completion. It fails with 'EntityNotExistsError' - // if the these IDs are not valid anymore due to activity timeout. - RespondActivityTaskCompletedByID(ctx context.Context, in *RespondActivityTaskCompletedByIDRequest, opts ...grpc.CallOption) (*RespondActivityTaskCompletedByIDResponse, error) - // RespondActivityTaskFailed is called by application worker when it is done processing an ActivityTask. It will - // result in a new 'ActivityTaskFailed' event being written to the workflow history and a new DecisionTask - // created for the workflow instance so new decisions could be made. Use the 'taskToken' provided as response of - // PollForActivityTask API call for completion. It fails with 'EntityNotExistsError' if the taskToken is not valid - // anymore due to activity timeout. - RespondActivityTaskFailed(ctx context.Context, in *RespondActivityTaskFailedRequest, opts ...grpc.CallOption) (*RespondActivityTaskFailedResponse, error) - // RespondActivityTaskFailedByID is called by application worker when it is done processing an ActivityTask. - // It will result in a new 'ActivityTaskFailed' event being written to the workflow history and a new DecisionTask - // created for the workflow instance so new decisions could be made. Similar to RespondActivityTaskFailed but use - // Domain, WorkflowID and ActivityID instead of 'taskToken' for completion. It fails with 'EntityNotExistsError' - // if the these IDs are not valid anymore due to activity timeout. - RespondActivityTaskFailedByID(ctx context.Context, in *RespondActivityTaskFailedByIDRequest, opts ...grpc.CallOption) (*RespondActivityTaskFailedByIDResponse, error) - // RespondActivityTaskCanceled is called by application worker when it is successfully canceled an ActivityTask. - // It will result in a new 'ActivityTaskCanceled' event being written to the workflow history and a new DecisionTask - // created for the workflow instance so new decisions could be made. Use the 'taskToken' provided as response of - // PollForActivityTask API call for completion. It fails with 'EntityNotExistsError' if the taskToken is not valid - // anymore due to activity timeout. - RespondActivityTaskCanceled(ctx context.Context, in *RespondActivityTaskCanceledRequest, opts ...grpc.CallOption) (*RespondActivityTaskCanceledResponse, error) - // RespondActivityTaskCanceledByID is called by application worker when it is successfully canceled an ActivityTask. - // It will result in a new 'ActivityTaskCanceled' event being written to the workflow history and a new DecisionTask - // created for the workflow instance so new decisions could be made. Similar to RespondActivityTaskCanceled but use - // Domain, WorkflowID and ActivityID instead of 'taskToken' for completion. It fails with 'EntityNotExistsError' - // if the these IDs are not valid anymore due to activity timeout. - RespondActivityTaskCanceledByID(ctx context.Context, in *RespondActivityTaskCanceledByIDRequest, opts ...grpc.CallOption) (*RespondActivityTaskCanceledByIDResponse, error) - // RecordActivityTaskHeartbeat is called by application worker while it is processing an ActivityTask. If worker fails - // to heartbeat within 'heartbeatTimeoutSeconds' interval for the ActivityTask, then it will be marked as timedout and - // 'ActivityTaskTimedOut' event will be written to the workflow history. Calling 'RecordActivityTaskHeartbeat' will - // fail with 'EntityNotExistsError' in such situations. Use the 'taskToken' provided as response of - // PollForActivityTask API call for heartbeating. - RecordActivityTaskHeartbeat(ctx context.Context, in *RecordActivityTaskHeartbeatRequest, opts ...grpc.CallOption) (*RecordActivityTaskHeartbeatResponse, error) - // RecordActivityTaskHeartbeatByID is called by application worker while it is processing an ActivityTask. If worker - // fails to heartbeat within 'heartbeatTimeoutSeconds' interval for the ActivityTask, then it will be marked as - // timed out and 'ActivityTaskTimedOut' event will be written to the workflow history. - // Calling 'RecordActivityTaskHeartbeatByID' will fail with 'EntityNotExistsError' in such situations. Instead of - // using 'taskToken' like in RecordActivityTaskHeartbeat, use Domain, WorkflowID and ActivityID. - RecordActivityTaskHeartbeatByID(ctx context.Context, in *RecordActivityTaskHeartbeatByIDRequest, opts ...grpc.CallOption) (*RecordActivityTaskHeartbeatByIDResponse, error) - // RespondQueryTaskCompleted is called by application worker to complete a QueryTask (which is a DecisionTask for query) - // as a result of 'PollForDecisionTask' API call. Completing a QueryTask will unblock the client call to 'QueryWorkflow' - // API and return the query result to client as a response to 'QueryWorkflow' API call. - RespondQueryTaskCompleted(ctx context.Context, in *RespondQueryTaskCompletedRequest, opts ...grpc.CallOption) (*RespondQueryTaskCompletedResponse, error) - // RequestCancelWorkflowExecution is called by application worker when it wants to request cancellation of a workflow - // instance. It will result in a new 'WorkflowExecutionCancelRequested' event being written to the workflow history - // and a new DecisionTask created for the workflow instance so new decisions could be made. It fails with - // 'EntityNotExistsError' if the workflow is not valid anymore due to completion or doesn't exist. - RequestCancelWorkflowExecution(ctx context.Context, in *RequestCancelWorkflowExecutionRequest, opts ...grpc.CallOption) (*RequestCancelWorkflowExecutionResponse, error) -} - -type workerAPIClient struct { - cc *grpc.ClientConn -} - -func NewWorkerAPIClient(cc *grpc.ClientConn) WorkerAPIClient { - return &workerAPIClient{cc} -} - -func (c *workerAPIClient) PollForDecisionTask(ctx context.Context, in *PollForDecisionTaskRequest, opts ...grpc.CallOption) (*PollForDecisionTaskResponse, error) { - out := new(PollForDecisionTaskResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkerAPI/PollForDecisionTask", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workerAPIClient) RespondDecisionTaskCompleted(ctx context.Context, in *RespondDecisionTaskCompletedRequest, opts ...grpc.CallOption) (*RespondDecisionTaskCompletedResponse, error) { - out := new(RespondDecisionTaskCompletedResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkerAPI/RespondDecisionTaskCompleted", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workerAPIClient) RespondDecisionTaskFailed(ctx context.Context, in *RespondDecisionTaskFailedRequest, opts ...grpc.CallOption) (*RespondDecisionTaskFailedResponse, error) { - out := new(RespondDecisionTaskFailedResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkerAPI/RespondDecisionTaskFailed", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workerAPIClient) PollForActivityTask(ctx context.Context, in *PollForActivityTaskRequest, opts ...grpc.CallOption) (*PollForActivityTaskResponse, error) { - out := new(PollForActivityTaskResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkerAPI/PollForActivityTask", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workerAPIClient) RespondActivityTaskCompleted(ctx context.Context, in *RespondActivityTaskCompletedRequest, opts ...grpc.CallOption) (*RespondActivityTaskCompletedResponse, error) { - out := new(RespondActivityTaskCompletedResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkerAPI/RespondActivityTaskCompleted", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workerAPIClient) RespondActivityTaskCompletedByID(ctx context.Context, in *RespondActivityTaskCompletedByIDRequest, opts ...grpc.CallOption) (*RespondActivityTaskCompletedByIDResponse, error) { - out := new(RespondActivityTaskCompletedByIDResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkerAPI/RespondActivityTaskCompletedByID", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workerAPIClient) RespondActivityTaskFailed(ctx context.Context, in *RespondActivityTaskFailedRequest, opts ...grpc.CallOption) (*RespondActivityTaskFailedResponse, error) { - out := new(RespondActivityTaskFailedResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkerAPI/RespondActivityTaskFailed", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workerAPIClient) RespondActivityTaskFailedByID(ctx context.Context, in *RespondActivityTaskFailedByIDRequest, opts ...grpc.CallOption) (*RespondActivityTaskFailedByIDResponse, error) { - out := new(RespondActivityTaskFailedByIDResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkerAPI/RespondActivityTaskFailedByID", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workerAPIClient) RespondActivityTaskCanceled(ctx context.Context, in *RespondActivityTaskCanceledRequest, opts ...grpc.CallOption) (*RespondActivityTaskCanceledResponse, error) { - out := new(RespondActivityTaskCanceledResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkerAPI/RespondActivityTaskCanceled", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workerAPIClient) RespondActivityTaskCanceledByID(ctx context.Context, in *RespondActivityTaskCanceledByIDRequest, opts ...grpc.CallOption) (*RespondActivityTaskCanceledByIDResponse, error) { - out := new(RespondActivityTaskCanceledByIDResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkerAPI/RespondActivityTaskCanceledByID", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workerAPIClient) RecordActivityTaskHeartbeat(ctx context.Context, in *RecordActivityTaskHeartbeatRequest, opts ...grpc.CallOption) (*RecordActivityTaskHeartbeatResponse, error) { - out := new(RecordActivityTaskHeartbeatResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkerAPI/RecordActivityTaskHeartbeat", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workerAPIClient) RecordActivityTaskHeartbeatByID(ctx context.Context, in *RecordActivityTaskHeartbeatByIDRequest, opts ...grpc.CallOption) (*RecordActivityTaskHeartbeatByIDResponse, error) { - out := new(RecordActivityTaskHeartbeatByIDResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkerAPI/RecordActivityTaskHeartbeatByID", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workerAPIClient) RespondQueryTaskCompleted(ctx context.Context, in *RespondQueryTaskCompletedRequest, opts ...grpc.CallOption) (*RespondQueryTaskCompletedResponse, error) { - out := new(RespondQueryTaskCompletedResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkerAPI/RespondQueryTaskCompleted", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workerAPIClient) RequestCancelWorkflowExecution(ctx context.Context, in *RequestCancelWorkflowExecutionRequest, opts ...grpc.CallOption) (*RequestCancelWorkflowExecutionResponse, error) { - out := new(RequestCancelWorkflowExecutionResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkerAPI/RequestCancelWorkflowExecution", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// WorkerAPIServer is the server API for WorkerAPI service. -type WorkerAPIServer interface { - // PollForDecisionTask is called by application worker to process DecisionTask from a specific taskList. - // A DecisionTask is dispatched to callers for active workflow executions, with pending decisions. - // Application is then expected to call 'RespondDecisionTaskCompleted' API when it is done processing the DecisionTask. - // It will also create a 'DecisionTaskStarted' event in the history for that session before handing off DecisionTask to - // application worker. - PollForDecisionTask(context.Context, *PollForDecisionTaskRequest) (*PollForDecisionTaskResponse, error) - // RespondDecisionTaskCompleted is called by application worker to complete a DecisionTask handed as a result of - // 'PollForDecisionTask' API call. Completing a DecisionTask will result in new events for the workflow execution and - // potentially new ActivityTask being created for corresponding decisions. It will also create a DecisionTaskCompleted - // event in the history for that session. Use the 'taskToken' provided as response of PollForDecisionTask API call - // for completing the DecisionTask. - // The response could contain a new decision task if there is one or if the request asking for one. - RespondDecisionTaskCompleted(context.Context, *RespondDecisionTaskCompletedRequest) (*RespondDecisionTaskCompletedResponse, error) - // RespondDecisionTaskFailed is called by application worker to indicate failure. This results in - // DecisionTaskFailedEvent written to the history and a new DecisionTask created. This API can be used by client to - // either clear sticky tasklist or report any panics during DecisionTask processing. Cadence will only append first - // DecisionTaskFailed event to the history of workflow execution for consecutive failures. - RespondDecisionTaskFailed(context.Context, *RespondDecisionTaskFailedRequest) (*RespondDecisionTaskFailedResponse, error) - // PollForActivityTask is called by application worker to process ActivityTask from a specific taskList. ActivityTask - // is dispatched to callers whenever a ScheduleTask decision is made for a workflow execution. - // Application is expected to call 'RespondActivityTaskCompleted' or 'RespondActivityTaskFailed' once it is done - // processing the task. - // Application also needs to call 'RecordActivityTaskHeartbeat' API within 'heartbeatTimeoutSeconds' interval to - // prevent the task from getting timed out. An event 'ActivityTaskStarted' event is also written to workflow execution - // history before the ActivityTask is dispatched to application worker. - PollForActivityTask(context.Context, *PollForActivityTaskRequest) (*PollForActivityTaskResponse, error) - // RespondActivityTaskCompleted is called by application worker when it is done processing an ActivityTask. It will - // result in a new 'ActivityTaskCompleted' event being written to the workflow history and a new DecisionTask - // created for the workflow so new decisions could be made. Use the 'taskToken' provided as response of - // PollForActivityTask API call for completion. It fails with 'EntityNotExistsError' if the taskToken is not valid - // anymore due to activity timeout. - RespondActivityTaskCompleted(context.Context, *RespondActivityTaskCompletedRequest) (*RespondActivityTaskCompletedResponse, error) - // RespondActivityTaskCompletedByID is called by application worker when it is done processing an ActivityTask. - // It will result in a new 'ActivityTaskCompleted' event being written to the workflow history and a new DecisionTask - // created for the workflow so new decisions could be made. Similar to RespondActivityTaskCompleted but use Domain, - // WorkflowID and ActivityID instead of 'taskToken' for completion. It fails with 'EntityNotExistsError' - // if the these IDs are not valid anymore due to activity timeout. - RespondActivityTaskCompletedByID(context.Context, *RespondActivityTaskCompletedByIDRequest) (*RespondActivityTaskCompletedByIDResponse, error) - // RespondActivityTaskFailed is called by application worker when it is done processing an ActivityTask. It will - // result in a new 'ActivityTaskFailed' event being written to the workflow history and a new DecisionTask - // created for the workflow instance so new decisions could be made. Use the 'taskToken' provided as response of - // PollForActivityTask API call for completion. It fails with 'EntityNotExistsError' if the taskToken is not valid - // anymore due to activity timeout. - RespondActivityTaskFailed(context.Context, *RespondActivityTaskFailedRequest) (*RespondActivityTaskFailedResponse, error) - // RespondActivityTaskFailedByID is called by application worker when it is done processing an ActivityTask. - // It will result in a new 'ActivityTaskFailed' event being written to the workflow history and a new DecisionTask - // created for the workflow instance so new decisions could be made. Similar to RespondActivityTaskFailed but use - // Domain, WorkflowID and ActivityID instead of 'taskToken' for completion. It fails with 'EntityNotExistsError' - // if the these IDs are not valid anymore due to activity timeout. - RespondActivityTaskFailedByID(context.Context, *RespondActivityTaskFailedByIDRequest) (*RespondActivityTaskFailedByIDResponse, error) - // RespondActivityTaskCanceled is called by application worker when it is successfully canceled an ActivityTask. - // It will result in a new 'ActivityTaskCanceled' event being written to the workflow history and a new DecisionTask - // created for the workflow instance so new decisions could be made. Use the 'taskToken' provided as response of - // PollForActivityTask API call for completion. It fails with 'EntityNotExistsError' if the taskToken is not valid - // anymore due to activity timeout. - RespondActivityTaskCanceled(context.Context, *RespondActivityTaskCanceledRequest) (*RespondActivityTaskCanceledResponse, error) - // RespondActivityTaskCanceledByID is called by application worker when it is successfully canceled an ActivityTask. - // It will result in a new 'ActivityTaskCanceled' event being written to the workflow history and a new DecisionTask - // created for the workflow instance so new decisions could be made. Similar to RespondActivityTaskCanceled but use - // Domain, WorkflowID and ActivityID instead of 'taskToken' for completion. It fails with 'EntityNotExistsError' - // if the these IDs are not valid anymore due to activity timeout. - RespondActivityTaskCanceledByID(context.Context, *RespondActivityTaskCanceledByIDRequest) (*RespondActivityTaskCanceledByIDResponse, error) - // RecordActivityTaskHeartbeat is called by application worker while it is processing an ActivityTask. If worker fails - // to heartbeat within 'heartbeatTimeoutSeconds' interval for the ActivityTask, then it will be marked as timedout and - // 'ActivityTaskTimedOut' event will be written to the workflow history. Calling 'RecordActivityTaskHeartbeat' will - // fail with 'EntityNotExistsError' in such situations. Use the 'taskToken' provided as response of - // PollForActivityTask API call for heartbeating. - RecordActivityTaskHeartbeat(context.Context, *RecordActivityTaskHeartbeatRequest) (*RecordActivityTaskHeartbeatResponse, error) - // RecordActivityTaskHeartbeatByID is called by application worker while it is processing an ActivityTask. If worker - // fails to heartbeat within 'heartbeatTimeoutSeconds' interval for the ActivityTask, then it will be marked as - // timed out and 'ActivityTaskTimedOut' event will be written to the workflow history. - // Calling 'RecordActivityTaskHeartbeatByID' will fail with 'EntityNotExistsError' in such situations. Instead of - // using 'taskToken' like in RecordActivityTaskHeartbeat, use Domain, WorkflowID and ActivityID. - RecordActivityTaskHeartbeatByID(context.Context, *RecordActivityTaskHeartbeatByIDRequest) (*RecordActivityTaskHeartbeatByIDResponse, error) - // RespondQueryTaskCompleted is called by application worker to complete a QueryTask (which is a DecisionTask for query) - // as a result of 'PollForDecisionTask' API call. Completing a QueryTask will unblock the client call to 'QueryWorkflow' - // API and return the query result to client as a response to 'QueryWorkflow' API call. - RespondQueryTaskCompleted(context.Context, *RespondQueryTaskCompletedRequest) (*RespondQueryTaskCompletedResponse, error) - // RequestCancelWorkflowExecution is called by application worker when it wants to request cancellation of a workflow - // instance. It will result in a new 'WorkflowExecutionCancelRequested' event being written to the workflow history - // and a new DecisionTask created for the workflow instance so new decisions could be made. It fails with - // 'EntityNotExistsError' if the workflow is not valid anymore due to completion or doesn't exist. - RequestCancelWorkflowExecution(context.Context, *RequestCancelWorkflowExecutionRequest) (*RequestCancelWorkflowExecutionResponse, error) -} - -// UnimplementedWorkerAPIServer can be embedded to have forward compatible implementations. -type UnimplementedWorkerAPIServer struct { -} - -func (*UnimplementedWorkerAPIServer) PollForDecisionTask(ctx context.Context, req *PollForDecisionTaskRequest) (*PollForDecisionTaskResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PollForDecisionTask not implemented") -} -func (*UnimplementedWorkerAPIServer) RespondDecisionTaskCompleted(ctx context.Context, req *RespondDecisionTaskCompletedRequest) (*RespondDecisionTaskCompletedResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RespondDecisionTaskCompleted not implemented") -} -func (*UnimplementedWorkerAPIServer) RespondDecisionTaskFailed(ctx context.Context, req *RespondDecisionTaskFailedRequest) (*RespondDecisionTaskFailedResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RespondDecisionTaskFailed not implemented") -} -func (*UnimplementedWorkerAPIServer) PollForActivityTask(ctx context.Context, req *PollForActivityTaskRequest) (*PollForActivityTaskResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PollForActivityTask not implemented") -} -func (*UnimplementedWorkerAPIServer) RespondActivityTaskCompleted(ctx context.Context, req *RespondActivityTaskCompletedRequest) (*RespondActivityTaskCompletedResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RespondActivityTaskCompleted not implemented") -} -func (*UnimplementedWorkerAPIServer) RespondActivityTaskCompletedByID(ctx context.Context, req *RespondActivityTaskCompletedByIDRequest) (*RespondActivityTaskCompletedByIDResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RespondActivityTaskCompletedByID not implemented") -} -func (*UnimplementedWorkerAPIServer) RespondActivityTaskFailed(ctx context.Context, req *RespondActivityTaskFailedRequest) (*RespondActivityTaskFailedResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RespondActivityTaskFailed not implemented") -} -func (*UnimplementedWorkerAPIServer) RespondActivityTaskFailedByID(ctx context.Context, req *RespondActivityTaskFailedByIDRequest) (*RespondActivityTaskFailedByIDResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RespondActivityTaskFailedByID not implemented") -} -func (*UnimplementedWorkerAPIServer) RespondActivityTaskCanceled(ctx context.Context, req *RespondActivityTaskCanceledRequest) (*RespondActivityTaskCanceledResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RespondActivityTaskCanceled not implemented") -} -func (*UnimplementedWorkerAPIServer) RespondActivityTaskCanceledByID(ctx context.Context, req *RespondActivityTaskCanceledByIDRequest) (*RespondActivityTaskCanceledByIDResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RespondActivityTaskCanceledByID not implemented") -} -func (*UnimplementedWorkerAPIServer) RecordActivityTaskHeartbeat(ctx context.Context, req *RecordActivityTaskHeartbeatRequest) (*RecordActivityTaskHeartbeatResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RecordActivityTaskHeartbeat not implemented") -} -func (*UnimplementedWorkerAPIServer) RecordActivityTaskHeartbeatByID(ctx context.Context, req *RecordActivityTaskHeartbeatByIDRequest) (*RecordActivityTaskHeartbeatByIDResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RecordActivityTaskHeartbeatByID not implemented") -} -func (*UnimplementedWorkerAPIServer) RespondQueryTaskCompleted(ctx context.Context, req *RespondQueryTaskCompletedRequest) (*RespondQueryTaskCompletedResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RespondQueryTaskCompleted not implemented") -} -func (*UnimplementedWorkerAPIServer) RequestCancelWorkflowExecution(ctx context.Context, req *RequestCancelWorkflowExecutionRequest) (*RequestCancelWorkflowExecutionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RequestCancelWorkflowExecution not implemented") -} - -func RegisterWorkerAPIServer(s *grpc.Server, srv WorkerAPIServer) { - s.RegisterService(&_WorkerAPI_serviceDesc, srv) -} - -func _WorkerAPI_PollForDecisionTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PollForDecisionTaskRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkerAPIServer).PollForDecisionTask(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.WorkerAPI/PollForDecisionTask", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkerAPIServer).PollForDecisionTask(ctx, req.(*PollForDecisionTaskRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _WorkerAPI_RespondDecisionTaskCompleted_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RespondDecisionTaskCompletedRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkerAPIServer).RespondDecisionTaskCompleted(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.WorkerAPI/RespondDecisionTaskCompleted", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkerAPIServer).RespondDecisionTaskCompleted(ctx, req.(*RespondDecisionTaskCompletedRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _WorkerAPI_RespondDecisionTaskFailed_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RespondDecisionTaskFailedRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkerAPIServer).RespondDecisionTaskFailed(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.WorkerAPI/RespondDecisionTaskFailed", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkerAPIServer).RespondDecisionTaskFailed(ctx, req.(*RespondDecisionTaskFailedRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _WorkerAPI_PollForActivityTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PollForActivityTaskRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkerAPIServer).PollForActivityTask(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.WorkerAPI/PollForActivityTask", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkerAPIServer).PollForActivityTask(ctx, req.(*PollForActivityTaskRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _WorkerAPI_RespondActivityTaskCompleted_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RespondActivityTaskCompletedRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkerAPIServer).RespondActivityTaskCompleted(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.WorkerAPI/RespondActivityTaskCompleted", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkerAPIServer).RespondActivityTaskCompleted(ctx, req.(*RespondActivityTaskCompletedRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _WorkerAPI_RespondActivityTaskCompletedByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RespondActivityTaskCompletedByIDRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkerAPIServer).RespondActivityTaskCompletedByID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.WorkerAPI/RespondActivityTaskCompletedByID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkerAPIServer).RespondActivityTaskCompletedByID(ctx, req.(*RespondActivityTaskCompletedByIDRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _WorkerAPI_RespondActivityTaskFailed_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RespondActivityTaskFailedRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkerAPIServer).RespondActivityTaskFailed(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.WorkerAPI/RespondActivityTaskFailed", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkerAPIServer).RespondActivityTaskFailed(ctx, req.(*RespondActivityTaskFailedRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _WorkerAPI_RespondActivityTaskFailedByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RespondActivityTaskFailedByIDRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkerAPIServer).RespondActivityTaskFailedByID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.WorkerAPI/RespondActivityTaskFailedByID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkerAPIServer).RespondActivityTaskFailedByID(ctx, req.(*RespondActivityTaskFailedByIDRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _WorkerAPI_RespondActivityTaskCanceled_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RespondActivityTaskCanceledRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkerAPIServer).RespondActivityTaskCanceled(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.WorkerAPI/RespondActivityTaskCanceled", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkerAPIServer).RespondActivityTaskCanceled(ctx, req.(*RespondActivityTaskCanceledRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _WorkerAPI_RespondActivityTaskCanceledByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RespondActivityTaskCanceledByIDRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkerAPIServer).RespondActivityTaskCanceledByID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.WorkerAPI/RespondActivityTaskCanceledByID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkerAPIServer).RespondActivityTaskCanceledByID(ctx, req.(*RespondActivityTaskCanceledByIDRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _WorkerAPI_RecordActivityTaskHeartbeat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RecordActivityTaskHeartbeatRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkerAPIServer).RecordActivityTaskHeartbeat(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.WorkerAPI/RecordActivityTaskHeartbeat", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkerAPIServer).RecordActivityTaskHeartbeat(ctx, req.(*RecordActivityTaskHeartbeatRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _WorkerAPI_RecordActivityTaskHeartbeatByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RecordActivityTaskHeartbeatByIDRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkerAPIServer).RecordActivityTaskHeartbeatByID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.WorkerAPI/RecordActivityTaskHeartbeatByID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkerAPIServer).RecordActivityTaskHeartbeatByID(ctx, req.(*RecordActivityTaskHeartbeatByIDRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _WorkerAPI_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.(WorkerAPIServer).RespondQueryTaskCompleted(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.WorkerAPI/RespondQueryTaskCompleted", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkerAPIServer).RespondQueryTaskCompleted(ctx, req.(*RespondQueryTaskCompletedRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _WorkerAPI_RequestCancelWorkflowExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RequestCancelWorkflowExecutionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkerAPIServer).RequestCancelWorkflowExecution(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.WorkerAPI/RequestCancelWorkflowExecution", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkerAPIServer).RequestCancelWorkflowExecution(ctx, req.(*RequestCancelWorkflowExecutionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _WorkerAPI_serviceDesc = grpc.ServiceDesc{ - ServiceName: "uber.cadence.api.v1.WorkerAPI", - HandlerType: (*WorkerAPIServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "PollForDecisionTask", - Handler: _WorkerAPI_PollForDecisionTask_Handler, - }, - { - MethodName: "RespondDecisionTaskCompleted", - Handler: _WorkerAPI_RespondDecisionTaskCompleted_Handler, - }, - { - MethodName: "RespondDecisionTaskFailed", - Handler: _WorkerAPI_RespondDecisionTaskFailed_Handler, - }, - { - MethodName: "PollForActivityTask", - Handler: _WorkerAPI_PollForActivityTask_Handler, - }, - { - MethodName: "RespondActivityTaskCompleted", - Handler: _WorkerAPI_RespondActivityTaskCompleted_Handler, - }, - { - MethodName: "RespondActivityTaskCompletedByID", - Handler: _WorkerAPI_RespondActivityTaskCompletedByID_Handler, - }, - { - MethodName: "RespondActivityTaskFailed", - Handler: _WorkerAPI_RespondActivityTaskFailed_Handler, - }, - { - MethodName: "RespondActivityTaskFailedByID", - Handler: _WorkerAPI_RespondActivityTaskFailedByID_Handler, - }, - { - MethodName: "RespondActivityTaskCanceled", - Handler: _WorkerAPI_RespondActivityTaskCanceled_Handler, - }, - { - MethodName: "RespondActivityTaskCanceledByID", - Handler: _WorkerAPI_RespondActivityTaskCanceledByID_Handler, - }, - { - MethodName: "RecordActivityTaskHeartbeat", - Handler: _WorkerAPI_RecordActivityTaskHeartbeat_Handler, - }, - { - MethodName: "RecordActivityTaskHeartbeatByID", - Handler: _WorkerAPI_RecordActivityTaskHeartbeatByID_Handler, - }, - { - MethodName: "RespondQueryTaskCompleted", - Handler: _WorkerAPI_RespondQueryTaskCompleted_Handler, - }, - { - MethodName: "RequestCancelWorkflowExecution", - Handler: _WorkerAPI_RequestCancelWorkflowExecution_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "github.com/uber/cadence/.gen/proto/api/v1/service_worker.proto", -} - -func (m *PollForDecisionTaskRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PollForDecisionTaskRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PollForDecisionTaskRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.BinaryChecksum) > 0 { - i -= len(m.BinaryChecksum) - copy(dAtA[i:], m.BinaryChecksum) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.BinaryChecksum))) - i-- - dAtA[i] = 0x22 - } - if len(m.Identity) > 0 { - i -= len(m.Identity) - copy(dAtA[i:], m.Identity) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.Identity))) - i-- - dAtA[i] = 0x1a - } - if m.TaskList != nil { - { - size, err := m.TaskList.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorker(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *PollForDecisionTaskResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PollForDecisionTaskResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PollForDecisionTaskResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Queries) > 0 { - for k := range m.Queries { - v := m.Queries[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorker(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintServiceWorker(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x72 - } - } - if m.StartedTime != nil { - n3, err3 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.StartedTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.StartedTime):]) - if err3 != nil { - return 0, err3 - } - i -= n3 - i = encodeVarintServiceWorker(dAtA, i, uint64(n3)) - i-- - dAtA[i] = 0x6a - } - if m.ScheduledTime != nil { - n4, err4 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.ScheduledTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.ScheduledTime):]) - if err4 != nil { - return 0, err4 - } - i -= n4 - i = encodeVarintServiceWorker(dAtA, i, uint64(n4)) - i-- - dAtA[i] = 0x62 - } - if m.WorkflowExecutionTaskList != nil { - { - size, err := m.WorkflowExecutionTaskList.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorker(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - } - if m.Query != nil { - { - size, err := m.Query.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorker(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - } - if len(m.NextPageToken) > 0 { - i -= len(m.NextPageToken) - copy(dAtA[i:], m.NextPageToken) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.NextPageToken))) - i-- - dAtA[i] = 0x4a - } - if m.History != nil { - { - size, err := m.History.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorker(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } - if m.BacklogCountHint != 0 { - i = encodeVarintServiceWorker(dAtA, i, uint64(m.BacklogCountHint)) - i-- - dAtA[i] = 0x38 - } - if m.Attempt != 0 { - i = encodeVarintServiceWorker(dAtA, i, uint64(m.Attempt)) - i-- - dAtA[i] = 0x30 - } - if m.StartedEventId != 0 { - i = encodeVarintServiceWorker(dAtA, i, uint64(m.StartedEventId)) - i-- - dAtA[i] = 0x28 - } - if m.PreviousStartedEventId != 0 { - i = encodeVarintServiceWorker(dAtA, i, uint64(m.PreviousStartedEventId)) - i-- - dAtA[i] = 0x20 - } - if m.WorkflowType != nil { - { - size, err := m.WorkflowType.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorker(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorker(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.TaskToken) > 0 { - i -= len(m.TaskToken) - copy(dAtA[i:], m.TaskToken) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.TaskToken))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RespondDecisionTaskCompletedRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RespondDecisionTaskCompletedRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RespondDecisionTaskCompletedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.QueryResults) > 0 { - for k := range m.QueryResults { - v := m.QueryResults[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorker(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintServiceWorker(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x4a - } - } - if len(m.BinaryChecksum) > 0 { - i -= len(m.BinaryChecksum) - copy(dAtA[i:], m.BinaryChecksum) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.BinaryChecksum))) - i-- - dAtA[i] = 0x42 - } - if m.ForceCreateNewDecisionTask { - i-- - if m.ForceCreateNewDecisionTask { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x38 - } - if m.ReturnNewDecisionTask { - i-- - if m.ReturnNewDecisionTask { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - } - if m.StickyAttributes != nil { - { - size, err := m.StickyAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorker(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if len(m.Identity) > 0 { - i -= len(m.Identity) - copy(dAtA[i:], m.Identity) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.Identity))) - i-- - dAtA[i] = 0x22 - } - if len(m.ExecutionContext) > 0 { - i -= len(m.ExecutionContext) - copy(dAtA[i:], m.ExecutionContext) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.ExecutionContext))) - i-- - dAtA[i] = 0x1a - } - if len(m.Decisions) > 0 { - for iNdEx := len(m.Decisions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Decisions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorker(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.TaskToken) > 0 { - i -= len(m.TaskToken) - copy(dAtA[i:], m.TaskToken) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.TaskToken))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RespondDecisionTaskCompletedResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RespondDecisionTaskCompletedResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RespondDecisionTaskCompletedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ActivitiesToDispatchLocally) > 0 { - for k := range m.ActivitiesToDispatchLocally { - v := m.ActivitiesToDispatchLocally[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorker(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintServiceWorker(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 - } - } - if m.DecisionTask != nil { - { - size, err := m.DecisionTask.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorker(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RespondDecisionTaskFailedRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RespondDecisionTaskFailedRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RespondDecisionTaskFailedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.BinaryChecksum) > 0 { - i -= len(m.BinaryChecksum) - copy(dAtA[i:], m.BinaryChecksum) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.BinaryChecksum))) - i-- - dAtA[i] = 0x2a - } - if len(m.Identity) > 0 { - i -= len(m.Identity) - copy(dAtA[i:], m.Identity) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.Identity))) - i-- - dAtA[i] = 0x22 - } - if m.Details != nil { - { - size, err := m.Details.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorker(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Cause != 0 { - i = encodeVarintServiceWorker(dAtA, i, uint64(m.Cause)) - i-- - dAtA[i] = 0x10 - } - if len(m.TaskToken) > 0 { - i -= len(m.TaskToken) - copy(dAtA[i:], m.TaskToken) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.TaskToken))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RespondDecisionTaskFailedResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RespondDecisionTaskFailedResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RespondDecisionTaskFailedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *PollForActivityTaskRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PollForActivityTaskRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PollForActivityTaskRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.TaskListMetadata != nil { - { - size, err := m.TaskListMetadata.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorker(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.Identity) > 0 { - i -= len(m.Identity) - copy(dAtA[i:], m.Identity) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.Identity))) - i-- - dAtA[i] = 0x1a - } - if m.TaskList != nil { - { - size, err := m.TaskList.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorker(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *PollForActivityTaskResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PollForActivityTaskResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PollForActivityTaskResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorker(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 - } - if len(m.WorkflowDomain) > 0 { - i -= len(m.WorkflowDomain) - copy(dAtA[i:], m.WorkflowDomain) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.WorkflowDomain))) - i-- - dAtA[i] = 0x7a - } - if m.WorkflowType != nil { - { - size, err := m.WorkflowType.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorker(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x72 - } - if m.HeartbeatDetails != nil { - { - size, err := m.HeartbeatDetails.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorker(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a - } - if m.ScheduledTimeOfThisAttempt != nil { - n20, err20 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.ScheduledTimeOfThisAttempt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.ScheduledTimeOfThisAttempt):]) - if err20 != nil { - return 0, err20 - } - i -= n20 - i = encodeVarintServiceWorker(dAtA, i, uint64(n20)) - i-- - dAtA[i] = 0x62 - } - if m.Attempt != 0 { - i = encodeVarintServiceWorker(dAtA, i, uint64(m.Attempt)) - i-- - dAtA[i] = 0x58 - } - if m.HeartbeatTimeout != nil { - n21, err21 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.HeartbeatTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.HeartbeatTimeout):]) - if err21 != nil { - return 0, err21 - } - i -= n21 - i = encodeVarintServiceWorker(dAtA, i, uint64(n21)) - i-- - dAtA[i] = 0x52 - } - if m.StartToCloseTimeout != nil { - n22, err22 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.StartToCloseTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.StartToCloseTimeout):]) - if err22 != nil { - return 0, err22 - } - i -= n22 - i = encodeVarintServiceWorker(dAtA, i, uint64(n22)) - i-- - dAtA[i] = 0x4a - } - if m.ScheduleToCloseTimeout != nil { - n23, err23 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.ScheduleToCloseTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ScheduleToCloseTimeout):]) - if err23 != nil { - return 0, err23 - } - i -= n23 - i = encodeVarintServiceWorker(dAtA, i, uint64(n23)) - i-- - dAtA[i] = 0x42 - } - if m.StartedTime != nil { - n24, err24 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.StartedTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.StartedTime):]) - if err24 != nil { - return 0, err24 - } - i -= n24 - i = encodeVarintServiceWorker(dAtA, i, uint64(n24)) - i-- - dAtA[i] = 0x3a - } - if m.ScheduledTime != nil { - n25, err25 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.ScheduledTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.ScheduledTime):]) - if err25 != nil { - return 0, err25 - } - i -= n25 - i = encodeVarintServiceWorker(dAtA, i, uint64(n25)) - i-- - dAtA[i] = 0x32 - } - if m.Input != nil { - { - size, err := m.Input.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorker(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.ActivityType != nil { - { - size, err := m.ActivityType.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorker(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.ActivityId) > 0 { - i -= len(m.ActivityId) - copy(dAtA[i:], m.ActivityId) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.ActivityId))) - i-- - dAtA[i] = 0x1a - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorker(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.TaskToken) > 0 { - i -= len(m.TaskToken) - copy(dAtA[i:], m.TaskToken) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.TaskToken))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RespondActivityTaskCompletedRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RespondActivityTaskCompletedRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RespondActivityTaskCompletedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Identity) > 0 { - i -= len(m.Identity) - copy(dAtA[i:], m.Identity) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.Identity))) - i-- - dAtA[i] = 0x1a - } - if m.Result != nil { - { - size, err := m.Result.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorker(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.TaskToken) > 0 { - i -= len(m.TaskToken) - copy(dAtA[i:], m.TaskToken) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.TaskToken))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RespondActivityTaskCompletedResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RespondActivityTaskCompletedResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RespondActivityTaskCompletedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RespondActivityTaskCompletedByIDRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RespondActivityTaskCompletedByIDRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RespondActivityTaskCompletedByIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Identity) > 0 { - i -= len(m.Identity) - copy(dAtA[i:], m.Identity) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.Identity))) - i-- - dAtA[i] = 0x2a - } - if m.Result != nil { - { - size, err := m.Result.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorker(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.ActivityId) > 0 { - i -= len(m.ActivityId) - copy(dAtA[i:], m.ActivityId) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.ActivityId))) - i-- - dAtA[i] = 0x1a - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorker(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RespondActivityTaskCompletedByIDResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RespondActivityTaskCompletedByIDResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RespondActivityTaskCompletedByIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RespondActivityTaskFailedRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RespondActivityTaskFailedRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RespondActivityTaskFailedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Identity) > 0 { - i -= len(m.Identity) - copy(dAtA[i:], m.Identity) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.Identity))) - i-- - dAtA[i] = 0x1a - } - if m.Failure != nil { - { - size, err := m.Failure.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorker(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.TaskToken) > 0 { - i -= len(m.TaskToken) - copy(dAtA[i:], m.TaskToken) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.TaskToken))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RespondActivityTaskFailedResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RespondActivityTaskFailedResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RespondActivityTaskFailedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RespondActivityTaskFailedByIDRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RespondActivityTaskFailedByIDRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RespondActivityTaskFailedByIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Identity) > 0 { - i -= len(m.Identity) - copy(dAtA[i:], m.Identity) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.Identity))) - i-- - dAtA[i] = 0x2a - } - if m.Failure != nil { - { - size, err := m.Failure.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorker(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.ActivityId) > 0 { - i -= len(m.ActivityId) - copy(dAtA[i:], m.ActivityId) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.ActivityId))) - i-- - dAtA[i] = 0x1a - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorker(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RespondActivityTaskFailedByIDResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RespondActivityTaskFailedByIDResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RespondActivityTaskFailedByIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RespondActivityTaskCanceledRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RespondActivityTaskCanceledRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RespondActivityTaskCanceledRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Identity) > 0 { - i -= len(m.Identity) - copy(dAtA[i:], m.Identity) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.Identity))) - i-- - dAtA[i] = 0x1a - } - if m.Details != nil { - { - size, err := m.Details.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorker(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.TaskToken) > 0 { - i -= len(m.TaskToken) - copy(dAtA[i:], m.TaskToken) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.TaskToken))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RespondActivityTaskCanceledResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RespondActivityTaskCanceledResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RespondActivityTaskCanceledResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RespondActivityTaskCanceledByIDRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RespondActivityTaskCanceledByIDRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RespondActivityTaskCanceledByIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Identity) > 0 { - i -= len(m.Identity) - copy(dAtA[i:], m.Identity) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.Identity))) - i-- - dAtA[i] = 0x2a - } - if m.Details != nil { - { - size, err := m.Details.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorker(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.ActivityId) > 0 { - i -= len(m.ActivityId) - copy(dAtA[i:], m.ActivityId) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.ActivityId))) - i-- - dAtA[i] = 0x1a - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorker(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RespondActivityTaskCanceledByIDResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RespondActivityTaskCanceledByIDResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RespondActivityTaskCanceledByIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RecordActivityTaskHeartbeatRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RecordActivityTaskHeartbeatRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RecordActivityTaskHeartbeatRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Identity) > 0 { - i -= len(m.Identity) - copy(dAtA[i:], m.Identity) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.Identity))) - i-- - dAtA[i] = 0x1a - } - if m.Details != nil { - { - size, err := m.Details.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorker(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.TaskToken) > 0 { - i -= len(m.TaskToken) - copy(dAtA[i:], m.TaskToken) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.TaskToken))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RecordActivityTaskHeartbeatResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RecordActivityTaskHeartbeatResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RecordActivityTaskHeartbeatResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.CancelRequested { - i-- - if m.CancelRequested { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *RecordActivityTaskHeartbeatByIDRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RecordActivityTaskHeartbeatByIDRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RecordActivityTaskHeartbeatByIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Identity) > 0 { - i -= len(m.Identity) - copy(dAtA[i:], m.Identity) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.Identity))) - i-- - dAtA[i] = 0x2a - } - if m.Details != nil { - { - size, err := m.Details.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorker(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.ActivityId) > 0 { - i -= len(m.ActivityId) - copy(dAtA[i:], m.ActivityId) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.ActivityId))) - i-- - dAtA[i] = 0x1a - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorker(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RecordActivityTaskHeartbeatByIDResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RecordActivityTaskHeartbeatByIDResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RecordActivityTaskHeartbeatByIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.CancelRequested { - i-- - if m.CancelRequested { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *RespondQueryTaskCompletedRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RespondQueryTaskCompletedRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RespondQueryTaskCompletedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.WorkerVersionInfo != nil { - { - size, err := m.WorkerVersionInfo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorker(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Result != nil { - { - size, err := m.Result.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorker(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.TaskToken) > 0 { - i -= len(m.TaskToken) - copy(dAtA[i:], m.TaskToken) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.TaskToken))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RespondQueryTaskCompletedResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RespondQueryTaskCompletedResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RespondQueryTaskCompletedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RequestCancelWorkflowExecutionRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RequestCancelWorkflowExecutionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RequestCancelWorkflowExecutionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RequestId) > 0 { - i -= len(m.RequestId) - copy(dAtA[i:], m.RequestId) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.RequestId))) - i-- - dAtA[i] = 0x22 - } - if len(m.Identity) > 0 { - i -= len(m.Identity) - copy(dAtA[i:], m.Identity) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.Identity))) - i-- - dAtA[i] = 0x1a - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorker(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintServiceWorker(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RequestCancelWorkflowExecutionResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RequestCancelWorkflowExecutionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RequestCancelWorkflowExecutionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func encodeVarintServiceWorker(dAtA []byte, offset int, v uint64) int { - offset -= sovServiceWorker(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *PollForDecisionTaskRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.TaskList != nil { - l = m.TaskList.Size() - n += 1 + l + sovServiceWorker(uint64(l)) - } - l = len(m.Identity) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - l = len(m.BinaryChecksum) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - return n -} - -func (m *PollForDecisionTaskResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.TaskToken) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.WorkflowType != nil { - l = m.WorkflowType.Size() - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.PreviousStartedEventId != 0 { - n += 1 + sovServiceWorker(uint64(m.PreviousStartedEventId)) - } - if m.StartedEventId != 0 { - n += 1 + sovServiceWorker(uint64(m.StartedEventId)) - } - if m.Attempt != 0 { - n += 1 + sovServiceWorker(uint64(m.Attempt)) - } - if m.BacklogCountHint != 0 { - n += 1 + sovServiceWorker(uint64(m.BacklogCountHint)) - } - if m.History != nil { - l = m.History.Size() - n += 1 + l + sovServiceWorker(uint64(l)) - } - l = len(m.NextPageToken) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.Query != nil { - l = m.Query.Size() - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.WorkflowExecutionTaskList != nil { - l = m.WorkflowExecutionTaskList.Size() - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.ScheduledTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.ScheduledTime) - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.StartedTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.StartedTime) - n += 1 + l + sovServiceWorker(uint64(l)) - } - if len(m.Queries) > 0 { - for k, v := range m.Queries { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovServiceWorker(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovServiceWorker(uint64(len(k))) + l - n += mapEntrySize + 1 + sovServiceWorker(uint64(mapEntrySize)) - } - } - return n -} - -func (m *RespondDecisionTaskCompletedRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.TaskToken) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - if len(m.Decisions) > 0 { - for _, e := range m.Decisions { - l = e.Size() - n += 1 + l + sovServiceWorker(uint64(l)) - } - } - l = len(m.ExecutionContext) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - l = len(m.Identity) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.StickyAttributes != nil { - l = m.StickyAttributes.Size() - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.ReturnNewDecisionTask { - n += 2 - } - if m.ForceCreateNewDecisionTask { - n += 2 - } - l = len(m.BinaryChecksum) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - if len(m.QueryResults) > 0 { - for k, v := range m.QueryResults { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovServiceWorker(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovServiceWorker(uint64(len(k))) + l - n += mapEntrySize + 1 + sovServiceWorker(uint64(mapEntrySize)) - } - } - return n -} - -func (m *RespondDecisionTaskCompletedResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.DecisionTask != nil { - l = m.DecisionTask.Size() - n += 1 + l + sovServiceWorker(uint64(l)) - } - if len(m.ActivitiesToDispatchLocally) > 0 { - for k, v := range m.ActivitiesToDispatchLocally { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovServiceWorker(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovServiceWorker(uint64(len(k))) + l - n += mapEntrySize + 1 + sovServiceWorker(uint64(mapEntrySize)) - } - } - return n -} - -func (m *RespondDecisionTaskFailedRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.TaskToken) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.Cause != 0 { - n += 1 + sovServiceWorker(uint64(m.Cause)) - } - if m.Details != nil { - l = m.Details.Size() - n += 1 + l + sovServiceWorker(uint64(l)) - } - l = len(m.Identity) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - l = len(m.BinaryChecksum) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - return n -} - -func (m *RespondDecisionTaskFailedResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *PollForActivityTaskRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.TaskList != nil { - l = m.TaskList.Size() - n += 1 + l + sovServiceWorker(uint64(l)) - } - l = len(m.Identity) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.TaskListMetadata != nil { - l = m.TaskListMetadata.Size() - n += 1 + l + sovServiceWorker(uint64(l)) - } - return n -} - -func (m *PollForActivityTaskResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.TaskToken) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovServiceWorker(uint64(l)) - } - l = len(m.ActivityId) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.ActivityType != nil { - l = m.ActivityType.Size() - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.Input != nil { - l = m.Input.Size() - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.ScheduledTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.ScheduledTime) - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.StartedTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.StartedTime) - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.ScheduleToCloseTimeout != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ScheduleToCloseTimeout) - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.StartToCloseTimeout != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.StartToCloseTimeout) - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.HeartbeatTimeout != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.HeartbeatTimeout) - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.Attempt != 0 { - n += 1 + sovServiceWorker(uint64(m.Attempt)) - } - if m.ScheduledTimeOfThisAttempt != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.ScheduledTimeOfThisAttempt) - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.HeartbeatDetails != nil { - l = m.HeartbeatDetails.Size() - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.WorkflowType != nil { - l = m.WorkflowType.Size() - n += 1 + l + sovServiceWorker(uint64(l)) - } - l = len(m.WorkflowDomain) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.Header != nil { - l = m.Header.Size() - n += 2 + l + sovServiceWorker(uint64(l)) - } - return n -} - -func (m *RespondActivityTaskCompletedRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.TaskToken) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.Result != nil { - l = m.Result.Size() - n += 1 + l + sovServiceWorker(uint64(l)) - } - l = len(m.Identity) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - return n -} - -func (m *RespondActivityTaskCompletedResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RespondActivityTaskCompletedByIDRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovServiceWorker(uint64(l)) - } - l = len(m.ActivityId) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.Result != nil { - l = m.Result.Size() - n += 1 + l + sovServiceWorker(uint64(l)) - } - l = len(m.Identity) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - return n -} - -func (m *RespondActivityTaskCompletedByIDResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RespondActivityTaskFailedRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.TaskToken) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.Failure != nil { - l = m.Failure.Size() - n += 1 + l + sovServiceWorker(uint64(l)) - } - l = len(m.Identity) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - return n -} - -func (m *RespondActivityTaskFailedResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RespondActivityTaskFailedByIDRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovServiceWorker(uint64(l)) - } - l = len(m.ActivityId) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.Failure != nil { - l = m.Failure.Size() - n += 1 + l + sovServiceWorker(uint64(l)) - } - l = len(m.Identity) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - return n -} - -func (m *RespondActivityTaskFailedByIDResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RespondActivityTaskCanceledRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.TaskToken) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.Details != nil { - l = m.Details.Size() - n += 1 + l + sovServiceWorker(uint64(l)) - } - l = len(m.Identity) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - return n -} - -func (m *RespondActivityTaskCanceledResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RespondActivityTaskCanceledByIDRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovServiceWorker(uint64(l)) - } - l = len(m.ActivityId) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.Details != nil { - l = m.Details.Size() - n += 1 + l + sovServiceWorker(uint64(l)) - } - l = len(m.Identity) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - return n -} - -func (m *RespondActivityTaskCanceledByIDResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RecordActivityTaskHeartbeatRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.TaskToken) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.Details != nil { - l = m.Details.Size() - n += 1 + l + sovServiceWorker(uint64(l)) - } - l = len(m.Identity) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - return n -} - -func (m *RecordActivityTaskHeartbeatResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.CancelRequested { - n += 2 - } - return n -} - -func (m *RecordActivityTaskHeartbeatByIDRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovServiceWorker(uint64(l)) - } - l = len(m.ActivityId) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.Details != nil { - l = m.Details.Size() - n += 1 + l + sovServiceWorker(uint64(l)) - } - l = len(m.Identity) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - return n -} - -func (m *RecordActivityTaskHeartbeatByIDResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.CancelRequested { - n += 2 - } - return n -} - -func (m *RespondQueryTaskCompletedRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.TaskToken) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.Result != nil { - l = m.Result.Size() - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.WorkerVersionInfo != nil { - l = m.WorkerVersionInfo.Size() - n += 1 + l + sovServiceWorker(uint64(l)) - } - return n -} - -func (m *RespondQueryTaskCompletedResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RequestCancelWorkflowExecutionRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovServiceWorker(uint64(l)) - } - l = len(m.Identity) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - l = len(m.RequestId) - if l > 0 { - n += 1 + l + sovServiceWorker(uint64(l)) - } - return n -} - -func (m *RequestCancelWorkflowExecutionResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func sovServiceWorker(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozServiceWorker(x uint64) (n int) { - return sovServiceWorker(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *PollForDecisionTaskRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PollForDecisionTaskRequest{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `TaskList:` + strings.Replace(fmt.Sprintf("%v", this.TaskList), "TaskList", "TaskList", 1) + `,`, - `Identity:` + fmt.Sprintf("%v", this.Identity) + `,`, - `BinaryChecksum:` + fmt.Sprintf("%v", this.BinaryChecksum) + `,`, - `}`, - }, "") - return s -} -func (this *PollForDecisionTaskResponse) String() string { - if this == nil { - return "nil" - } - keysForQueries := make([]string, 0, len(this.Queries)) - for k, _ := range this.Queries { - keysForQueries = append(keysForQueries, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForQueries) - mapStringForQueries := "map[string]*WorkflowQuery{" - for _, k := range keysForQueries { - mapStringForQueries += fmt.Sprintf("%v: %v,", k, this.Queries[k]) - } - mapStringForQueries += "}" - s := strings.Join([]string{`&PollForDecisionTaskResponse{`, - `TaskToken:` + fmt.Sprintf("%v", this.TaskToken) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "WorkflowExecution", 1) + `,`, - `WorkflowType:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowType), "WorkflowType", "WorkflowType", 1) + `,`, - `PreviousStartedEventId:` + fmt.Sprintf("%v", this.PreviousStartedEventId) + `,`, - `StartedEventId:` + fmt.Sprintf("%v", this.StartedEventId) + `,`, - `Attempt:` + fmt.Sprintf("%v", this.Attempt) + `,`, - `BacklogCountHint:` + fmt.Sprintf("%v", this.BacklogCountHint) + `,`, - `History:` + strings.Replace(fmt.Sprintf("%v", this.History), "History", "History", 1) + `,`, - `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, - `Query:` + strings.Replace(fmt.Sprintf("%v", this.Query), "WorkflowQuery", "WorkflowQuery", 1) + `,`, - `WorkflowExecutionTaskList:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecutionTaskList), "TaskList", "TaskList", 1) + `,`, - `ScheduledTime:` + strings.Replace(fmt.Sprintf("%v", this.ScheduledTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `StartedTime:` + strings.Replace(fmt.Sprintf("%v", this.StartedTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `Queries:` + mapStringForQueries + `,`, - `}`, - }, "") - return s -} -func (this *RespondDecisionTaskCompletedRequest) String() string { - if this == nil { - return "nil" - } - repeatedStringForDecisions := "[]*Decision{" - for _, f := range this.Decisions { - repeatedStringForDecisions += strings.Replace(fmt.Sprintf("%v", f), "Decision", "Decision", 1) + "," - } - repeatedStringForDecisions += "}" - keysForQueryResults := make([]string, 0, len(this.QueryResults)) - for k, _ := range this.QueryResults { - keysForQueryResults = append(keysForQueryResults, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForQueryResults) - mapStringForQueryResults := "map[string]*WorkflowQueryResult{" - for _, k := range keysForQueryResults { - mapStringForQueryResults += fmt.Sprintf("%v: %v,", k, this.QueryResults[k]) - } - mapStringForQueryResults += "}" - s := strings.Join([]string{`&RespondDecisionTaskCompletedRequest{`, - `TaskToken:` + fmt.Sprintf("%v", this.TaskToken) + `,`, - `Decisions:` + repeatedStringForDecisions + `,`, - `ExecutionContext:` + fmt.Sprintf("%v", this.ExecutionContext) + `,`, - `Identity:` + fmt.Sprintf("%v", this.Identity) + `,`, - `StickyAttributes:` + strings.Replace(fmt.Sprintf("%v", this.StickyAttributes), "StickyExecutionAttributes", "StickyExecutionAttributes", 1) + `,`, - `ReturnNewDecisionTask:` + fmt.Sprintf("%v", this.ReturnNewDecisionTask) + `,`, - `ForceCreateNewDecisionTask:` + fmt.Sprintf("%v", this.ForceCreateNewDecisionTask) + `,`, - `BinaryChecksum:` + fmt.Sprintf("%v", this.BinaryChecksum) + `,`, - `QueryResults:` + mapStringForQueryResults + `,`, - `}`, - }, "") - return s -} -func (this *RespondDecisionTaskCompletedResponse) String() string { - if this == nil { - return "nil" - } - keysForActivitiesToDispatchLocally := make([]string, 0, len(this.ActivitiesToDispatchLocally)) - for k, _ := range this.ActivitiesToDispatchLocally { - keysForActivitiesToDispatchLocally = append(keysForActivitiesToDispatchLocally, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForActivitiesToDispatchLocally) - mapStringForActivitiesToDispatchLocally := "map[string]*ActivityLocalDispatchInfo{" - for _, k := range keysForActivitiesToDispatchLocally { - mapStringForActivitiesToDispatchLocally += fmt.Sprintf("%v: %v,", k, this.ActivitiesToDispatchLocally[k]) - } - mapStringForActivitiesToDispatchLocally += "}" - s := strings.Join([]string{`&RespondDecisionTaskCompletedResponse{`, - `DecisionTask:` + strings.Replace(this.DecisionTask.String(), "PollForDecisionTaskResponse", "PollForDecisionTaskResponse", 1) + `,`, - `ActivitiesToDispatchLocally:` + mapStringForActivitiesToDispatchLocally + `,`, - `}`, - }, "") - return s -} -func (this *RespondDecisionTaskFailedRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RespondDecisionTaskFailedRequest{`, - `TaskToken:` + fmt.Sprintf("%v", this.TaskToken) + `,`, - `Cause:` + fmt.Sprintf("%v", this.Cause) + `,`, - `Details:` + strings.Replace(fmt.Sprintf("%v", this.Details), "Payload", "Payload", 1) + `,`, - `Identity:` + fmt.Sprintf("%v", this.Identity) + `,`, - `BinaryChecksum:` + fmt.Sprintf("%v", this.BinaryChecksum) + `,`, - `}`, - }, "") - return s -} -func (this *RespondDecisionTaskFailedResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RespondDecisionTaskFailedResponse{`, - `}`, - }, "") - return s -} -func (this *PollForActivityTaskRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PollForActivityTaskRequest{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `TaskList:` + strings.Replace(fmt.Sprintf("%v", this.TaskList), "TaskList", "TaskList", 1) + `,`, - `Identity:` + fmt.Sprintf("%v", this.Identity) + `,`, - `TaskListMetadata:` + strings.Replace(fmt.Sprintf("%v", this.TaskListMetadata), "TaskListMetadata", "TaskListMetadata", 1) + `,`, - `}`, - }, "") - return s -} -func (this *PollForActivityTaskResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PollForActivityTaskResponse{`, - `TaskToken:` + fmt.Sprintf("%v", this.TaskToken) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "WorkflowExecution", 1) + `,`, - `ActivityId:` + fmt.Sprintf("%v", this.ActivityId) + `,`, - `ActivityType:` + strings.Replace(fmt.Sprintf("%v", this.ActivityType), "ActivityType", "ActivityType", 1) + `,`, - `Input:` + strings.Replace(fmt.Sprintf("%v", this.Input), "Payload", "Payload", 1) + `,`, - `ScheduledTime:` + strings.Replace(fmt.Sprintf("%v", this.ScheduledTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `StartedTime:` + strings.Replace(fmt.Sprintf("%v", this.StartedTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `ScheduleToCloseTimeout:` + strings.Replace(fmt.Sprintf("%v", this.ScheduleToCloseTimeout), "Duration", "duration.Duration", 1) + `,`, - `StartToCloseTimeout:` + strings.Replace(fmt.Sprintf("%v", this.StartToCloseTimeout), "Duration", "duration.Duration", 1) + `,`, - `HeartbeatTimeout:` + strings.Replace(fmt.Sprintf("%v", this.HeartbeatTimeout), "Duration", "duration.Duration", 1) + `,`, - `Attempt:` + fmt.Sprintf("%v", this.Attempt) + `,`, - `ScheduledTimeOfThisAttempt:` + strings.Replace(fmt.Sprintf("%v", this.ScheduledTimeOfThisAttempt), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `HeartbeatDetails:` + strings.Replace(fmt.Sprintf("%v", this.HeartbeatDetails), "Payload", "Payload", 1) + `,`, - `WorkflowType:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowType), "WorkflowType", "WorkflowType", 1) + `,`, - `WorkflowDomain:` + fmt.Sprintf("%v", this.WorkflowDomain) + `,`, - `Header:` + strings.Replace(fmt.Sprintf("%v", this.Header), "Header", "Header", 1) + `,`, - `}`, - }, "") - return s -} -func (this *RespondActivityTaskCompletedRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RespondActivityTaskCompletedRequest{`, - `TaskToken:` + fmt.Sprintf("%v", this.TaskToken) + `,`, - `Result:` + strings.Replace(fmt.Sprintf("%v", this.Result), "Payload", "Payload", 1) + `,`, - `Identity:` + fmt.Sprintf("%v", this.Identity) + `,`, - `}`, - }, "") - return s -} -func (this *RespondActivityTaskCompletedResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RespondActivityTaskCompletedResponse{`, - `}`, - }, "") - return s -} -func (this *RespondActivityTaskCompletedByIDRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RespondActivityTaskCompletedByIDRequest{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "WorkflowExecution", 1) + `,`, - `ActivityId:` + fmt.Sprintf("%v", this.ActivityId) + `,`, - `Result:` + strings.Replace(fmt.Sprintf("%v", this.Result), "Payload", "Payload", 1) + `,`, - `Identity:` + fmt.Sprintf("%v", this.Identity) + `,`, - `}`, - }, "") - return s -} -func (this *RespondActivityTaskCompletedByIDResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RespondActivityTaskCompletedByIDResponse{`, - `}`, - }, "") - return s -} -func (this *RespondActivityTaskFailedRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RespondActivityTaskFailedRequest{`, - `TaskToken:` + fmt.Sprintf("%v", this.TaskToken) + `,`, - `Failure:` + strings.Replace(fmt.Sprintf("%v", this.Failure), "Failure", "Failure", 1) + `,`, - `Identity:` + fmt.Sprintf("%v", this.Identity) + `,`, - `}`, - }, "") - return s -} -func (this *RespondActivityTaskFailedResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RespondActivityTaskFailedResponse{`, - `}`, - }, "") - return s -} -func (this *RespondActivityTaskFailedByIDRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RespondActivityTaskFailedByIDRequest{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "WorkflowExecution", 1) + `,`, - `ActivityId:` + fmt.Sprintf("%v", this.ActivityId) + `,`, - `Failure:` + strings.Replace(fmt.Sprintf("%v", this.Failure), "Failure", "Failure", 1) + `,`, - `Identity:` + fmt.Sprintf("%v", this.Identity) + `,`, - `}`, - }, "") - return s -} -func (this *RespondActivityTaskFailedByIDResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RespondActivityTaskFailedByIDResponse{`, - `}`, - }, "") - return s -} -func (this *RespondActivityTaskCanceledRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RespondActivityTaskCanceledRequest{`, - `TaskToken:` + fmt.Sprintf("%v", this.TaskToken) + `,`, - `Details:` + strings.Replace(fmt.Sprintf("%v", this.Details), "Payload", "Payload", 1) + `,`, - `Identity:` + fmt.Sprintf("%v", this.Identity) + `,`, - `}`, - }, "") - return s -} -func (this *RespondActivityTaskCanceledResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RespondActivityTaskCanceledResponse{`, - `}`, - }, "") - return s -} -func (this *RespondActivityTaskCanceledByIDRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RespondActivityTaskCanceledByIDRequest{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "WorkflowExecution", 1) + `,`, - `ActivityId:` + fmt.Sprintf("%v", this.ActivityId) + `,`, - `Details:` + strings.Replace(fmt.Sprintf("%v", this.Details), "Payload", "Payload", 1) + `,`, - `Identity:` + fmt.Sprintf("%v", this.Identity) + `,`, - `}`, - }, "") - return s -} -func (this *RespondActivityTaskCanceledByIDResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RespondActivityTaskCanceledByIDResponse{`, - `}`, - }, "") - return s -} -func (this *RecordActivityTaskHeartbeatRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RecordActivityTaskHeartbeatRequest{`, - `TaskToken:` + fmt.Sprintf("%v", this.TaskToken) + `,`, - `Details:` + strings.Replace(fmt.Sprintf("%v", this.Details), "Payload", "Payload", 1) + `,`, - `Identity:` + fmt.Sprintf("%v", this.Identity) + `,`, - `}`, - }, "") - return s -} -func (this *RecordActivityTaskHeartbeatResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RecordActivityTaskHeartbeatResponse{`, - `CancelRequested:` + fmt.Sprintf("%v", this.CancelRequested) + `,`, - `}`, - }, "") - return s -} -func (this *RecordActivityTaskHeartbeatByIDRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RecordActivityTaskHeartbeatByIDRequest{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "WorkflowExecution", 1) + `,`, - `ActivityId:` + fmt.Sprintf("%v", this.ActivityId) + `,`, - `Details:` + strings.Replace(fmt.Sprintf("%v", this.Details), "Payload", "Payload", 1) + `,`, - `Identity:` + fmt.Sprintf("%v", this.Identity) + `,`, - `}`, - }, "") - return s -} -func (this *RecordActivityTaskHeartbeatByIDResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RecordActivityTaskHeartbeatByIDResponse{`, - `CancelRequested:` + fmt.Sprintf("%v", this.CancelRequested) + `,`, - `}`, - }, "") - return s -} -func (this *RespondQueryTaskCompletedRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RespondQueryTaskCompletedRequest{`, - `TaskToken:` + fmt.Sprintf("%v", this.TaskToken) + `,`, - `Result:` + strings.Replace(fmt.Sprintf("%v", this.Result), "WorkflowQueryResult", "WorkflowQueryResult", 1) + `,`, - `WorkerVersionInfo:` + strings.Replace(fmt.Sprintf("%v", this.WorkerVersionInfo), "WorkerVersionInfo", "WorkerVersionInfo", 1) + `,`, - `}`, - }, "") - return s -} -func (this *RespondQueryTaskCompletedResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RespondQueryTaskCompletedResponse{`, - `}`, - }, "") - return s -} -func (this *RequestCancelWorkflowExecutionRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RequestCancelWorkflowExecutionRequest{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "WorkflowExecution", 1) + `,`, - `Identity:` + fmt.Sprintf("%v", this.Identity) + `,`, - `RequestId:` + fmt.Sprintf("%v", this.RequestId) + `,`, - `}`, - }, "") - return s -} -func (this *RequestCancelWorkflowExecutionResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RequestCancelWorkflowExecutionResponse{`, - `}`, - }, "") - return s -} -func valueToStringServiceWorker(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *PollForDecisionTaskRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PollForDecisionTaskRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PollForDecisionTaskRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TaskList == nil { - m.TaskList = &TaskList{} - } - if err := m.TaskList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identity = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BinaryChecksum", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BinaryChecksum = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceWorker(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PollForDecisionTaskResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PollForDecisionTaskResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PollForDecisionTaskResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TaskToken = append(m.TaskToken[:0], dAtA[iNdEx:postIndex]...) - if m.TaskToken == nil { - m.TaskToken = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowType", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowType == nil { - m.WorkflowType = &WorkflowType{} - } - if err := m.WorkflowType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PreviousStartedEventId", wireType) - } - m.PreviousStartedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PreviousStartedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartedEventId", wireType) - } - m.StartedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Attempt", wireType) - } - m.Attempt = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Attempt |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BacklogCountHint", wireType) - } - m.BacklogCountHint = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.BacklogCountHint |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field History", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.History == nil { - m.History = &History{} - } - if err := m.History.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NextPageToken = append(m.NextPageToken[:0], dAtA[iNdEx:postIndex]...) - if m.NextPageToken == nil { - m.NextPageToken = []byte{} - } - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Query == nil { - m.Query = &WorkflowQuery{} - } - if err := m.Query.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecutionTaskList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecutionTaskList == nil { - m.WorkflowExecutionTaskList = &TaskList{} - } - if err := m.WorkflowExecutionTaskList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduledTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ScheduledTime == nil { - m.ScheduledTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.ScheduledTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartedTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StartedTime == nil { - m.StartedTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.StartedTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queries", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Queries == nil { - m.Queries = make(map[string]*WorkflowQuery) - } - var mapkey string - var mapvalue *WorkflowQuery - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthServiceWorker - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthServiceWorker - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthServiceWorker - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &WorkflowQuery{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipServiceWorker(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Queries[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceWorker(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RespondDecisionTaskCompletedRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RespondDecisionTaskCompletedRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RespondDecisionTaskCompletedRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TaskToken = append(m.TaskToken[:0], dAtA[iNdEx:postIndex]...) - if m.TaskToken == nil { - m.TaskToken = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Decisions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Decisions = append(m.Decisions, &Decision{}) - if err := m.Decisions[len(m.Decisions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExecutionContext", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ExecutionContext = append(m.ExecutionContext[:0], dAtA[iNdEx:postIndex]...) - if m.ExecutionContext == nil { - m.ExecutionContext = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identity = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StickyAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StickyAttributes == nil { - m.StickyAttributes = &StickyExecutionAttributes{} - } - if err := m.StickyAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReturnNewDecisionTask", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReturnNewDecisionTask = bool(v != 0) - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ForceCreateNewDecisionTask", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ForceCreateNewDecisionTask = bool(v != 0) - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BinaryChecksum", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BinaryChecksum = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field QueryResults", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.QueryResults == nil { - m.QueryResults = make(map[string]*WorkflowQueryResult) - } - var mapkey string - var mapvalue *WorkflowQueryResult - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthServiceWorker - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthServiceWorker - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthServiceWorker - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &WorkflowQueryResult{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipServiceWorker(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.QueryResults[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceWorker(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RespondDecisionTaskCompletedResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RespondDecisionTaskCompletedResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RespondDecisionTaskCompletedResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DecisionTask", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DecisionTask == nil { - m.DecisionTask = &PollForDecisionTaskResponse{} - } - if err := m.DecisionTask.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActivitiesToDispatchLocally", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ActivitiesToDispatchLocally == nil { - m.ActivitiesToDispatchLocally = make(map[string]*ActivityLocalDispatchInfo) - } - var mapkey string - var mapvalue *ActivityLocalDispatchInfo - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthServiceWorker - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthServiceWorker - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthServiceWorker - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &ActivityLocalDispatchInfo{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipServiceWorker(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.ActivitiesToDispatchLocally[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceWorker(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RespondDecisionTaskFailedRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RespondDecisionTaskFailedRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RespondDecisionTaskFailedRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TaskToken = append(m.TaskToken[:0], dAtA[iNdEx:postIndex]...) - if m.TaskToken == nil { - m.TaskToken = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Cause", wireType) - } - m.Cause = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Cause |= DecisionTaskFailedCause(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Details", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Details == nil { - m.Details = &Payload{} - } - if err := m.Details.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identity = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BinaryChecksum", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BinaryChecksum = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceWorker(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RespondDecisionTaskFailedResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RespondDecisionTaskFailedResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RespondDecisionTaskFailedResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipServiceWorker(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PollForActivityTaskRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PollForActivityTaskRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PollForActivityTaskRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TaskList == nil { - m.TaskList = &TaskList{} - } - if err := m.TaskList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identity = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskListMetadata", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TaskListMetadata == nil { - m.TaskListMetadata = &TaskListMetadata{} - } - if err := m.TaskListMetadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceWorker(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PollForActivityTaskResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PollForActivityTaskResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PollForActivityTaskResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TaskToken = append(m.TaskToken[:0], dAtA[iNdEx:postIndex]...) - if m.TaskToken == nil { - m.TaskToken = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActivityId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ActivityId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActivityType", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ActivityType == nil { - m.ActivityType = &ActivityType{} - } - if err := m.ActivityType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Input == nil { - m.Input = &Payload{} - } - if err := m.Input.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduledTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ScheduledTime == nil { - m.ScheduledTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.ScheduledTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartedTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StartedTime == nil { - m.StartedTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.StartedTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduleToCloseTimeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ScheduleToCloseTimeout == nil { - m.ScheduleToCloseTimeout = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.ScheduleToCloseTimeout, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartToCloseTimeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StartToCloseTimeout == nil { - m.StartToCloseTimeout = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.StartToCloseTimeout, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HeartbeatTimeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.HeartbeatTimeout == nil { - m.HeartbeatTimeout = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.HeartbeatTimeout, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Attempt", wireType) - } - m.Attempt = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Attempt |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduledTimeOfThisAttempt", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ScheduledTimeOfThisAttempt == nil { - m.ScheduledTimeOfThisAttempt = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.ScheduledTimeOfThisAttempt, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HeartbeatDetails", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.HeartbeatDetails == nil { - m.HeartbeatDetails = &Payload{} - } - if err := m.HeartbeatDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowType", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowType == nil { - m.WorkflowType = &WorkflowType{} - } - if err := m.WorkflowType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowDomain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.WorkflowDomain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 16: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Header == nil { - m.Header = &Header{} - } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceWorker(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RespondActivityTaskCompletedRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RespondActivityTaskCompletedRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RespondActivityTaskCompletedRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TaskToken = append(m.TaskToken[:0], dAtA[iNdEx:postIndex]...) - if m.TaskToken == nil { - m.TaskToken = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Result == nil { - m.Result = &Payload{} - } - if err := m.Result.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identity = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceWorker(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RespondActivityTaskCompletedResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RespondActivityTaskCompletedResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RespondActivityTaskCompletedResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipServiceWorker(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RespondActivityTaskCompletedByIDRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RespondActivityTaskCompletedByIDRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RespondActivityTaskCompletedByIDRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActivityId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ActivityId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Result == nil { - m.Result = &Payload{} - } - if err := m.Result.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identity = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceWorker(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RespondActivityTaskCompletedByIDResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RespondActivityTaskCompletedByIDResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RespondActivityTaskCompletedByIDResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipServiceWorker(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RespondActivityTaskFailedRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RespondActivityTaskFailedRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RespondActivityTaskFailedRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TaskToken = append(m.TaskToken[:0], dAtA[iNdEx:postIndex]...) - if m.TaskToken == nil { - m.TaskToken = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Failure", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Failure == nil { - m.Failure = &Failure{} - } - if err := m.Failure.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identity = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceWorker(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RespondActivityTaskFailedResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RespondActivityTaskFailedResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RespondActivityTaskFailedResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipServiceWorker(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RespondActivityTaskFailedByIDRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RespondActivityTaskFailedByIDRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RespondActivityTaskFailedByIDRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActivityId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ActivityId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Failure", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Failure == nil { - m.Failure = &Failure{} - } - if err := m.Failure.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identity = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceWorker(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RespondActivityTaskFailedByIDResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RespondActivityTaskFailedByIDResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RespondActivityTaskFailedByIDResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipServiceWorker(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RespondActivityTaskCanceledRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RespondActivityTaskCanceledRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RespondActivityTaskCanceledRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TaskToken = append(m.TaskToken[:0], dAtA[iNdEx:postIndex]...) - if m.TaskToken == nil { - m.TaskToken = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Details", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Details == nil { - m.Details = &Payload{} - } - if err := m.Details.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identity = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceWorker(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RespondActivityTaskCanceledResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RespondActivityTaskCanceledResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RespondActivityTaskCanceledResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipServiceWorker(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RespondActivityTaskCanceledByIDRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RespondActivityTaskCanceledByIDRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RespondActivityTaskCanceledByIDRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActivityId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ActivityId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Details", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Details == nil { - m.Details = &Payload{} - } - if err := m.Details.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identity = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceWorker(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RespondActivityTaskCanceledByIDResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RespondActivityTaskCanceledByIDResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RespondActivityTaskCanceledByIDResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipServiceWorker(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RecordActivityTaskHeartbeatRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RecordActivityTaskHeartbeatRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RecordActivityTaskHeartbeatRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TaskToken = append(m.TaskToken[:0], dAtA[iNdEx:postIndex]...) - if m.TaskToken == nil { - m.TaskToken = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Details", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Details == nil { - m.Details = &Payload{} - } - if err := m.Details.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identity = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceWorker(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RecordActivityTaskHeartbeatResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RecordActivityTaskHeartbeatResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RecordActivityTaskHeartbeatResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CancelRequested", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.CancelRequested = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipServiceWorker(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RecordActivityTaskHeartbeatByIDRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RecordActivityTaskHeartbeatByIDRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RecordActivityTaskHeartbeatByIDRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActivityId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ActivityId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Details", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Details == nil { - m.Details = &Payload{} - } - if err := m.Details.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identity = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceWorker(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RecordActivityTaskHeartbeatByIDResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RecordActivityTaskHeartbeatByIDResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RecordActivityTaskHeartbeatByIDResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CancelRequested", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.CancelRequested = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipServiceWorker(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RespondQueryTaskCompletedRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RespondQueryTaskCompletedRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RespondQueryTaskCompletedRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TaskToken = append(m.TaskToken[:0], dAtA[iNdEx:postIndex]...) - if m.TaskToken == nil { - m.TaskToken = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Result == nil { - m.Result = &WorkflowQueryResult{} - } - if err := m.Result.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkerVersionInfo", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkerVersionInfo == nil { - m.WorkerVersionInfo = &WorkerVersionInfo{} - } - if err := m.WorkerVersionInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceWorker(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RespondQueryTaskCompletedResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RespondQueryTaskCompletedResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RespondQueryTaskCompletedResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipServiceWorker(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RequestCancelWorkflowExecutionRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RequestCancelWorkflowExecutionRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RequestCancelWorkflowExecutionRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identity = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorker - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RequestId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceWorker(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RequestCancelWorkflowExecutionResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RequestCancelWorkflowExecutionResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RequestCancelWorkflowExecutionResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipServiceWorker(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorker - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipServiceWorker(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowServiceWorker - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthServiceWorker - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupServiceWorker - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthServiceWorker - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthServiceWorker = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowServiceWorker = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupServiceWorker = fmt.Errorf("proto: unexpected end of group") -) diff --git a/.gen/proto/api/v1/service_worker_grpc.pb.go b/.gen/proto/api/v1/service_worker_grpc.pb.go new file mode 100644 index 00000000000..b7c51e85f35 --- /dev/null +++ b/.gen/proto/api/v1/service_worker_grpc.pb.go @@ -0,0 +1,730 @@ +// The MIT License (MIT) + +// Copyright (c) 2017-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-go-grpc. DO NOT EDIT. + +package apiv1 + +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 + +// WorkerAPIClient is the client API for WorkerAPI 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 WorkerAPIClient interface { + // PollForDecisionTask is called by application worker to process DecisionTask from a specific taskList. + // A DecisionTask is dispatched to callers for active workflow executions, with pending decisions. + // Application is then expected to call 'RespondDecisionTaskCompleted' API when it is done processing the DecisionTask. + // It will also create a 'DecisionTaskStarted' event in the history for that session before handing off DecisionTask to + // application worker. + PollForDecisionTask(ctx context.Context, in *PollForDecisionTaskRequest, opts ...grpc.CallOption) (*PollForDecisionTaskResponse, error) + // RespondDecisionTaskCompleted is called by application worker to complete a DecisionTask handed as a result of + // 'PollForDecisionTask' API call. Completing a DecisionTask will result in new events for the workflow execution and + // potentially new ActivityTask being created for corresponding decisions. It will also create a DecisionTaskCompleted + // event in the history for that session. Use the 'taskToken' provided as response of PollForDecisionTask API call + // for completing the DecisionTask. + // The response could contain a new decision task if there is one or if the request asking for one. + RespondDecisionTaskCompleted(ctx context.Context, in *RespondDecisionTaskCompletedRequest, opts ...grpc.CallOption) (*RespondDecisionTaskCompletedResponse, error) + // RespondDecisionTaskFailed is called by application worker to indicate failure. This results in + // DecisionTaskFailedEvent written to the history and a new DecisionTask created. This API can be used by client to + // either clear sticky tasklist or report any panics during DecisionTask processing. Cadence will only append first + // DecisionTaskFailed event to the history of workflow execution for consecutive failures. + RespondDecisionTaskFailed(ctx context.Context, in *RespondDecisionTaskFailedRequest, opts ...grpc.CallOption) (*RespondDecisionTaskFailedResponse, error) + // PollForActivityTask is called by application worker to process ActivityTask from a specific taskList. ActivityTask + // is dispatched to callers whenever a ScheduleTask decision is made for a workflow execution. + // Application is expected to call 'RespondActivityTaskCompleted' or 'RespondActivityTaskFailed' once it is done + // processing the task. + // Application also needs to call 'RecordActivityTaskHeartbeat' API within 'heartbeatTimeoutSeconds' interval to + // prevent the task from getting timed out. An event 'ActivityTaskStarted' event is also written to workflow execution + // history before the ActivityTask is dispatched to application worker. + PollForActivityTask(ctx context.Context, in *PollForActivityTaskRequest, opts ...grpc.CallOption) (*PollForActivityTaskResponse, error) + // RespondActivityTaskCompleted is called by application worker when it is done processing an ActivityTask. It will + // result in a new 'ActivityTaskCompleted' event being written to the workflow history and a new DecisionTask + // created for the workflow so new decisions could be made. Use the 'taskToken' provided as response of + // PollForActivityTask API call for completion. It fails with 'EntityNotExistsError' if the taskToken is not valid + // anymore due to activity timeout. + RespondActivityTaskCompleted(ctx context.Context, in *RespondActivityTaskCompletedRequest, opts ...grpc.CallOption) (*RespondActivityTaskCompletedResponse, error) + // RespondActivityTaskCompletedByID is called by application worker when it is done processing an ActivityTask. + // It will result in a new 'ActivityTaskCompleted' event being written to the workflow history and a new DecisionTask + // created for the workflow so new decisions could be made. Similar to RespondActivityTaskCompleted but use Domain, + // WorkflowID and ActivityID instead of 'taskToken' for completion. It fails with 'EntityNotExistsError' + // if the these IDs are not valid anymore due to activity timeout. + RespondActivityTaskCompletedByID(ctx context.Context, in *RespondActivityTaskCompletedByIDRequest, opts ...grpc.CallOption) (*RespondActivityTaskCompletedByIDResponse, error) + // RespondActivityTaskFailed is called by application worker when it is done processing an ActivityTask. It will + // result in a new 'ActivityTaskFailed' event being written to the workflow history and a new DecisionTask + // created for the workflow instance so new decisions could be made. Use the 'taskToken' provided as response of + // PollForActivityTask API call for completion. It fails with 'EntityNotExistsError' if the taskToken is not valid + // anymore due to activity timeout. + RespondActivityTaskFailed(ctx context.Context, in *RespondActivityTaskFailedRequest, opts ...grpc.CallOption) (*RespondActivityTaskFailedResponse, error) + // RespondActivityTaskFailedByID is called by application worker when it is done processing an ActivityTask. + // It will result in a new 'ActivityTaskFailed' event being written to the workflow history and a new DecisionTask + // created for the workflow instance so new decisions could be made. Similar to RespondActivityTaskFailed but use + // Domain, WorkflowID and ActivityID instead of 'taskToken' for completion. It fails with 'EntityNotExistsError' + // if the these IDs are not valid anymore due to activity timeout. + RespondActivityTaskFailedByID(ctx context.Context, in *RespondActivityTaskFailedByIDRequest, opts ...grpc.CallOption) (*RespondActivityTaskFailedByIDResponse, error) + // RespondActivityTaskCanceled is called by application worker when it is successfully canceled an ActivityTask. + // It will result in a new 'ActivityTaskCanceled' event being written to the workflow history and a new DecisionTask + // created for the workflow instance so new decisions could be made. Use the 'taskToken' provided as response of + // PollForActivityTask API call for completion. It fails with 'EntityNotExistsError' if the taskToken is not valid + // anymore due to activity timeout. + RespondActivityTaskCanceled(ctx context.Context, in *RespondActivityTaskCanceledRequest, opts ...grpc.CallOption) (*RespondActivityTaskCanceledResponse, error) + // RespondActivityTaskCanceledByID is called by application worker when it is successfully canceled an ActivityTask. + // It will result in a new 'ActivityTaskCanceled' event being written to the workflow history and a new DecisionTask + // created for the workflow instance so new decisions could be made. Similar to RespondActivityTaskCanceled but use + // Domain, WorkflowID and ActivityID instead of 'taskToken' for completion. It fails with 'EntityNotExistsError' + // if the these IDs are not valid anymore due to activity timeout. + RespondActivityTaskCanceledByID(ctx context.Context, in *RespondActivityTaskCanceledByIDRequest, opts ...grpc.CallOption) (*RespondActivityTaskCanceledByIDResponse, error) + // RecordActivityTaskHeartbeat is called by application worker while it is processing an ActivityTask. If worker fails + // to heartbeat within 'heartbeatTimeoutSeconds' interval for the ActivityTask, then it will be marked as timedout and + // 'ActivityTaskTimedOut' event will be written to the workflow history. Calling 'RecordActivityTaskHeartbeat' will + // fail with 'EntityNotExistsError' in such situations. Use the 'taskToken' provided as response of + // PollForActivityTask API call for heartbeating. + RecordActivityTaskHeartbeat(ctx context.Context, in *RecordActivityTaskHeartbeatRequest, opts ...grpc.CallOption) (*RecordActivityTaskHeartbeatResponse, error) + // RecordActivityTaskHeartbeatByID is called by application worker while it is processing an ActivityTask. If worker + // fails to heartbeat within 'heartbeatTimeoutSeconds' interval for the ActivityTask, then it will be marked as + // timed out and 'ActivityTaskTimedOut' event will be written to the workflow history. + // Calling 'RecordActivityTaskHeartbeatByID' will fail with 'EntityNotExistsError' in such situations. Instead of + // using 'taskToken' like in RecordActivityTaskHeartbeat, use Domain, WorkflowID and ActivityID. + RecordActivityTaskHeartbeatByID(ctx context.Context, in *RecordActivityTaskHeartbeatByIDRequest, opts ...grpc.CallOption) (*RecordActivityTaskHeartbeatByIDResponse, error) + // RespondQueryTaskCompleted is called by application worker to complete a QueryTask (which is a DecisionTask for query) + // as a result of 'PollForDecisionTask' API call. Completing a QueryTask will unblock the client call to 'QueryWorkflow' + // API and return the query result to client as a response to 'QueryWorkflow' API call. + RespondQueryTaskCompleted(ctx context.Context, in *RespondQueryTaskCompletedRequest, opts ...grpc.CallOption) (*RespondQueryTaskCompletedResponse, error) + // RequestCancelWorkflowExecution is called by application worker when it wants to request cancellation of a workflow + // instance. It will result in a new 'WorkflowExecutionCancelRequested' event being written to the workflow history + // and a new DecisionTask created for the workflow instance so new decisions could be made. It fails with + // 'EntityNotExistsError' if the workflow is not valid anymore due to completion or doesn't exist. + RequestCancelWorkflowExecution(ctx context.Context, in *RequestCancelWorkflowExecutionRequest, opts ...grpc.CallOption) (*RequestCancelWorkflowExecutionResponse, error) +} + +type workerAPIClient struct { + cc grpc.ClientConnInterface +} + +func NewWorkerAPIClient(cc grpc.ClientConnInterface) WorkerAPIClient { + return &workerAPIClient{cc} +} + +func (c *workerAPIClient) PollForDecisionTask(ctx context.Context, in *PollForDecisionTaskRequest, opts ...grpc.CallOption) (*PollForDecisionTaskResponse, error) { + out := new(PollForDecisionTaskResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkerAPI/PollForDecisionTask", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workerAPIClient) RespondDecisionTaskCompleted(ctx context.Context, in *RespondDecisionTaskCompletedRequest, opts ...grpc.CallOption) (*RespondDecisionTaskCompletedResponse, error) { + out := new(RespondDecisionTaskCompletedResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkerAPI/RespondDecisionTaskCompleted", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workerAPIClient) RespondDecisionTaskFailed(ctx context.Context, in *RespondDecisionTaskFailedRequest, opts ...grpc.CallOption) (*RespondDecisionTaskFailedResponse, error) { + out := new(RespondDecisionTaskFailedResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkerAPI/RespondDecisionTaskFailed", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workerAPIClient) PollForActivityTask(ctx context.Context, in *PollForActivityTaskRequest, opts ...grpc.CallOption) (*PollForActivityTaskResponse, error) { + out := new(PollForActivityTaskResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkerAPI/PollForActivityTask", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workerAPIClient) RespondActivityTaskCompleted(ctx context.Context, in *RespondActivityTaskCompletedRequest, opts ...grpc.CallOption) (*RespondActivityTaskCompletedResponse, error) { + out := new(RespondActivityTaskCompletedResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkerAPI/RespondActivityTaskCompleted", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workerAPIClient) RespondActivityTaskCompletedByID(ctx context.Context, in *RespondActivityTaskCompletedByIDRequest, opts ...grpc.CallOption) (*RespondActivityTaskCompletedByIDResponse, error) { + out := new(RespondActivityTaskCompletedByIDResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkerAPI/RespondActivityTaskCompletedByID", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workerAPIClient) RespondActivityTaskFailed(ctx context.Context, in *RespondActivityTaskFailedRequest, opts ...grpc.CallOption) (*RespondActivityTaskFailedResponse, error) { + out := new(RespondActivityTaskFailedResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkerAPI/RespondActivityTaskFailed", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workerAPIClient) RespondActivityTaskFailedByID(ctx context.Context, in *RespondActivityTaskFailedByIDRequest, opts ...grpc.CallOption) (*RespondActivityTaskFailedByIDResponse, error) { + out := new(RespondActivityTaskFailedByIDResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkerAPI/RespondActivityTaskFailedByID", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workerAPIClient) RespondActivityTaskCanceled(ctx context.Context, in *RespondActivityTaskCanceledRequest, opts ...grpc.CallOption) (*RespondActivityTaskCanceledResponse, error) { + out := new(RespondActivityTaskCanceledResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkerAPI/RespondActivityTaskCanceled", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workerAPIClient) RespondActivityTaskCanceledByID(ctx context.Context, in *RespondActivityTaskCanceledByIDRequest, opts ...grpc.CallOption) (*RespondActivityTaskCanceledByIDResponse, error) { + out := new(RespondActivityTaskCanceledByIDResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkerAPI/RespondActivityTaskCanceledByID", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workerAPIClient) RecordActivityTaskHeartbeat(ctx context.Context, in *RecordActivityTaskHeartbeatRequest, opts ...grpc.CallOption) (*RecordActivityTaskHeartbeatResponse, error) { + out := new(RecordActivityTaskHeartbeatResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkerAPI/RecordActivityTaskHeartbeat", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workerAPIClient) RecordActivityTaskHeartbeatByID(ctx context.Context, in *RecordActivityTaskHeartbeatByIDRequest, opts ...grpc.CallOption) (*RecordActivityTaskHeartbeatByIDResponse, error) { + out := new(RecordActivityTaskHeartbeatByIDResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkerAPI/RecordActivityTaskHeartbeatByID", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workerAPIClient) RespondQueryTaskCompleted(ctx context.Context, in *RespondQueryTaskCompletedRequest, opts ...grpc.CallOption) (*RespondQueryTaskCompletedResponse, error) { + out := new(RespondQueryTaskCompletedResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkerAPI/RespondQueryTaskCompleted", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workerAPIClient) RequestCancelWorkflowExecution(ctx context.Context, in *RequestCancelWorkflowExecutionRequest, opts ...grpc.CallOption) (*RequestCancelWorkflowExecutionResponse, error) { + out := new(RequestCancelWorkflowExecutionResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkerAPI/RequestCancelWorkflowExecution", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// WorkerAPIServer is the server API for WorkerAPI service. +// All implementations must embed UnimplementedWorkerAPIServer +// for forward compatibility +type WorkerAPIServer interface { + // PollForDecisionTask is called by application worker to process DecisionTask from a specific taskList. + // A DecisionTask is dispatched to callers for active workflow executions, with pending decisions. + // Application is then expected to call 'RespondDecisionTaskCompleted' API when it is done processing the DecisionTask. + // It will also create a 'DecisionTaskStarted' event in the history for that session before handing off DecisionTask to + // application worker. + PollForDecisionTask(context.Context, *PollForDecisionTaskRequest) (*PollForDecisionTaskResponse, error) + // RespondDecisionTaskCompleted is called by application worker to complete a DecisionTask handed as a result of + // 'PollForDecisionTask' API call. Completing a DecisionTask will result in new events for the workflow execution and + // potentially new ActivityTask being created for corresponding decisions. It will also create a DecisionTaskCompleted + // event in the history for that session. Use the 'taskToken' provided as response of PollForDecisionTask API call + // for completing the DecisionTask. + // The response could contain a new decision task if there is one or if the request asking for one. + RespondDecisionTaskCompleted(context.Context, *RespondDecisionTaskCompletedRequest) (*RespondDecisionTaskCompletedResponse, error) + // RespondDecisionTaskFailed is called by application worker to indicate failure. This results in + // DecisionTaskFailedEvent written to the history and a new DecisionTask created. This API can be used by client to + // either clear sticky tasklist or report any panics during DecisionTask processing. Cadence will only append first + // DecisionTaskFailed event to the history of workflow execution for consecutive failures. + RespondDecisionTaskFailed(context.Context, *RespondDecisionTaskFailedRequest) (*RespondDecisionTaskFailedResponse, error) + // PollForActivityTask is called by application worker to process ActivityTask from a specific taskList. ActivityTask + // is dispatched to callers whenever a ScheduleTask decision is made for a workflow execution. + // Application is expected to call 'RespondActivityTaskCompleted' or 'RespondActivityTaskFailed' once it is done + // processing the task. + // Application also needs to call 'RecordActivityTaskHeartbeat' API within 'heartbeatTimeoutSeconds' interval to + // prevent the task from getting timed out. An event 'ActivityTaskStarted' event is also written to workflow execution + // history before the ActivityTask is dispatched to application worker. + PollForActivityTask(context.Context, *PollForActivityTaskRequest) (*PollForActivityTaskResponse, error) + // RespondActivityTaskCompleted is called by application worker when it is done processing an ActivityTask. It will + // result in a new 'ActivityTaskCompleted' event being written to the workflow history and a new DecisionTask + // created for the workflow so new decisions could be made. Use the 'taskToken' provided as response of + // PollForActivityTask API call for completion. It fails with 'EntityNotExistsError' if the taskToken is not valid + // anymore due to activity timeout. + RespondActivityTaskCompleted(context.Context, *RespondActivityTaskCompletedRequest) (*RespondActivityTaskCompletedResponse, error) + // RespondActivityTaskCompletedByID is called by application worker when it is done processing an ActivityTask. + // It will result in a new 'ActivityTaskCompleted' event being written to the workflow history and a new DecisionTask + // created for the workflow so new decisions could be made. Similar to RespondActivityTaskCompleted but use Domain, + // WorkflowID and ActivityID instead of 'taskToken' for completion. It fails with 'EntityNotExistsError' + // if the these IDs are not valid anymore due to activity timeout. + RespondActivityTaskCompletedByID(context.Context, *RespondActivityTaskCompletedByIDRequest) (*RespondActivityTaskCompletedByIDResponse, error) + // RespondActivityTaskFailed is called by application worker when it is done processing an ActivityTask. It will + // result in a new 'ActivityTaskFailed' event being written to the workflow history and a new DecisionTask + // created for the workflow instance so new decisions could be made. Use the 'taskToken' provided as response of + // PollForActivityTask API call for completion. It fails with 'EntityNotExistsError' if the taskToken is not valid + // anymore due to activity timeout. + RespondActivityTaskFailed(context.Context, *RespondActivityTaskFailedRequest) (*RespondActivityTaskFailedResponse, error) + // RespondActivityTaskFailedByID is called by application worker when it is done processing an ActivityTask. + // It will result in a new 'ActivityTaskFailed' event being written to the workflow history and a new DecisionTask + // created for the workflow instance so new decisions could be made. Similar to RespondActivityTaskFailed but use + // Domain, WorkflowID and ActivityID instead of 'taskToken' for completion. It fails with 'EntityNotExistsError' + // if the these IDs are not valid anymore due to activity timeout. + RespondActivityTaskFailedByID(context.Context, *RespondActivityTaskFailedByIDRequest) (*RespondActivityTaskFailedByIDResponse, error) + // RespondActivityTaskCanceled is called by application worker when it is successfully canceled an ActivityTask. + // It will result in a new 'ActivityTaskCanceled' event being written to the workflow history and a new DecisionTask + // created for the workflow instance so new decisions could be made. Use the 'taskToken' provided as response of + // PollForActivityTask API call for completion. It fails with 'EntityNotExistsError' if the taskToken is not valid + // anymore due to activity timeout. + RespondActivityTaskCanceled(context.Context, *RespondActivityTaskCanceledRequest) (*RespondActivityTaskCanceledResponse, error) + // RespondActivityTaskCanceledByID is called by application worker when it is successfully canceled an ActivityTask. + // It will result in a new 'ActivityTaskCanceled' event being written to the workflow history and a new DecisionTask + // created for the workflow instance so new decisions could be made. Similar to RespondActivityTaskCanceled but use + // Domain, WorkflowID and ActivityID instead of 'taskToken' for completion. It fails with 'EntityNotExistsError' + // if the these IDs are not valid anymore due to activity timeout. + RespondActivityTaskCanceledByID(context.Context, *RespondActivityTaskCanceledByIDRequest) (*RespondActivityTaskCanceledByIDResponse, error) + // RecordActivityTaskHeartbeat is called by application worker while it is processing an ActivityTask. If worker fails + // to heartbeat within 'heartbeatTimeoutSeconds' interval for the ActivityTask, then it will be marked as timedout and + // 'ActivityTaskTimedOut' event will be written to the workflow history. Calling 'RecordActivityTaskHeartbeat' will + // fail with 'EntityNotExistsError' in such situations. Use the 'taskToken' provided as response of + // PollForActivityTask API call for heartbeating. + RecordActivityTaskHeartbeat(context.Context, *RecordActivityTaskHeartbeatRequest) (*RecordActivityTaskHeartbeatResponse, error) + // RecordActivityTaskHeartbeatByID is called by application worker while it is processing an ActivityTask. If worker + // fails to heartbeat within 'heartbeatTimeoutSeconds' interval for the ActivityTask, then it will be marked as + // timed out and 'ActivityTaskTimedOut' event will be written to the workflow history. + // Calling 'RecordActivityTaskHeartbeatByID' will fail with 'EntityNotExistsError' in such situations. Instead of + // using 'taskToken' like in RecordActivityTaskHeartbeat, use Domain, WorkflowID and ActivityID. + RecordActivityTaskHeartbeatByID(context.Context, *RecordActivityTaskHeartbeatByIDRequest) (*RecordActivityTaskHeartbeatByIDResponse, error) + // RespondQueryTaskCompleted is called by application worker to complete a QueryTask (which is a DecisionTask for query) + // as a result of 'PollForDecisionTask' API call. Completing a QueryTask will unblock the client call to 'QueryWorkflow' + // API and return the query result to client as a response to 'QueryWorkflow' API call. + RespondQueryTaskCompleted(context.Context, *RespondQueryTaskCompletedRequest) (*RespondQueryTaskCompletedResponse, error) + // RequestCancelWorkflowExecution is called by application worker when it wants to request cancellation of a workflow + // instance. It will result in a new 'WorkflowExecutionCancelRequested' event being written to the workflow history + // and a new DecisionTask created for the workflow instance so new decisions could be made. It fails with + // 'EntityNotExistsError' if the workflow is not valid anymore due to completion or doesn't exist. + RequestCancelWorkflowExecution(context.Context, *RequestCancelWorkflowExecutionRequest) (*RequestCancelWorkflowExecutionResponse, error) + mustEmbedUnimplementedWorkerAPIServer() +} + +// UnimplementedWorkerAPIServer must be embedded to have forward compatible implementations. +type UnimplementedWorkerAPIServer struct { +} + +func (UnimplementedWorkerAPIServer) PollForDecisionTask(context.Context, *PollForDecisionTaskRequest) (*PollForDecisionTaskResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PollForDecisionTask not implemented") +} +func (UnimplementedWorkerAPIServer) RespondDecisionTaskCompleted(context.Context, *RespondDecisionTaskCompletedRequest) (*RespondDecisionTaskCompletedResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RespondDecisionTaskCompleted not implemented") +} +func (UnimplementedWorkerAPIServer) RespondDecisionTaskFailed(context.Context, *RespondDecisionTaskFailedRequest) (*RespondDecisionTaskFailedResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RespondDecisionTaskFailed not implemented") +} +func (UnimplementedWorkerAPIServer) PollForActivityTask(context.Context, *PollForActivityTaskRequest) (*PollForActivityTaskResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PollForActivityTask not implemented") +} +func (UnimplementedWorkerAPIServer) RespondActivityTaskCompleted(context.Context, *RespondActivityTaskCompletedRequest) (*RespondActivityTaskCompletedResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RespondActivityTaskCompleted not implemented") +} +func (UnimplementedWorkerAPIServer) RespondActivityTaskCompletedByID(context.Context, *RespondActivityTaskCompletedByIDRequest) (*RespondActivityTaskCompletedByIDResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RespondActivityTaskCompletedByID not implemented") +} +func (UnimplementedWorkerAPIServer) RespondActivityTaskFailed(context.Context, *RespondActivityTaskFailedRequest) (*RespondActivityTaskFailedResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RespondActivityTaskFailed not implemented") +} +func (UnimplementedWorkerAPIServer) RespondActivityTaskFailedByID(context.Context, *RespondActivityTaskFailedByIDRequest) (*RespondActivityTaskFailedByIDResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RespondActivityTaskFailedByID not implemented") +} +func (UnimplementedWorkerAPIServer) RespondActivityTaskCanceled(context.Context, *RespondActivityTaskCanceledRequest) (*RespondActivityTaskCanceledResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RespondActivityTaskCanceled not implemented") +} +func (UnimplementedWorkerAPIServer) RespondActivityTaskCanceledByID(context.Context, *RespondActivityTaskCanceledByIDRequest) (*RespondActivityTaskCanceledByIDResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RespondActivityTaskCanceledByID not implemented") +} +func (UnimplementedWorkerAPIServer) RecordActivityTaskHeartbeat(context.Context, *RecordActivityTaskHeartbeatRequest) (*RecordActivityTaskHeartbeatResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RecordActivityTaskHeartbeat not implemented") +} +func (UnimplementedWorkerAPIServer) RecordActivityTaskHeartbeatByID(context.Context, *RecordActivityTaskHeartbeatByIDRequest) (*RecordActivityTaskHeartbeatByIDResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RecordActivityTaskHeartbeatByID not implemented") +} +func (UnimplementedWorkerAPIServer) RespondQueryTaskCompleted(context.Context, *RespondQueryTaskCompletedRequest) (*RespondQueryTaskCompletedResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RespondQueryTaskCompleted not implemented") +} +func (UnimplementedWorkerAPIServer) RequestCancelWorkflowExecution(context.Context, *RequestCancelWorkflowExecutionRequest) (*RequestCancelWorkflowExecutionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RequestCancelWorkflowExecution not implemented") +} +func (UnimplementedWorkerAPIServer) mustEmbedUnimplementedWorkerAPIServer() {} + +// UnsafeWorkerAPIServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to WorkerAPIServer will +// result in compilation errors. +type UnsafeWorkerAPIServer interface { + mustEmbedUnimplementedWorkerAPIServer() +} + +func RegisterWorkerAPIServer(s grpc.ServiceRegistrar, srv WorkerAPIServer) { + s.RegisterService(&WorkerAPI_ServiceDesc, srv) +} + +func _WorkerAPI_PollForDecisionTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PollForDecisionTaskRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkerAPIServer).PollForDecisionTask(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.WorkerAPI/PollForDecisionTask", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkerAPIServer).PollForDecisionTask(ctx, req.(*PollForDecisionTaskRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkerAPI_RespondDecisionTaskCompleted_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RespondDecisionTaskCompletedRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkerAPIServer).RespondDecisionTaskCompleted(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.WorkerAPI/RespondDecisionTaskCompleted", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkerAPIServer).RespondDecisionTaskCompleted(ctx, req.(*RespondDecisionTaskCompletedRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkerAPI_RespondDecisionTaskFailed_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RespondDecisionTaskFailedRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkerAPIServer).RespondDecisionTaskFailed(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.WorkerAPI/RespondDecisionTaskFailed", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkerAPIServer).RespondDecisionTaskFailed(ctx, req.(*RespondDecisionTaskFailedRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkerAPI_PollForActivityTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PollForActivityTaskRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkerAPIServer).PollForActivityTask(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.WorkerAPI/PollForActivityTask", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkerAPIServer).PollForActivityTask(ctx, req.(*PollForActivityTaskRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkerAPI_RespondActivityTaskCompleted_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RespondActivityTaskCompletedRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkerAPIServer).RespondActivityTaskCompleted(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.WorkerAPI/RespondActivityTaskCompleted", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkerAPIServer).RespondActivityTaskCompleted(ctx, req.(*RespondActivityTaskCompletedRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkerAPI_RespondActivityTaskCompletedByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RespondActivityTaskCompletedByIDRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkerAPIServer).RespondActivityTaskCompletedByID(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.WorkerAPI/RespondActivityTaskCompletedByID", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkerAPIServer).RespondActivityTaskCompletedByID(ctx, req.(*RespondActivityTaskCompletedByIDRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkerAPI_RespondActivityTaskFailed_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RespondActivityTaskFailedRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkerAPIServer).RespondActivityTaskFailed(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.WorkerAPI/RespondActivityTaskFailed", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkerAPIServer).RespondActivityTaskFailed(ctx, req.(*RespondActivityTaskFailedRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkerAPI_RespondActivityTaskFailedByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RespondActivityTaskFailedByIDRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkerAPIServer).RespondActivityTaskFailedByID(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.WorkerAPI/RespondActivityTaskFailedByID", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkerAPIServer).RespondActivityTaskFailedByID(ctx, req.(*RespondActivityTaskFailedByIDRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkerAPI_RespondActivityTaskCanceled_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RespondActivityTaskCanceledRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkerAPIServer).RespondActivityTaskCanceled(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.WorkerAPI/RespondActivityTaskCanceled", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkerAPIServer).RespondActivityTaskCanceled(ctx, req.(*RespondActivityTaskCanceledRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkerAPI_RespondActivityTaskCanceledByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RespondActivityTaskCanceledByIDRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkerAPIServer).RespondActivityTaskCanceledByID(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.WorkerAPI/RespondActivityTaskCanceledByID", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkerAPIServer).RespondActivityTaskCanceledByID(ctx, req.(*RespondActivityTaskCanceledByIDRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkerAPI_RecordActivityTaskHeartbeat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RecordActivityTaskHeartbeatRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkerAPIServer).RecordActivityTaskHeartbeat(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.WorkerAPI/RecordActivityTaskHeartbeat", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkerAPIServer).RecordActivityTaskHeartbeat(ctx, req.(*RecordActivityTaskHeartbeatRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkerAPI_RecordActivityTaskHeartbeatByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RecordActivityTaskHeartbeatByIDRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkerAPIServer).RecordActivityTaskHeartbeatByID(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.WorkerAPI/RecordActivityTaskHeartbeatByID", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkerAPIServer).RecordActivityTaskHeartbeatByID(ctx, req.(*RecordActivityTaskHeartbeatByIDRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkerAPI_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.(WorkerAPIServer).RespondQueryTaskCompleted(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.WorkerAPI/RespondQueryTaskCompleted", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkerAPIServer).RespondQueryTaskCompleted(ctx, req.(*RespondQueryTaskCompletedRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkerAPI_RequestCancelWorkflowExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RequestCancelWorkflowExecutionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkerAPIServer).RequestCancelWorkflowExecution(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.WorkerAPI/RequestCancelWorkflowExecution", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkerAPIServer).RequestCancelWorkflowExecution(ctx, req.(*RequestCancelWorkflowExecutionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// WorkerAPI_ServiceDesc is the grpc.ServiceDesc for WorkerAPI service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var WorkerAPI_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "uber.cadence.api.v1.WorkerAPI", + HandlerType: (*WorkerAPIServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "PollForDecisionTask", + Handler: _WorkerAPI_PollForDecisionTask_Handler, + }, + { + MethodName: "RespondDecisionTaskCompleted", + Handler: _WorkerAPI_RespondDecisionTaskCompleted_Handler, + }, + { + MethodName: "RespondDecisionTaskFailed", + Handler: _WorkerAPI_RespondDecisionTaskFailed_Handler, + }, + { + MethodName: "PollForActivityTask", + Handler: _WorkerAPI_PollForActivityTask_Handler, + }, + { + MethodName: "RespondActivityTaskCompleted", + Handler: _WorkerAPI_RespondActivityTaskCompleted_Handler, + }, + { + MethodName: "RespondActivityTaskCompletedByID", + Handler: _WorkerAPI_RespondActivityTaskCompletedByID_Handler, + }, + { + MethodName: "RespondActivityTaskFailed", + Handler: _WorkerAPI_RespondActivityTaskFailed_Handler, + }, + { + MethodName: "RespondActivityTaskFailedByID", + Handler: _WorkerAPI_RespondActivityTaskFailedByID_Handler, + }, + { + MethodName: "RespondActivityTaskCanceled", + Handler: _WorkerAPI_RespondActivityTaskCanceled_Handler, + }, + { + MethodName: "RespondActivityTaskCanceledByID", + Handler: _WorkerAPI_RespondActivityTaskCanceledByID_Handler, + }, + { + MethodName: "RecordActivityTaskHeartbeat", + Handler: _WorkerAPI_RecordActivityTaskHeartbeat_Handler, + }, + { + MethodName: "RecordActivityTaskHeartbeatByID", + Handler: _WorkerAPI_RecordActivityTaskHeartbeatByID_Handler, + }, + { + MethodName: "RespondQueryTaskCompleted", + Handler: _WorkerAPI_RespondQueryTaskCompleted_Handler, + }, + { + MethodName: "RequestCancelWorkflowExecution", + Handler: _WorkerAPI_RequestCancelWorkflowExecution_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "uber/cadence/api/v1/service_worker.proto", +} diff --git a/.gen/proto/api/v1/service_workflow.pb.go b/.gen/proto/api/v1/service_workflow.pb.go index bbede159eb9..155359c1e22 100644 --- a/.gen/proto/api/v1/service_workflow.pb.go +++ b/.gen/proto/api/v1/service_workflow.pb.go @@ -1,70 +1,64 @@ -// The MIT License (MIT) - -// Copyright (c) 2017-2020 Uber Technologies Inc. - +// 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 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. +// 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. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.14.0 // source: uber/cadence/api/v1/service_workflow.proto package apiv1 import ( - bytes "bytes" - context "context" - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" reflect "reflect" - strings "strings" - time "time" - - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" - _ "github.com/golang/protobuf/ptypes/duration" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" + sync "sync" + + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf -var _ = time.Kitchen +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// 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 +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type StartWorkflowExecutionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` WorkflowId string `protobuf:"bytes,2,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` WorkflowType *WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` TaskList *TaskList `protobuf:"bytes,4,opt,name=task_list,json=taskList,proto3" json:"task_list,omitempty"` Input *Payload `protobuf:"bytes,5,opt,name=input,proto3" json:"input,omitempty"` - ExecutionStartToCloseTimeout *time.Duration `protobuf:"bytes,6,opt,name=execution_start_to_close_timeout,json=executionStartToCloseTimeout,proto3,stdduration" json:"execution_start_to_close_timeout,omitempty"` - TaskStartToCloseTimeout *time.Duration `protobuf:"bytes,7,opt,name=task_start_to_close_timeout,json=taskStartToCloseTimeout,proto3,stdduration" json:"task_start_to_close_timeout,omitempty"` + ExecutionStartToCloseTimeout *durationpb.Duration `protobuf:"bytes,6,opt,name=execution_start_to_close_timeout,json=executionStartToCloseTimeout,proto3" json:"execution_start_to_close_timeout,omitempty"` + TaskStartToCloseTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=task_start_to_close_timeout,json=taskStartToCloseTimeout,proto3" json:"task_start_to_close_timeout,omitempty"` Identity string `protobuf:"bytes,8,opt,name=identity,proto3" json:"identity,omitempty"` RequestId string `protobuf:"bytes,9,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` WorkflowIdReusePolicy WorkflowIdReusePolicy `protobuf:"varint,10,opt,name=workflow_id_reuse_policy,json=workflowIdReusePolicy,proto3,enum=uber.cadence.api.v1.WorkflowIdReusePolicy" json:"workflow_id_reuse_policy,omitempty"` @@ -75,187 +69,195 @@ type StartWorkflowExecutionRequest struct { Header *Header `protobuf:"bytes,15,opt,name=header,proto3" json:"header,omitempty"` } -func (m *StartWorkflowExecutionRequest) Reset() { *m = StartWorkflowExecutionRequest{} } -func (*StartWorkflowExecutionRequest) ProtoMessage() {} -func (*StartWorkflowExecutionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_674d14d2fee4e473, []int{0} -} -func (m *StartWorkflowExecutionRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StartWorkflowExecutionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StartWorkflowExecutionRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *StartWorkflowExecutionRequest) Reset() { + *x = StartWorkflowExecutionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *StartWorkflowExecutionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_StartWorkflowExecutionRequest.Merge(m, src) -} -func (m *StartWorkflowExecutionRequest) XXX_Size() int { - return m.Size() + +func (x *StartWorkflowExecutionRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *StartWorkflowExecutionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_StartWorkflowExecutionRequest.DiscardUnknown(m) + +func (*StartWorkflowExecutionRequest) ProtoMessage() {} + +func (x *StartWorkflowExecutionRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_StartWorkflowExecutionRequest proto.InternalMessageInfo +// Deprecated: Use StartWorkflowExecutionRequest.ProtoReflect.Descriptor instead. +func (*StartWorkflowExecutionRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_workflow_proto_rawDescGZIP(), []int{0} +} -func (m *StartWorkflowExecutionRequest) GetDomain() string { - if m != nil { - return m.Domain +func (x *StartWorkflowExecutionRequest) GetDomain() string { + if x != nil { + return x.Domain } return "" } -func (m *StartWorkflowExecutionRequest) GetWorkflowId() string { - if m != nil { - return m.WorkflowId +func (x *StartWorkflowExecutionRequest) GetWorkflowId() string { + if x != nil { + return x.WorkflowId } return "" } -func (m *StartWorkflowExecutionRequest) GetWorkflowType() *WorkflowType { - if m != nil { - return m.WorkflowType +func (x *StartWorkflowExecutionRequest) GetWorkflowType() *WorkflowType { + if x != nil { + return x.WorkflowType } return nil } -func (m *StartWorkflowExecutionRequest) GetTaskList() *TaskList { - if m != nil { - return m.TaskList +func (x *StartWorkflowExecutionRequest) GetTaskList() *TaskList { + if x != nil { + return x.TaskList } return nil } -func (m *StartWorkflowExecutionRequest) GetInput() *Payload { - if m != nil { - return m.Input +func (x *StartWorkflowExecutionRequest) GetInput() *Payload { + if x != nil { + return x.Input } return nil } -func (m *StartWorkflowExecutionRequest) GetExecutionStartToCloseTimeout() *time.Duration { - if m != nil { - return m.ExecutionStartToCloseTimeout +func (x *StartWorkflowExecutionRequest) GetExecutionStartToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.ExecutionStartToCloseTimeout } return nil } -func (m *StartWorkflowExecutionRequest) GetTaskStartToCloseTimeout() *time.Duration { - if m != nil { - return m.TaskStartToCloseTimeout +func (x *StartWorkflowExecutionRequest) GetTaskStartToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.TaskStartToCloseTimeout } return nil } -func (m *StartWorkflowExecutionRequest) GetIdentity() string { - if m != nil { - return m.Identity +func (x *StartWorkflowExecutionRequest) GetIdentity() string { + if x != nil { + return x.Identity } return "" } -func (m *StartWorkflowExecutionRequest) GetRequestId() string { - if m != nil { - return m.RequestId +func (x *StartWorkflowExecutionRequest) GetRequestId() string { + if x != nil { + return x.RequestId } return "" } -func (m *StartWorkflowExecutionRequest) GetWorkflowIdReusePolicy() WorkflowIdReusePolicy { - if m != nil { - return m.WorkflowIdReusePolicy +func (x *StartWorkflowExecutionRequest) GetWorkflowIdReusePolicy() WorkflowIdReusePolicy { + if x != nil { + return x.WorkflowIdReusePolicy } - return WORKFLOW_ID_REUSE_POLICY_INVALID + return WorkflowIdReusePolicy_WORKFLOW_ID_REUSE_POLICY_INVALID } -func (m *StartWorkflowExecutionRequest) GetRetryPolicy() *RetryPolicy { - if m != nil { - return m.RetryPolicy +func (x *StartWorkflowExecutionRequest) GetRetryPolicy() *RetryPolicy { + if x != nil { + return x.RetryPolicy } return nil } -func (m *StartWorkflowExecutionRequest) GetCronSchedule() string { - if m != nil { - return m.CronSchedule +func (x *StartWorkflowExecutionRequest) GetCronSchedule() string { + if x != nil { + return x.CronSchedule } return "" } -func (m *StartWorkflowExecutionRequest) GetMemo() *Memo { - if m != nil { - return m.Memo +func (x *StartWorkflowExecutionRequest) GetMemo() *Memo { + if x != nil { + return x.Memo } return nil } -func (m *StartWorkflowExecutionRequest) GetSearchAttributes() *SearchAttributes { - if m != nil { - return m.SearchAttributes +func (x *StartWorkflowExecutionRequest) GetSearchAttributes() *SearchAttributes { + if x != nil { + return x.SearchAttributes } return nil } -func (m *StartWorkflowExecutionRequest) GetHeader() *Header { - if m != nil { - return m.Header +func (x *StartWorkflowExecutionRequest) GetHeader() *Header { + if x != nil { + return x.Header } return nil } type StartWorkflowExecutionResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + RunId string `protobuf:"bytes,1,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` } -func (m *StartWorkflowExecutionResponse) Reset() { *m = StartWorkflowExecutionResponse{} } -func (*StartWorkflowExecutionResponse) ProtoMessage() {} -func (*StartWorkflowExecutionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_674d14d2fee4e473, []int{1} -} -func (m *StartWorkflowExecutionResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StartWorkflowExecutionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StartWorkflowExecutionResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *StartWorkflowExecutionResponse) Reset() { + *x = StartWorkflowExecutionResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *StartWorkflowExecutionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_StartWorkflowExecutionResponse.Merge(m, src) -} -func (m *StartWorkflowExecutionResponse) XXX_Size() int { - return m.Size() + +func (x *StartWorkflowExecutionResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *StartWorkflowExecutionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_StartWorkflowExecutionResponse.DiscardUnknown(m) + +func (*StartWorkflowExecutionResponse) ProtoMessage() {} + +func (x *StartWorkflowExecutionResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_StartWorkflowExecutionResponse proto.InternalMessageInfo +// Deprecated: Use StartWorkflowExecutionResponse.ProtoReflect.Descriptor instead. +func (*StartWorkflowExecutionResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_workflow_proto_rawDescGZIP(), []int{1} +} -func (m *StartWorkflowExecutionResponse) GetRunId() string { - if m != nil { - return m.RunId +func (x *StartWorkflowExecutionResponse) GetRunId() string { + if x != nil { + return x.RunId } return "" } type SignalWorkflowExecutionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` WorkflowExecution *WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` @@ -265,237 +267,248 @@ type SignalWorkflowExecutionRequest struct { Control []byte `protobuf:"bytes,7,opt,name=control,proto3" json:"control,omitempty"` } -func (m *SignalWorkflowExecutionRequest) Reset() { *m = SignalWorkflowExecutionRequest{} } -func (*SignalWorkflowExecutionRequest) ProtoMessage() {} -func (*SignalWorkflowExecutionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_674d14d2fee4e473, []int{2} -} -func (m *SignalWorkflowExecutionRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SignalWorkflowExecutionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SignalWorkflowExecutionRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *SignalWorkflowExecutionRequest) Reset() { + *x = SignalWorkflowExecutionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *SignalWorkflowExecutionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SignalWorkflowExecutionRequest.Merge(m, src) -} -func (m *SignalWorkflowExecutionRequest) XXX_Size() int { - return m.Size() + +func (x *SignalWorkflowExecutionRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SignalWorkflowExecutionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SignalWorkflowExecutionRequest.DiscardUnknown(m) + +func (*SignalWorkflowExecutionRequest) ProtoMessage() {} + +func (x *SignalWorkflowExecutionRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SignalWorkflowExecutionRequest proto.InternalMessageInfo +// Deprecated: Use SignalWorkflowExecutionRequest.ProtoReflect.Descriptor instead. +func (*SignalWorkflowExecutionRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_workflow_proto_rawDescGZIP(), []int{2} +} -func (m *SignalWorkflowExecutionRequest) GetDomain() string { - if m != nil { - return m.Domain +func (x *SignalWorkflowExecutionRequest) GetDomain() string { + if x != nil { + return x.Domain } return "" } -func (m *SignalWorkflowExecutionRequest) GetWorkflowExecution() *WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *SignalWorkflowExecutionRequest) GetWorkflowExecution() *WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *SignalWorkflowExecutionRequest) GetIdentity() string { - if m != nil { - return m.Identity +func (x *SignalWorkflowExecutionRequest) GetIdentity() string { + if x != nil { + return x.Identity } return "" } -func (m *SignalWorkflowExecutionRequest) GetRequestId() string { - if m != nil { - return m.RequestId +func (x *SignalWorkflowExecutionRequest) GetRequestId() string { + if x != nil { + return x.RequestId } return "" } -func (m *SignalWorkflowExecutionRequest) GetSignalName() string { - if m != nil { - return m.SignalName +func (x *SignalWorkflowExecutionRequest) GetSignalName() string { + if x != nil { + return x.SignalName } return "" } -func (m *SignalWorkflowExecutionRequest) GetSignalInput() *Payload { - if m != nil { - return m.SignalInput +func (x *SignalWorkflowExecutionRequest) GetSignalInput() *Payload { + if x != nil { + return x.SignalInput } return nil } -func (m *SignalWorkflowExecutionRequest) GetControl() []byte { - if m != nil { - return m.Control +func (x *SignalWorkflowExecutionRequest) GetControl() []byte { + if x != nil { + return x.Control } return nil } type SignalWorkflowExecutionResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *SignalWorkflowExecutionResponse) Reset() { *m = SignalWorkflowExecutionResponse{} } -func (*SignalWorkflowExecutionResponse) ProtoMessage() {} -func (*SignalWorkflowExecutionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_674d14d2fee4e473, []int{3} -} -func (m *SignalWorkflowExecutionResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SignalWorkflowExecutionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SignalWorkflowExecutionResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *SignalWorkflowExecutionResponse) Reset() { + *x = SignalWorkflowExecutionResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *SignalWorkflowExecutionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SignalWorkflowExecutionResponse.Merge(m, src) -} -func (m *SignalWorkflowExecutionResponse) XXX_Size() int { - return m.Size() + +func (x *SignalWorkflowExecutionResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SignalWorkflowExecutionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SignalWorkflowExecutionResponse.DiscardUnknown(m) + +func (*SignalWorkflowExecutionResponse) ProtoMessage() {} + +func (x *SignalWorkflowExecutionResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SignalWorkflowExecutionResponse proto.InternalMessageInfo +// Deprecated: Use SignalWorkflowExecutionResponse.ProtoReflect.Descriptor instead. +func (*SignalWorkflowExecutionResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_workflow_proto_rawDescGZIP(), []int{3} +} type SignalWithStartWorkflowExecutionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + StartRequest *StartWorkflowExecutionRequest `protobuf:"bytes,1,opt,name=start_request,json=startRequest,proto3" json:"start_request,omitempty"` SignalName string `protobuf:"bytes,2,opt,name=signal_name,json=signalName,proto3" json:"signal_name,omitempty"` SignalInput *Payload `protobuf:"bytes,3,opt,name=signal_input,json=signalInput,proto3" json:"signal_input,omitempty"` Control []byte `protobuf:"bytes,4,opt,name=control,proto3" json:"control,omitempty"` } -func (m *SignalWithStartWorkflowExecutionRequest) Reset() { - *m = SignalWithStartWorkflowExecutionRequest{} +func (x *SignalWithStartWorkflowExecutionRequest) Reset() { + *x = SignalWithStartWorkflowExecutionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SignalWithStartWorkflowExecutionRequest) String() string { + return protoimpl.X.MessageStringOf(x) } + func (*SignalWithStartWorkflowExecutionRequest) ProtoMessage() {} -func (*SignalWithStartWorkflowExecutionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_674d14d2fee4e473, []int{4} -} -func (m *SignalWithStartWorkflowExecutionRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SignalWithStartWorkflowExecutionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SignalWithStartWorkflowExecutionRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *SignalWithStartWorkflowExecutionRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *SignalWithStartWorkflowExecutionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SignalWithStartWorkflowExecutionRequest.Merge(m, src) -} -func (m *SignalWithStartWorkflowExecutionRequest) XXX_Size() int { - return m.Size() -} -func (m *SignalWithStartWorkflowExecutionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SignalWithStartWorkflowExecutionRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_SignalWithStartWorkflowExecutionRequest proto.InternalMessageInfo +// Deprecated: Use SignalWithStartWorkflowExecutionRequest.ProtoReflect.Descriptor instead. +func (*SignalWithStartWorkflowExecutionRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_workflow_proto_rawDescGZIP(), []int{4} +} -func (m *SignalWithStartWorkflowExecutionRequest) GetStartRequest() *StartWorkflowExecutionRequest { - if m != nil { - return m.StartRequest +func (x *SignalWithStartWorkflowExecutionRequest) GetStartRequest() *StartWorkflowExecutionRequest { + if x != nil { + return x.StartRequest } return nil } -func (m *SignalWithStartWorkflowExecutionRequest) GetSignalName() string { - if m != nil { - return m.SignalName +func (x *SignalWithStartWorkflowExecutionRequest) GetSignalName() string { + if x != nil { + return x.SignalName } return "" } -func (m *SignalWithStartWorkflowExecutionRequest) GetSignalInput() *Payload { - if m != nil { - return m.SignalInput +func (x *SignalWithStartWorkflowExecutionRequest) GetSignalInput() *Payload { + if x != nil { + return x.SignalInput } return nil } -func (m *SignalWithStartWorkflowExecutionRequest) GetControl() []byte { - if m != nil { - return m.Control +func (x *SignalWithStartWorkflowExecutionRequest) GetControl() []byte { + if x != nil { + return x.Control } return nil } type SignalWithStartWorkflowExecutionResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + RunId string `protobuf:"bytes,1,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` } -func (m *SignalWithStartWorkflowExecutionResponse) Reset() { - *m = SignalWithStartWorkflowExecutionResponse{} +func (x *SignalWithStartWorkflowExecutionResponse) Reset() { + *x = SignalWithStartWorkflowExecutionResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SignalWithStartWorkflowExecutionResponse) String() string { + return protoimpl.X.MessageStringOf(x) } + func (*SignalWithStartWorkflowExecutionResponse) ProtoMessage() {} -func (*SignalWithStartWorkflowExecutionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_674d14d2fee4e473, []int{5} -} -func (m *SignalWithStartWorkflowExecutionResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SignalWithStartWorkflowExecutionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SignalWithStartWorkflowExecutionResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *SignalWithStartWorkflowExecutionResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *SignalWithStartWorkflowExecutionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SignalWithStartWorkflowExecutionResponse.Merge(m, src) -} -func (m *SignalWithStartWorkflowExecutionResponse) XXX_Size() int { - return m.Size() -} -func (m *SignalWithStartWorkflowExecutionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SignalWithStartWorkflowExecutionResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_SignalWithStartWorkflowExecutionResponse proto.InternalMessageInfo +// Deprecated: Use SignalWithStartWorkflowExecutionResponse.ProtoReflect.Descriptor instead. +func (*SignalWithStartWorkflowExecutionResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_workflow_proto_rawDescGZIP(), []int{5} +} -func (m *SignalWithStartWorkflowExecutionResponse) GetRunId() string { - if m != nil { - return m.RunId +func (x *SignalWithStartWorkflowExecutionResponse) GetRunId() string { + if x != nil { + return x.RunId } return "" } type ResetWorkflowExecutionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` WorkflowExecution *WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` @@ -503,117 +516,125 @@ type ResetWorkflowExecutionRequest struct { RequestId string `protobuf:"bytes,5,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` } -func (m *ResetWorkflowExecutionRequest) Reset() { *m = ResetWorkflowExecutionRequest{} } -func (*ResetWorkflowExecutionRequest) ProtoMessage() {} -func (*ResetWorkflowExecutionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_674d14d2fee4e473, []int{6} -} -func (m *ResetWorkflowExecutionRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResetWorkflowExecutionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ResetWorkflowExecutionRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ResetWorkflowExecutionRequest) Reset() { + *x = ResetWorkflowExecutionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ResetWorkflowExecutionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResetWorkflowExecutionRequest.Merge(m, src) -} -func (m *ResetWorkflowExecutionRequest) XXX_Size() int { - return m.Size() + +func (x *ResetWorkflowExecutionRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ResetWorkflowExecutionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ResetWorkflowExecutionRequest.DiscardUnknown(m) + +func (*ResetWorkflowExecutionRequest) ProtoMessage() {} + +func (x *ResetWorkflowExecutionRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ResetWorkflowExecutionRequest proto.InternalMessageInfo +// Deprecated: Use ResetWorkflowExecutionRequest.ProtoReflect.Descriptor instead. +func (*ResetWorkflowExecutionRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_workflow_proto_rawDescGZIP(), []int{6} +} -func (m *ResetWorkflowExecutionRequest) GetDomain() string { - if m != nil { - return m.Domain +func (x *ResetWorkflowExecutionRequest) GetDomain() string { + if x != nil { + return x.Domain } return "" } -func (m *ResetWorkflowExecutionRequest) GetWorkflowExecution() *WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *ResetWorkflowExecutionRequest) GetWorkflowExecution() *WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *ResetWorkflowExecutionRequest) GetReason() string { - if m != nil { - return m.Reason +func (x *ResetWorkflowExecutionRequest) GetReason() string { + if x != nil { + return x.Reason } return "" } -func (m *ResetWorkflowExecutionRequest) GetDecisionFinishEventId() int64 { - if m != nil { - return m.DecisionFinishEventId +func (x *ResetWorkflowExecutionRequest) GetDecisionFinishEventId() int64 { + if x != nil { + return x.DecisionFinishEventId } return 0 } -func (m *ResetWorkflowExecutionRequest) GetRequestId() string { - if m != nil { - return m.RequestId +func (x *ResetWorkflowExecutionRequest) GetRequestId() string { + if x != nil { + return x.RequestId } return "" } type ResetWorkflowExecutionResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + RunId string `protobuf:"bytes,1,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` } -func (m *ResetWorkflowExecutionResponse) Reset() { *m = ResetWorkflowExecutionResponse{} } -func (*ResetWorkflowExecutionResponse) ProtoMessage() {} -func (*ResetWorkflowExecutionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_674d14d2fee4e473, []int{7} -} -func (m *ResetWorkflowExecutionResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResetWorkflowExecutionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ResetWorkflowExecutionResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ResetWorkflowExecutionResponse) Reset() { + *x = ResetWorkflowExecutionResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ResetWorkflowExecutionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResetWorkflowExecutionResponse.Merge(m, src) -} -func (m *ResetWorkflowExecutionResponse) XXX_Size() int { - return m.Size() + +func (x *ResetWorkflowExecutionResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ResetWorkflowExecutionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ResetWorkflowExecutionResponse.DiscardUnknown(m) + +func (*ResetWorkflowExecutionResponse) ProtoMessage() {} + +func (x *ResetWorkflowExecutionResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ResetWorkflowExecutionResponse proto.InternalMessageInfo +// Deprecated: Use ResetWorkflowExecutionResponse.ProtoReflect.Descriptor instead. +func (*ResetWorkflowExecutionResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_workflow_proto_rawDescGZIP(), []int{7} +} -func (m *ResetWorkflowExecutionResponse) GetRunId() string { - if m != nil { - return m.RunId +func (x *ResetWorkflowExecutionResponse) GetRunId() string { + if x != nil { + return x.RunId } return "" } type TerminateWorkflowExecutionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` WorkflowExecution *WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` @@ -621,160 +642,171 @@ type TerminateWorkflowExecutionRequest struct { Identity string `protobuf:"bytes,5,opt,name=identity,proto3" json:"identity,omitempty"` } -func (m *TerminateWorkflowExecutionRequest) Reset() { *m = TerminateWorkflowExecutionRequest{} } -func (*TerminateWorkflowExecutionRequest) ProtoMessage() {} -func (*TerminateWorkflowExecutionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_674d14d2fee4e473, []int{8} -} -func (m *TerminateWorkflowExecutionRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TerminateWorkflowExecutionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TerminateWorkflowExecutionRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *TerminateWorkflowExecutionRequest) Reset() { + *x = TerminateWorkflowExecutionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *TerminateWorkflowExecutionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TerminateWorkflowExecutionRequest.Merge(m, src) -} -func (m *TerminateWorkflowExecutionRequest) XXX_Size() int { - return m.Size() + +func (x *TerminateWorkflowExecutionRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TerminateWorkflowExecutionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TerminateWorkflowExecutionRequest.DiscardUnknown(m) + +func (*TerminateWorkflowExecutionRequest) ProtoMessage() {} + +func (x *TerminateWorkflowExecutionRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_TerminateWorkflowExecutionRequest proto.InternalMessageInfo +// Deprecated: Use TerminateWorkflowExecutionRequest.ProtoReflect.Descriptor instead. +func (*TerminateWorkflowExecutionRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_workflow_proto_rawDescGZIP(), []int{8} +} -func (m *TerminateWorkflowExecutionRequest) GetDomain() string { - if m != nil { - return m.Domain +func (x *TerminateWorkflowExecutionRequest) GetDomain() string { + if x != nil { + return x.Domain } return "" } -func (m *TerminateWorkflowExecutionRequest) GetWorkflowExecution() *WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *TerminateWorkflowExecutionRequest) GetWorkflowExecution() *WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *TerminateWorkflowExecutionRequest) GetReason() string { - if m != nil { - return m.Reason +func (x *TerminateWorkflowExecutionRequest) GetReason() string { + if x != nil { + return x.Reason } return "" } -func (m *TerminateWorkflowExecutionRequest) GetDetails() *Payload { - if m != nil { - return m.Details +func (x *TerminateWorkflowExecutionRequest) GetDetails() *Payload { + if x != nil { + return x.Details } return nil } -func (m *TerminateWorkflowExecutionRequest) GetIdentity() string { - if m != nil { - return m.Identity +func (x *TerminateWorkflowExecutionRequest) GetIdentity() string { + if x != nil { + return x.Identity } return "" } type TerminateWorkflowExecutionResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *TerminateWorkflowExecutionResponse) Reset() { *m = TerminateWorkflowExecutionResponse{} } -func (*TerminateWorkflowExecutionResponse) ProtoMessage() {} -func (*TerminateWorkflowExecutionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_674d14d2fee4e473, []int{9} -} -func (m *TerminateWorkflowExecutionResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TerminateWorkflowExecutionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TerminateWorkflowExecutionResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *TerminateWorkflowExecutionResponse) Reset() { + *x = TerminateWorkflowExecutionResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *TerminateWorkflowExecutionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_TerminateWorkflowExecutionResponse.Merge(m, src) -} -func (m *TerminateWorkflowExecutionResponse) XXX_Size() int { - return m.Size() + +func (x *TerminateWorkflowExecutionResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TerminateWorkflowExecutionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_TerminateWorkflowExecutionResponse.DiscardUnknown(m) + +func (*TerminateWorkflowExecutionResponse) ProtoMessage() {} + +func (x *TerminateWorkflowExecutionResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_TerminateWorkflowExecutionResponse proto.InternalMessageInfo +// Deprecated: Use TerminateWorkflowExecutionResponse.ProtoReflect.Descriptor instead. +func (*TerminateWorkflowExecutionResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_workflow_proto_rawDescGZIP(), []int{9} +} type DescribeWorkflowExecutionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` WorkflowExecution *WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` } -func (m *DescribeWorkflowExecutionRequest) Reset() { *m = DescribeWorkflowExecutionRequest{} } -func (*DescribeWorkflowExecutionRequest) ProtoMessage() {} -func (*DescribeWorkflowExecutionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_674d14d2fee4e473, []int{10} -} -func (m *DescribeWorkflowExecutionRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DescribeWorkflowExecutionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DescribeWorkflowExecutionRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *DescribeWorkflowExecutionRequest) Reset() { + *x = DescribeWorkflowExecutionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *DescribeWorkflowExecutionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescribeWorkflowExecutionRequest.Merge(m, src) -} -func (m *DescribeWorkflowExecutionRequest) XXX_Size() int { - return m.Size() + +func (x *DescribeWorkflowExecutionRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DescribeWorkflowExecutionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DescribeWorkflowExecutionRequest.DiscardUnknown(m) + +func (*DescribeWorkflowExecutionRequest) ProtoMessage() {} + +func (x *DescribeWorkflowExecutionRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DescribeWorkflowExecutionRequest proto.InternalMessageInfo +// Deprecated: Use DescribeWorkflowExecutionRequest.ProtoReflect.Descriptor instead. +func (*DescribeWorkflowExecutionRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_workflow_proto_rawDescGZIP(), []int{10} +} -func (m *DescribeWorkflowExecutionRequest) GetDomain() string { - if m != nil { - return m.Domain +func (x *DescribeWorkflowExecutionRequest) GetDomain() string { + if x != nil { + return x.Domain } return "" } -func (m *DescribeWorkflowExecutionRequest) GetWorkflowExecution() *WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *DescribeWorkflowExecutionRequest) GetWorkflowExecution() *WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } type DescribeWorkflowExecutionResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + ExecutionConfiguration *WorkflowExecutionConfiguration `protobuf:"bytes,1,opt,name=execution_configuration,json=executionConfiguration,proto3" json:"execution_configuration,omitempty"` WorkflowExecutionInfo *WorkflowExecutionInfo `protobuf:"bytes,2,opt,name=workflow_execution_info,json=workflowExecutionInfo,proto3" json:"workflow_execution_info,omitempty"` PendingActivities []*PendingActivityInfo `protobuf:"bytes,3,rep,name=pending_activities,json=pendingActivities,proto3" json:"pending_activities,omitempty"` @@ -782,74 +814,78 @@ type DescribeWorkflowExecutionResponse struct { PendingDecision *PendingDecisionInfo `protobuf:"bytes,5,opt,name=pending_decision,json=pendingDecision,proto3" json:"pending_decision,omitempty"` } -func (m *DescribeWorkflowExecutionResponse) Reset() { *m = DescribeWorkflowExecutionResponse{} } -func (*DescribeWorkflowExecutionResponse) ProtoMessage() {} -func (*DescribeWorkflowExecutionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_674d14d2fee4e473, []int{11} -} -func (m *DescribeWorkflowExecutionResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DescribeWorkflowExecutionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DescribeWorkflowExecutionResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *DescribeWorkflowExecutionResponse) Reset() { + *x = DescribeWorkflowExecutionResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *DescribeWorkflowExecutionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescribeWorkflowExecutionResponse.Merge(m, src) -} -func (m *DescribeWorkflowExecutionResponse) XXX_Size() int { - return m.Size() + +func (x *DescribeWorkflowExecutionResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DescribeWorkflowExecutionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DescribeWorkflowExecutionResponse.DiscardUnknown(m) + +func (*DescribeWorkflowExecutionResponse) ProtoMessage() {} + +func (x *DescribeWorkflowExecutionResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DescribeWorkflowExecutionResponse proto.InternalMessageInfo +// Deprecated: Use DescribeWorkflowExecutionResponse.ProtoReflect.Descriptor instead. +func (*DescribeWorkflowExecutionResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_workflow_proto_rawDescGZIP(), []int{11} +} -func (m *DescribeWorkflowExecutionResponse) GetExecutionConfiguration() *WorkflowExecutionConfiguration { - if m != nil { - return m.ExecutionConfiguration +func (x *DescribeWorkflowExecutionResponse) GetExecutionConfiguration() *WorkflowExecutionConfiguration { + if x != nil { + return x.ExecutionConfiguration } return nil } -func (m *DescribeWorkflowExecutionResponse) GetWorkflowExecutionInfo() *WorkflowExecutionInfo { - if m != nil { - return m.WorkflowExecutionInfo +func (x *DescribeWorkflowExecutionResponse) GetWorkflowExecutionInfo() *WorkflowExecutionInfo { + if x != nil { + return x.WorkflowExecutionInfo } return nil } -func (m *DescribeWorkflowExecutionResponse) GetPendingActivities() []*PendingActivityInfo { - if m != nil { - return m.PendingActivities +func (x *DescribeWorkflowExecutionResponse) GetPendingActivities() []*PendingActivityInfo { + if x != nil { + return x.PendingActivities } return nil } -func (m *DescribeWorkflowExecutionResponse) GetPendingChildren() []*PendingChildExecutionInfo { - if m != nil { - return m.PendingChildren +func (x *DescribeWorkflowExecutionResponse) GetPendingChildren() []*PendingChildExecutionInfo { + if x != nil { + return x.PendingChildren } return nil } -func (m *DescribeWorkflowExecutionResponse) GetPendingDecision() *PendingDecisionInfo { - if m != nil { - return m.PendingDecision +func (x *DescribeWorkflowExecutionResponse) GetPendingDecision() *PendingDecisionInfo { + if x != nil { + return x.PendingDecision } return nil } type QueryWorkflowRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` WorkflowExecution *WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` Query *WorkflowQuery `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"` @@ -857,8483 +893,1619 @@ type QueryWorkflowRequest struct { QueryConsistencyLevel QueryConsistencyLevel `protobuf:"varint,5,opt,name=query_consistency_level,json=queryConsistencyLevel,proto3,enum=uber.cadence.api.v1.QueryConsistencyLevel" json:"query_consistency_level,omitempty"` } -func (m *QueryWorkflowRequest) Reset() { *m = QueryWorkflowRequest{} } -func (*QueryWorkflowRequest) ProtoMessage() {} -func (*QueryWorkflowRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_674d14d2fee4e473, []int{12} -} -func (m *QueryWorkflowRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryWorkflowRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryWorkflowRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *QueryWorkflowRequest) Reset() { + *x = QueryWorkflowRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *QueryWorkflowRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryWorkflowRequest.Merge(m, src) -} -func (m *QueryWorkflowRequest) XXX_Size() int { - return m.Size() + +func (x *QueryWorkflowRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *QueryWorkflowRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryWorkflowRequest.DiscardUnknown(m) + +func (*QueryWorkflowRequest) ProtoMessage() {} + +func (x *QueryWorkflowRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_QueryWorkflowRequest proto.InternalMessageInfo +// Deprecated: Use QueryWorkflowRequest.ProtoReflect.Descriptor instead. +func (*QueryWorkflowRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_workflow_proto_rawDescGZIP(), []int{12} +} -func (m *QueryWorkflowRequest) GetDomain() string { - if m != nil { - return m.Domain +func (x *QueryWorkflowRequest) GetDomain() string { + if x != nil { + return x.Domain } return "" } -func (m *QueryWorkflowRequest) GetWorkflowExecution() *WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *QueryWorkflowRequest) GetWorkflowExecution() *WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *QueryWorkflowRequest) GetQuery() *WorkflowQuery { - if m != nil { - return m.Query +func (x *QueryWorkflowRequest) GetQuery() *WorkflowQuery { + if x != nil { + return x.Query } return nil } -func (m *QueryWorkflowRequest) GetQueryRejectCondition() QueryRejectCondition { - if m != nil { - return m.QueryRejectCondition +func (x *QueryWorkflowRequest) GetQueryRejectCondition() QueryRejectCondition { + if x != nil { + return x.QueryRejectCondition } - return QUERY_REJECT_CONDITION_INVALID + return QueryRejectCondition_QUERY_REJECT_CONDITION_INVALID } -func (m *QueryWorkflowRequest) GetQueryConsistencyLevel() QueryConsistencyLevel { - if m != nil { - return m.QueryConsistencyLevel +func (x *QueryWorkflowRequest) GetQueryConsistencyLevel() QueryConsistencyLevel { + if x != nil { + return x.QueryConsistencyLevel } - return QUERY_CONSISTENCY_LEVEL_INVALID + return QueryConsistencyLevel_QUERY_CONSISTENCY_LEVEL_INVALID } type QueryWorkflowResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + QueryResult *Payload `protobuf:"bytes,1,opt,name=query_result,json=queryResult,proto3" json:"query_result,omitempty"` QueryRejected *QueryRejected `protobuf:"bytes,2,opt,name=query_rejected,json=queryRejected,proto3" json:"query_rejected,omitempty"` } -func (m *QueryWorkflowResponse) Reset() { *m = QueryWorkflowResponse{} } -func (*QueryWorkflowResponse) ProtoMessage() {} -func (*QueryWorkflowResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_674d14d2fee4e473, []int{13} -} -func (m *QueryWorkflowResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryWorkflowResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryWorkflowResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *QueryWorkflowResponse) Reset() { + *x = QueryWorkflowResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *QueryWorkflowResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryWorkflowResponse.Merge(m, src) -} -func (m *QueryWorkflowResponse) XXX_Size() int { - return m.Size() + +func (x *QueryWorkflowResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *QueryWorkflowResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryWorkflowResponse.DiscardUnknown(m) + +func (*QueryWorkflowResponse) ProtoMessage() {} + +func (x *QueryWorkflowResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_QueryWorkflowResponse proto.InternalMessageInfo +// Deprecated: Use QueryWorkflowResponse.ProtoReflect.Descriptor instead. +func (*QueryWorkflowResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_workflow_proto_rawDescGZIP(), []int{13} +} -func (m *QueryWorkflowResponse) GetQueryResult() *Payload { - if m != nil { - return m.QueryResult +func (x *QueryWorkflowResponse) GetQueryResult() *Payload { + if x != nil { + return x.QueryResult } return nil } -func (m *QueryWorkflowResponse) GetQueryRejected() *QueryRejected { - if m != nil { - return m.QueryRejected +func (x *QueryWorkflowResponse) GetQueryRejected() *QueryRejected { + if x != nil { + return x.QueryRejected } return nil } type DescribeTaskListRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` TaskList *TaskList `protobuf:"bytes,2,opt,name=task_list,json=taskList,proto3" json:"task_list,omitempty"` TaskListType TaskListType `protobuf:"varint,3,opt,name=task_list_type,json=taskListType,proto3,enum=uber.cadence.api.v1.TaskListType" json:"task_list_type,omitempty"` IncludeTaskListStatus bool `protobuf:"varint,4,opt,name=include_task_list_status,json=includeTaskListStatus,proto3" json:"include_task_list_status,omitempty"` } -func (m *DescribeTaskListRequest) Reset() { *m = DescribeTaskListRequest{} } -func (*DescribeTaskListRequest) ProtoMessage() {} -func (*DescribeTaskListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_674d14d2fee4e473, []int{14} -} -func (m *DescribeTaskListRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DescribeTaskListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DescribeTaskListRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *DescribeTaskListRequest) Reset() { + *x = DescribeTaskListRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *DescribeTaskListRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescribeTaskListRequest.Merge(m, src) -} -func (m *DescribeTaskListRequest) XXX_Size() int { - return m.Size() + +func (x *DescribeTaskListRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DescribeTaskListRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DescribeTaskListRequest.DiscardUnknown(m) + +func (*DescribeTaskListRequest) ProtoMessage() {} + +func (x *DescribeTaskListRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DescribeTaskListRequest proto.InternalMessageInfo +// Deprecated: Use DescribeTaskListRequest.ProtoReflect.Descriptor instead. +func (*DescribeTaskListRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_workflow_proto_rawDescGZIP(), []int{14} +} -func (m *DescribeTaskListRequest) GetDomain() string { - if m != nil { - return m.Domain +func (x *DescribeTaskListRequest) GetDomain() string { + if x != nil { + return x.Domain } return "" } -func (m *DescribeTaskListRequest) GetTaskList() *TaskList { - if m != nil { - return m.TaskList +func (x *DescribeTaskListRequest) GetTaskList() *TaskList { + if x != nil { + return x.TaskList } return nil } -func (m *DescribeTaskListRequest) GetTaskListType() TaskListType { - if m != nil { - return m.TaskListType +func (x *DescribeTaskListRequest) GetTaskListType() TaskListType { + if x != nil { + return x.TaskListType } - return TASK_LIST_TYPE_INVALID + return TaskListType_TASK_LIST_TYPE_INVALID } -func (m *DescribeTaskListRequest) GetIncludeTaskListStatus() bool { - if m != nil { - return m.IncludeTaskListStatus +func (x *DescribeTaskListRequest) GetIncludeTaskListStatus() bool { + if x != nil { + return x.IncludeTaskListStatus } return false } type DescribeTaskListResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Pollers []*PollerInfo `protobuf:"bytes,1,rep,name=pollers,proto3" json:"pollers,omitempty"` TaskListStatus *TaskListStatus `protobuf:"bytes,2,opt,name=task_list_status,json=taskListStatus,proto3" json:"task_list_status,omitempty"` } -func (m *DescribeTaskListResponse) Reset() { *m = DescribeTaskListResponse{} } -func (*DescribeTaskListResponse) ProtoMessage() {} -func (*DescribeTaskListResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_674d14d2fee4e473, []int{15} -} -func (m *DescribeTaskListResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DescribeTaskListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DescribeTaskListResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *DescribeTaskListResponse) Reset() { + *x = DescribeTaskListResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *DescribeTaskListResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescribeTaskListResponse.Merge(m, src) -} -func (m *DescribeTaskListResponse) XXX_Size() int { - return m.Size() + +func (x *DescribeTaskListResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DescribeTaskListResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DescribeTaskListResponse.DiscardUnknown(m) + +func (*DescribeTaskListResponse) ProtoMessage() {} + +func (x *DescribeTaskListResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DescribeTaskListResponse proto.InternalMessageInfo +// Deprecated: Use DescribeTaskListResponse.ProtoReflect.Descriptor instead. +func (*DescribeTaskListResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_workflow_proto_rawDescGZIP(), []int{15} +} -func (m *DescribeTaskListResponse) GetPollers() []*PollerInfo { - if m != nil { - return m.Pollers +func (x *DescribeTaskListResponse) GetPollers() []*PollerInfo { + if x != nil { + return x.Pollers } return nil } -func (m *DescribeTaskListResponse) GetTaskListStatus() *TaskListStatus { - if m != nil { - return m.TaskListStatus +func (x *DescribeTaskListResponse) GetTaskListStatus() *TaskListStatus { + if x != nil { + return x.TaskListStatus } return nil } type ListTaskListPartitionsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` TaskList *TaskList `protobuf:"bytes,2,opt,name=task_list,json=taskList,proto3" json:"task_list,omitempty"` } -func (m *ListTaskListPartitionsRequest) Reset() { *m = ListTaskListPartitionsRequest{} } -func (*ListTaskListPartitionsRequest) ProtoMessage() {} -func (*ListTaskListPartitionsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_674d14d2fee4e473, []int{16} -} -func (m *ListTaskListPartitionsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ListTaskListPartitionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListTaskListPartitionsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ListTaskListPartitionsRequest) Reset() { + *x = ListTaskListPartitionsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ListTaskListPartitionsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListTaskListPartitionsRequest.Merge(m, src) -} -func (m *ListTaskListPartitionsRequest) XXX_Size() int { - return m.Size() + +func (x *ListTaskListPartitionsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListTaskListPartitionsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListTaskListPartitionsRequest.DiscardUnknown(m) + +func (*ListTaskListPartitionsRequest) ProtoMessage() {} + +func (x *ListTaskListPartitionsRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ListTaskListPartitionsRequest proto.InternalMessageInfo +// Deprecated: Use ListTaskListPartitionsRequest.ProtoReflect.Descriptor instead. +func (*ListTaskListPartitionsRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_workflow_proto_rawDescGZIP(), []int{16} +} -func (m *ListTaskListPartitionsRequest) GetDomain() string { - if m != nil { - return m.Domain +func (x *ListTaskListPartitionsRequest) GetDomain() string { + if x != nil { + return x.Domain } return "" } -func (m *ListTaskListPartitionsRequest) GetTaskList() *TaskList { - if m != nil { - return m.TaskList +func (x *ListTaskListPartitionsRequest) GetTaskList() *TaskList { + if x != nil { + return x.TaskList } return nil } type ListTaskListPartitionsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + ActivityTaskListPartitions []*TaskListPartitionMetadata `protobuf:"bytes,1,rep,name=activity_task_list_partitions,json=activityTaskListPartitions,proto3" json:"activity_task_list_partitions,omitempty"` DecisionTaskListPartitions []*TaskListPartitionMetadata `protobuf:"bytes,2,rep,name=decision_task_list_partitions,json=decisionTaskListPartitions,proto3" json:"decision_task_list_partitions,omitempty"` } -func (m *ListTaskListPartitionsResponse) Reset() { *m = ListTaskListPartitionsResponse{} } -func (*ListTaskListPartitionsResponse) ProtoMessage() {} -func (*ListTaskListPartitionsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_674d14d2fee4e473, []int{17} -} -func (m *ListTaskListPartitionsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ListTaskListPartitionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListTaskListPartitionsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ListTaskListPartitionsResponse) Reset() { + *x = ListTaskListPartitionsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ListTaskListPartitionsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListTaskListPartitionsResponse.Merge(m, src) -} -func (m *ListTaskListPartitionsResponse) XXX_Size() int { - return m.Size() + +func (x *ListTaskListPartitionsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListTaskListPartitionsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListTaskListPartitionsResponse.DiscardUnknown(m) + +func (*ListTaskListPartitionsResponse) ProtoMessage() {} + +func (x *ListTaskListPartitionsResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ListTaskListPartitionsResponse proto.InternalMessageInfo +// Deprecated: Use ListTaskListPartitionsResponse.ProtoReflect.Descriptor instead. +func (*ListTaskListPartitionsResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_workflow_proto_rawDescGZIP(), []int{17} +} -func (m *ListTaskListPartitionsResponse) GetActivityTaskListPartitions() []*TaskListPartitionMetadata { - if m != nil { - return m.ActivityTaskListPartitions +func (x *ListTaskListPartitionsResponse) GetActivityTaskListPartitions() []*TaskListPartitionMetadata { + if x != nil { + return x.ActivityTaskListPartitions } return nil } -func (m *ListTaskListPartitionsResponse) GetDecisionTaskListPartitions() []*TaskListPartitionMetadata { - if m != nil { - return m.DecisionTaskListPartitions +func (x *ListTaskListPartitionsResponse) GetDecisionTaskListPartitions() []*TaskListPartitionMetadata { + if x != nil { + return x.DecisionTaskListPartitions } return nil } type ResetStickyTaskListRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` WorkflowExecution *WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` } -func (m *ResetStickyTaskListRequest) Reset() { *m = ResetStickyTaskListRequest{} } -func (*ResetStickyTaskListRequest) ProtoMessage() {} -func (*ResetStickyTaskListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_674d14d2fee4e473, []int{18} -} -func (m *ResetStickyTaskListRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResetStickyTaskListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ResetStickyTaskListRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ResetStickyTaskListRequest) Reset() { + *x = ResetStickyTaskListRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ResetStickyTaskListRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResetStickyTaskListRequest.Merge(m, src) -} -func (m *ResetStickyTaskListRequest) XXX_Size() int { - return m.Size() + +func (x *ResetStickyTaskListRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ResetStickyTaskListRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ResetStickyTaskListRequest.DiscardUnknown(m) + +func (*ResetStickyTaskListRequest) ProtoMessage() {} + +func (x *ResetStickyTaskListRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ResetStickyTaskListRequest proto.InternalMessageInfo +// Deprecated: Use ResetStickyTaskListRequest.ProtoReflect.Descriptor instead. +func (*ResetStickyTaskListRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_workflow_proto_rawDescGZIP(), []int{18} +} -func (m *ResetStickyTaskListRequest) GetDomain() string { - if m != nil { - return m.Domain +func (x *ResetStickyTaskListRequest) GetDomain() string { + if x != nil { + return x.Domain } return "" } -func (m *ResetStickyTaskListRequest) GetWorkflowExecution() *WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *ResetStickyTaskListRequest) GetWorkflowExecution() *WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } type ResetStickyTaskListResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ResetStickyTaskListResponse) Reset() { *m = ResetStickyTaskListResponse{} } -func (*ResetStickyTaskListResponse) ProtoMessage() {} -func (*ResetStickyTaskListResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_674d14d2fee4e473, []int{19} -} -func (m *ResetStickyTaskListResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResetStickyTaskListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ResetStickyTaskListResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ResetStickyTaskListResponse) Reset() { + *x = ResetStickyTaskListResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ResetStickyTaskListResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResetStickyTaskListResponse.Merge(m, src) -} -func (m *ResetStickyTaskListResponse) XXX_Size() int { - return m.Size() -} -func (m *ResetStickyTaskListResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ResetStickyTaskListResponse.DiscardUnknown(m) + +func (x *ResetStickyTaskListResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ResetStickyTaskListResponse proto.InternalMessageInfo - -type GetClusterInfoRequest struct { -} +func (*ResetStickyTaskListResponse) ProtoMessage() {} -func (m *GetClusterInfoRequest) Reset() { *m = GetClusterInfoRequest{} } -func (*GetClusterInfoRequest) ProtoMessage() {} -func (*GetClusterInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_674d14d2fee4e473, []int{20} -} -func (m *GetClusterInfoRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetClusterInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetClusterInfoRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *ResetStickyTaskListResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *GetClusterInfoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetClusterInfoRequest.Merge(m, src) -} -func (m *GetClusterInfoRequest) XXX_Size() int { - return m.Size() -} -func (m *GetClusterInfoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetClusterInfoRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetClusterInfoRequest proto.InternalMessageInfo -type GetClusterInfoResponse struct { - SupportedClientVersions *SupportedClientVersions `protobuf:"bytes,1,opt,name=supported_client_versions,json=supportedClientVersions,proto3" json:"supported_client_versions,omitempty"` +// Deprecated: Use ResetStickyTaskListResponse.ProtoReflect.Descriptor instead. +func (*ResetStickyTaskListResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_workflow_proto_rawDescGZIP(), []int{19} } -func (m *GetClusterInfoResponse) Reset() { *m = GetClusterInfoResponse{} } -func (*GetClusterInfoResponse) ProtoMessage() {} -func (*GetClusterInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_674d14d2fee4e473, []int{21} -} -func (m *GetClusterInfoResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetClusterInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetClusterInfoResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *GetClusterInfoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetClusterInfoResponse.Merge(m, src) -} -func (m *GetClusterInfoResponse) XXX_Size() int { - return m.Size() -} -func (m *GetClusterInfoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetClusterInfoResponse.DiscardUnknown(m) +type GetClusterInfoRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -var xxx_messageInfo_GetClusterInfoResponse proto.InternalMessageInfo - -func (m *GetClusterInfoResponse) GetSupportedClientVersions() *SupportedClientVersions { - if m != nil { - return m.SupportedClientVersions +func (x *GetClusterInfoRequest) Reset() { + *x = GetClusterInfoRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil -} - -type GetWorkflowExecutionHistoryRequest struct { - Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` - WorkflowExecution *WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` - PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - NextPageToken []byte `protobuf:"bytes,4,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - WaitForNewEvent bool `protobuf:"varint,5,opt,name=wait_for_new_event,json=waitForNewEvent,proto3" json:"wait_for_new_event,omitempty"` - HistoryEventFilterType EventFilterType `protobuf:"varint,6,opt,name=history_event_filter_type,json=historyEventFilterType,proto3,enum=uber.cadence.api.v1.EventFilterType" json:"history_event_filter_type,omitempty"` - SkipArchival bool `protobuf:"varint,7,opt,name=skip_archival,json=skipArchival,proto3" json:"skip_archival,omitempty"` } -func (m *GetWorkflowExecutionHistoryRequest) Reset() { *m = GetWorkflowExecutionHistoryRequest{} } -func (*GetWorkflowExecutionHistoryRequest) ProtoMessage() {} -func (*GetWorkflowExecutionHistoryRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_674d14d2fee4e473, []int{22} -} -func (m *GetWorkflowExecutionHistoryRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetWorkflowExecutionHistoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetWorkflowExecutionHistoryRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *GetWorkflowExecutionHistoryRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetWorkflowExecutionHistoryRequest.Merge(m, src) -} -func (m *GetWorkflowExecutionHistoryRequest) XXX_Size() int { - return m.Size() -} -func (m *GetWorkflowExecutionHistoryRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetWorkflowExecutionHistoryRequest.DiscardUnknown(m) +func (x *GetClusterInfoRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_GetWorkflowExecutionHistoryRequest proto.InternalMessageInfo - -func (m *GetWorkflowExecutionHistoryRequest) GetDomain() string { - if m != nil { - return m.Domain - } - return "" -} +func (*GetClusterInfoRequest) ProtoMessage() {} -func (m *GetWorkflowExecutionHistoryRequest) GetWorkflowExecution() *WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *GetClusterInfoRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *GetWorkflowExecutionHistoryRequest) GetPageSize() int32 { - if m != nil { - return m.PageSize - } - return 0 +// Deprecated: Use GetClusterInfoRequest.ProtoReflect.Descriptor instead. +func (*GetClusterInfoRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_workflow_proto_rawDescGZIP(), []int{20} } -func (m *GetWorkflowExecutionHistoryRequest) GetNextPageToken() []byte { - if m != nil { - return m.NextPageToken - } - return nil -} +type GetClusterInfoResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetWorkflowExecutionHistoryRequest) GetWaitForNewEvent() bool { - if m != nil { - return m.WaitForNewEvent - } - return false + SupportedClientVersions *SupportedClientVersions `protobuf:"bytes,1,opt,name=supported_client_versions,json=supportedClientVersions,proto3" json:"supported_client_versions,omitempty"` } -func (m *GetWorkflowExecutionHistoryRequest) GetHistoryEventFilterType() EventFilterType { - if m != nil { - return m.HistoryEventFilterType +func (x *GetClusterInfoResponse) Reset() { + *x = GetClusterInfoResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return EVENT_FILTER_TYPE_INVALID } -func (m *GetWorkflowExecutionHistoryRequest) GetSkipArchival() bool { - if m != nil { - return m.SkipArchival - } - return false +func (x *GetClusterInfoResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -type GetWorkflowExecutionHistoryResponse struct { - History *History `protobuf:"bytes,1,opt,name=history,proto3" json:"history,omitempty"` - RawHistory []*DataBlob `protobuf:"bytes,2,rep,name=raw_history,json=rawHistory,proto3" json:"raw_history,omitempty"` - NextPageToken []byte `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - Archived bool `protobuf:"varint,4,opt,name=archived,proto3" json:"archived,omitempty"` -} +func (*GetClusterInfoResponse) ProtoMessage() {} -func (m *GetWorkflowExecutionHistoryResponse) Reset() { *m = GetWorkflowExecutionHistoryResponse{} } -func (*GetWorkflowExecutionHistoryResponse) ProtoMessage() {} -func (*GetWorkflowExecutionHistoryResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_674d14d2fee4e473, []int{23} -} -func (m *GetWorkflowExecutionHistoryResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetWorkflowExecutionHistoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetWorkflowExecutionHistoryResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *GetClusterInfoResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *GetWorkflowExecutionHistoryResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetWorkflowExecutionHistoryResponse.Merge(m, src) -} -func (m *GetWorkflowExecutionHistoryResponse) XXX_Size() int { - return m.Size() -} -func (m *GetWorkflowExecutionHistoryResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetWorkflowExecutionHistoryResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_GetWorkflowExecutionHistoryResponse proto.InternalMessageInfo +// Deprecated: Use GetClusterInfoResponse.ProtoReflect.Descriptor instead. +func (*GetClusterInfoResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_workflow_proto_rawDescGZIP(), []int{21} +} -func (m *GetWorkflowExecutionHistoryResponse) GetHistory() *History { - if m != nil { - return m.History +func (x *GetClusterInfoResponse) GetSupportedClientVersions() *SupportedClientVersions { + if x != nil { + return x.SupportedClientVersions } return nil } -func (m *GetWorkflowExecutionHistoryResponse) GetRawHistory() []*DataBlob { - if m != nil { - return m.RawHistory - } - return nil +type GetWorkflowExecutionHistoryRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` + WorkflowExecution *WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` + PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + NextPageToken []byte `protobuf:"bytes,4,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + WaitForNewEvent bool `protobuf:"varint,5,opt,name=wait_for_new_event,json=waitForNewEvent,proto3" json:"wait_for_new_event,omitempty"` + HistoryEventFilterType EventFilterType `protobuf:"varint,6,opt,name=history_event_filter_type,json=historyEventFilterType,proto3,enum=uber.cadence.api.v1.EventFilterType" json:"history_event_filter_type,omitempty"` + SkipArchival bool `protobuf:"varint,7,opt,name=skip_archival,json=skipArchival,proto3" json:"skip_archival,omitempty"` } -func (m *GetWorkflowExecutionHistoryResponse) GetNextPageToken() []byte { - if m != nil { - return m.NextPageToken +func (x *GetWorkflowExecutionHistoryRequest) Reset() { + *x = GetWorkflowExecutionHistoryRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *GetWorkflowExecutionHistoryResponse) GetArchived() bool { - if m != nil { - return m.Archived - } - return false +func (x *GetWorkflowExecutionHistoryRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func init() { - proto.RegisterType((*StartWorkflowExecutionRequest)(nil), "uber.cadence.api.v1.StartWorkflowExecutionRequest") - proto.RegisterType((*StartWorkflowExecutionResponse)(nil), "uber.cadence.api.v1.StartWorkflowExecutionResponse") - proto.RegisterType((*SignalWorkflowExecutionRequest)(nil), "uber.cadence.api.v1.SignalWorkflowExecutionRequest") - proto.RegisterType((*SignalWorkflowExecutionResponse)(nil), "uber.cadence.api.v1.SignalWorkflowExecutionResponse") - proto.RegisterType((*SignalWithStartWorkflowExecutionRequest)(nil), "uber.cadence.api.v1.SignalWithStartWorkflowExecutionRequest") - proto.RegisterType((*SignalWithStartWorkflowExecutionResponse)(nil), "uber.cadence.api.v1.SignalWithStartWorkflowExecutionResponse") - proto.RegisterType((*ResetWorkflowExecutionRequest)(nil), "uber.cadence.api.v1.ResetWorkflowExecutionRequest") - proto.RegisterType((*ResetWorkflowExecutionResponse)(nil), "uber.cadence.api.v1.ResetWorkflowExecutionResponse") - proto.RegisterType((*TerminateWorkflowExecutionRequest)(nil), "uber.cadence.api.v1.TerminateWorkflowExecutionRequest") - proto.RegisterType((*TerminateWorkflowExecutionResponse)(nil), "uber.cadence.api.v1.TerminateWorkflowExecutionResponse") - proto.RegisterType((*DescribeWorkflowExecutionRequest)(nil), "uber.cadence.api.v1.DescribeWorkflowExecutionRequest") - proto.RegisterType((*DescribeWorkflowExecutionResponse)(nil), "uber.cadence.api.v1.DescribeWorkflowExecutionResponse") - proto.RegisterType((*QueryWorkflowRequest)(nil), "uber.cadence.api.v1.QueryWorkflowRequest") - proto.RegisterType((*QueryWorkflowResponse)(nil), "uber.cadence.api.v1.QueryWorkflowResponse") - proto.RegisterType((*DescribeTaskListRequest)(nil), "uber.cadence.api.v1.DescribeTaskListRequest") - proto.RegisterType((*DescribeTaskListResponse)(nil), "uber.cadence.api.v1.DescribeTaskListResponse") - proto.RegisterType((*ListTaskListPartitionsRequest)(nil), "uber.cadence.api.v1.ListTaskListPartitionsRequest") - proto.RegisterType((*ListTaskListPartitionsResponse)(nil), "uber.cadence.api.v1.ListTaskListPartitionsResponse") - proto.RegisterType((*ResetStickyTaskListRequest)(nil), "uber.cadence.api.v1.ResetStickyTaskListRequest") - proto.RegisterType((*ResetStickyTaskListResponse)(nil), "uber.cadence.api.v1.ResetStickyTaskListResponse") - proto.RegisterType((*GetClusterInfoRequest)(nil), "uber.cadence.api.v1.GetClusterInfoRequest") - proto.RegisterType((*GetClusterInfoResponse)(nil), "uber.cadence.api.v1.GetClusterInfoResponse") - proto.RegisterType((*GetWorkflowExecutionHistoryRequest)(nil), "uber.cadence.api.v1.GetWorkflowExecutionHistoryRequest") - proto.RegisterType((*GetWorkflowExecutionHistoryResponse)(nil), "uber.cadence.api.v1.GetWorkflowExecutionHistoryResponse") -} - -func init() { - proto.RegisterFile("github.com/uber/cadence/.gen/proto/api/v1/service_workflow.proto", fileDescriptor_674d14d2fee4e473) -} - -var fileDescriptor_674d14d2fee4e473 = []byte{ - // 1951 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x59, 0x4f, 0x6f, 0x1b, 0xc7, - 0x15, 0xd7, 0x8a, 0xfa, 0xfb, 0x48, 0xc9, 0xf6, 0x24, 0x92, 0xd6, 0xb4, 0x45, 0x49, 0xeb, 0x34, - 0x55, 0x9d, 0x84, 0xaa, 0xe5, 0xd6, 0x4e, 0x8b, 0xb6, 0x81, 0x2c, 0xc7, 0x8e, 0x80, 0x38, 0x50, - 0x57, 0x6a, 0x8d, 0x16, 0x28, 0xb6, 0xab, 0xdd, 0x21, 0x39, 0xd5, 0x72, 0x67, 0x35, 0x33, 0x4b, - 0x9a, 0x39, 0xb5, 0x45, 0xd0, 0x43, 0x83, 0x02, 0xe9, 0xad, 0xe8, 0xa5, 0x87, 0xf6, 0xd0, 0x63, - 0x3f, 0x45, 0xd1, 0xa3, 0x8f, 0xb9, 0xb5, 0x96, 0x2f, 0xbd, 0x35, 0x9f, 0xc0, 0x28, 0x76, 0x76, - 0x96, 0x22, 0xa9, 0xe1, 0x92, 0x72, 0x10, 0xc4, 0x37, 0xed, 0x9b, 0xf7, 0x7e, 0xef, 0xff, 0xcc, - 0x7b, 0x14, 0xdc, 0x8c, 0x8f, 0x30, 0xdb, 0xf2, 0x5c, 0x1f, 0x87, 0x1e, 0xde, 0x72, 0x23, 0xb2, - 0xd5, 0xba, 0xb5, 0xc5, 0x31, 0x6b, 0x11, 0x0f, 0x3b, 0x6d, 0xca, 0x8e, 0x6b, 0x01, 0x6d, 0x57, - 0x23, 0x46, 0x05, 0x45, 0xaf, 0x25, 0xbc, 0x55, 0xc5, 0x5b, 0x75, 0x23, 0x52, 0x6d, 0xdd, 0x2a, - 0x57, 0xea, 0x94, 0xd6, 0x03, 0xbc, 0x25, 0x59, 0x8e, 0xe2, 0xda, 0x96, 0x1f, 0x33, 0x57, 0x10, - 0x1a, 0xa6, 0x42, 0xe5, 0xeb, 0x3e, 0x8e, 0x70, 0x98, 0x88, 0x10, 0xcc, 0xb7, 0xea, 0xb4, 0x4e, - 0x25, 0x5d, 0x9d, 0xae, 0xeb, 0xd4, 0x7b, 0xb4, 0xd9, 0xec, 0xca, 0x6f, 0xe8, 0x38, 0x1a, 0x84, - 0x0b, 0xca, 0x3a, 0x8a, 0x65, 0x4d, 0xc7, 0x72, 0x12, 0xe3, 0x2e, 0x83, 0xa5, 0x63, 0x10, 0x2e, - 0x3f, 0x0e, 0x08, 0x17, 0x79, 0x3c, 0xfd, 0x01, 0xb0, 0xfe, 0x3c, 0x0b, 0xab, 0x07, 0xc2, 0x65, - 0xe2, 0xb1, 0xa2, 0xbf, 0xff, 0x04, 0x7b, 0x71, 0xe2, 0xac, 0x8d, 0x4f, 0x62, 0xcc, 0x05, 0x5a, - 0x86, 0x19, 0x9f, 0x36, 0x5d, 0x12, 0x9a, 0xc6, 0xba, 0xb1, 0x39, 0x6f, 0xab, 0x2f, 0xb4, 0x06, - 0xc5, 0x0c, 0xcb, 0x21, 0xbe, 0x39, 0x29, 0x0f, 0x21, 0x23, 0xed, 0xf9, 0xe8, 0x01, 0x2c, 0x74, - 0x19, 0x44, 0x27, 0xc2, 0x66, 0x61, 0xdd, 0xd8, 0x2c, 0x6e, 0x6f, 0x54, 0x35, 0x31, 0xaf, 0x66, - 0xea, 0x0f, 0x3b, 0x11, 0xb6, 0x4b, 0xed, 0x9e, 0x2f, 0xf4, 0x7d, 0x98, 0x4f, 0x1c, 0x73, 0x12, - 0xcf, 0xcc, 0x29, 0x89, 0xb1, 0xaa, 0xc5, 0x38, 0x74, 0xf9, 0xf1, 0x87, 0x84, 0x0b, 0x7b, 0x4e, - 0xa8, 0xbf, 0xd0, 0x36, 0x4c, 0x93, 0x30, 0x8a, 0x85, 0x39, 0x2d, 0xe5, 0xae, 0x6b, 0xe5, 0xf6, - 0xdd, 0x4e, 0x40, 0x5d, 0xdf, 0x4e, 0x59, 0x51, 0x1d, 0xd6, 0x71, 0x16, 0x04, 0x87, 0x27, 0xb1, - 0x71, 0x04, 0x75, 0xbc, 0x80, 0x72, 0xec, 0x08, 0xd2, 0xc4, 0x34, 0x16, 0xe6, 0x8c, 0x84, 0xbb, - 0x5a, 0x4d, 0x2b, 0xa5, 0x9a, 0x55, 0x4a, 0xf5, 0xbe, 0xaa, 0x94, 0x7b, 0x53, 0x7f, 0xfa, 0xf7, - 0x9a, 0x61, 0x5f, 0xef, 0x02, 0xc9, 0x18, 0x1f, 0xd2, 0xdd, 0x04, 0xe5, 0x30, 0x05, 0x41, 0xbf, - 0x80, 0x6b, 0xd2, 0xb1, 0x21, 0x3a, 0x66, 0xc7, 0xd3, 0xb1, 0x92, 0x60, 0xe8, 0xe0, 0xcb, 0x30, - 0x47, 0x7c, 0x1c, 0x0a, 0x22, 0x3a, 0xe6, 0x9c, 0xcc, 0x4e, 0xf7, 0x1b, 0xad, 0x02, 0xb0, 0x34, - 0xbf, 0x49, 0xee, 0xe6, 0xe5, 0xe9, 0xbc, 0xa2, 0xec, 0xf9, 0xc8, 0x03, 0xb3, 0x27, 0xb7, 0x0e, - 0xc3, 0x31, 0xc7, 0x4e, 0x44, 0x03, 0xe2, 0x75, 0x4c, 0x58, 0x37, 0x36, 0x17, 0xb7, 0x6f, 0xe6, - 0x66, 0x71, 0xcf, 0xb7, 0x13, 0x91, 0x7d, 0x29, 0x61, 0x2f, 0xb5, 0x75, 0x64, 0xb4, 0x0b, 0x25, - 0x86, 0x05, 0xeb, 0x64, 0xc0, 0x45, 0xe9, 0xef, 0xba, 0x16, 0xd8, 0x4e, 0x18, 0x15, 0x5c, 0x91, - 0x9d, 0x7d, 0xa0, 0x1b, 0xb0, 0xe0, 0xb1, 0x24, 0x4f, 0x5e, 0x03, 0xfb, 0x71, 0x80, 0xcd, 0x92, - 0xf4, 0xa5, 0x94, 0x10, 0x0f, 0x14, 0x0d, 0xbd, 0x03, 0x53, 0x4d, 0xdc, 0xa4, 0xe6, 0x82, 0x8a, - 0xa8, 0x4e, 0xc3, 0x23, 0xdc, 0xa4, 0xb6, 0x64, 0x43, 0x36, 0x5c, 0xe1, 0xd8, 0x65, 0x5e, 0xc3, - 0x71, 0x85, 0x60, 0xe4, 0x28, 0x16, 0x98, 0x9b, 0x8b, 0x52, 0xf6, 0x1b, 0x5a, 0xd9, 0x03, 0xc9, - 0xbd, 0xd3, 0x65, 0xb6, 0x2f, 0xf3, 0x01, 0x0a, 0xba, 0x0d, 0x33, 0x0d, 0xec, 0xfa, 0x98, 0x99, - 0x97, 0x24, 0xd0, 0x35, 0x2d, 0xd0, 0x07, 0x92, 0xc5, 0x56, 0xac, 0xd6, 0x5d, 0xa8, 0x0c, 0xeb, - 0x4d, 0x1e, 0xd1, 0x90, 0x63, 0xb4, 0x04, 0x33, 0x2c, 0x0e, 0x93, 0x1c, 0xa6, 0xcd, 0x39, 0xcd, - 0xe2, 0x70, 0xcf, 0xb7, 0xfe, 0x39, 0x09, 0x95, 0x03, 0x52, 0x0f, 0xdd, 0xe0, 0xc2, 0x6d, 0xfd, - 0x13, 0x40, 0xdd, 0xd4, 0x77, 0xab, 0x57, 0x76, 0x77, 0x71, 0xfb, 0xcd, 0xdc, 0xa4, 0x9f, 0xa9, - 0xb8, 0xd2, 0x1e, 0x24, 0xf5, 0x15, 0x63, 0x21, 0xb7, 0x18, 0xa7, 0x06, 0x8b, 0x71, 0x0d, 0x8a, - 0x5c, 0xfa, 0xe2, 0x84, 0x6e, 0x13, 0xcb, 0x4e, 0x9e, 0xb7, 0x21, 0x25, 0x7d, 0xe4, 0x36, 0x31, - 0x7a, 0x0f, 0x4a, 0x8a, 0x21, 0xed, 0xf5, 0x99, 0x31, 0x7a, 0x5d, 0x41, 0xee, 0xc9, 0x8e, 0x37, - 0x61, 0xd6, 0xa3, 0xa1, 0x60, 0x34, 0x90, 0x4d, 0x57, 0xb2, 0xb3, 0x4f, 0x6b, 0x03, 0xd6, 0x86, - 0xc6, 0x31, 0x4d, 0x81, 0xf5, 0xc2, 0x80, 0x6f, 0x2a, 0x1e, 0x22, 0x1a, 0xf9, 0x77, 0xe9, 0x63, - 0x58, 0x48, 0x9b, 0x5d, 0x79, 0x27, 0x63, 0x5f, 0xdc, 0xde, 0xd6, 0x57, 0x55, 0x1e, 0x94, 0x5d, - 0x92, 0x40, 0x19, 0xf0, 0x40, 0x8c, 0x26, 0x47, 0xc6, 0xa8, 0xf0, 0x25, 0x62, 0x34, 0xd5, 0x1f, - 0xa3, 0x1d, 0xd8, 0x1c, 0xed, 0x7f, 0x7e, 0xbd, 0xbe, 0x30, 0x60, 0xd5, 0xc6, 0x1c, 0x8b, 0x57, - 0xa5, 0x5c, 0x97, 0x61, 0x86, 0x61, 0x97, 0xd3, 0x50, 0x15, 0xab, 0xfa, 0x42, 0x77, 0xc1, 0xf4, - 0xb1, 0x47, 0x78, 0xf2, 0x34, 0xd4, 0x48, 0x48, 0x78, 0xc3, 0xc1, 0x2d, 0x1c, 0x76, 0x0b, 0xb7, - 0x60, 0x2f, 0x65, 0xe7, 0x0f, 0xe4, 0xf1, 0xfb, 0xc9, 0xe9, 0x9e, 0x3f, 0x50, 0xe3, 0xd3, 0x03, - 0x35, 0x9e, 0x74, 0xfa, 0x30, 0xff, 0x47, 0x46, 0x6e, 0xe3, 0x10, 0xb3, 0x26, 0x09, 0x5d, 0x81, - 0x5f, 0xf5, 0xe8, 0xdd, 0x81, 0x59, 0x1f, 0x0b, 0x97, 0x04, 0x5c, 0xbd, 0xe3, 0xf9, 0xf5, 0x97, - 0x31, 0xf7, 0x5d, 0x1e, 0xd3, 0xfd, 0x97, 0x87, 0xf5, 0x06, 0x58, 0x79, 0xfe, 0xab, 0x26, 0xfd, - 0xa3, 0x01, 0xeb, 0xf7, 0x31, 0xf7, 0x18, 0x39, 0x7a, 0x55, 0xa2, 0x64, 0xbd, 0x28, 0xc0, 0x46, - 0x8e, 0x4d, 0x2a, 0xef, 0x01, 0xac, 0x9c, 0x4d, 0x23, 0x1e, 0x0d, 0x6b, 0xa4, 0xae, 0xde, 0x7f, - 0x75, 0x79, 0xdc, 0x1e, 0xcf, 0x82, 0xdd, 0x5e, 0x51, 0x7b, 0x19, 0x6b, 0xe9, 0xe8, 0x08, 0x56, - 0xce, 0xbb, 0xea, 0x90, 0xb0, 0x46, 0x95, 0xbf, 0x37, 0xc7, 0xd3, 0xb6, 0x17, 0xd6, 0xe8, 0xd9, - 0xbb, 0xdf, 0x47, 0x46, 0x8f, 0x01, 0x25, 0xe3, 0x33, 0x09, 0xeb, 0x8e, 0xeb, 0x09, 0xd2, 0x22, - 0x82, 0x60, 0x6e, 0x16, 0xd6, 0x0b, 0x9b, 0xc5, 0xed, 0x4d, 0x7d, 0x41, 0xa4, 0xec, 0x3b, 0x29, - 0x77, 0x47, 0x82, 0x5f, 0x89, 0xfa, 0x88, 0x04, 0x73, 0xf4, 0x33, 0xb8, 0x9c, 0x01, 0x7b, 0x0d, - 0x12, 0xf8, 0x0c, 0x87, 0xe6, 0x94, 0x84, 0xad, 0xe6, 0xc1, 0xee, 0x26, 0xbc, 0xfd, 0x96, 0x5f, - 0x8a, 0x7a, 0x8e, 0x18, 0x0e, 0xd1, 0xc1, 0x19, 0x74, 0xd6, 0xdf, 0x6a, 0xa4, 0xcc, 0xb5, 0xf8, - 0xbe, 0xe2, 0xed, 0x03, 0xcd, 0x88, 0xd6, 0x27, 0x05, 0x78, 0xfd, 0xc7, 0xc9, 0x4c, 0x9f, 0x85, - 0xef, 0x6b, 0x6a, 0xd7, 0x77, 0x61, 0x5a, 0xae, 0x16, 0xea, 0x51, 0xb0, 0x72, 0x91, 0xa4, 0xc1, - 0x76, 0x2a, 0x80, 0x1c, 0x58, 0x96, 0x7f, 0x38, 0x0c, 0xff, 0x0a, 0x7b, 0x22, 0xa9, 0x4f, 0x9f, - 0x48, 0xa3, 0xa6, 0xe4, 0x94, 0xf8, 0x2d, 0x2d, 0x54, 0x0a, 0x21, 0x25, 0x76, 0x33, 0x01, 0xfb, - 0xf5, 0x13, 0x0d, 0x35, 0xa9, 0xc7, 0x54, 0x81, 0x47, 0x43, 0x4e, 0xb8, 0xc0, 0xa1, 0xd7, 0x71, - 0x02, 0xdc, 0xc2, 0x81, 0x0c, 0xff, 0xb0, 0x39, 0x54, 0x6a, 0xd8, 0x3d, 0x13, 0xf9, 0x30, 0x91, - 0xb0, 0x97, 0x4e, 0x74, 0x64, 0xeb, 0xaf, 0x06, 0x2c, 0x0d, 0xa4, 0x41, 0xf5, 0xde, 0x7b, 0x50, - 0xca, 0xdc, 0xe3, 0x71, 0x90, 0xbd, 0xd6, 0x23, 0x1e, 0x4d, 0xe5, 0x47, 0x22, 0x80, 0xf6, 0x60, - 0xb1, 0x37, 0x3e, 0xd8, 0x57, 0xc9, 0xb2, 0x46, 0xc5, 0x05, 0xfb, 0xf6, 0xc2, 0x49, 0xef, 0xa7, - 0xf5, 0x3f, 0x03, 0x56, 0xb2, 0xdb, 0xa2, 0xbb, 0xe8, 0x8c, 0xa8, 0x97, 0xbe, 0xcd, 0x69, 0xf2, - 0x62, 0x9b, 0xd3, 0x43, 0x58, 0xec, 0xca, 0x9e, 0xad, 0x6f, 0x8b, 0x43, 0xd6, 0xb7, 0x0c, 0x20, - 0x5d, 0xdf, 0x44, 0xcf, 0x57, 0xf2, 0x64, 0x92, 0xd0, 0x0b, 0x62, 0x1f, 0x3b, 0x67, 0x80, 0x5c, - 0xb8, 0x22, 0x4e, 0x5f, 0x81, 0x39, 0x7b, 0x49, 0x9d, 0x67, 0x20, 0x07, 0xf2, 0xd0, 0xfa, 0x9b, - 0x01, 0xe6, 0x79, 0x8f, 0x55, 0x6a, 0xbe, 0x07, 0xb3, 0x11, 0x0d, 0x02, 0xcc, 0xb8, 0x69, 0xc8, - 0x16, 0x5f, 0xd3, 0x67, 0x45, 0xf2, 0xc8, 0xf6, 0xcb, 0xf8, 0xd1, 0x23, 0xb8, 0x7c, 0xce, 0x90, - 0x34, 0x38, 0x37, 0x72, 0x7d, 0x4b, 0xcd, 0xb2, 0x17, 0x45, 0xbf, 0x99, 0x1c, 0x56, 0xa5, 0xaf, - 0x8a, 0xba, 0xef, 0x32, 0x21, 0x6b, 0x97, 0x7f, 0x85, 0xd9, 0xb1, 0x7e, 0x37, 0x09, 0x95, 0x61, - 0x5a, 0x55, 0x84, 0x4e, 0x60, 0x55, 0x5d, 0xaf, 0x9d, 0x9e, 0xc0, 0x47, 0x5d, 0x46, 0x15, 0xb7, - 0x6a, 0xae, 0xca, 0x2e, 0xee, 0x23, 0x2c, 0x5c, 0xdf, 0x15, 0xae, 0x5d, 0xce, 0x40, 0xcf, 0xab, - 0x4e, 0x54, 0x76, 0xa7, 0x23, 0xad, 0xca, 0xc9, 0x97, 0x53, 0x99, 0x81, 0x9e, 0x57, 0x69, 0x7d, - 0x6a, 0x40, 0x59, 0x4e, 0x4e, 0x07, 0x82, 0x78, 0xc7, 0x9d, 0x71, 0x3b, 0xe3, 0x2b, 0x7a, 0xd2, - 0x57, 0xe1, 0x9a, 0xd6, 0x18, 0x35, 0x85, 0xac, 0xc0, 0xd2, 0x43, 0x2c, 0x76, 0x83, 0x98, 0x0b, - 0x55, 0x94, 0xa9, 0x99, 0xd6, 0x6f, 0x0d, 0x58, 0x1e, 0x3c, 0x51, 0x69, 0x6c, 0xc0, 0x55, 0x1e, - 0x47, 0x11, 0x65, 0x02, 0xfb, 0x8e, 0x17, 0x90, 0x64, 0xd8, 0x6c, 0x61, 0xc6, 0x55, 0x0a, 0x13, - 0x83, 0xdf, 0xd6, 0xaf, 0x0f, 0x99, 0xd4, 0xae, 0x14, 0xfa, 0xa9, 0x92, 0xb1, 0x57, 0xb8, 0xfe, - 0xc0, 0xfa, 0xb4, 0x00, 0xd6, 0x43, 0xcd, 0x08, 0xfa, 0x41, 0xfa, 0xcb, 0xd4, 0xd7, 0xf4, 0x38, - 0x5d, 0x83, 0xf9, 0xc8, 0xad, 0x63, 0x87, 0x93, 0x8f, 0xd3, 0x2b, 0x68, 0xda, 0x9e, 0x4b, 0x08, - 0x07, 0xe4, 0x63, 0x8c, 0xde, 0x84, 0x4b, 0x21, 0x7e, 0x92, 0x94, 0x58, 0x1d, 0x3b, 0x82, 0x1e, - 0xe3, 0x50, 0x2d, 0x27, 0x0b, 0x09, 0x79, 0xdf, 0xad, 0xe3, 0xc3, 0x84, 0x88, 0xde, 0x02, 0xd4, - 0x76, 0x89, 0x70, 0x6a, 0x94, 0x39, 0x21, 0x6e, 0xa7, 0x33, 0xbb, 0x7c, 0x41, 0xe6, 0xec, 0x4b, - 0xc9, 0xc9, 0x03, 0xca, 0x3e, 0xc2, 0x6d, 0x39, 0xac, 0x23, 0x07, 0xae, 0xaa, 0x1f, 0xe3, 0xd4, - 0x6c, 0x5f, 0x23, 0x81, 0xc0, 0x2c, 0xbd, 0x04, 0x67, 0xe4, 0x25, 0xf8, 0x86, 0xd6, 0x1f, 0x29, - 0xfe, 0x40, 0x32, 0xcb, 0x7b, 0x70, 0x59, 0xc1, 0x0c, 0xd0, 0xd1, 0x0d, 0x58, 0xe0, 0xc7, 0x24, - 0x72, 0x5c, 0xe6, 0x35, 0x48, 0xcb, 0x4d, 0x97, 0xce, 0x39, 0xbb, 0x94, 0x10, 0x77, 0x14, 0xcd, - 0x7a, 0x66, 0xc0, 0x8d, 0xdc, 0x6c, 0xa8, 0xfa, 0xb8, 0x03, 0xb3, 0x4a, 0x4d, 0xee, 0xf3, 0x94, - 0x89, 0x65, 0xcc, 0xe8, 0x47, 0x50, 0x64, 0x6e, 0xdb, 0xc9, 0x64, 0xd3, 0xce, 0xd4, 0xdf, 0x3f, - 0xf7, 0x5d, 0xe1, 0xde, 0x0b, 0xe8, 0x91, 0x0d, 0xcc, 0x6d, 0x2b, 0x20, 0x5d, 0xe8, 0x0b, 0xba, - 0xd0, 0x97, 0x61, 0x2e, 0xf5, 0x13, 0xfb, 0xea, 0xba, 0xef, 0x7e, 0x6f, 0xff, 0xa3, 0x04, 0xc5, - 0xcc, 0xc1, 0x9d, 0xfd, 0x3d, 0xf4, 0x1b, 0x03, 0x96, 0xf5, 0x0b, 0x24, 0x7a, 0x89, 0x15, 0xb9, - 0x7c, 0xfb, 0x42, 0x32, 0x2a, 0x9e, 0x9f, 0x18, 0xb0, 0x32, 0x64, 0xe5, 0x47, 0x43, 0x00, 0x73, - 0x7f, 0x68, 0x29, 0x7f, 0xe7, 0x62, 0x42, 0xca, 0x8c, 0xbf, 0x18, 0xb0, 0x3e, 0x6a, 0xab, 0x46, - 0x3f, 0xc8, 0x83, 0x1e, 0xf5, 0x63, 0x44, 0xf9, 0x87, 0x2f, 0x29, 0xad, 0x2c, 0x4c, 0x92, 0xa5, - 0xdf, 0x59, 0x87, 0x24, 0x2b, 0x77, 0xc1, 0x1f, 0x92, 0xac, 0x11, 0x4b, 0xf1, 0x1f, 0x0c, 0x28, - 0x0f, 0xdf, 0xfe, 0xd0, 0x1d, 0xfd, 0x43, 0x33, 0x6a, 0x5d, 0x2e, 0xdf, 0xbd, 0xb0, 0x9c, 0xb2, - 0xe7, 0xf7, 0x06, 0x5c, 0x1d, 0xba, 0xd2, 0xa1, 0xef, 0xea, 0xbb, 0x6b, 0xc4, 0x5a, 0x5a, 0xbe, - 0x73, 0x51, 0x31, 0x65, 0x4c, 0x0d, 0x16, 0xfa, 0xc6, 0x5a, 0x94, 0x33, 0x8d, 0x0f, 0x6c, 0x20, - 0xe5, 0x9b, 0xe3, 0xb0, 0x2a, 0x3d, 0x14, 0x2e, 0x0f, 0x8e, 0x69, 0xe8, 0xed, 0x5c, 0x9b, 0x07, - 0x5e, 0xe9, 0xf2, 0x3b, 0x63, 0x72, 0xf7, 0x54, 0x9e, 0x7e, 0xf8, 0x19, 0x52, 0x79, 0xb9, 0xf3, - 0xd9, 0x90, 0xca, 0x1b, 0x31, 0x5d, 0x3d, 0x81, 0xd7, 0x34, 0x2f, 0x3d, 0xda, 0x1a, 0x5e, 0xc5, - 0xda, 0x01, 0xa5, 0xfc, 0xed, 0xf1, 0x05, 0x94, 0x66, 0x02, 0x8b, 0xfd, 0xa3, 0x02, 0xd2, 0x27, - 0x4b, 0x3b, 0x69, 0x94, 0xdf, 0x1a, 0x8b, 0x57, 0xa9, 0xfa, 0xcc, 0x80, 0x6b, 0x39, 0x6f, 0x10, - 0xba, 0x3b, 0x0c, 0x6c, 0xc4, 0x0c, 0x51, 0x7e, 0xf7, 0xe2, 0x82, 0xa9, 0x49, 0xf7, 0x7e, 0xf9, - 0xf4, 0x59, 0x65, 0xe2, 0xf3, 0x67, 0x95, 0x89, 0x2f, 0x9e, 0x55, 0x8c, 0x5f, 0x9f, 0x56, 0x8c, - 0xbf, 0x9f, 0x56, 0x8c, 0x7f, 0x9d, 0x56, 0x8c, 0xa7, 0xa7, 0x15, 0xe3, 0x3f, 0xa7, 0x15, 0xe3, - 0xbf, 0xa7, 0x95, 0x89, 0x2f, 0x4e, 0x2b, 0xc6, 0x67, 0xcf, 0x2b, 0x13, 0x4f, 0x9f, 0x57, 0x26, - 0x3e, 0x7f, 0x5e, 0x99, 0x80, 0x15, 0x8f, 0x36, 0x75, 0x2a, 0xef, 0xcd, 0xed, 0x44, 0x64, 0x9f, - 0x51, 0x41, 0xf7, 0x8d, 0x9f, 0x4f, 0xbb, 0x11, 0x69, 0xdd, 0x3a, 0x9a, 0x91, 0xff, 0x68, 0xb9, - 0xfd, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe7, 0xd3, 0x70, 0xd6, 0x47, 0x1c, 0x00, 0x00, -} - -func (this *StartWorkflowExecutionRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } +func (*GetWorkflowExecutionHistoryRequest) ProtoMessage() {} - that1, ok := that.(*StartWorkflowExecutionRequest) - if !ok { - that2, ok := that.(StartWorkflowExecutionRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if this.WorkflowId != that1.WorkflowId { - return false - } - if !this.WorkflowType.Equal(that1.WorkflowType) { - return false - } - if !this.TaskList.Equal(that1.TaskList) { - return false - } - if !this.Input.Equal(that1.Input) { - return false - } - if this.ExecutionStartToCloseTimeout != nil && that1.ExecutionStartToCloseTimeout != nil { - if *this.ExecutionStartToCloseTimeout != *that1.ExecutionStartToCloseTimeout { - return false - } - } else if this.ExecutionStartToCloseTimeout != nil { - return false - } else if that1.ExecutionStartToCloseTimeout != nil { - return false - } - if this.TaskStartToCloseTimeout != nil && that1.TaskStartToCloseTimeout != nil { - if *this.TaskStartToCloseTimeout != *that1.TaskStartToCloseTimeout { - return false +func (x *GetWorkflowExecutionHistoryRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - } else if this.TaskStartToCloseTimeout != nil { - return false - } else if that1.TaskStartToCloseTimeout != nil { - return false - } - if this.Identity != that1.Identity { - return false - } - if this.RequestId != that1.RequestId { - return false - } - if this.WorkflowIdReusePolicy != that1.WorkflowIdReusePolicy { - return false - } - if !this.RetryPolicy.Equal(that1.RetryPolicy) { - return false - } - if this.CronSchedule != that1.CronSchedule { - return false + return ms } - if !this.Memo.Equal(that1.Memo) { - return false - } - if !this.SearchAttributes.Equal(that1.SearchAttributes) { - return false - } - if !this.Header.Equal(that1.Header) { - return false - } - return true + return mi.MessageOf(x) } -func (this *StartWorkflowExecutionResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*StartWorkflowExecutionResponse) - if !ok { - that2, ok := that.(StartWorkflowExecutionResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.RunId != that1.RunId { - return false - } - return true +// Deprecated: Use GetWorkflowExecutionHistoryRequest.ProtoReflect.Descriptor instead. +func (*GetWorkflowExecutionHistoryRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_workflow_proto_rawDescGZIP(), []int{22} } -func (this *SignalWorkflowExecutionRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*SignalWorkflowExecutionRequest) - if !ok { - that2, ok := that.(SignalWorkflowExecutionRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if this.Identity != that1.Identity { - return false - } - if this.RequestId != that1.RequestId { - return false +func (x *GetWorkflowExecutionHistoryRequest) GetDomain() string { + if x != nil { + return x.Domain } - if this.SignalName != that1.SignalName { - return false - } - if !this.SignalInput.Equal(that1.SignalInput) { - return false - } - if !bytes.Equal(this.Control, that1.Control) { - return false - } - return true + return "" } -func (this *SignalWorkflowExecutionResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*SignalWorkflowExecutionResponse) - if !ok { - that2, ok := that.(SignalWorkflowExecutionResponse) - if ok { - that1 = &that2 - } else { - return false - } +func (x *GetWorkflowExecutionHistoryRequest) GetWorkflowExecution() *WorkflowExecution { + if x != nil { + return x.WorkflowExecution } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true + return nil } -func (this *SignalWithStartWorkflowExecutionRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*SignalWithStartWorkflowExecutionRequest) - if !ok { - that2, ok := that.(SignalWithStartWorkflowExecutionRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.StartRequest.Equal(that1.StartRequest) { - return false +func (x *GetWorkflowExecutionHistoryRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize } - if this.SignalName != that1.SignalName { - return false - } - if !this.SignalInput.Equal(that1.SignalInput) { - return false - } - if !bytes.Equal(this.Control, that1.Control) { - return false - } - return true + return 0 } -func (this *SignalWithStartWorkflowExecutionResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*SignalWithStartWorkflowExecutionResponse) - if !ok { - that2, ok := that.(SignalWithStartWorkflowExecutionResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.RunId != that1.RunId { - return false +func (x *GetWorkflowExecutionHistoryRequest) GetNextPageToken() []byte { + if x != nil { + return x.NextPageToken } - return true + return nil } -func (this *ResetWorkflowExecutionRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*ResetWorkflowExecutionRequest) - if !ok { - that2, ok := that.(ResetWorkflowExecutionRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false +func (x *GetWorkflowExecutionHistoryRequest) GetWaitForNewEvent() bool { + if x != nil { + return x.WaitForNewEvent } - if this.Domain != that1.Domain { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if this.Reason != that1.Reason { - return false - } - if this.DecisionFinishEventId != that1.DecisionFinishEventId { - return false - } - if this.RequestId != that1.RequestId { - return false - } - return true + return false } -func (this *ResetWorkflowExecutionResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*ResetWorkflowExecutionResponse) - if !ok { - that2, ok := that.(ResetWorkflowExecutionResponse) - if ok { - that1 = &that2 - } else { - return false - } +func (x *GetWorkflowExecutionHistoryRequest) GetHistoryEventFilterType() EventFilterType { + if x != nil { + return x.HistoryEventFilterType } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.RunId != that1.RunId { - return false - } - return true + return EventFilterType_EVENT_FILTER_TYPE_INVALID } -func (this *TerminateWorkflowExecutionRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*TerminateWorkflowExecutionRequest) - if !ok { - that2, ok := that.(TerminateWorkflowExecutionRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if this.Reason != that1.Reason { - return false +func (x *GetWorkflowExecutionHistoryRequest) GetSkipArchival() bool { + if x != nil { + return x.SkipArchival } - if !this.Details.Equal(that1.Details) { - return false - } - if this.Identity != that1.Identity { - return false - } - return true + return false } -func (this *TerminateWorkflowExecutionResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*TerminateWorkflowExecutionResponse) - if !ok { - that2, ok := that.(TerminateWorkflowExecutionResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *DescribeWorkflowExecutionRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } +type GetWorkflowExecutionHistoryResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields - that1, ok := that.(*DescribeWorkflowExecutionRequest) - if !ok { - that2, ok := that.(DescribeWorkflowExecutionRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - return true + History *History `protobuf:"bytes,1,opt,name=history,proto3" json:"history,omitempty"` + RawHistory []*DataBlob `protobuf:"bytes,2,rep,name=raw_history,json=rawHistory,proto3" json:"raw_history,omitempty"` + NextPageToken []byte `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + Archived bool `protobuf:"varint,4,opt,name=archived,proto3" json:"archived,omitempty"` } -func (this *DescribeWorkflowExecutionResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*DescribeWorkflowExecutionResponse) - if !ok { - that2, ok := that.(DescribeWorkflowExecutionResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.ExecutionConfiguration.Equal(that1.ExecutionConfiguration) { - return false - } - if !this.WorkflowExecutionInfo.Equal(that1.WorkflowExecutionInfo) { - return false +func (x *GetWorkflowExecutionHistoryResponse) Reset() { + *x = GetWorkflowExecutionHistoryResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if len(this.PendingActivities) != len(that1.PendingActivities) { - return false - } - for i := range this.PendingActivities { - if !this.PendingActivities[i].Equal(that1.PendingActivities[i]) { - return false - } - } - if len(this.PendingChildren) != len(that1.PendingChildren) { - return false - } - for i := range this.PendingChildren { - if !this.PendingChildren[i].Equal(that1.PendingChildren[i]) { - return false - } - } - if !this.PendingDecision.Equal(that1.PendingDecision) { - return false - } - return true } -func (this *QueryWorkflowRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*QueryWorkflowRequest) - if !ok { - that2, ok := that.(QueryWorkflowRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if !this.Query.Equal(that1.Query) { - return false - } - if this.QueryRejectCondition != that1.QueryRejectCondition { - return false - } - if this.QueryConsistencyLevel != that1.QueryConsistencyLevel { - return false - } - return true +func (x *GetWorkflowExecutionHistoryResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (this *QueryWorkflowResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*QueryWorkflowResponse) - if !ok { - that2, ok := that.(QueryWorkflowResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.QueryResult.Equal(that1.QueryResult) { - return false - } - if !this.QueryRejected.Equal(that1.QueryRejected) { - return false - } - return true -} -func (this *DescribeTaskListRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } +func (*GetWorkflowExecutionHistoryResponse) ProtoMessage() {} - that1, ok := that.(*DescribeTaskListRequest) - if !ok { - that2, ok := that.(DescribeTaskListRequest) - if ok { - that1 = &that2 - } else { - return false +func (x *GetWorkflowExecutionHistoryResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_service_workflow_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if !this.TaskList.Equal(that1.TaskList) { - return false - } - if this.TaskListType != that1.TaskListType { - return false - } - if this.IncludeTaskListStatus != that1.IncludeTaskListStatus { - return false - } - return true + return mi.MessageOf(x) } -func (this *DescribeTaskListResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*DescribeTaskListResponse) - if !ok { - that2, ok := that.(DescribeTaskListResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if len(this.Pollers) != len(that1.Pollers) { - return false - } - for i := range this.Pollers { - if !this.Pollers[i].Equal(that1.Pollers[i]) { - return false - } - } - if !this.TaskListStatus.Equal(that1.TaskListStatus) { - return false - } - return true +// Deprecated: Use GetWorkflowExecutionHistoryResponse.ProtoReflect.Descriptor instead. +func (*GetWorkflowExecutionHistoryResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_service_workflow_proto_rawDescGZIP(), []int{23} } -func (this *ListTaskListPartitionsRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*ListTaskListPartitionsRequest) - if !ok { - that2, ok := that.(ListTaskListPartitionsRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if !this.TaskList.Equal(that1.TaskList) { - return false +func (x *GetWorkflowExecutionHistoryResponse) GetHistory() *History { + if x != nil { + return x.History } - return true + return nil } -func (this *ListTaskListPartitionsResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*ListTaskListPartitionsResponse) - if !ok { - that2, ok := that.(ListTaskListPartitionsResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false +func (x *GetWorkflowExecutionHistoryResponse) GetRawHistory() []*DataBlob { + if x != nil { + return x.RawHistory } - if len(this.ActivityTaskListPartitions) != len(that1.ActivityTaskListPartitions) { - return false - } - for i := range this.ActivityTaskListPartitions { - if !this.ActivityTaskListPartitions[i].Equal(that1.ActivityTaskListPartitions[i]) { - return false - } - } - if len(this.DecisionTaskListPartitions) != len(that1.DecisionTaskListPartitions) { - return false - } - for i := range this.DecisionTaskListPartitions { - if !this.DecisionTaskListPartitions[i].Equal(that1.DecisionTaskListPartitions[i]) { - return false - } - } - return true + return nil } -func (this *ResetStickyTaskListRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*ResetStickyTaskListRequest) - if !ok { - that2, ok := that.(ResetStickyTaskListRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false +func (x *GetWorkflowExecutionHistoryResponse) GetNextPageToken() []byte { + if x != nil { + return x.NextPageToken } - return true + return nil } -func (this *ResetStickyTaskListResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*ResetStickyTaskListResponse) - if !ok { - that2, ok := that.(ResetStickyTaskListResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false +func (x *GetWorkflowExecutionHistoryResponse) GetArchived() bool { + if x != nil { + return x.Archived } - return true + return false } -func (this *GetClusterInfoRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*GetClusterInfoRequest) - if !ok { - that2, ok := that.(GetClusterInfoRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true +var File_uber_cadence_api_v1_service_workflow_proto protoreflect.FileDescriptor + +var file_uber_cadence_api_v1_service_workflow_proto_rawDesc = []byte{ + 0x0a, 0x2a, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x77, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x20, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x72, + 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x61, 0x73, + 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x75, 0x62, 0x65, + 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, + 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, + 0x8e, 0x07, 0x0a, 0x1d, 0x53, 0x74, 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x77, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, + 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x49, 0x64, 0x12, 0x46, 0x0a, 0x0d, 0x77, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x21, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x3a, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, + 0x4c, 0x69, 0x73, 0x74, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x32, + 0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x05, 0x69, 0x6e, 0x70, + 0x75, 0x74, 0x12, 0x61, 0x0a, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x6f, 0x5f, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x5f, 0x74, + 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x1c, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x6f, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x54, 0x69, + 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x57, 0x0a, 0x1b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x5f, 0x74, 0x6f, 0x5f, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x5f, 0x74, 0x69, 0x6d, + 0x65, 0x6f, 0x75, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x17, 0x74, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x72, 0x74, + 0x54, 0x6f, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x1a, + 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x63, 0x0a, 0x18, 0x77, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x64, 0x5f, 0x72, 0x65, 0x75, 0x73, 0x65, 0x5f, 0x70, + 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x49, 0x64, 0x52, 0x65, 0x75, 0x73, + 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x15, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x49, 0x64, 0x52, 0x65, 0x75, 0x73, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x43, + 0x0a, 0x0c, 0x72, 0x65, 0x74, 0x72, 0x79, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x0b, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x74, 0x72, 0x79, + 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x0b, 0x72, 0x65, 0x74, 0x72, 0x79, 0x50, 0x6f, 0x6c, + 0x69, 0x63, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x72, 0x6f, 0x6e, 0x5f, 0x73, 0x63, 0x68, 0x65, + 0x64, 0x75, 0x6c, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x72, 0x6f, 0x6e, + 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x2d, 0x0a, 0x04, 0x6d, 0x65, 0x6d, 0x6f, + 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x6d, + 0x6f, 0x52, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x12, 0x52, 0x0a, 0x11, 0x73, 0x65, 0x61, 0x72, 0x63, + 0x68, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x0e, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x10, 0x73, 0x65, 0x61, 0x72, 0x63, + 0x68, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x33, 0x0a, 0x06, 0x68, + 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x22, 0x37, 0x0a, 0x1e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x72, 0x75, 0x6e, 0x49, 0x64, 0x22, 0xc6, 0x02, 0x0a, 0x1e, 0x53, 0x69, + 0x67, 0x6e, 0x61, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, + 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x69, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x69, 0x67, + 0x6e, 0x61, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3f, 0x0a, 0x0c, 0x73, 0x69, 0x67, 0x6e, 0x61, + 0x6c, 0x5f, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x0b, 0x73, 0x69, 0x67, + 0x6e, 0x61, 0x6c, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, + 0x72, 0x6f, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x72, + 0x6f, 0x6c, 0x22, 0x21, 0x0a, 0x1f, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xfe, 0x01, 0x0a, 0x27, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, + 0x57, 0x69, 0x74, 0x68, 0x53, 0x74, 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x57, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, + 0x74, 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0c, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x69, + 0x67, 0x6e, 0x61, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3f, 0x0a, 0x0c, 0x73, + 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, + 0x0b, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x18, 0x0a, 0x07, + 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x63, + 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x22, 0x41, 0x0a, 0x28, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, + 0x57, 0x69, 0x74, 0x68, 0x53, 0x74, 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x72, 0x75, 0x6e, 0x49, 0x64, 0x22, 0xfe, 0x01, 0x0a, 0x1d, 0x52, 0x65, + 0x73, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, + 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, + 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, + 0x6f, 0x6e, 0x12, 0x37, 0x0a, 0x18, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x66, + 0x69, 0x6e, 0x69, 0x73, 0x68, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x15, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x46, 0x69, + 0x6e, 0x69, 0x73, 0x68, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0x37, 0x0a, 0x1e, 0x52, 0x65, + 0x73, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x15, 0x0a, 0x06, + 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x75, + 0x6e, 0x49, 0x64, 0x22, 0xfe, 0x01, 0x0a, 0x21, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, + 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, + 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, + 0x12, 0x36, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, + 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x74, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x74, 0x79, 0x22, 0x24, 0x0a, 0x22, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, + 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x91, 0x01, 0x0a, 0x20, 0x44, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xfe, + 0x03, 0x0a, 0x21, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, 0x0a, 0x17, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x16, 0x65, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x62, 0x0a, 0x17, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, + 0x15, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x57, 0x0a, 0x12, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, + 0x67, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, + 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x11, 0x70, 0x65, + 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, + 0x59, 0x0a, 0x10, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x68, 0x69, 0x6c, 0x64, + 0x72, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0f, 0x70, 0x65, 0x6e, 0x64, 0x69, + 0x6e, 0x67, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x12, 0x53, 0x0a, 0x10, 0x70, 0x65, + 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, 0x6e, 0x64, 0x69, + 0x6e, 0x67, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0f, + 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x22, + 0x84, 0x03, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x38, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, + 0x79, 0x12, 0x5f, 0x0a, 0x16, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x72, 0x65, 0x6a, 0x65, 0x63, + 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x29, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x6a, + 0x65, 0x63, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x14, 0x71, 0x75, + 0x65, 0x72, 0x79, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x62, 0x0a, 0x17, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x73, + 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, + 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, + 0x15, 0x71, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, + 0x79, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0xa3, 0x01, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x3f, 0x0a, 0x0c, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, + 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x0b, 0x71, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, + 0x74, 0x12, 0x49, 0x0a, 0x0e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x72, 0x65, 0x6a, 0x65, 0x63, + 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x0d, 0x71, + 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x65, 0x64, 0x22, 0xef, 0x01, 0x0a, + 0x17, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x12, 0x3a, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, + 0x73, 0x74, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x47, 0x0a, 0x0e, + 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, + 0x69, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x74, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, + 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x37, 0x0a, 0x18, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, + 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, + 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xa4, + 0x01, 0x0a, 0x18, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x4c, + 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x07, 0x70, + 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x07, 0x70, + 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x73, 0x12, 0x4d, 0x0a, 0x10, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6c, + 0x69, 0x73, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x23, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0e, 0x74, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x73, 0x0a, 0x1d, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x73, + 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x3a, + 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, + 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x86, 0x02, 0x0a, 0x1e, 0x4c, + 0x69, 0x73, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x71, 0x0a, + 0x1d, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6c, + 0x69, 0x73, 0x74, 0x5f, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, + 0x69, 0x73, 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x52, 0x1a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, + 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x12, 0x71, 0x0a, 0x1d, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x73, + 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, + 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x1a, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, + 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x22, 0x8b, 0x01, 0x0a, 0x1a, 0x52, 0x65, 0x73, 0x65, 0x74, 0x53, 0x74, 0x69, + 0x63, 0x6b, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, + 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x1d, 0x0a, 0x1b, 0x52, 0x65, 0x73, 0x65, 0x74, 0x53, 0x74, 0x69, 0x63, 0x6b, 0x79, + 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x17, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x6e, + 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x82, 0x01, 0x0a, 0x16, 0x47, 0x65, + 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x19, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, + 0x64, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, + 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x56, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x17, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, + 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x8b, + 0x03, 0x0a, 0x22, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x55, 0x0a, + 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, + 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, + 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x2b, 0x0a, 0x12, 0x77, 0x61, 0x69, + 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x5f, 0x6e, 0x65, 0x77, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x77, 0x61, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x4e, 0x65, + 0x77, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x5f, 0x0a, 0x19, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, + 0x79, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, + 0x16, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x46, 0x69, 0x6c, + 0x74, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x6b, 0x69, 0x70, 0x5f, + 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x61, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, + 0x73, 0x6b, 0x69, 0x70, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x61, 0x6c, 0x22, 0xe1, 0x01, 0x0a, + 0x23, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x69, 0x73, 0x74, + 0x6f, 0x72, 0x79, 0x52, 0x07, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x3e, 0x0a, 0x0b, + 0x72, 0x61, 0x77, 0x5f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x1d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x42, 0x6c, 0x6f, 0x62, + 0x52, 0x0a, 0x72, 0x61, 0x77, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x26, 0x0a, 0x0f, + 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, + 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, + 0x32, 0xb0, 0x0c, 0x0a, 0x0b, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x41, 0x50, 0x49, + 0x12, 0x81, 0x01, 0x0a, 0x16, 0x53, 0x74, 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x33, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x84, 0x01, 0x0a, 0x17, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x33, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x57, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e, + 0x61, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x9f, 0x01, 0x0a, 0x20, + 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x57, 0x69, 0x74, 0x68, 0x53, 0x74, 0x61, 0x72, 0x74, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x3c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x57, 0x69, 0x74, + 0x68, 0x53, 0x74, 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3d, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x57, 0x69, 0x74, 0x68, 0x53, + 0x74, 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x81, 0x01, + 0x0a, 0x16, 0x52, 0x65, 0x73, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, + 0x65, 0x73, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x8d, 0x01, 0x0a, 0x1a, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x36, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, + 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, + 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x8a, 0x01, 0x0a, 0x19, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x57, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x35, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x57, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x62, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, + 0x0a, 0x0d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, + 0x29, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6f, 0x0a, 0x10, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x62, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2c, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, + 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x12, 0x32, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x73, + 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x78, 0x0a, 0x13, 0x52, + 0x65, 0x73, 0x65, 0x74, 0x53, 0x74, 0x69, 0x63, 0x6b, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, + 0x73, 0x74, 0x12, 0x2f, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x74, 0x53, 0x74, + 0x69, 0x63, 0x6b, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x74, 0x53, + 0x74, 0x69, 0x63, 0x6b, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x69, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2a, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, + 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x90, 0x01, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, + 0x12, 0x37, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x69, 0x73, 0x74, 0x6f, + 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x42, 0x56, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x42, 0x08, + 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2f, 0x2e, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x70, 0x69, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } -func (this *GetClusterInfoResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*GetClusterInfoResponse) - if !ok { - that2, ok := that.(GetClusterInfoResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.SupportedClientVersions.Equal(that1.SupportedClientVersions) { - return false - } - return true -} -func (this *GetWorkflowExecutionHistoryRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*GetWorkflowExecutionHistoryRequest) - if !ok { - that2, ok := that.(GetWorkflowExecutionHistoryRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if this.PageSize != that1.PageSize { - return false - } - if !bytes.Equal(this.NextPageToken, that1.NextPageToken) { - return false - } - if this.WaitForNewEvent != that1.WaitForNewEvent { - return false - } - if this.HistoryEventFilterType != that1.HistoryEventFilterType { - return false - } - if this.SkipArchival != that1.SkipArchival { - return false - } - return true -} -func (this *GetWorkflowExecutionHistoryResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*GetWorkflowExecutionHistoryResponse) - if !ok { - that2, ok := that.(GetWorkflowExecutionHistoryResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.History.Equal(that1.History) { - return false - } - if len(this.RawHistory) != len(that1.RawHistory) { - return false - } - for i := range this.RawHistory { - if !this.RawHistory[i].Equal(that1.RawHistory[i]) { - return false - } - } - if !bytes.Equal(this.NextPageToken, that1.NextPageToken) { - return false - } - if this.Archived != that1.Archived { - return false - } - return true -} -func (this *StartWorkflowExecutionRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 19) - s = append(s, "&apiv1.StartWorkflowExecutionRequest{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - s = append(s, "WorkflowId: "+fmt.Sprintf("%#v", this.WorkflowId)+",\n") - if this.WorkflowType != nil { - s = append(s, "WorkflowType: "+fmt.Sprintf("%#v", this.WorkflowType)+",\n") - } - if this.TaskList != nil { - s = append(s, "TaskList: "+fmt.Sprintf("%#v", this.TaskList)+",\n") - } - if this.Input != nil { - s = append(s, "Input: "+fmt.Sprintf("%#v", this.Input)+",\n") - } - s = append(s, "ExecutionStartToCloseTimeout: "+fmt.Sprintf("%#v", this.ExecutionStartToCloseTimeout)+",\n") - s = append(s, "TaskStartToCloseTimeout: "+fmt.Sprintf("%#v", this.TaskStartToCloseTimeout)+",\n") - s = append(s, "Identity: "+fmt.Sprintf("%#v", this.Identity)+",\n") - s = append(s, "RequestId: "+fmt.Sprintf("%#v", this.RequestId)+",\n") - s = append(s, "WorkflowIdReusePolicy: "+fmt.Sprintf("%#v", this.WorkflowIdReusePolicy)+",\n") - if this.RetryPolicy != nil { - s = append(s, "RetryPolicy: "+fmt.Sprintf("%#v", this.RetryPolicy)+",\n") - } - s = append(s, "CronSchedule: "+fmt.Sprintf("%#v", this.CronSchedule)+",\n") - if this.Memo != nil { - s = append(s, "Memo: "+fmt.Sprintf("%#v", this.Memo)+",\n") - } - if this.SearchAttributes != nil { - s = append(s, "SearchAttributes: "+fmt.Sprintf("%#v", this.SearchAttributes)+",\n") - } - if this.Header != nil { - s = append(s, "Header: "+fmt.Sprintf("%#v", this.Header)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *StartWorkflowExecutionResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&apiv1.StartWorkflowExecutionResponse{") - s = append(s, "RunId: "+fmt.Sprintf("%#v", this.RunId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *SignalWorkflowExecutionRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 11) - s = append(s, "&apiv1.SignalWorkflowExecutionRequest{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "Identity: "+fmt.Sprintf("%#v", this.Identity)+",\n") - s = append(s, "RequestId: "+fmt.Sprintf("%#v", this.RequestId)+",\n") - s = append(s, "SignalName: "+fmt.Sprintf("%#v", this.SignalName)+",\n") - if this.SignalInput != nil { - s = append(s, "SignalInput: "+fmt.Sprintf("%#v", this.SignalInput)+",\n") - } - s = append(s, "Control: "+fmt.Sprintf("%#v", this.Control)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *SignalWorkflowExecutionResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&apiv1.SignalWorkflowExecutionResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *SignalWithStartWorkflowExecutionRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 8) - s = append(s, "&apiv1.SignalWithStartWorkflowExecutionRequest{") - if this.StartRequest != nil { - s = append(s, "StartRequest: "+fmt.Sprintf("%#v", this.StartRequest)+",\n") - } - s = append(s, "SignalName: "+fmt.Sprintf("%#v", this.SignalName)+",\n") - if this.SignalInput != nil { - s = append(s, "SignalInput: "+fmt.Sprintf("%#v", this.SignalInput)+",\n") - } - s = append(s, "Control: "+fmt.Sprintf("%#v", this.Control)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *SignalWithStartWorkflowExecutionResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&apiv1.SignalWithStartWorkflowExecutionResponse{") - s = append(s, "RunId: "+fmt.Sprintf("%#v", this.RunId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ResetWorkflowExecutionRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 9) - s = append(s, "&apiv1.ResetWorkflowExecutionRequest{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "Reason: "+fmt.Sprintf("%#v", this.Reason)+",\n") - s = append(s, "DecisionFinishEventId: "+fmt.Sprintf("%#v", this.DecisionFinishEventId)+",\n") - s = append(s, "RequestId: "+fmt.Sprintf("%#v", this.RequestId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ResetWorkflowExecutionResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&apiv1.ResetWorkflowExecutionResponse{") - s = append(s, "RunId: "+fmt.Sprintf("%#v", this.RunId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *TerminateWorkflowExecutionRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 9) - s = append(s, "&apiv1.TerminateWorkflowExecutionRequest{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "Reason: "+fmt.Sprintf("%#v", this.Reason)+",\n") - if this.Details != nil { - s = append(s, "Details: "+fmt.Sprintf("%#v", this.Details)+",\n") - } - s = append(s, "Identity: "+fmt.Sprintf("%#v", this.Identity)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *TerminateWorkflowExecutionResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&apiv1.TerminateWorkflowExecutionResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DescribeWorkflowExecutionRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.DescribeWorkflowExecutionRequest{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DescribeWorkflowExecutionResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 9) - s = append(s, "&apiv1.DescribeWorkflowExecutionResponse{") - if this.ExecutionConfiguration != nil { - s = append(s, "ExecutionConfiguration: "+fmt.Sprintf("%#v", this.ExecutionConfiguration)+",\n") - } - if this.WorkflowExecutionInfo != nil { - s = append(s, "WorkflowExecutionInfo: "+fmt.Sprintf("%#v", this.WorkflowExecutionInfo)+",\n") - } - if this.PendingActivities != nil { - s = append(s, "PendingActivities: "+fmt.Sprintf("%#v", this.PendingActivities)+",\n") - } - if this.PendingChildren != nil { - s = append(s, "PendingChildren: "+fmt.Sprintf("%#v", this.PendingChildren)+",\n") - } - if this.PendingDecision != nil { - s = append(s, "PendingDecision: "+fmt.Sprintf("%#v", this.PendingDecision)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *QueryWorkflowRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 9) - s = append(s, "&apiv1.QueryWorkflowRequest{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - if this.Query != nil { - s = append(s, "Query: "+fmt.Sprintf("%#v", this.Query)+",\n") - } - s = append(s, "QueryRejectCondition: "+fmt.Sprintf("%#v", this.QueryRejectCondition)+",\n") - s = append(s, "QueryConsistencyLevel: "+fmt.Sprintf("%#v", this.QueryConsistencyLevel)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *QueryWorkflowResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.QueryWorkflowResponse{") - if this.QueryResult != nil { - s = append(s, "QueryResult: "+fmt.Sprintf("%#v", this.QueryResult)+",\n") - } - if this.QueryRejected != nil { - s = append(s, "QueryRejected: "+fmt.Sprintf("%#v", this.QueryRejected)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DescribeTaskListRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 8) - s = append(s, "&apiv1.DescribeTaskListRequest{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - if this.TaskList != nil { - s = append(s, "TaskList: "+fmt.Sprintf("%#v", this.TaskList)+",\n") - } - s = append(s, "TaskListType: "+fmt.Sprintf("%#v", this.TaskListType)+",\n") - s = append(s, "IncludeTaskListStatus: "+fmt.Sprintf("%#v", this.IncludeTaskListStatus)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DescribeTaskListResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.DescribeTaskListResponse{") - if this.Pollers != nil { - s = append(s, "Pollers: "+fmt.Sprintf("%#v", this.Pollers)+",\n") - } - if this.TaskListStatus != nil { - s = append(s, "TaskListStatus: "+fmt.Sprintf("%#v", this.TaskListStatus)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ListTaskListPartitionsRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.ListTaskListPartitionsRequest{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - if this.TaskList != nil { - s = append(s, "TaskList: "+fmt.Sprintf("%#v", this.TaskList)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ListTaskListPartitionsResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.ListTaskListPartitionsResponse{") - if this.ActivityTaskListPartitions != nil { - s = append(s, "ActivityTaskListPartitions: "+fmt.Sprintf("%#v", this.ActivityTaskListPartitions)+",\n") - } - if this.DecisionTaskListPartitions != nil { - s = append(s, "DecisionTaskListPartitions: "+fmt.Sprintf("%#v", this.DecisionTaskListPartitions)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ResetStickyTaskListRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.ResetStickyTaskListRequest{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ResetStickyTaskListResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&apiv1.ResetStickyTaskListResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetClusterInfoRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&apiv1.GetClusterInfoRequest{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetClusterInfoResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&apiv1.GetClusterInfoResponse{") - if this.SupportedClientVersions != nil { - s = append(s, "SupportedClientVersions: "+fmt.Sprintf("%#v", this.SupportedClientVersions)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetWorkflowExecutionHistoryRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 11) - s = append(s, "&apiv1.GetWorkflowExecutionHistoryRequest{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "PageSize: "+fmt.Sprintf("%#v", this.PageSize)+",\n") - s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") - s = append(s, "WaitForNewEvent: "+fmt.Sprintf("%#v", this.WaitForNewEvent)+",\n") - s = append(s, "HistoryEventFilterType: "+fmt.Sprintf("%#v", this.HistoryEventFilterType)+",\n") - s = append(s, "SkipArchival: "+fmt.Sprintf("%#v", this.SkipArchival)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetWorkflowExecutionHistoryResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 8) - s = append(s, "&apiv1.GetWorkflowExecutionHistoryResponse{") - if this.History != nil { - s = append(s, "History: "+fmt.Sprintf("%#v", this.History)+",\n") - } - if this.RawHistory != nil { - s = append(s, "RawHistory: "+fmt.Sprintf("%#v", this.RawHistory)+",\n") - } - s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") - s = append(s, "Archived: "+fmt.Sprintf("%#v", this.Archived)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func valueToGoStringServiceWorkflow(v interface{}, typ string) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// 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 - -// WorkflowAPIClient is the client API for WorkflowAPI service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type WorkflowAPIClient interface { - // StartWorkflowExecution starts a new long running workflow instance. It will create the instance with - // 'WorkflowExecutionStarted' event in history and also schedule the first DecisionTask for the worker to make the - // first decision for this instance. It will return 'WorkflowExecutionAlreadyStartedError', if an instance already - // exists with same workflowId. - StartWorkflowExecution(ctx context.Context, in *StartWorkflowExecutionRequest, opts ...grpc.CallOption) (*StartWorkflowExecutionResponse, error) - // SignalWorkflowExecution is used to send a signal event to running workflow execution. This results in - // WorkflowExecutionSignaled event recorded in the history and a decision task being created for the execution. - SignalWorkflowExecution(ctx context.Context, in *SignalWorkflowExecutionRequest, opts ...grpc.CallOption) (*SignalWorkflowExecutionResponse, error) - // SignalWithStartWorkflowExecution is used to ensure sending signal to a workflow. If the workflow is running, - // this results in WorkflowExecutionSignaled event being recorded in the history and a decision task being created for - // the execution. If the workflow is not running or not found, this results in WorkflowExecutionStarted and - // WorkflowExecutionSignaled events being recorded in history, and a decision task being created for the execution. - SignalWithStartWorkflowExecution(ctx context.Context, in *SignalWithStartWorkflowExecutionRequest, opts ...grpc.CallOption) (*SignalWithStartWorkflowExecutionResponse, error) - // ResetWorkflowExecution reset an existing workflow execution to DecisionTaskCompleted event(exclusive). - // And it will immediately terminating the current execution instance. - ResetWorkflowExecution(ctx context.Context, in *ResetWorkflowExecutionRequest, opts ...grpc.CallOption) (*ResetWorkflowExecutionResponse, error) - // TerminateWorkflowExecution terminates an existing workflow execution by recording WorkflowExecutionTerminated event - // in the history and immediately terminating the execution instance. - TerminateWorkflowExecution(ctx context.Context, in *TerminateWorkflowExecutionRequest, opts ...grpc.CallOption) (*TerminateWorkflowExecutionResponse, error) - // DescribeWorkflowExecution returns information about the specified workflow execution. - DescribeWorkflowExecution(ctx context.Context, in *DescribeWorkflowExecutionRequest, opts ...grpc.CallOption) (*DescribeWorkflowExecutionResponse, error) - // QueryWorkflow returns query result for a specified workflow execution. - QueryWorkflow(ctx context.Context, in *QueryWorkflowRequest, opts ...grpc.CallOption) (*QueryWorkflowResponse, error) - // DescribeTaskList returns information about the target tasklist, right now this API returns the - // pollers which polled this tasklist in last few minutes. - DescribeTaskList(ctx context.Context, in *DescribeTaskListRequest, opts ...grpc.CallOption) (*DescribeTaskListResponse, error) - // ListTaskListPartitions returns information about task list partitions. - ListTaskListPartitions(ctx context.Context, in *ListTaskListPartitionsRequest, opts ...grpc.CallOption) (*ListTaskListPartitionsResponse, error) - // Reset the sticky tasklist related information in mutable state of a given workflow. - // Things cleared are: - // 1. StickyTaskList - // 2. StickyScheduleToStartTimeout - // 3. ClientLibraryVersion - // 4. ClientFeatureVersion - // 5. ClientImpl - ResetStickyTaskList(ctx context.Context, in *ResetStickyTaskListRequest, opts ...grpc.CallOption) (*ResetStickyTaskListResponse, error) - // GetClusterInfo returns information about cadence cluster. - GetClusterInfo(ctx context.Context, in *GetClusterInfoRequest, opts ...grpc.CallOption) (*GetClusterInfoResponse, error) - // Returns the history of specified workflow execution. It fails with 'EntityNotExistError' if specified workflow - // execution in unknown to the service. - GetWorkflowExecutionHistory(ctx context.Context, in *GetWorkflowExecutionHistoryRequest, opts ...grpc.CallOption) (*GetWorkflowExecutionHistoryResponse, error) -} - -type workflowAPIClient struct { - cc *grpc.ClientConn -} - -func NewWorkflowAPIClient(cc *grpc.ClientConn) WorkflowAPIClient { - return &workflowAPIClient{cc} -} - -func (c *workflowAPIClient) StartWorkflowExecution(ctx context.Context, in *StartWorkflowExecutionRequest, opts ...grpc.CallOption) (*StartWorkflowExecutionResponse, error) { - out := new(StartWorkflowExecutionResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkflowAPI/StartWorkflowExecution", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workflowAPIClient) SignalWorkflowExecution(ctx context.Context, in *SignalWorkflowExecutionRequest, opts ...grpc.CallOption) (*SignalWorkflowExecutionResponse, error) { - out := new(SignalWorkflowExecutionResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkflowAPI/SignalWorkflowExecution", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workflowAPIClient) SignalWithStartWorkflowExecution(ctx context.Context, in *SignalWithStartWorkflowExecutionRequest, opts ...grpc.CallOption) (*SignalWithStartWorkflowExecutionResponse, error) { - out := new(SignalWithStartWorkflowExecutionResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkflowAPI/SignalWithStartWorkflowExecution", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workflowAPIClient) ResetWorkflowExecution(ctx context.Context, in *ResetWorkflowExecutionRequest, opts ...grpc.CallOption) (*ResetWorkflowExecutionResponse, error) { - out := new(ResetWorkflowExecutionResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkflowAPI/ResetWorkflowExecution", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workflowAPIClient) TerminateWorkflowExecution(ctx context.Context, in *TerminateWorkflowExecutionRequest, opts ...grpc.CallOption) (*TerminateWorkflowExecutionResponse, error) { - out := new(TerminateWorkflowExecutionResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkflowAPI/TerminateWorkflowExecution", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workflowAPIClient) DescribeWorkflowExecution(ctx context.Context, in *DescribeWorkflowExecutionRequest, opts ...grpc.CallOption) (*DescribeWorkflowExecutionResponse, error) { - out := new(DescribeWorkflowExecutionResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkflowAPI/DescribeWorkflowExecution", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workflowAPIClient) QueryWorkflow(ctx context.Context, in *QueryWorkflowRequest, opts ...grpc.CallOption) (*QueryWorkflowResponse, error) { - out := new(QueryWorkflowResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkflowAPI/QueryWorkflow", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workflowAPIClient) DescribeTaskList(ctx context.Context, in *DescribeTaskListRequest, opts ...grpc.CallOption) (*DescribeTaskListResponse, error) { - out := new(DescribeTaskListResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkflowAPI/DescribeTaskList", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workflowAPIClient) ListTaskListPartitions(ctx context.Context, in *ListTaskListPartitionsRequest, opts ...grpc.CallOption) (*ListTaskListPartitionsResponse, error) { - out := new(ListTaskListPartitionsResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkflowAPI/ListTaskListPartitions", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workflowAPIClient) ResetStickyTaskList(ctx context.Context, in *ResetStickyTaskListRequest, opts ...grpc.CallOption) (*ResetStickyTaskListResponse, error) { - out := new(ResetStickyTaskListResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkflowAPI/ResetStickyTaskList", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workflowAPIClient) GetClusterInfo(ctx context.Context, in *GetClusterInfoRequest, opts ...grpc.CallOption) (*GetClusterInfoResponse, error) { - out := new(GetClusterInfoResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkflowAPI/GetClusterInfo", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *workflowAPIClient) GetWorkflowExecutionHistory(ctx context.Context, in *GetWorkflowExecutionHistoryRequest, opts ...grpc.CallOption) (*GetWorkflowExecutionHistoryResponse, error) { - out := new(GetWorkflowExecutionHistoryResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkflowAPI/GetWorkflowExecutionHistory", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// WorkflowAPIServer is the server API for WorkflowAPI service. -type WorkflowAPIServer interface { - // StartWorkflowExecution starts a new long running workflow instance. It will create the instance with - // 'WorkflowExecutionStarted' event in history and also schedule the first DecisionTask for the worker to make the - // first decision for this instance. It will return 'WorkflowExecutionAlreadyStartedError', if an instance already - // exists with same workflowId. - StartWorkflowExecution(context.Context, *StartWorkflowExecutionRequest) (*StartWorkflowExecutionResponse, error) - // SignalWorkflowExecution is used to send a signal event to running workflow execution. This results in - // WorkflowExecutionSignaled event recorded in the history and a decision task being created for the execution. - SignalWorkflowExecution(context.Context, *SignalWorkflowExecutionRequest) (*SignalWorkflowExecutionResponse, error) - // SignalWithStartWorkflowExecution is used to ensure sending signal to a workflow. If the workflow is running, - // this results in WorkflowExecutionSignaled event being recorded in the history and a decision task being created for - // the execution. If the workflow is not running or not found, this results in WorkflowExecutionStarted and - // WorkflowExecutionSignaled events being recorded in history, and a decision task being created for the execution. - SignalWithStartWorkflowExecution(context.Context, *SignalWithStartWorkflowExecutionRequest) (*SignalWithStartWorkflowExecutionResponse, error) - // ResetWorkflowExecution reset an existing workflow execution to DecisionTaskCompleted event(exclusive). - // And it will immediately terminating the current execution instance. - ResetWorkflowExecution(context.Context, *ResetWorkflowExecutionRequest) (*ResetWorkflowExecutionResponse, error) - // TerminateWorkflowExecution terminates an existing workflow execution by recording WorkflowExecutionTerminated event - // in the history and immediately terminating the execution instance. - TerminateWorkflowExecution(context.Context, *TerminateWorkflowExecutionRequest) (*TerminateWorkflowExecutionResponse, error) - // DescribeWorkflowExecution returns information about the specified workflow execution. - DescribeWorkflowExecution(context.Context, *DescribeWorkflowExecutionRequest) (*DescribeWorkflowExecutionResponse, error) - // QueryWorkflow returns query result for a specified workflow execution. - QueryWorkflow(context.Context, *QueryWorkflowRequest) (*QueryWorkflowResponse, error) - // DescribeTaskList returns information about the target tasklist, right now this API returns the - // pollers which polled this tasklist in last few minutes. - DescribeTaskList(context.Context, *DescribeTaskListRequest) (*DescribeTaskListResponse, error) - // ListTaskListPartitions returns information about task list partitions. - ListTaskListPartitions(context.Context, *ListTaskListPartitionsRequest) (*ListTaskListPartitionsResponse, error) - // Reset the sticky tasklist related information in mutable state of a given workflow. - // Things cleared are: - // 1. StickyTaskList - // 2. StickyScheduleToStartTimeout - // 3. ClientLibraryVersion - // 4. ClientFeatureVersion - // 5. ClientImpl - ResetStickyTaskList(context.Context, *ResetStickyTaskListRequest) (*ResetStickyTaskListResponse, error) - // GetClusterInfo returns information about cadence cluster. - GetClusterInfo(context.Context, *GetClusterInfoRequest) (*GetClusterInfoResponse, error) - // Returns the history of specified workflow execution. It fails with 'EntityNotExistError' if specified workflow - // execution in unknown to the service. - GetWorkflowExecutionHistory(context.Context, *GetWorkflowExecutionHistoryRequest) (*GetWorkflowExecutionHistoryResponse, error) -} - -// UnimplementedWorkflowAPIServer can be embedded to have forward compatible implementations. -type UnimplementedWorkflowAPIServer struct { -} - -func (*UnimplementedWorkflowAPIServer) StartWorkflowExecution(ctx context.Context, req *StartWorkflowExecutionRequest) (*StartWorkflowExecutionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StartWorkflowExecution not implemented") -} -func (*UnimplementedWorkflowAPIServer) SignalWorkflowExecution(ctx context.Context, req *SignalWorkflowExecutionRequest) (*SignalWorkflowExecutionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SignalWorkflowExecution not implemented") -} -func (*UnimplementedWorkflowAPIServer) SignalWithStartWorkflowExecution(ctx context.Context, req *SignalWithStartWorkflowExecutionRequest) (*SignalWithStartWorkflowExecutionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SignalWithStartWorkflowExecution not implemented") -} -func (*UnimplementedWorkflowAPIServer) ResetWorkflowExecution(ctx context.Context, req *ResetWorkflowExecutionRequest) (*ResetWorkflowExecutionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ResetWorkflowExecution not implemented") -} -func (*UnimplementedWorkflowAPIServer) TerminateWorkflowExecution(ctx context.Context, req *TerminateWorkflowExecutionRequest) (*TerminateWorkflowExecutionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TerminateWorkflowExecution not implemented") -} -func (*UnimplementedWorkflowAPIServer) DescribeWorkflowExecution(ctx context.Context, req *DescribeWorkflowExecutionRequest) (*DescribeWorkflowExecutionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DescribeWorkflowExecution not implemented") -} -func (*UnimplementedWorkflowAPIServer) QueryWorkflow(ctx context.Context, req *QueryWorkflowRequest) (*QueryWorkflowResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryWorkflow not implemented") -} -func (*UnimplementedWorkflowAPIServer) DescribeTaskList(ctx context.Context, req *DescribeTaskListRequest) (*DescribeTaskListResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DescribeTaskList not implemented") -} -func (*UnimplementedWorkflowAPIServer) ListTaskListPartitions(ctx context.Context, req *ListTaskListPartitionsRequest) (*ListTaskListPartitionsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListTaskListPartitions not implemented") -} -func (*UnimplementedWorkflowAPIServer) ResetStickyTaskList(ctx context.Context, req *ResetStickyTaskListRequest) (*ResetStickyTaskListResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ResetStickyTaskList not implemented") -} -func (*UnimplementedWorkflowAPIServer) GetClusterInfo(ctx context.Context, req *GetClusterInfoRequest) (*GetClusterInfoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetClusterInfo not implemented") -} -func (*UnimplementedWorkflowAPIServer) GetWorkflowExecutionHistory(ctx context.Context, req *GetWorkflowExecutionHistoryRequest) (*GetWorkflowExecutionHistoryResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetWorkflowExecutionHistory not implemented") -} - -func RegisterWorkflowAPIServer(s *grpc.Server, srv WorkflowAPIServer) { - s.RegisterService(&_WorkflowAPI_serviceDesc, srv) -} - -func _WorkflowAPI_StartWorkflowExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StartWorkflowExecutionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkflowAPIServer).StartWorkflowExecution(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.WorkflowAPI/StartWorkflowExecution", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkflowAPIServer).StartWorkflowExecution(ctx, req.(*StartWorkflowExecutionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _WorkflowAPI_SignalWorkflowExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SignalWorkflowExecutionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkflowAPIServer).SignalWorkflowExecution(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.WorkflowAPI/SignalWorkflowExecution", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkflowAPIServer).SignalWorkflowExecution(ctx, req.(*SignalWorkflowExecutionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _WorkflowAPI_SignalWithStartWorkflowExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SignalWithStartWorkflowExecutionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkflowAPIServer).SignalWithStartWorkflowExecution(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.WorkflowAPI/SignalWithStartWorkflowExecution", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkflowAPIServer).SignalWithStartWorkflowExecution(ctx, req.(*SignalWithStartWorkflowExecutionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _WorkflowAPI_ResetWorkflowExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ResetWorkflowExecutionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkflowAPIServer).ResetWorkflowExecution(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.WorkflowAPI/ResetWorkflowExecution", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkflowAPIServer).ResetWorkflowExecution(ctx, req.(*ResetWorkflowExecutionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _WorkflowAPI_TerminateWorkflowExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TerminateWorkflowExecutionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkflowAPIServer).TerminateWorkflowExecution(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.WorkflowAPI/TerminateWorkflowExecution", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkflowAPIServer).TerminateWorkflowExecution(ctx, req.(*TerminateWorkflowExecutionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _WorkflowAPI_DescribeWorkflowExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DescribeWorkflowExecutionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkflowAPIServer).DescribeWorkflowExecution(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.WorkflowAPI/DescribeWorkflowExecution", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkflowAPIServer).DescribeWorkflowExecution(ctx, req.(*DescribeWorkflowExecutionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _WorkflowAPI_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.(WorkflowAPIServer).QueryWorkflow(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.WorkflowAPI/QueryWorkflow", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkflowAPIServer).QueryWorkflow(ctx, req.(*QueryWorkflowRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _WorkflowAPI_DescribeTaskList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DescribeTaskListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkflowAPIServer).DescribeTaskList(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.WorkflowAPI/DescribeTaskList", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkflowAPIServer).DescribeTaskList(ctx, req.(*DescribeTaskListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _WorkflowAPI_ListTaskListPartitions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListTaskListPartitionsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkflowAPIServer).ListTaskListPartitions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.WorkflowAPI/ListTaskListPartitions", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkflowAPIServer).ListTaskListPartitions(ctx, req.(*ListTaskListPartitionsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _WorkflowAPI_ResetStickyTaskList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ResetStickyTaskListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkflowAPIServer).ResetStickyTaskList(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.WorkflowAPI/ResetStickyTaskList", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkflowAPIServer).ResetStickyTaskList(ctx, req.(*ResetStickyTaskListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _WorkflowAPI_GetClusterInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetClusterInfoRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkflowAPIServer).GetClusterInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.WorkflowAPI/GetClusterInfo", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkflowAPIServer).GetClusterInfo(ctx, req.(*GetClusterInfoRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _WorkflowAPI_GetWorkflowExecutionHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetWorkflowExecutionHistoryRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WorkflowAPIServer).GetWorkflowExecutionHistory(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.api.v1.WorkflowAPI/GetWorkflowExecutionHistory", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WorkflowAPIServer).GetWorkflowExecutionHistory(ctx, req.(*GetWorkflowExecutionHistoryRequest)) - } - return interceptor(ctx, in, info, handler) -} +var ( + file_uber_cadence_api_v1_service_workflow_proto_rawDescOnce sync.Once + file_uber_cadence_api_v1_service_workflow_proto_rawDescData = file_uber_cadence_api_v1_service_workflow_proto_rawDesc +) -var _WorkflowAPI_serviceDesc = grpc.ServiceDesc{ - ServiceName: "uber.cadence.api.v1.WorkflowAPI", - HandlerType: (*WorkflowAPIServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "StartWorkflowExecution", - Handler: _WorkflowAPI_StartWorkflowExecution_Handler, - }, - { - MethodName: "SignalWorkflowExecution", - Handler: _WorkflowAPI_SignalWorkflowExecution_Handler, - }, - { - MethodName: "SignalWithStartWorkflowExecution", - Handler: _WorkflowAPI_SignalWithStartWorkflowExecution_Handler, - }, - { - MethodName: "ResetWorkflowExecution", - Handler: _WorkflowAPI_ResetWorkflowExecution_Handler, - }, - { - MethodName: "TerminateWorkflowExecution", - Handler: _WorkflowAPI_TerminateWorkflowExecution_Handler, +func file_uber_cadence_api_v1_service_workflow_proto_rawDescGZIP() []byte { + file_uber_cadence_api_v1_service_workflow_proto_rawDescOnce.Do(func() { + file_uber_cadence_api_v1_service_workflow_proto_rawDescData = protoimpl.X.CompressGZIP(file_uber_cadence_api_v1_service_workflow_proto_rawDescData) + }) + return file_uber_cadence_api_v1_service_workflow_proto_rawDescData +} + +var file_uber_cadence_api_v1_service_workflow_proto_msgTypes = make([]protoimpl.MessageInfo, 24) +var file_uber_cadence_api_v1_service_workflow_proto_goTypes = []interface{}{ + (*StartWorkflowExecutionRequest)(nil), // 0: uber.cadence.api.v1.StartWorkflowExecutionRequest + (*StartWorkflowExecutionResponse)(nil), // 1: uber.cadence.api.v1.StartWorkflowExecutionResponse + (*SignalWorkflowExecutionRequest)(nil), // 2: uber.cadence.api.v1.SignalWorkflowExecutionRequest + (*SignalWorkflowExecutionResponse)(nil), // 3: uber.cadence.api.v1.SignalWorkflowExecutionResponse + (*SignalWithStartWorkflowExecutionRequest)(nil), // 4: uber.cadence.api.v1.SignalWithStartWorkflowExecutionRequest + (*SignalWithStartWorkflowExecutionResponse)(nil), // 5: uber.cadence.api.v1.SignalWithStartWorkflowExecutionResponse + (*ResetWorkflowExecutionRequest)(nil), // 6: uber.cadence.api.v1.ResetWorkflowExecutionRequest + (*ResetWorkflowExecutionResponse)(nil), // 7: uber.cadence.api.v1.ResetWorkflowExecutionResponse + (*TerminateWorkflowExecutionRequest)(nil), // 8: uber.cadence.api.v1.TerminateWorkflowExecutionRequest + (*TerminateWorkflowExecutionResponse)(nil), // 9: uber.cadence.api.v1.TerminateWorkflowExecutionResponse + (*DescribeWorkflowExecutionRequest)(nil), // 10: uber.cadence.api.v1.DescribeWorkflowExecutionRequest + (*DescribeWorkflowExecutionResponse)(nil), // 11: uber.cadence.api.v1.DescribeWorkflowExecutionResponse + (*QueryWorkflowRequest)(nil), // 12: uber.cadence.api.v1.QueryWorkflowRequest + (*QueryWorkflowResponse)(nil), // 13: uber.cadence.api.v1.QueryWorkflowResponse + (*DescribeTaskListRequest)(nil), // 14: uber.cadence.api.v1.DescribeTaskListRequest + (*DescribeTaskListResponse)(nil), // 15: uber.cadence.api.v1.DescribeTaskListResponse + (*ListTaskListPartitionsRequest)(nil), // 16: uber.cadence.api.v1.ListTaskListPartitionsRequest + (*ListTaskListPartitionsResponse)(nil), // 17: uber.cadence.api.v1.ListTaskListPartitionsResponse + (*ResetStickyTaskListRequest)(nil), // 18: uber.cadence.api.v1.ResetStickyTaskListRequest + (*ResetStickyTaskListResponse)(nil), // 19: uber.cadence.api.v1.ResetStickyTaskListResponse + (*GetClusterInfoRequest)(nil), // 20: uber.cadence.api.v1.GetClusterInfoRequest + (*GetClusterInfoResponse)(nil), // 21: uber.cadence.api.v1.GetClusterInfoResponse + (*GetWorkflowExecutionHistoryRequest)(nil), // 22: uber.cadence.api.v1.GetWorkflowExecutionHistoryRequest + (*GetWorkflowExecutionHistoryResponse)(nil), // 23: uber.cadence.api.v1.GetWorkflowExecutionHistoryResponse + (*WorkflowType)(nil), // 24: uber.cadence.api.v1.WorkflowType + (*TaskList)(nil), // 25: uber.cadence.api.v1.TaskList + (*Payload)(nil), // 26: uber.cadence.api.v1.Payload + (*durationpb.Duration)(nil), // 27: google.protobuf.Duration + (WorkflowIdReusePolicy)(0), // 28: uber.cadence.api.v1.WorkflowIdReusePolicy + (*RetryPolicy)(nil), // 29: uber.cadence.api.v1.RetryPolicy + (*Memo)(nil), // 30: uber.cadence.api.v1.Memo + (*SearchAttributes)(nil), // 31: uber.cadence.api.v1.SearchAttributes + (*Header)(nil), // 32: uber.cadence.api.v1.Header + (*WorkflowExecution)(nil), // 33: uber.cadence.api.v1.WorkflowExecution + (*WorkflowExecutionConfiguration)(nil), // 34: uber.cadence.api.v1.WorkflowExecutionConfiguration + (*WorkflowExecutionInfo)(nil), // 35: uber.cadence.api.v1.WorkflowExecutionInfo + (*PendingActivityInfo)(nil), // 36: uber.cadence.api.v1.PendingActivityInfo + (*PendingChildExecutionInfo)(nil), // 37: uber.cadence.api.v1.PendingChildExecutionInfo + (*PendingDecisionInfo)(nil), // 38: uber.cadence.api.v1.PendingDecisionInfo + (*WorkflowQuery)(nil), // 39: uber.cadence.api.v1.WorkflowQuery + (QueryRejectCondition)(0), // 40: uber.cadence.api.v1.QueryRejectCondition + (QueryConsistencyLevel)(0), // 41: uber.cadence.api.v1.QueryConsistencyLevel + (*QueryRejected)(nil), // 42: uber.cadence.api.v1.QueryRejected + (TaskListType)(0), // 43: uber.cadence.api.v1.TaskListType + (*PollerInfo)(nil), // 44: uber.cadence.api.v1.PollerInfo + (*TaskListStatus)(nil), // 45: uber.cadence.api.v1.TaskListStatus + (*TaskListPartitionMetadata)(nil), // 46: uber.cadence.api.v1.TaskListPartitionMetadata + (*SupportedClientVersions)(nil), // 47: uber.cadence.api.v1.SupportedClientVersions + (EventFilterType)(0), // 48: uber.cadence.api.v1.EventFilterType + (*History)(nil), // 49: uber.cadence.api.v1.History + (*DataBlob)(nil), // 50: uber.cadence.api.v1.DataBlob +} +var file_uber_cadence_api_v1_service_workflow_proto_depIdxs = []int32{ + 24, // 0: uber.cadence.api.v1.StartWorkflowExecutionRequest.workflow_type:type_name -> uber.cadence.api.v1.WorkflowType + 25, // 1: uber.cadence.api.v1.StartWorkflowExecutionRequest.task_list:type_name -> uber.cadence.api.v1.TaskList + 26, // 2: uber.cadence.api.v1.StartWorkflowExecutionRequest.input:type_name -> uber.cadence.api.v1.Payload + 27, // 3: uber.cadence.api.v1.StartWorkflowExecutionRequest.execution_start_to_close_timeout:type_name -> google.protobuf.Duration + 27, // 4: uber.cadence.api.v1.StartWorkflowExecutionRequest.task_start_to_close_timeout:type_name -> google.protobuf.Duration + 28, // 5: uber.cadence.api.v1.StartWorkflowExecutionRequest.workflow_id_reuse_policy:type_name -> uber.cadence.api.v1.WorkflowIdReusePolicy + 29, // 6: uber.cadence.api.v1.StartWorkflowExecutionRequest.retry_policy:type_name -> uber.cadence.api.v1.RetryPolicy + 30, // 7: uber.cadence.api.v1.StartWorkflowExecutionRequest.memo:type_name -> uber.cadence.api.v1.Memo + 31, // 8: uber.cadence.api.v1.StartWorkflowExecutionRequest.search_attributes:type_name -> uber.cadence.api.v1.SearchAttributes + 32, // 9: uber.cadence.api.v1.StartWorkflowExecutionRequest.header:type_name -> uber.cadence.api.v1.Header + 33, // 10: uber.cadence.api.v1.SignalWorkflowExecutionRequest.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 26, // 11: uber.cadence.api.v1.SignalWorkflowExecutionRequest.signal_input:type_name -> uber.cadence.api.v1.Payload + 0, // 12: uber.cadence.api.v1.SignalWithStartWorkflowExecutionRequest.start_request:type_name -> uber.cadence.api.v1.StartWorkflowExecutionRequest + 26, // 13: uber.cadence.api.v1.SignalWithStartWorkflowExecutionRequest.signal_input:type_name -> uber.cadence.api.v1.Payload + 33, // 14: uber.cadence.api.v1.ResetWorkflowExecutionRequest.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 33, // 15: uber.cadence.api.v1.TerminateWorkflowExecutionRequest.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 26, // 16: uber.cadence.api.v1.TerminateWorkflowExecutionRequest.details:type_name -> uber.cadence.api.v1.Payload + 33, // 17: uber.cadence.api.v1.DescribeWorkflowExecutionRequest.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 34, // 18: uber.cadence.api.v1.DescribeWorkflowExecutionResponse.execution_configuration:type_name -> uber.cadence.api.v1.WorkflowExecutionConfiguration + 35, // 19: uber.cadence.api.v1.DescribeWorkflowExecutionResponse.workflow_execution_info:type_name -> uber.cadence.api.v1.WorkflowExecutionInfo + 36, // 20: uber.cadence.api.v1.DescribeWorkflowExecutionResponse.pending_activities:type_name -> uber.cadence.api.v1.PendingActivityInfo + 37, // 21: uber.cadence.api.v1.DescribeWorkflowExecutionResponse.pending_children:type_name -> uber.cadence.api.v1.PendingChildExecutionInfo + 38, // 22: uber.cadence.api.v1.DescribeWorkflowExecutionResponse.pending_decision:type_name -> uber.cadence.api.v1.PendingDecisionInfo + 33, // 23: uber.cadence.api.v1.QueryWorkflowRequest.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 39, // 24: uber.cadence.api.v1.QueryWorkflowRequest.query:type_name -> uber.cadence.api.v1.WorkflowQuery + 40, // 25: uber.cadence.api.v1.QueryWorkflowRequest.query_reject_condition:type_name -> uber.cadence.api.v1.QueryRejectCondition + 41, // 26: uber.cadence.api.v1.QueryWorkflowRequest.query_consistency_level:type_name -> uber.cadence.api.v1.QueryConsistencyLevel + 26, // 27: uber.cadence.api.v1.QueryWorkflowResponse.query_result:type_name -> uber.cadence.api.v1.Payload + 42, // 28: uber.cadence.api.v1.QueryWorkflowResponse.query_rejected:type_name -> uber.cadence.api.v1.QueryRejected + 25, // 29: uber.cadence.api.v1.DescribeTaskListRequest.task_list:type_name -> uber.cadence.api.v1.TaskList + 43, // 30: uber.cadence.api.v1.DescribeTaskListRequest.task_list_type:type_name -> uber.cadence.api.v1.TaskListType + 44, // 31: uber.cadence.api.v1.DescribeTaskListResponse.pollers:type_name -> uber.cadence.api.v1.PollerInfo + 45, // 32: uber.cadence.api.v1.DescribeTaskListResponse.task_list_status:type_name -> uber.cadence.api.v1.TaskListStatus + 25, // 33: uber.cadence.api.v1.ListTaskListPartitionsRequest.task_list:type_name -> uber.cadence.api.v1.TaskList + 46, // 34: uber.cadence.api.v1.ListTaskListPartitionsResponse.activity_task_list_partitions:type_name -> uber.cadence.api.v1.TaskListPartitionMetadata + 46, // 35: uber.cadence.api.v1.ListTaskListPartitionsResponse.decision_task_list_partitions:type_name -> uber.cadence.api.v1.TaskListPartitionMetadata + 33, // 36: uber.cadence.api.v1.ResetStickyTaskListRequest.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 47, // 37: uber.cadence.api.v1.GetClusterInfoResponse.supported_client_versions:type_name -> uber.cadence.api.v1.SupportedClientVersions + 33, // 38: uber.cadence.api.v1.GetWorkflowExecutionHistoryRequest.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 48, // 39: uber.cadence.api.v1.GetWorkflowExecutionHistoryRequest.history_event_filter_type:type_name -> uber.cadence.api.v1.EventFilterType + 49, // 40: uber.cadence.api.v1.GetWorkflowExecutionHistoryResponse.history:type_name -> uber.cadence.api.v1.History + 50, // 41: uber.cadence.api.v1.GetWorkflowExecutionHistoryResponse.raw_history:type_name -> uber.cadence.api.v1.DataBlob + 0, // 42: uber.cadence.api.v1.WorkflowAPI.StartWorkflowExecution:input_type -> uber.cadence.api.v1.StartWorkflowExecutionRequest + 2, // 43: uber.cadence.api.v1.WorkflowAPI.SignalWorkflowExecution:input_type -> uber.cadence.api.v1.SignalWorkflowExecutionRequest + 4, // 44: uber.cadence.api.v1.WorkflowAPI.SignalWithStartWorkflowExecution:input_type -> uber.cadence.api.v1.SignalWithStartWorkflowExecutionRequest + 6, // 45: uber.cadence.api.v1.WorkflowAPI.ResetWorkflowExecution:input_type -> uber.cadence.api.v1.ResetWorkflowExecutionRequest + 8, // 46: uber.cadence.api.v1.WorkflowAPI.TerminateWorkflowExecution:input_type -> uber.cadence.api.v1.TerminateWorkflowExecutionRequest + 10, // 47: uber.cadence.api.v1.WorkflowAPI.DescribeWorkflowExecution:input_type -> uber.cadence.api.v1.DescribeWorkflowExecutionRequest + 12, // 48: uber.cadence.api.v1.WorkflowAPI.QueryWorkflow:input_type -> uber.cadence.api.v1.QueryWorkflowRequest + 14, // 49: uber.cadence.api.v1.WorkflowAPI.DescribeTaskList:input_type -> uber.cadence.api.v1.DescribeTaskListRequest + 16, // 50: uber.cadence.api.v1.WorkflowAPI.ListTaskListPartitions:input_type -> uber.cadence.api.v1.ListTaskListPartitionsRequest + 18, // 51: uber.cadence.api.v1.WorkflowAPI.ResetStickyTaskList:input_type -> uber.cadence.api.v1.ResetStickyTaskListRequest + 20, // 52: uber.cadence.api.v1.WorkflowAPI.GetClusterInfo:input_type -> uber.cadence.api.v1.GetClusterInfoRequest + 22, // 53: uber.cadence.api.v1.WorkflowAPI.GetWorkflowExecutionHistory:input_type -> uber.cadence.api.v1.GetWorkflowExecutionHistoryRequest + 1, // 54: uber.cadence.api.v1.WorkflowAPI.StartWorkflowExecution:output_type -> uber.cadence.api.v1.StartWorkflowExecutionResponse + 3, // 55: uber.cadence.api.v1.WorkflowAPI.SignalWorkflowExecution:output_type -> uber.cadence.api.v1.SignalWorkflowExecutionResponse + 5, // 56: uber.cadence.api.v1.WorkflowAPI.SignalWithStartWorkflowExecution:output_type -> uber.cadence.api.v1.SignalWithStartWorkflowExecutionResponse + 7, // 57: uber.cadence.api.v1.WorkflowAPI.ResetWorkflowExecution:output_type -> uber.cadence.api.v1.ResetWorkflowExecutionResponse + 9, // 58: uber.cadence.api.v1.WorkflowAPI.TerminateWorkflowExecution:output_type -> uber.cadence.api.v1.TerminateWorkflowExecutionResponse + 11, // 59: uber.cadence.api.v1.WorkflowAPI.DescribeWorkflowExecution:output_type -> uber.cadence.api.v1.DescribeWorkflowExecutionResponse + 13, // 60: uber.cadence.api.v1.WorkflowAPI.QueryWorkflow:output_type -> uber.cadence.api.v1.QueryWorkflowResponse + 15, // 61: uber.cadence.api.v1.WorkflowAPI.DescribeTaskList:output_type -> uber.cadence.api.v1.DescribeTaskListResponse + 17, // 62: uber.cadence.api.v1.WorkflowAPI.ListTaskListPartitions:output_type -> uber.cadence.api.v1.ListTaskListPartitionsResponse + 19, // 63: uber.cadence.api.v1.WorkflowAPI.ResetStickyTaskList:output_type -> uber.cadence.api.v1.ResetStickyTaskListResponse + 21, // 64: uber.cadence.api.v1.WorkflowAPI.GetClusterInfo:output_type -> uber.cadence.api.v1.GetClusterInfoResponse + 23, // 65: uber.cadence.api.v1.WorkflowAPI.GetWorkflowExecutionHistory:output_type -> uber.cadence.api.v1.GetWorkflowExecutionHistoryResponse + 54, // [54:66] is the sub-list for method output_type + 42, // [42:54] is the sub-list for method input_type + 42, // [42:42] is the sub-list for extension type_name + 42, // [42:42] is the sub-list for extension extendee + 0, // [0:42] is the sub-list for field type_name +} + +func init() { file_uber_cadence_api_v1_service_workflow_proto_init() } +func file_uber_cadence_api_v1_service_workflow_proto_init() { + if File_uber_cadence_api_v1_service_workflow_proto != nil { + return + } + file_uber_cadence_api_v1_common_proto_init() + file_uber_cadence_api_v1_history_proto_init() + file_uber_cadence_api_v1_query_proto_init() + file_uber_cadence_api_v1_tasklist_proto_init() + file_uber_cadence_api_v1_workflow_proto_init() + if !protoimpl.UnsafeEnabled { + file_uber_cadence_api_v1_service_workflow_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StartWorkflowExecutionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_workflow_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StartWorkflowExecutionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_workflow_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignalWorkflowExecutionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_workflow_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignalWorkflowExecutionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_workflow_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignalWithStartWorkflowExecutionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_workflow_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignalWithStartWorkflowExecutionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_workflow_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResetWorkflowExecutionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_workflow_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResetWorkflowExecutionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_workflow_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TerminateWorkflowExecutionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_workflow_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TerminateWorkflowExecutionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_workflow_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DescribeWorkflowExecutionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_workflow_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DescribeWorkflowExecutionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_workflow_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryWorkflowRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_workflow_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryWorkflowResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_workflow_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DescribeTaskListRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_workflow_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DescribeTaskListResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_workflow_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListTaskListPartitionsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_workflow_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListTaskListPartitionsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_workflow_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResetStickyTaskListRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_workflow_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResetStickyTaskListResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_workflow_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetClusterInfoRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_workflow_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetClusterInfoResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_workflow_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetWorkflowExecutionHistoryRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_service_workflow_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetWorkflowExecutionHistoryResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_uber_cadence_api_v1_service_workflow_proto_rawDesc, + NumEnums: 0, + NumMessages: 24, + NumExtensions: 0, + NumServices: 1, }, - { - MethodName: "DescribeWorkflowExecution", - Handler: _WorkflowAPI_DescribeWorkflowExecution_Handler, - }, - { - MethodName: "QueryWorkflow", - Handler: _WorkflowAPI_QueryWorkflow_Handler, - }, - { - MethodName: "DescribeTaskList", - Handler: _WorkflowAPI_DescribeTaskList_Handler, - }, - { - MethodName: "ListTaskListPartitions", - Handler: _WorkflowAPI_ListTaskListPartitions_Handler, - }, - { - MethodName: "ResetStickyTaskList", - Handler: _WorkflowAPI_ResetStickyTaskList_Handler, - }, - { - MethodName: "GetClusterInfo", - Handler: _WorkflowAPI_GetClusterInfo_Handler, - }, - { - MethodName: "GetWorkflowExecutionHistory", - Handler: _WorkflowAPI_GetWorkflowExecutionHistory_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "github.com/uber/cadence/.gen/proto/api/v1/service_workflow.proto", -} - -func (m *StartWorkflowExecutionRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StartWorkflowExecutionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + GoTypes: file_uber_cadence_api_v1_service_workflow_proto_goTypes, + DependencyIndexes: file_uber_cadence_api_v1_service_workflow_proto_depIdxs, + MessageInfos: file_uber_cadence_api_v1_service_workflow_proto_msgTypes, + }.Build() + File_uber_cadence_api_v1_service_workflow_proto = out.File + file_uber_cadence_api_v1_service_workflow_proto_rawDesc = nil + file_uber_cadence_api_v1_service_workflow_proto_goTypes = nil + file_uber_cadence_api_v1_service_workflow_proto_depIdxs = nil } - -func (m *StartWorkflowExecutionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x7a - } - if m.SearchAttributes != nil { - { - size, err := m.SearchAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x72 - } - if m.Memo != nil { - { - size, err := m.Memo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a - } - if len(m.CronSchedule) > 0 { - i -= len(m.CronSchedule) - copy(dAtA[i:], m.CronSchedule) - i = encodeVarintServiceWorkflow(dAtA, i, uint64(len(m.CronSchedule))) - i-- - dAtA[i] = 0x62 - } - if m.RetryPolicy != nil { - { - size, err := m.RetryPolicy.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - } - if m.WorkflowIdReusePolicy != 0 { - i = encodeVarintServiceWorkflow(dAtA, i, uint64(m.WorkflowIdReusePolicy)) - i-- - dAtA[i] = 0x50 - } - if len(m.RequestId) > 0 { - i -= len(m.RequestId) - copy(dAtA[i:], m.RequestId) - i = encodeVarintServiceWorkflow(dAtA, i, uint64(len(m.RequestId))) - i-- - dAtA[i] = 0x4a - } - if len(m.Identity) > 0 { - i -= len(m.Identity) - copy(dAtA[i:], m.Identity) - i = encodeVarintServiceWorkflow(dAtA, i, uint64(len(m.Identity))) - i-- - dAtA[i] = 0x42 - } - if m.TaskStartToCloseTimeout != nil { - n5, err5 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.TaskStartToCloseTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.TaskStartToCloseTimeout):]) - if err5 != nil { - return 0, err5 - } - i -= n5 - i = encodeVarintServiceWorkflow(dAtA, i, uint64(n5)) - i-- - dAtA[i] = 0x3a - } - if m.ExecutionStartToCloseTimeout != nil { - n6, err6 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.ExecutionStartToCloseTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ExecutionStartToCloseTimeout):]) - if err6 != nil { - return 0, err6 - } - i -= n6 - i = encodeVarintServiceWorkflow(dAtA, i, uint64(n6)) - i-- - dAtA[i] = 0x32 - } - if m.Input != nil { - { - size, err := m.Input.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.TaskList != nil { - { - size, err := m.TaskList.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.WorkflowType != nil { - { - size, err := m.WorkflowType.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.WorkflowId) > 0 { - i -= len(m.WorkflowId) - copy(dAtA[i:], m.WorkflowId) - i = encodeVarintServiceWorkflow(dAtA, i, uint64(len(m.WorkflowId))) - i-- - dAtA[i] = 0x12 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintServiceWorkflow(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *StartWorkflowExecutionResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StartWorkflowExecutionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StartWorkflowExecutionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RunId) > 0 { - i -= len(m.RunId) - copy(dAtA[i:], m.RunId) - i = encodeVarintServiceWorkflow(dAtA, i, uint64(len(m.RunId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *SignalWorkflowExecutionRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SignalWorkflowExecutionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SignalWorkflowExecutionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Control) > 0 { - i -= len(m.Control) - copy(dAtA[i:], m.Control) - i = encodeVarintServiceWorkflow(dAtA, i, uint64(len(m.Control))) - i-- - dAtA[i] = 0x3a - } - if m.SignalInput != nil { - { - size, err := m.SignalInput.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if len(m.SignalName) > 0 { - i -= len(m.SignalName) - copy(dAtA[i:], m.SignalName) - i = encodeVarintServiceWorkflow(dAtA, i, uint64(len(m.SignalName))) - i-- - dAtA[i] = 0x2a - } - if len(m.RequestId) > 0 { - i -= len(m.RequestId) - copy(dAtA[i:], m.RequestId) - i = encodeVarintServiceWorkflow(dAtA, i, uint64(len(m.RequestId))) - i-- - dAtA[i] = 0x22 - } - if len(m.Identity) > 0 { - i -= len(m.Identity) - copy(dAtA[i:], m.Identity) - i = encodeVarintServiceWorkflow(dAtA, i, uint64(len(m.Identity))) - i-- - dAtA[i] = 0x1a - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintServiceWorkflow(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *SignalWorkflowExecutionResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SignalWorkflowExecutionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SignalWorkflowExecutionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *SignalWithStartWorkflowExecutionRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SignalWithStartWorkflowExecutionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SignalWithStartWorkflowExecutionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Control) > 0 { - i -= len(m.Control) - copy(dAtA[i:], m.Control) - i = encodeVarintServiceWorkflow(dAtA, i, uint64(len(m.Control))) - i-- - dAtA[i] = 0x22 - } - if m.SignalInput != nil { - { - size, err := m.SignalInput.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.SignalName) > 0 { - i -= len(m.SignalName) - copy(dAtA[i:], m.SignalName) - i = encodeVarintServiceWorkflow(dAtA, i, uint64(len(m.SignalName))) - i-- - dAtA[i] = 0x12 - } - if m.StartRequest != nil { - { - size, err := m.StartRequest.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *SignalWithStartWorkflowExecutionResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SignalWithStartWorkflowExecutionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SignalWithStartWorkflowExecutionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RunId) > 0 { - i -= len(m.RunId) - copy(dAtA[i:], m.RunId) - i = encodeVarintServiceWorkflow(dAtA, i, uint64(len(m.RunId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ResetWorkflowExecutionRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResetWorkflowExecutionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResetWorkflowExecutionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RequestId) > 0 { - i -= len(m.RequestId) - copy(dAtA[i:], m.RequestId) - i = encodeVarintServiceWorkflow(dAtA, i, uint64(len(m.RequestId))) - i-- - dAtA[i] = 0x2a - } - if m.DecisionFinishEventId != 0 { - i = encodeVarintServiceWorkflow(dAtA, i, uint64(m.DecisionFinishEventId)) - i-- - dAtA[i] = 0x20 - } - if len(m.Reason) > 0 { - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintServiceWorkflow(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x1a - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintServiceWorkflow(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ResetWorkflowExecutionResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResetWorkflowExecutionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResetWorkflowExecutionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RunId) > 0 { - i -= len(m.RunId) - copy(dAtA[i:], m.RunId) - i = encodeVarintServiceWorkflow(dAtA, i, uint64(len(m.RunId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *TerminateWorkflowExecutionRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TerminateWorkflowExecutionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TerminateWorkflowExecutionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Identity) > 0 { - i -= len(m.Identity) - copy(dAtA[i:], m.Identity) - i = encodeVarintServiceWorkflow(dAtA, i, uint64(len(m.Identity))) - i-- - dAtA[i] = 0x2a - } - if m.Details != nil { - { - size, err := m.Details.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.Reason) > 0 { - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintServiceWorkflow(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x1a - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintServiceWorkflow(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *TerminateWorkflowExecutionResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TerminateWorkflowExecutionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TerminateWorkflowExecutionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *DescribeWorkflowExecutionRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DescribeWorkflowExecutionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DescribeWorkflowExecutionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintServiceWorkflow(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DescribeWorkflowExecutionResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DescribeWorkflowExecutionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DescribeWorkflowExecutionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.PendingDecision != nil { - { - size, err := m.PendingDecision.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if len(m.PendingChildren) > 0 { - for iNdEx := len(m.PendingChildren) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.PendingChildren[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - if len(m.PendingActivities) > 0 { - for iNdEx := len(m.PendingActivities) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.PendingActivities[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if m.WorkflowExecutionInfo != nil { - { - size, err := m.WorkflowExecutionInfo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.ExecutionConfiguration != nil { - { - size, err := m.ExecutionConfiguration.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryWorkflowRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryWorkflowRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryWorkflowRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.QueryConsistencyLevel != 0 { - i = encodeVarintServiceWorkflow(dAtA, i, uint64(m.QueryConsistencyLevel)) - i-- - dAtA[i] = 0x28 - } - if m.QueryRejectCondition != 0 { - i = encodeVarintServiceWorkflow(dAtA, i, uint64(m.QueryRejectCondition)) - i-- - dAtA[i] = 0x20 - } - if m.Query != nil { - { - size, err := m.Query.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintServiceWorkflow(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryWorkflowResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryWorkflowResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryWorkflowResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.QueryRejected != nil { - { - size, err := m.QueryRejected.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.QueryResult != nil { - { - size, err := m.QueryResult.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DescribeTaskListRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DescribeTaskListRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DescribeTaskListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.IncludeTaskListStatus { - i-- - if m.IncludeTaskListStatus { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if m.TaskListType != 0 { - i = encodeVarintServiceWorkflow(dAtA, i, uint64(m.TaskListType)) - i-- - dAtA[i] = 0x18 - } - if m.TaskList != nil { - { - size, err := m.TaskList.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintServiceWorkflow(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DescribeTaskListResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DescribeTaskListResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DescribeTaskListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.TaskListStatus != nil { - { - size, err := m.TaskListStatus.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Pollers) > 0 { - for iNdEx := len(m.Pollers) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Pollers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ListTaskListPartitionsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ListTaskListPartitionsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListTaskListPartitionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.TaskList != nil { - { - size, err := m.TaskList.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintServiceWorkflow(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ListTaskListPartitionsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ListTaskListPartitionsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListTaskListPartitionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.DecisionTaskListPartitions) > 0 { - for iNdEx := len(m.DecisionTaskListPartitions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.DecisionTaskListPartitions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.ActivityTaskListPartitions) > 0 { - for iNdEx := len(m.ActivityTaskListPartitions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ActivityTaskListPartitions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ResetStickyTaskListRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResetStickyTaskListRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResetStickyTaskListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintServiceWorkflow(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ResetStickyTaskListResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResetStickyTaskListResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResetStickyTaskListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *GetClusterInfoRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetClusterInfoRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetClusterInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *GetClusterInfoResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetClusterInfoResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetClusterInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.SupportedClientVersions != nil { - { - size, err := m.SupportedClientVersions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *GetWorkflowExecutionHistoryRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetWorkflowExecutionHistoryRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetWorkflowExecutionHistoryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.SkipArchival { - i-- - if m.SkipArchival { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x38 - } - if m.HistoryEventFilterType != 0 { - i = encodeVarintServiceWorkflow(dAtA, i, uint64(m.HistoryEventFilterType)) - i-- - dAtA[i] = 0x30 - } - if m.WaitForNewEvent { - i-- - if m.WaitForNewEvent { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 - } - if len(m.NextPageToken) > 0 { - i -= len(m.NextPageToken) - copy(dAtA[i:], m.NextPageToken) - i = encodeVarintServiceWorkflow(dAtA, i, uint64(len(m.NextPageToken))) - i-- - dAtA[i] = 0x22 - } - if m.PageSize != 0 { - i = encodeVarintServiceWorkflow(dAtA, i, uint64(m.PageSize)) - i-- - dAtA[i] = 0x18 - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintServiceWorkflow(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *GetWorkflowExecutionHistoryResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetWorkflowExecutionHistoryResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetWorkflowExecutionHistoryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Archived { - i-- - if m.Archived { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if len(m.NextPageToken) > 0 { - i -= len(m.NextPageToken) - copy(dAtA[i:], m.NextPageToken) - i = encodeVarintServiceWorkflow(dAtA, i, uint64(len(m.NextPageToken))) - i-- - dAtA[i] = 0x1a - } - if len(m.RawHistory) > 0 { - for iNdEx := len(m.RawHistory) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.RawHistory[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if m.History != nil { - { - size, err := m.History.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServiceWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintServiceWorkflow(dAtA []byte, offset int, v uint64) int { - offset -= sovServiceWorkflow(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *StartWorkflowExecutionRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - l = len(m.WorkflowId) - if l > 0 { - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - if m.WorkflowType != nil { - l = m.WorkflowType.Size() - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - if m.TaskList != nil { - l = m.TaskList.Size() - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - if m.Input != nil { - l = m.Input.Size() - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - if m.ExecutionStartToCloseTimeout != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ExecutionStartToCloseTimeout) - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - if m.TaskStartToCloseTimeout != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.TaskStartToCloseTimeout) - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - l = len(m.Identity) - if l > 0 { - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - l = len(m.RequestId) - if l > 0 { - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - if m.WorkflowIdReusePolicy != 0 { - n += 1 + sovServiceWorkflow(uint64(m.WorkflowIdReusePolicy)) - } - if m.RetryPolicy != nil { - l = m.RetryPolicy.Size() - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - l = len(m.CronSchedule) - if l > 0 { - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - if m.Memo != nil { - l = m.Memo.Size() - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - if m.SearchAttributes != nil { - l = m.SearchAttributes.Size() - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - return n -} - -func (m *StartWorkflowExecutionResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.RunId) - if l > 0 { - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - return n -} - -func (m *SignalWorkflowExecutionRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - l = len(m.Identity) - if l > 0 { - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - l = len(m.RequestId) - if l > 0 { - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - l = len(m.SignalName) - if l > 0 { - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - if m.SignalInput != nil { - l = m.SignalInput.Size() - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - l = len(m.Control) - if l > 0 { - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - return n -} - -func (m *SignalWorkflowExecutionResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *SignalWithStartWorkflowExecutionRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.StartRequest != nil { - l = m.StartRequest.Size() - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - l = len(m.SignalName) - if l > 0 { - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - if m.SignalInput != nil { - l = m.SignalInput.Size() - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - l = len(m.Control) - if l > 0 { - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - return n -} - -func (m *SignalWithStartWorkflowExecutionResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.RunId) - if l > 0 { - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - return n -} - -func (m *ResetWorkflowExecutionRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - if m.DecisionFinishEventId != 0 { - n += 1 + sovServiceWorkflow(uint64(m.DecisionFinishEventId)) - } - l = len(m.RequestId) - if l > 0 { - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - return n -} - -func (m *ResetWorkflowExecutionResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.RunId) - if l > 0 { - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - return n -} - -func (m *TerminateWorkflowExecutionRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - if m.Details != nil { - l = m.Details.Size() - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - l = len(m.Identity) - if l > 0 { - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - return n -} - -func (m *TerminateWorkflowExecutionResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *DescribeWorkflowExecutionRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - return n -} - -func (m *DescribeWorkflowExecutionResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ExecutionConfiguration != nil { - l = m.ExecutionConfiguration.Size() - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - if m.WorkflowExecutionInfo != nil { - l = m.WorkflowExecutionInfo.Size() - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - if len(m.PendingActivities) > 0 { - for _, e := range m.PendingActivities { - l = e.Size() - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - } - if len(m.PendingChildren) > 0 { - for _, e := range m.PendingChildren { - l = e.Size() - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - } - if m.PendingDecision != nil { - l = m.PendingDecision.Size() - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - return n -} - -func (m *QueryWorkflowRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - if m.Query != nil { - l = m.Query.Size() - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - if m.QueryRejectCondition != 0 { - n += 1 + sovServiceWorkflow(uint64(m.QueryRejectCondition)) - } - if m.QueryConsistencyLevel != 0 { - n += 1 + sovServiceWorkflow(uint64(m.QueryConsistencyLevel)) - } - return n -} - -func (m *QueryWorkflowResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.QueryResult != nil { - l = m.QueryResult.Size() - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - if m.QueryRejected != nil { - l = m.QueryRejected.Size() - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - return n -} - -func (m *DescribeTaskListRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - if m.TaskList != nil { - l = m.TaskList.Size() - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - if m.TaskListType != 0 { - n += 1 + sovServiceWorkflow(uint64(m.TaskListType)) - } - if m.IncludeTaskListStatus { - n += 2 - } - return n -} - -func (m *DescribeTaskListResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Pollers) > 0 { - for _, e := range m.Pollers { - l = e.Size() - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - } - if m.TaskListStatus != nil { - l = m.TaskListStatus.Size() - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - return n -} - -func (m *ListTaskListPartitionsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - if m.TaskList != nil { - l = m.TaskList.Size() - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - return n -} - -func (m *ListTaskListPartitionsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.ActivityTaskListPartitions) > 0 { - for _, e := range m.ActivityTaskListPartitions { - l = e.Size() - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - } - if len(m.DecisionTaskListPartitions) > 0 { - for _, e := range m.DecisionTaskListPartitions { - l = e.Size() - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - } - return n -} - -func (m *ResetStickyTaskListRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - return n -} - -func (m *ResetStickyTaskListResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *GetClusterInfoRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *GetClusterInfoResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.SupportedClientVersions != nil { - l = m.SupportedClientVersions.Size() - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - return n -} - -func (m *GetWorkflowExecutionHistoryRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - if m.PageSize != 0 { - n += 1 + sovServiceWorkflow(uint64(m.PageSize)) - } - l = len(m.NextPageToken) - if l > 0 { - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - if m.WaitForNewEvent { - n += 2 - } - if m.HistoryEventFilterType != 0 { - n += 1 + sovServiceWorkflow(uint64(m.HistoryEventFilterType)) - } - if m.SkipArchival { - n += 2 - } - return n -} - -func (m *GetWorkflowExecutionHistoryResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.History != nil { - l = m.History.Size() - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - if len(m.RawHistory) > 0 { - for _, e := range m.RawHistory { - l = e.Size() - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - } - l = len(m.NextPageToken) - if l > 0 { - n += 1 + l + sovServiceWorkflow(uint64(l)) - } - if m.Archived { - n += 2 - } - return n -} - -func sovServiceWorkflow(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozServiceWorkflow(x uint64) (n int) { - return sovServiceWorkflow(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *StartWorkflowExecutionRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&StartWorkflowExecutionRequest{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `WorkflowId:` + fmt.Sprintf("%v", this.WorkflowId) + `,`, - `WorkflowType:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowType), "WorkflowType", "WorkflowType", 1) + `,`, - `TaskList:` + strings.Replace(fmt.Sprintf("%v", this.TaskList), "TaskList", "TaskList", 1) + `,`, - `Input:` + strings.Replace(fmt.Sprintf("%v", this.Input), "Payload", "Payload", 1) + `,`, - `ExecutionStartToCloseTimeout:` + strings.Replace(fmt.Sprintf("%v", this.ExecutionStartToCloseTimeout), "Duration", "duration.Duration", 1) + `,`, - `TaskStartToCloseTimeout:` + strings.Replace(fmt.Sprintf("%v", this.TaskStartToCloseTimeout), "Duration", "duration.Duration", 1) + `,`, - `Identity:` + fmt.Sprintf("%v", this.Identity) + `,`, - `RequestId:` + fmt.Sprintf("%v", this.RequestId) + `,`, - `WorkflowIdReusePolicy:` + fmt.Sprintf("%v", this.WorkflowIdReusePolicy) + `,`, - `RetryPolicy:` + strings.Replace(fmt.Sprintf("%v", this.RetryPolicy), "RetryPolicy", "RetryPolicy", 1) + `,`, - `CronSchedule:` + fmt.Sprintf("%v", this.CronSchedule) + `,`, - `Memo:` + strings.Replace(fmt.Sprintf("%v", this.Memo), "Memo", "Memo", 1) + `,`, - `SearchAttributes:` + strings.Replace(fmt.Sprintf("%v", this.SearchAttributes), "SearchAttributes", "SearchAttributes", 1) + `,`, - `Header:` + strings.Replace(fmt.Sprintf("%v", this.Header), "Header", "Header", 1) + `,`, - `}`, - }, "") - return s -} -func (this *StartWorkflowExecutionResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&StartWorkflowExecutionResponse{`, - `RunId:` + fmt.Sprintf("%v", this.RunId) + `,`, - `}`, - }, "") - return s -} -func (this *SignalWorkflowExecutionRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SignalWorkflowExecutionRequest{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "WorkflowExecution", 1) + `,`, - `Identity:` + fmt.Sprintf("%v", this.Identity) + `,`, - `RequestId:` + fmt.Sprintf("%v", this.RequestId) + `,`, - `SignalName:` + fmt.Sprintf("%v", this.SignalName) + `,`, - `SignalInput:` + strings.Replace(fmt.Sprintf("%v", this.SignalInput), "Payload", "Payload", 1) + `,`, - `Control:` + fmt.Sprintf("%v", this.Control) + `,`, - `}`, - }, "") - return s -} -func (this *SignalWorkflowExecutionResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SignalWorkflowExecutionResponse{`, - `}`, - }, "") - return s -} -func (this *SignalWithStartWorkflowExecutionRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SignalWithStartWorkflowExecutionRequest{`, - `StartRequest:` + strings.Replace(this.StartRequest.String(), "StartWorkflowExecutionRequest", "StartWorkflowExecutionRequest", 1) + `,`, - `SignalName:` + fmt.Sprintf("%v", this.SignalName) + `,`, - `SignalInput:` + strings.Replace(fmt.Sprintf("%v", this.SignalInput), "Payload", "Payload", 1) + `,`, - `Control:` + fmt.Sprintf("%v", this.Control) + `,`, - `}`, - }, "") - return s -} -func (this *SignalWithStartWorkflowExecutionResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SignalWithStartWorkflowExecutionResponse{`, - `RunId:` + fmt.Sprintf("%v", this.RunId) + `,`, - `}`, - }, "") - return s -} -func (this *ResetWorkflowExecutionRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ResetWorkflowExecutionRequest{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "WorkflowExecution", 1) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `DecisionFinishEventId:` + fmt.Sprintf("%v", this.DecisionFinishEventId) + `,`, - `RequestId:` + fmt.Sprintf("%v", this.RequestId) + `,`, - `}`, - }, "") - return s -} -func (this *ResetWorkflowExecutionResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ResetWorkflowExecutionResponse{`, - `RunId:` + fmt.Sprintf("%v", this.RunId) + `,`, - `}`, - }, "") - return s -} -func (this *TerminateWorkflowExecutionRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TerminateWorkflowExecutionRequest{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "WorkflowExecution", 1) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Details:` + strings.Replace(fmt.Sprintf("%v", this.Details), "Payload", "Payload", 1) + `,`, - `Identity:` + fmt.Sprintf("%v", this.Identity) + `,`, - `}`, - }, "") - return s -} -func (this *TerminateWorkflowExecutionResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TerminateWorkflowExecutionResponse{`, - `}`, - }, "") - return s -} -func (this *DescribeWorkflowExecutionRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DescribeWorkflowExecutionRequest{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "WorkflowExecution", 1) + `,`, - `}`, - }, "") - return s -} -func (this *DescribeWorkflowExecutionResponse) String() string { - if this == nil { - return "nil" - } - repeatedStringForPendingActivities := "[]*PendingActivityInfo{" - for _, f := range this.PendingActivities { - repeatedStringForPendingActivities += strings.Replace(fmt.Sprintf("%v", f), "PendingActivityInfo", "PendingActivityInfo", 1) + "," - } - repeatedStringForPendingActivities += "}" - repeatedStringForPendingChildren := "[]*PendingChildExecutionInfo{" - for _, f := range this.PendingChildren { - repeatedStringForPendingChildren += strings.Replace(fmt.Sprintf("%v", f), "PendingChildExecutionInfo", "PendingChildExecutionInfo", 1) + "," - } - repeatedStringForPendingChildren += "}" - s := strings.Join([]string{`&DescribeWorkflowExecutionResponse{`, - `ExecutionConfiguration:` + strings.Replace(fmt.Sprintf("%v", this.ExecutionConfiguration), "WorkflowExecutionConfiguration", "WorkflowExecutionConfiguration", 1) + `,`, - `WorkflowExecutionInfo:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecutionInfo), "WorkflowExecutionInfo", "WorkflowExecutionInfo", 1) + `,`, - `PendingActivities:` + repeatedStringForPendingActivities + `,`, - `PendingChildren:` + repeatedStringForPendingChildren + `,`, - `PendingDecision:` + strings.Replace(fmt.Sprintf("%v", this.PendingDecision), "PendingDecisionInfo", "PendingDecisionInfo", 1) + `,`, - `}`, - }, "") - return s -} -func (this *QueryWorkflowRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&QueryWorkflowRequest{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "WorkflowExecution", 1) + `,`, - `Query:` + strings.Replace(fmt.Sprintf("%v", this.Query), "WorkflowQuery", "WorkflowQuery", 1) + `,`, - `QueryRejectCondition:` + fmt.Sprintf("%v", this.QueryRejectCondition) + `,`, - `QueryConsistencyLevel:` + fmt.Sprintf("%v", this.QueryConsistencyLevel) + `,`, - `}`, - }, "") - return s -} -func (this *QueryWorkflowResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&QueryWorkflowResponse{`, - `QueryResult:` + strings.Replace(fmt.Sprintf("%v", this.QueryResult), "Payload", "Payload", 1) + `,`, - `QueryRejected:` + strings.Replace(fmt.Sprintf("%v", this.QueryRejected), "QueryRejected", "QueryRejected", 1) + `,`, - `}`, - }, "") - return s -} -func (this *DescribeTaskListRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DescribeTaskListRequest{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `TaskList:` + strings.Replace(fmt.Sprintf("%v", this.TaskList), "TaskList", "TaskList", 1) + `,`, - `TaskListType:` + fmt.Sprintf("%v", this.TaskListType) + `,`, - `IncludeTaskListStatus:` + fmt.Sprintf("%v", this.IncludeTaskListStatus) + `,`, - `}`, - }, "") - return s -} -func (this *DescribeTaskListResponse) String() string { - if this == nil { - return "nil" - } - repeatedStringForPollers := "[]*PollerInfo{" - for _, f := range this.Pollers { - repeatedStringForPollers += strings.Replace(fmt.Sprintf("%v", f), "PollerInfo", "PollerInfo", 1) + "," - } - repeatedStringForPollers += "}" - s := strings.Join([]string{`&DescribeTaskListResponse{`, - `Pollers:` + repeatedStringForPollers + `,`, - `TaskListStatus:` + strings.Replace(fmt.Sprintf("%v", this.TaskListStatus), "TaskListStatus", "TaskListStatus", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ListTaskListPartitionsRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ListTaskListPartitionsRequest{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `TaskList:` + strings.Replace(fmt.Sprintf("%v", this.TaskList), "TaskList", "TaskList", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ListTaskListPartitionsResponse) String() string { - if this == nil { - return "nil" - } - repeatedStringForActivityTaskListPartitions := "[]*TaskListPartitionMetadata{" - for _, f := range this.ActivityTaskListPartitions { - repeatedStringForActivityTaskListPartitions += strings.Replace(fmt.Sprintf("%v", f), "TaskListPartitionMetadata", "TaskListPartitionMetadata", 1) + "," - } - repeatedStringForActivityTaskListPartitions += "}" - repeatedStringForDecisionTaskListPartitions := "[]*TaskListPartitionMetadata{" - for _, f := range this.DecisionTaskListPartitions { - repeatedStringForDecisionTaskListPartitions += strings.Replace(fmt.Sprintf("%v", f), "TaskListPartitionMetadata", "TaskListPartitionMetadata", 1) + "," - } - repeatedStringForDecisionTaskListPartitions += "}" - s := strings.Join([]string{`&ListTaskListPartitionsResponse{`, - `ActivityTaskListPartitions:` + repeatedStringForActivityTaskListPartitions + `,`, - `DecisionTaskListPartitions:` + repeatedStringForDecisionTaskListPartitions + `,`, - `}`, - }, "") - return s -} -func (this *ResetStickyTaskListRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ResetStickyTaskListRequest{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "WorkflowExecution", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ResetStickyTaskListResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ResetStickyTaskListResponse{`, - `}`, - }, "") - return s -} -func (this *GetClusterInfoRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&GetClusterInfoRequest{`, - `}`, - }, "") - return s -} -func (this *GetClusterInfoResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&GetClusterInfoResponse{`, - `SupportedClientVersions:` + strings.Replace(fmt.Sprintf("%v", this.SupportedClientVersions), "SupportedClientVersions", "SupportedClientVersions", 1) + `,`, - `}`, - }, "") - return s -} -func (this *GetWorkflowExecutionHistoryRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&GetWorkflowExecutionHistoryRequest{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "WorkflowExecution", 1) + `,`, - `PageSize:` + fmt.Sprintf("%v", this.PageSize) + `,`, - `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, - `WaitForNewEvent:` + fmt.Sprintf("%v", this.WaitForNewEvent) + `,`, - `HistoryEventFilterType:` + fmt.Sprintf("%v", this.HistoryEventFilterType) + `,`, - `SkipArchival:` + fmt.Sprintf("%v", this.SkipArchival) + `,`, - `}`, - }, "") - return s -} -func (this *GetWorkflowExecutionHistoryResponse) String() string { - if this == nil { - return "nil" - } - repeatedStringForRawHistory := "[]*DataBlob{" - for _, f := range this.RawHistory { - repeatedStringForRawHistory += strings.Replace(fmt.Sprintf("%v", f), "DataBlob", "DataBlob", 1) + "," - } - repeatedStringForRawHistory += "}" - s := strings.Join([]string{`&GetWorkflowExecutionHistoryResponse{`, - `History:` + strings.Replace(fmt.Sprintf("%v", this.History), "History", "History", 1) + `,`, - `RawHistory:` + repeatedStringForRawHistory + `,`, - `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, - `Archived:` + fmt.Sprintf("%v", this.Archived) + `,`, - `}`, - }, "") - return s -} -func valueToStringServiceWorkflow(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *StartWorkflowExecutionRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StartWorkflowExecutionRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StartWorkflowExecutionRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.WorkflowId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowType", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowType == nil { - m.WorkflowType = &WorkflowType{} - } - if err := m.WorkflowType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TaskList == nil { - m.TaskList = &TaskList{} - } - if err := m.TaskList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Input == nil { - m.Input = &Payload{} - } - if err := m.Input.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExecutionStartToCloseTimeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ExecutionStartToCloseTimeout == nil { - m.ExecutionStartToCloseTimeout = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.ExecutionStartToCloseTimeout, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskStartToCloseTimeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TaskStartToCloseTimeout == nil { - m.TaskStartToCloseTimeout = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.TaskStartToCloseTimeout, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identity = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RequestId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowIdReusePolicy", wireType) - } - m.WorkflowIdReusePolicy = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.WorkflowIdReusePolicy |= WorkflowIdReusePolicy(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RetryPolicy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RetryPolicy == nil { - m.RetryPolicy = &RetryPolicy{} - } - if err := m.RetryPolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CronSchedule", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CronSchedule = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Memo", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Memo == nil { - m.Memo = &Memo{} - } - if err := m.Memo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SearchAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SearchAttributes == nil { - m.SearchAttributes = &SearchAttributes{} - } - if err := m.SearchAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Header == nil { - m.Header = &Header{} - } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StartWorkflowExecutionResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StartWorkflowExecutionResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StartWorkflowExecutionResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RunId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RunId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SignalWorkflowExecutionRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SignalWorkflowExecutionRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SignalWorkflowExecutionRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identity = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RequestId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SignalName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SignalName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SignalInput", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SignalInput == nil { - m.SignalInput = &Payload{} - } - if err := m.SignalInput.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Control", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Control = append(m.Control[:0], dAtA[iNdEx:postIndex]...) - if m.Control == nil { - m.Control = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SignalWorkflowExecutionResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SignalWorkflowExecutionResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SignalWorkflowExecutionResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipServiceWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SignalWithStartWorkflowExecutionRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SignalWithStartWorkflowExecutionRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SignalWithStartWorkflowExecutionRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartRequest", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StartRequest == nil { - m.StartRequest = &StartWorkflowExecutionRequest{} - } - if err := m.StartRequest.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SignalName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SignalName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SignalInput", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SignalInput == nil { - m.SignalInput = &Payload{} - } - if err := m.SignalInput.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Control", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Control = append(m.Control[:0], dAtA[iNdEx:postIndex]...) - if m.Control == nil { - m.Control = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SignalWithStartWorkflowExecutionResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SignalWithStartWorkflowExecutionResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SignalWithStartWorkflowExecutionResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RunId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RunId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResetWorkflowExecutionRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResetWorkflowExecutionRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResetWorkflowExecutionRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DecisionFinishEventId", wireType) - } - m.DecisionFinishEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DecisionFinishEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RequestId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResetWorkflowExecutionResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResetWorkflowExecutionResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResetWorkflowExecutionResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RunId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RunId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TerminateWorkflowExecutionRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TerminateWorkflowExecutionRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TerminateWorkflowExecutionRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Details", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Details == nil { - m.Details = &Payload{} - } - if err := m.Details.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identity = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TerminateWorkflowExecutionResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TerminateWorkflowExecutionResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TerminateWorkflowExecutionResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipServiceWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DescribeWorkflowExecutionRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DescribeWorkflowExecutionRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DescribeWorkflowExecutionRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DescribeWorkflowExecutionResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DescribeWorkflowExecutionResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DescribeWorkflowExecutionResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExecutionConfiguration", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ExecutionConfiguration == nil { - m.ExecutionConfiguration = &WorkflowExecutionConfiguration{} - } - if err := m.ExecutionConfiguration.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecutionInfo", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecutionInfo == nil { - m.WorkflowExecutionInfo = &WorkflowExecutionInfo{} - } - if err := m.WorkflowExecutionInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PendingActivities", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PendingActivities = append(m.PendingActivities, &PendingActivityInfo{}) - if err := m.PendingActivities[len(m.PendingActivities)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PendingChildren", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PendingChildren = append(m.PendingChildren, &PendingChildExecutionInfo{}) - if err := m.PendingChildren[len(m.PendingChildren)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PendingDecision", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PendingDecision == nil { - m.PendingDecision = &PendingDecisionInfo{} - } - if err := m.PendingDecision.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryWorkflowRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryWorkflowRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryWorkflowRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Query == nil { - m.Query = &WorkflowQuery{} - } - if err := m.Query.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field QueryRejectCondition", wireType) - } - m.QueryRejectCondition = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.QueryRejectCondition |= QueryRejectCondition(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field QueryConsistencyLevel", wireType) - } - m.QueryConsistencyLevel = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.QueryConsistencyLevel |= QueryConsistencyLevel(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipServiceWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryWorkflowResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryWorkflowResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryWorkflowResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field QueryResult", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.QueryResult == nil { - m.QueryResult = &Payload{} - } - if err := m.QueryResult.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field QueryRejected", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.QueryRejected == nil { - m.QueryRejected = &QueryRejected{} - } - if err := m.QueryRejected.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DescribeTaskListRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DescribeTaskListRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DescribeTaskListRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TaskList == nil { - m.TaskList = &TaskList{} - } - if err := m.TaskList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskListType", wireType) - } - m.TaskListType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TaskListType |= TaskListType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IncludeTaskListStatus", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IncludeTaskListStatus = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipServiceWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DescribeTaskListResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DescribeTaskListResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DescribeTaskListResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pollers", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Pollers = append(m.Pollers, &PollerInfo{}) - if err := m.Pollers[len(m.Pollers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskListStatus", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TaskListStatus == nil { - m.TaskListStatus = &TaskListStatus{} - } - if err := m.TaskListStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ListTaskListPartitionsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListTaskListPartitionsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListTaskListPartitionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TaskList == nil { - m.TaskList = &TaskList{} - } - if err := m.TaskList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ListTaskListPartitionsResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListTaskListPartitionsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListTaskListPartitionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActivityTaskListPartitions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ActivityTaskListPartitions = append(m.ActivityTaskListPartitions, &TaskListPartitionMetadata{}) - if err := m.ActivityTaskListPartitions[len(m.ActivityTaskListPartitions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DecisionTaskListPartitions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DecisionTaskListPartitions = append(m.DecisionTaskListPartitions, &TaskListPartitionMetadata{}) - if err := m.DecisionTaskListPartitions[len(m.DecisionTaskListPartitions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResetStickyTaskListRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResetStickyTaskListRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResetStickyTaskListRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResetStickyTaskListResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResetStickyTaskListResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResetStickyTaskListResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipServiceWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetClusterInfoRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetClusterInfoRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetClusterInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipServiceWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetClusterInfoResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetClusterInfoResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetClusterInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SupportedClientVersions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SupportedClientVersions == nil { - m.SupportedClientVersions = &SupportedClientVersions{} - } - if err := m.SupportedClientVersions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServiceWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetWorkflowExecutionHistoryRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetWorkflowExecutionHistoryRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetWorkflowExecutionHistoryRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) - } - m.PageSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PageSize |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NextPageToken = append(m.NextPageToken[:0], dAtA[iNdEx:postIndex]...) - if m.NextPageToken == nil { - m.NextPageToken = []byte{} - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field WaitForNewEvent", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.WaitForNewEvent = bool(v != 0) - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HistoryEventFilterType", wireType) - } - m.HistoryEventFilterType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.HistoryEventFilterType |= EventFilterType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SkipArchival", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.SkipArchival = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipServiceWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetWorkflowExecutionHistoryResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetWorkflowExecutionHistoryResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetWorkflowExecutionHistoryResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field History", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.History == nil { - m.History = &History{} - } - if err := m.History.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RawHistory", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RawHistory = append(m.RawHistory, &DataBlob{}) - if err := m.RawHistory[len(m.RawHistory)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServiceWorkflow - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServiceWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NextPageToken = append(m.NextPageToken[:0], dAtA[iNdEx:postIndex]...) - if m.NextPageToken == nil { - m.NextPageToken = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Archived", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Archived = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipServiceWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServiceWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipServiceWorkflow(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowServiceWorkflow - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthServiceWorkflow - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupServiceWorkflow - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthServiceWorkflow - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthServiceWorkflow = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowServiceWorkflow = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupServiceWorkflow = fmt.Errorf("proto: unexpected end of group") -) diff --git a/.gen/proto/api/v1/service_workflow_grpc.pb.go b/.gen/proto/api/v1/service_workflow_grpc.pb.go new file mode 100644 index 00000000000..d1d4f86aaff --- /dev/null +++ b/.gen/proto/api/v1/service_workflow_grpc.pb.go @@ -0,0 +1,578 @@ +// The MIT License (MIT) + +// Copyright (c) 2017-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-go-grpc. DO NOT EDIT. + +package apiv1 + +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 + +// WorkflowAPIClient is the client API for WorkflowAPI 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 WorkflowAPIClient interface { + // StartWorkflowExecution starts a new long running workflow instance. It will create the instance with + // 'WorkflowExecutionStarted' event in history and also schedule the first DecisionTask for the worker to make the + // first decision for this instance. It will return 'WorkflowExecutionAlreadyStartedError', if an instance already + // exists with same workflowId. + StartWorkflowExecution(ctx context.Context, in *StartWorkflowExecutionRequest, opts ...grpc.CallOption) (*StartWorkflowExecutionResponse, error) + // SignalWorkflowExecution is used to send a signal event to running workflow execution. This results in + // WorkflowExecutionSignaled event recorded in the history and a decision task being created for the execution. + SignalWorkflowExecution(ctx context.Context, in *SignalWorkflowExecutionRequest, opts ...grpc.CallOption) (*SignalWorkflowExecutionResponse, error) + // SignalWithStartWorkflowExecution is used to ensure sending signal to a workflow. If the workflow is running, + // this results in WorkflowExecutionSignaled event being recorded in the history and a decision task being created for + // the execution. If the workflow is not running or not found, this results in WorkflowExecutionStarted and + // WorkflowExecutionSignaled events being recorded in history, and a decision task being created for the execution. + SignalWithStartWorkflowExecution(ctx context.Context, in *SignalWithStartWorkflowExecutionRequest, opts ...grpc.CallOption) (*SignalWithStartWorkflowExecutionResponse, error) + // ResetWorkflowExecution reset an existing workflow execution to DecisionTaskCompleted event(exclusive). + // And it will immediately terminating the current execution instance. + ResetWorkflowExecution(ctx context.Context, in *ResetWorkflowExecutionRequest, opts ...grpc.CallOption) (*ResetWorkflowExecutionResponse, error) + // TerminateWorkflowExecution terminates an existing workflow execution by recording WorkflowExecutionTerminated event + // in the history and immediately terminating the execution instance. + TerminateWorkflowExecution(ctx context.Context, in *TerminateWorkflowExecutionRequest, opts ...grpc.CallOption) (*TerminateWorkflowExecutionResponse, error) + // DescribeWorkflowExecution returns information about the specified workflow execution. + DescribeWorkflowExecution(ctx context.Context, in *DescribeWorkflowExecutionRequest, opts ...grpc.CallOption) (*DescribeWorkflowExecutionResponse, error) + // QueryWorkflow returns query result for a specified workflow execution. + QueryWorkflow(ctx context.Context, in *QueryWorkflowRequest, opts ...grpc.CallOption) (*QueryWorkflowResponse, error) + // DescribeTaskList returns information about the target tasklist, right now this API returns the + // pollers which polled this tasklist in last few minutes. + DescribeTaskList(ctx context.Context, in *DescribeTaskListRequest, opts ...grpc.CallOption) (*DescribeTaskListResponse, error) + // ListTaskListPartitions returns information about task list partitions. + ListTaskListPartitions(ctx context.Context, in *ListTaskListPartitionsRequest, opts ...grpc.CallOption) (*ListTaskListPartitionsResponse, error) + // Reset the sticky tasklist related information in mutable state of a given workflow. + // Things cleared are: + // 1. StickyTaskList + // 2. StickyScheduleToStartTimeout + // 3. ClientLibraryVersion + // 4. ClientFeatureVersion + // 5. ClientImpl + ResetStickyTaskList(ctx context.Context, in *ResetStickyTaskListRequest, opts ...grpc.CallOption) (*ResetStickyTaskListResponse, error) + // GetClusterInfo returns information about cadence cluster. + GetClusterInfo(ctx context.Context, in *GetClusterInfoRequest, opts ...grpc.CallOption) (*GetClusterInfoResponse, error) + // Returns the history of specified workflow execution. It fails with 'EntityNotExistError' if specified workflow + // execution in unknown to the service. + GetWorkflowExecutionHistory(ctx context.Context, in *GetWorkflowExecutionHistoryRequest, opts ...grpc.CallOption) (*GetWorkflowExecutionHistoryResponse, error) +} + +type workflowAPIClient struct { + cc grpc.ClientConnInterface +} + +func NewWorkflowAPIClient(cc grpc.ClientConnInterface) WorkflowAPIClient { + return &workflowAPIClient{cc} +} + +func (c *workflowAPIClient) StartWorkflowExecution(ctx context.Context, in *StartWorkflowExecutionRequest, opts ...grpc.CallOption) (*StartWorkflowExecutionResponse, error) { + out := new(StartWorkflowExecutionResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkflowAPI/StartWorkflowExecution", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workflowAPIClient) SignalWorkflowExecution(ctx context.Context, in *SignalWorkflowExecutionRequest, opts ...grpc.CallOption) (*SignalWorkflowExecutionResponse, error) { + out := new(SignalWorkflowExecutionResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkflowAPI/SignalWorkflowExecution", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workflowAPIClient) SignalWithStartWorkflowExecution(ctx context.Context, in *SignalWithStartWorkflowExecutionRequest, opts ...grpc.CallOption) (*SignalWithStartWorkflowExecutionResponse, error) { + out := new(SignalWithStartWorkflowExecutionResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkflowAPI/SignalWithStartWorkflowExecution", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workflowAPIClient) ResetWorkflowExecution(ctx context.Context, in *ResetWorkflowExecutionRequest, opts ...grpc.CallOption) (*ResetWorkflowExecutionResponse, error) { + out := new(ResetWorkflowExecutionResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkflowAPI/ResetWorkflowExecution", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workflowAPIClient) TerminateWorkflowExecution(ctx context.Context, in *TerminateWorkflowExecutionRequest, opts ...grpc.CallOption) (*TerminateWorkflowExecutionResponse, error) { + out := new(TerminateWorkflowExecutionResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkflowAPI/TerminateWorkflowExecution", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workflowAPIClient) DescribeWorkflowExecution(ctx context.Context, in *DescribeWorkflowExecutionRequest, opts ...grpc.CallOption) (*DescribeWorkflowExecutionResponse, error) { + out := new(DescribeWorkflowExecutionResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkflowAPI/DescribeWorkflowExecution", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workflowAPIClient) QueryWorkflow(ctx context.Context, in *QueryWorkflowRequest, opts ...grpc.CallOption) (*QueryWorkflowResponse, error) { + out := new(QueryWorkflowResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkflowAPI/QueryWorkflow", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workflowAPIClient) DescribeTaskList(ctx context.Context, in *DescribeTaskListRequest, opts ...grpc.CallOption) (*DescribeTaskListResponse, error) { + out := new(DescribeTaskListResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkflowAPI/DescribeTaskList", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workflowAPIClient) ListTaskListPartitions(ctx context.Context, in *ListTaskListPartitionsRequest, opts ...grpc.CallOption) (*ListTaskListPartitionsResponse, error) { + out := new(ListTaskListPartitionsResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkflowAPI/ListTaskListPartitions", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workflowAPIClient) ResetStickyTaskList(ctx context.Context, in *ResetStickyTaskListRequest, opts ...grpc.CallOption) (*ResetStickyTaskListResponse, error) { + out := new(ResetStickyTaskListResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkflowAPI/ResetStickyTaskList", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workflowAPIClient) GetClusterInfo(ctx context.Context, in *GetClusterInfoRequest, opts ...grpc.CallOption) (*GetClusterInfoResponse, error) { + out := new(GetClusterInfoResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkflowAPI/GetClusterInfo", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *workflowAPIClient) GetWorkflowExecutionHistory(ctx context.Context, in *GetWorkflowExecutionHistoryRequest, opts ...grpc.CallOption) (*GetWorkflowExecutionHistoryResponse, error) { + out := new(GetWorkflowExecutionHistoryResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.api.v1.WorkflowAPI/GetWorkflowExecutionHistory", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// WorkflowAPIServer is the server API for WorkflowAPI service. +// All implementations must embed UnimplementedWorkflowAPIServer +// for forward compatibility +type WorkflowAPIServer interface { + // StartWorkflowExecution starts a new long running workflow instance. It will create the instance with + // 'WorkflowExecutionStarted' event in history and also schedule the first DecisionTask for the worker to make the + // first decision for this instance. It will return 'WorkflowExecutionAlreadyStartedError', if an instance already + // exists with same workflowId. + StartWorkflowExecution(context.Context, *StartWorkflowExecutionRequest) (*StartWorkflowExecutionResponse, error) + // SignalWorkflowExecution is used to send a signal event to running workflow execution. This results in + // WorkflowExecutionSignaled event recorded in the history and a decision task being created for the execution. + SignalWorkflowExecution(context.Context, *SignalWorkflowExecutionRequest) (*SignalWorkflowExecutionResponse, error) + // SignalWithStartWorkflowExecution is used to ensure sending signal to a workflow. If the workflow is running, + // this results in WorkflowExecutionSignaled event being recorded in the history and a decision task being created for + // the execution. If the workflow is not running or not found, this results in WorkflowExecutionStarted and + // WorkflowExecutionSignaled events being recorded in history, and a decision task being created for the execution. + SignalWithStartWorkflowExecution(context.Context, *SignalWithStartWorkflowExecutionRequest) (*SignalWithStartWorkflowExecutionResponse, error) + // ResetWorkflowExecution reset an existing workflow execution to DecisionTaskCompleted event(exclusive). + // And it will immediately terminating the current execution instance. + ResetWorkflowExecution(context.Context, *ResetWorkflowExecutionRequest) (*ResetWorkflowExecutionResponse, error) + // TerminateWorkflowExecution terminates an existing workflow execution by recording WorkflowExecutionTerminated event + // in the history and immediately terminating the execution instance. + TerminateWorkflowExecution(context.Context, *TerminateWorkflowExecutionRequest) (*TerminateWorkflowExecutionResponse, error) + // DescribeWorkflowExecution returns information about the specified workflow execution. + DescribeWorkflowExecution(context.Context, *DescribeWorkflowExecutionRequest) (*DescribeWorkflowExecutionResponse, error) + // QueryWorkflow returns query result for a specified workflow execution. + QueryWorkflow(context.Context, *QueryWorkflowRequest) (*QueryWorkflowResponse, error) + // DescribeTaskList returns information about the target tasklist, right now this API returns the + // pollers which polled this tasklist in last few minutes. + DescribeTaskList(context.Context, *DescribeTaskListRequest) (*DescribeTaskListResponse, error) + // ListTaskListPartitions returns information about task list partitions. + ListTaskListPartitions(context.Context, *ListTaskListPartitionsRequest) (*ListTaskListPartitionsResponse, error) + // Reset the sticky tasklist related information in mutable state of a given workflow. + // Things cleared are: + // 1. StickyTaskList + // 2. StickyScheduleToStartTimeout + // 3. ClientLibraryVersion + // 4. ClientFeatureVersion + // 5. ClientImpl + ResetStickyTaskList(context.Context, *ResetStickyTaskListRequest) (*ResetStickyTaskListResponse, error) + // GetClusterInfo returns information about cadence cluster. + GetClusterInfo(context.Context, *GetClusterInfoRequest) (*GetClusterInfoResponse, error) + // Returns the history of specified workflow execution. It fails with 'EntityNotExistError' if specified workflow + // execution in unknown to the service. + GetWorkflowExecutionHistory(context.Context, *GetWorkflowExecutionHistoryRequest) (*GetWorkflowExecutionHistoryResponse, error) + mustEmbedUnimplementedWorkflowAPIServer() +} + +// UnimplementedWorkflowAPIServer must be embedded to have forward compatible implementations. +type UnimplementedWorkflowAPIServer struct { +} + +func (UnimplementedWorkflowAPIServer) StartWorkflowExecution(context.Context, *StartWorkflowExecutionRequest) (*StartWorkflowExecutionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StartWorkflowExecution not implemented") +} +func (UnimplementedWorkflowAPIServer) SignalWorkflowExecution(context.Context, *SignalWorkflowExecutionRequest) (*SignalWorkflowExecutionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SignalWorkflowExecution not implemented") +} +func (UnimplementedWorkflowAPIServer) SignalWithStartWorkflowExecution(context.Context, *SignalWithStartWorkflowExecutionRequest) (*SignalWithStartWorkflowExecutionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SignalWithStartWorkflowExecution not implemented") +} +func (UnimplementedWorkflowAPIServer) ResetWorkflowExecution(context.Context, *ResetWorkflowExecutionRequest) (*ResetWorkflowExecutionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ResetWorkflowExecution not implemented") +} +func (UnimplementedWorkflowAPIServer) TerminateWorkflowExecution(context.Context, *TerminateWorkflowExecutionRequest) (*TerminateWorkflowExecutionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TerminateWorkflowExecution not implemented") +} +func (UnimplementedWorkflowAPIServer) DescribeWorkflowExecution(context.Context, *DescribeWorkflowExecutionRequest) (*DescribeWorkflowExecutionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DescribeWorkflowExecution not implemented") +} +func (UnimplementedWorkflowAPIServer) QueryWorkflow(context.Context, *QueryWorkflowRequest) (*QueryWorkflowResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryWorkflow not implemented") +} +func (UnimplementedWorkflowAPIServer) DescribeTaskList(context.Context, *DescribeTaskListRequest) (*DescribeTaskListResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DescribeTaskList not implemented") +} +func (UnimplementedWorkflowAPIServer) ListTaskListPartitions(context.Context, *ListTaskListPartitionsRequest) (*ListTaskListPartitionsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListTaskListPartitions not implemented") +} +func (UnimplementedWorkflowAPIServer) ResetStickyTaskList(context.Context, *ResetStickyTaskListRequest) (*ResetStickyTaskListResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ResetStickyTaskList not implemented") +} +func (UnimplementedWorkflowAPIServer) GetClusterInfo(context.Context, *GetClusterInfoRequest) (*GetClusterInfoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetClusterInfo not implemented") +} +func (UnimplementedWorkflowAPIServer) GetWorkflowExecutionHistory(context.Context, *GetWorkflowExecutionHistoryRequest) (*GetWorkflowExecutionHistoryResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetWorkflowExecutionHistory not implemented") +} +func (UnimplementedWorkflowAPIServer) mustEmbedUnimplementedWorkflowAPIServer() {} + +// UnsafeWorkflowAPIServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to WorkflowAPIServer will +// result in compilation errors. +type UnsafeWorkflowAPIServer interface { + mustEmbedUnimplementedWorkflowAPIServer() +} + +func RegisterWorkflowAPIServer(s grpc.ServiceRegistrar, srv WorkflowAPIServer) { + s.RegisterService(&WorkflowAPI_ServiceDesc, srv) +} + +func _WorkflowAPI_StartWorkflowExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StartWorkflowExecutionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkflowAPIServer).StartWorkflowExecution(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.WorkflowAPI/StartWorkflowExecution", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkflowAPIServer).StartWorkflowExecution(ctx, req.(*StartWorkflowExecutionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkflowAPI_SignalWorkflowExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SignalWorkflowExecutionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkflowAPIServer).SignalWorkflowExecution(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.WorkflowAPI/SignalWorkflowExecution", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkflowAPIServer).SignalWorkflowExecution(ctx, req.(*SignalWorkflowExecutionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkflowAPI_SignalWithStartWorkflowExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SignalWithStartWorkflowExecutionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkflowAPIServer).SignalWithStartWorkflowExecution(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.WorkflowAPI/SignalWithStartWorkflowExecution", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkflowAPIServer).SignalWithStartWorkflowExecution(ctx, req.(*SignalWithStartWorkflowExecutionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkflowAPI_ResetWorkflowExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ResetWorkflowExecutionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkflowAPIServer).ResetWorkflowExecution(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.WorkflowAPI/ResetWorkflowExecution", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkflowAPIServer).ResetWorkflowExecution(ctx, req.(*ResetWorkflowExecutionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkflowAPI_TerminateWorkflowExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TerminateWorkflowExecutionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkflowAPIServer).TerminateWorkflowExecution(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.WorkflowAPI/TerminateWorkflowExecution", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkflowAPIServer).TerminateWorkflowExecution(ctx, req.(*TerminateWorkflowExecutionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkflowAPI_DescribeWorkflowExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DescribeWorkflowExecutionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkflowAPIServer).DescribeWorkflowExecution(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.WorkflowAPI/DescribeWorkflowExecution", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkflowAPIServer).DescribeWorkflowExecution(ctx, req.(*DescribeWorkflowExecutionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkflowAPI_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.(WorkflowAPIServer).QueryWorkflow(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.WorkflowAPI/QueryWorkflow", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkflowAPIServer).QueryWorkflow(ctx, req.(*QueryWorkflowRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkflowAPI_DescribeTaskList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DescribeTaskListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkflowAPIServer).DescribeTaskList(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.WorkflowAPI/DescribeTaskList", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkflowAPIServer).DescribeTaskList(ctx, req.(*DescribeTaskListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkflowAPI_ListTaskListPartitions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListTaskListPartitionsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkflowAPIServer).ListTaskListPartitions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.WorkflowAPI/ListTaskListPartitions", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkflowAPIServer).ListTaskListPartitions(ctx, req.(*ListTaskListPartitionsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkflowAPI_ResetStickyTaskList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ResetStickyTaskListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkflowAPIServer).ResetStickyTaskList(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.WorkflowAPI/ResetStickyTaskList", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkflowAPIServer).ResetStickyTaskList(ctx, req.(*ResetStickyTaskListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkflowAPI_GetClusterInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetClusterInfoRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkflowAPIServer).GetClusterInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.WorkflowAPI/GetClusterInfo", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkflowAPIServer).GetClusterInfo(ctx, req.(*GetClusterInfoRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorkflowAPI_GetWorkflowExecutionHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetWorkflowExecutionHistoryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkflowAPIServer).GetWorkflowExecutionHistory(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.api.v1.WorkflowAPI/GetWorkflowExecutionHistory", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkflowAPIServer).GetWorkflowExecutionHistory(ctx, req.(*GetWorkflowExecutionHistoryRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// WorkflowAPI_ServiceDesc is the grpc.ServiceDesc for WorkflowAPI service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var WorkflowAPI_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "uber.cadence.api.v1.WorkflowAPI", + HandlerType: (*WorkflowAPIServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "StartWorkflowExecution", + Handler: _WorkflowAPI_StartWorkflowExecution_Handler, + }, + { + MethodName: "SignalWorkflowExecution", + Handler: _WorkflowAPI_SignalWorkflowExecution_Handler, + }, + { + MethodName: "SignalWithStartWorkflowExecution", + Handler: _WorkflowAPI_SignalWithStartWorkflowExecution_Handler, + }, + { + MethodName: "ResetWorkflowExecution", + Handler: _WorkflowAPI_ResetWorkflowExecution_Handler, + }, + { + MethodName: "TerminateWorkflowExecution", + Handler: _WorkflowAPI_TerminateWorkflowExecution_Handler, + }, + { + MethodName: "DescribeWorkflowExecution", + Handler: _WorkflowAPI_DescribeWorkflowExecution_Handler, + }, + { + MethodName: "QueryWorkflow", + Handler: _WorkflowAPI_QueryWorkflow_Handler, + }, + { + MethodName: "DescribeTaskList", + Handler: _WorkflowAPI_DescribeTaskList_Handler, + }, + { + MethodName: "ListTaskListPartitions", + Handler: _WorkflowAPI_ListTaskListPartitions_Handler, + }, + { + MethodName: "ResetStickyTaskList", + Handler: _WorkflowAPI_ResetStickyTaskList_Handler, + }, + { + MethodName: "GetClusterInfo", + Handler: _WorkflowAPI_GetClusterInfo_Handler, + }, + { + MethodName: "GetWorkflowExecutionHistory", + Handler: _WorkflowAPI_GetWorkflowExecutionHistory_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "uber/cadence/api/v1/service_workflow.proto", +} diff --git a/.gen/proto/api/v1/tasklist.pb.go b/.gen/proto/api/v1/tasklist.pb.go index 4cf96544ca2..9166187b44b 100644 --- a/.gen/proto/api/v1/tasklist.pb.go +++ b/.gen/proto/api/v1/tasklist.pb.go @@ -1,2288 +1,802 @@ -// The MIT License (MIT) - -// Copyright (c) 2017-2020 Uber Technologies Inc. - +// 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 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. +// 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. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.14.0 // source: uber/cadence/api/v1/tasklist.proto package apiv1 import ( - encoding_binary "encoding/binary" - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" reflect "reflect" - strconv "strconv" - strings "strings" - time "time" - - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" - types "github.com/gogo/protobuf/types" - _ "github.com/golang/protobuf/ptypes/duration" - _ "github.com/golang/protobuf/ptypes/timestamp" + sync "sync" + + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf -var _ = time.Kitchen +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// 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 +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type TaskListKind int32 const ( - TASK_LIST_KIND_INVALID TaskListKind = 0 - TASK_LIST_KIND_NORMAL TaskListKind = 1 - TASK_LIST_KIND_STICKY TaskListKind = 2 + TaskListKind_TASK_LIST_KIND_INVALID TaskListKind = 0 + TaskListKind_TASK_LIST_KIND_NORMAL TaskListKind = 1 + TaskListKind_TASK_LIST_KIND_STICKY TaskListKind = 2 ) -var TaskListKind_name = map[int32]string{ - 0: "TASK_LIST_KIND_INVALID", - 1: "TASK_LIST_KIND_NORMAL", - 2: "TASK_LIST_KIND_STICKY", -} +// Enum value maps for TaskListKind. +var ( + TaskListKind_name = map[int32]string{ + 0: "TASK_LIST_KIND_INVALID", + 1: "TASK_LIST_KIND_NORMAL", + 2: "TASK_LIST_KIND_STICKY", + } + TaskListKind_value = map[string]int32{ + "TASK_LIST_KIND_INVALID": 0, + "TASK_LIST_KIND_NORMAL": 1, + "TASK_LIST_KIND_STICKY": 2, + } +) -var TaskListKind_value = map[string]int32{ - "TASK_LIST_KIND_INVALID": 0, - "TASK_LIST_KIND_NORMAL": 1, - "TASK_LIST_KIND_STICKY": 2, +func (x TaskListKind) Enum() *TaskListKind { + p := new(TaskListKind) + *p = x + return p } -func (TaskListKind) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_216fa006947e00a0, []int{0} +func (x TaskListKind) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -type TaskListType int32 - -const ( - TASK_LIST_TYPE_INVALID TaskListType = 0 - TASK_LIST_TYPE_DECISION TaskListType = 1 - TASK_LIST_TYPE_ACTIVITY TaskListType = 2 -) - -var TaskListType_name = map[int32]string{ - 0: "TASK_LIST_TYPE_INVALID", - 1: "TASK_LIST_TYPE_DECISION", - 2: "TASK_LIST_TYPE_ACTIVITY", +func (TaskListKind) Descriptor() protoreflect.EnumDescriptor { + return file_uber_cadence_api_v1_tasklist_proto_enumTypes[0].Descriptor() } -var TaskListType_value = map[string]int32{ - "TASK_LIST_TYPE_INVALID": 0, - "TASK_LIST_TYPE_DECISION": 1, - "TASK_LIST_TYPE_ACTIVITY": 2, +func (TaskListKind) Type() protoreflect.EnumType { + return &file_uber_cadence_api_v1_tasklist_proto_enumTypes[0] } -func (TaskListType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_216fa006947e00a0, []int{1} +func (x TaskListKind) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -type TaskList struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Kind TaskListKind `protobuf:"varint,2,opt,name=kind,proto3,enum=uber.cadence.api.v1.TaskListKind" json:"kind,omitempty"` +// Deprecated: Use TaskListKind.Descriptor instead. +func (TaskListKind) EnumDescriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_tasklist_proto_rawDescGZIP(), []int{0} } -func (m *TaskList) Reset() { *m = TaskList{} } -func (*TaskList) ProtoMessage() {} -func (*TaskList) Descriptor() ([]byte, []int) { - return fileDescriptor_216fa006947e00a0, []int{0} -} -func (m *TaskList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TaskList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TaskList.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *TaskList) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskList.Merge(m, src) -} -func (m *TaskList) XXX_Size() int { - return m.Size() -} -func (m *TaskList) XXX_DiscardUnknown() { - xxx_messageInfo_TaskList.DiscardUnknown(m) -} +type TaskListType int32 -var xxx_messageInfo_TaskList proto.InternalMessageInfo +const ( + TaskListType_TASK_LIST_TYPE_INVALID TaskListType = 0 + TaskListType_TASK_LIST_TYPE_DECISION TaskListType = 1 + TaskListType_TASK_LIST_TYPE_ACTIVITY TaskListType = 2 +) -func (m *TaskList) GetName() string { - if m != nil { - return m.Name +// Enum value maps for TaskListType. +var ( + TaskListType_name = map[int32]string{ + 0: "TASK_LIST_TYPE_INVALID", + 1: "TASK_LIST_TYPE_DECISION", + 2: "TASK_LIST_TYPE_ACTIVITY", } - return "" -} - -func (m *TaskList) GetKind() TaskListKind { - if m != nil { - return m.Kind + TaskListType_value = map[string]int32{ + "TASK_LIST_TYPE_INVALID": 0, + "TASK_LIST_TYPE_DECISION": 1, + "TASK_LIST_TYPE_ACTIVITY": 2, } - return TASK_LIST_KIND_INVALID -} +) -type TaskListMetadata struct { - MaxTasksPerSecond *types.DoubleValue `protobuf:"bytes,1,opt,name=max_tasks_per_second,json=maxTasksPerSecond,proto3" json:"max_tasks_per_second,omitempty"` +func (x TaskListType) Enum() *TaskListType { + p := new(TaskListType) + *p = x + return p } -func (m *TaskListMetadata) Reset() { *m = TaskListMetadata{} } -func (*TaskListMetadata) ProtoMessage() {} -func (*TaskListMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_216fa006947e00a0, []int{1} -} -func (m *TaskListMetadata) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TaskListMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TaskListMetadata.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *TaskListMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskListMetadata.Merge(m, src) -} -func (m *TaskListMetadata) XXX_Size() int { - return m.Size() -} -func (m *TaskListMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_TaskListMetadata.DiscardUnknown(m) +func (x TaskListType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -var xxx_messageInfo_TaskListMetadata proto.InternalMessageInfo - -func (m *TaskListMetadata) GetMaxTasksPerSecond() *types.DoubleValue { - if m != nil { - return m.MaxTasksPerSecond - } - return nil +func (TaskListType) Descriptor() protoreflect.EnumDescriptor { + return file_uber_cadence_api_v1_tasklist_proto_enumTypes[1].Descriptor() } -type TaskListPartitionMetadata struct { - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - OwnerHostName string `protobuf:"bytes,2,opt,name=owner_host_name,json=ownerHostName,proto3" json:"owner_host_name,omitempty"` +func (TaskListType) Type() protoreflect.EnumType { + return &file_uber_cadence_api_v1_tasklist_proto_enumTypes[1] } -func (m *TaskListPartitionMetadata) Reset() { *m = TaskListPartitionMetadata{} } -func (*TaskListPartitionMetadata) ProtoMessage() {} -func (*TaskListPartitionMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_216fa006947e00a0, []int{2} -} -func (m *TaskListPartitionMetadata) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TaskListPartitionMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TaskListPartitionMetadata.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *TaskListPartitionMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskListPartitionMetadata.Merge(m, src) -} -func (m *TaskListPartitionMetadata) XXX_Size() int { - return m.Size() -} -func (m *TaskListPartitionMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_TaskListPartitionMetadata.DiscardUnknown(m) +func (x TaskListType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -var xxx_messageInfo_TaskListPartitionMetadata proto.InternalMessageInfo - -func (m *TaskListPartitionMetadata) GetKey() string { - if m != nil { - return m.Key - } - return "" +// Deprecated: Use TaskListType.Descriptor instead. +func (TaskListType) EnumDescriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_tasklist_proto_rawDescGZIP(), []int{1} } -func (m *TaskListPartitionMetadata) GetOwnerHostName() string { - if m != nil { - return m.OwnerHostName - } - return "" -} +type TaskList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type TaskListStatus struct { - BacklogCountHint int64 `protobuf:"varint,1,opt,name=backlog_count_hint,json=backlogCountHint,proto3" json:"backlog_count_hint,omitempty"` - ReadLevel int64 `protobuf:"varint,2,opt,name=read_level,json=readLevel,proto3" json:"read_level,omitempty"` - AckLevel int64 `protobuf:"varint,3,opt,name=ack_level,json=ackLevel,proto3" json:"ack_level,omitempty"` - RatePerSecond float64 `protobuf:"fixed64,4,opt,name=rate_per_second,json=ratePerSecond,proto3" json:"rate_per_second,omitempty"` - TaskIdBlock *TaskIDBlock `protobuf:"bytes,5,opt,name=task_id_block,json=taskIdBlock,proto3" json:"task_id_block,omitempty"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Kind TaskListKind `protobuf:"varint,2,opt,name=kind,proto3,enum=uber.cadence.api.v1.TaskListKind" json:"kind,omitempty"` } -func (m *TaskListStatus) Reset() { *m = TaskListStatus{} } -func (*TaskListStatus) ProtoMessage() {} -func (*TaskListStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_216fa006947e00a0, []int{3} -} -func (m *TaskListStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TaskListStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TaskListStatus.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *TaskList) Reset() { + *x = TaskList{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_tasklist_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *TaskListStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskListStatus.Merge(m, src) -} -func (m *TaskListStatus) XXX_Size() int { - return m.Size() -} -func (m *TaskListStatus) XXX_DiscardUnknown() { - xxx_messageInfo_TaskListStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_TaskListStatus proto.InternalMessageInfo -func (m *TaskListStatus) GetBacklogCountHint() int64 { - if m != nil { - return m.BacklogCountHint - } - return 0 +func (x *TaskList) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TaskListStatus) GetReadLevel() int64 { - if m != nil { - return m.ReadLevel - } - return 0 -} +func (*TaskList) ProtoMessage() {} -func (m *TaskListStatus) GetAckLevel() int64 { - if m != nil { - return m.AckLevel +func (x *TaskList) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_tasklist_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return 0 + return mi.MessageOf(x) } -func (m *TaskListStatus) GetRatePerSecond() float64 { - if m != nil { - return m.RatePerSecond - } - return 0 +// Deprecated: Use TaskList.ProtoReflect.Descriptor instead. +func (*TaskList) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_tasklist_proto_rawDescGZIP(), []int{0} } -func (m *TaskListStatus) GetTaskIdBlock() *TaskIDBlock { - if m != nil { - return m.TaskIdBlock +func (x *TaskList) GetName() string { + if x != nil { + return x.Name } - return nil -} - -type TaskIDBlock struct { - StartId int64 `protobuf:"varint,1,opt,name=start_id,json=startId,proto3" json:"start_id,omitempty"` - EndId int64 `protobuf:"varint,2,opt,name=end_id,json=endId,proto3" json:"end_id,omitempty"` + return "" } -func (m *TaskIDBlock) Reset() { *m = TaskIDBlock{} } -func (*TaskIDBlock) ProtoMessage() {} -func (*TaskIDBlock) Descriptor() ([]byte, []int) { - return fileDescriptor_216fa006947e00a0, []int{4} -} -func (m *TaskIDBlock) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TaskIDBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TaskIDBlock.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *TaskList) GetKind() TaskListKind { + if x != nil { + return x.Kind } -} -func (m *TaskIDBlock) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskIDBlock.Merge(m, src) -} -func (m *TaskIDBlock) XXX_Size() int { - return m.Size() -} -func (m *TaskIDBlock) XXX_DiscardUnknown() { - xxx_messageInfo_TaskIDBlock.DiscardUnknown(m) + return TaskListKind_TASK_LIST_KIND_INVALID } -var xxx_messageInfo_TaskIDBlock proto.InternalMessageInfo +type TaskListMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *TaskIDBlock) GetStartId() int64 { - if m != nil { - return m.StartId - } - return 0 + MaxTasksPerSecond *wrapperspb.DoubleValue `protobuf:"bytes,1,opt,name=max_tasks_per_second,json=maxTasksPerSecond,proto3" json:"max_tasks_per_second,omitempty"` } -func (m *TaskIDBlock) GetEndId() int64 { - if m != nil { - return m.EndId +func (x *TaskListMetadata) Reset() { + *x = TaskListMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_tasklist_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return 0 } -type PollerInfo struct { - LastAccessTime *time.Time `protobuf:"bytes,1,opt,name=last_access_time,json=lastAccessTime,proto3,stdtime" json:"last_access_time,omitempty"` - Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` - RatePerSecond float64 `protobuf:"fixed64,3,opt,name=rate_per_second,json=ratePerSecond,proto3" json:"rate_per_second,omitempty"` +func (x *TaskListMetadata) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PollerInfo) Reset() { *m = PollerInfo{} } -func (*PollerInfo) ProtoMessage() {} -func (*PollerInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_216fa006947e00a0, []int{5} -} -func (m *PollerInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PollerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PollerInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*TaskListMetadata) ProtoMessage() {} + +func (x *TaskListMetadata) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_tasklist_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *PollerInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_PollerInfo.Merge(m, src) -} -func (m *PollerInfo) XXX_Size() int { - return m.Size() -} -func (m *PollerInfo) XXX_DiscardUnknown() { - xxx_messageInfo_PollerInfo.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_PollerInfo proto.InternalMessageInfo +// Deprecated: Use TaskListMetadata.ProtoReflect.Descriptor instead. +func (*TaskListMetadata) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_tasklist_proto_rawDescGZIP(), []int{1} +} -func (m *PollerInfo) GetLastAccessTime() *time.Time { - if m != nil { - return m.LastAccessTime +func (x *TaskListMetadata) GetMaxTasksPerSecond() *wrapperspb.DoubleValue { + if x != nil { + return x.MaxTasksPerSecond } return nil } -func (m *PollerInfo) GetIdentity() string { - if m != nil { - return m.Identity - } - return "" +type TaskListPartitionMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + OwnerHostName string `protobuf:"bytes,2,opt,name=owner_host_name,json=ownerHostName,proto3" json:"owner_host_name,omitempty"` } -func (m *PollerInfo) GetRatePerSecond() float64 { - if m != nil { - return m.RatePerSecond +func (x *TaskListPartitionMetadata) Reset() { + *x = TaskListPartitionMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_tasklist_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return 0 } -type StickyExecutionAttributes struct { - WorkerTaskList *TaskList `protobuf:"bytes,1,opt,name=worker_task_list,json=workerTaskList,proto3" json:"worker_task_list,omitempty"` - ScheduleToStartTimeout *time.Duration `protobuf:"bytes,2,opt,name=schedule_to_start_timeout,json=scheduleToStartTimeout,proto3,stdduration" json:"schedule_to_start_timeout,omitempty"` +func (x *TaskListPartitionMetadata) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *StickyExecutionAttributes) Reset() { *m = StickyExecutionAttributes{} } -func (*StickyExecutionAttributes) ProtoMessage() {} -func (*StickyExecutionAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_216fa006947e00a0, []int{6} -} -func (m *StickyExecutionAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StickyExecutionAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StickyExecutionAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*TaskListPartitionMetadata) ProtoMessage() {} + +func (x *TaskListPartitionMetadata) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_tasklist_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *StickyExecutionAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_StickyExecutionAttributes.Merge(m, src) -} -func (m *StickyExecutionAttributes) XXX_Size() int { - return m.Size() -} -func (m *StickyExecutionAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_StickyExecutionAttributes.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_StickyExecutionAttributes proto.InternalMessageInfo +// Deprecated: Use TaskListPartitionMetadata.ProtoReflect.Descriptor instead. +func (*TaskListPartitionMetadata) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_tasklist_proto_rawDescGZIP(), []int{2} +} -func (m *StickyExecutionAttributes) GetWorkerTaskList() *TaskList { - if m != nil { - return m.WorkerTaskList +func (x *TaskListPartitionMetadata) GetKey() string { + if x != nil { + return x.Key } - return nil + return "" } -func (m *StickyExecutionAttributes) GetScheduleToStartTimeout() *time.Duration { - if m != nil { - return m.ScheduleToStartTimeout +func (x *TaskListPartitionMetadata) GetOwnerHostName() string { + if x != nil { + return x.OwnerHostName } - return nil + return "" } -func init() { - proto.RegisterEnum("uber.cadence.api.v1.TaskListKind", TaskListKind_name, TaskListKind_value) - proto.RegisterEnum("uber.cadence.api.v1.TaskListType", TaskListType_name, TaskListType_value) - proto.RegisterType((*TaskList)(nil), "uber.cadence.api.v1.TaskList") - proto.RegisterType((*TaskListMetadata)(nil), "uber.cadence.api.v1.TaskListMetadata") - proto.RegisterType((*TaskListPartitionMetadata)(nil), "uber.cadence.api.v1.TaskListPartitionMetadata") - proto.RegisterType((*TaskListStatus)(nil), "uber.cadence.api.v1.TaskListStatus") - proto.RegisterType((*TaskIDBlock)(nil), "uber.cadence.api.v1.TaskIDBlock") - proto.RegisterType((*PollerInfo)(nil), "uber.cadence.api.v1.PollerInfo") - proto.RegisterType((*StickyExecutionAttributes)(nil), "uber.cadence.api.v1.StickyExecutionAttributes") -} - -func init() { - proto.RegisterFile("github.com/uber/cadence/.gen/proto/api/v1/tasklist.proto", fileDescriptor_216fa006947e00a0) -} - -var fileDescriptor_216fa006947e00a0 = []byte{ - // 816 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x53, 0xcd, 0x6e, 0xdb, 0x46, - 0x10, 0xd6, 0x5a, 0x72, 0x2a, 0xaf, 0x6b, 0x87, 0xdd, 0x36, 0x89, 0xa5, 0x24, 0x8c, 0xab, 0x43, - 0x60, 0x04, 0x85, 0x04, 0xbb, 0xe8, 0xb9, 0x90, 0x2c, 0xa3, 0x61, 0x2d, 0x2b, 0x02, 0xc5, 0x18, - 0x70, 0x2e, 0x9b, 0x15, 0x77, 0x22, 0x2f, 0x48, 0x71, 0x09, 0xee, 0xd2, 0x3f, 0xb7, 0x3e, 0x42, - 0x8e, 0x3d, 0xf4, 0x01, 0xfa, 0x18, 0x3d, 0xf6, 0xe8, 0x63, 0x6e, 0xad, 0xe5, 0x4b, 0x8e, 0x79, - 0x84, 0x62, 0x57, 0x94, 0xeb, 0xda, 0x6a, 0x6e, 0xdc, 0xf9, 0x66, 0xe6, 0xe3, 0xf7, 0xcd, 0x0c, - 0x6e, 0xe4, 0x23, 0xc8, 0x5a, 0x21, 0xe3, 0x90, 0x84, 0xd0, 0x62, 0xa9, 0x68, 0x9d, 0x6c, 0xb7, - 0x34, 0x53, 0x51, 0x2c, 0x94, 0x6e, 0xa6, 0x99, 0xd4, 0x92, 0x7c, 0x6d, 0x72, 0x9a, 0x45, 0x4e, - 0x93, 0xa5, 0xa2, 0x79, 0xb2, 0x5d, 0x77, 0xc7, 0x52, 0x8e, 0x63, 0x68, 0xd9, 0x94, 0x51, 0xfe, - 0xae, 0xc5, 0xf3, 0x8c, 0x69, 0x21, 0x93, 0x59, 0x51, 0xfd, 0xd9, 0x6d, 0x5c, 0x8b, 0x09, 0x28, - 0xcd, 0x26, 0x69, 0x91, 0x70, 0xa7, 0xc1, 0x69, 0xc6, 0xd2, 0x14, 0x32, 0x55, 0xe0, 0x4f, 0x38, - 0xa4, 0x90, 0x18, 0x4e, 0x01, 0xaa, 0x35, 0x96, 0x63, 0x69, 0xe3, 0x33, 0xb4, 0xf1, 0x1a, 0x57, - 0x03, 0xa6, 0xa2, 0x9e, 0x50, 0x9a, 0x10, 0x5c, 0x49, 0xd8, 0x04, 0x36, 0xd0, 0x26, 0xda, 0x5a, - 0xf1, 0xed, 0x37, 0xf9, 0x01, 0x57, 0x22, 0x91, 0xf0, 0x8d, 0xa5, 0x4d, 0xb4, 0xb5, 0xbe, 0xf3, - 0x6d, 0x73, 0x81, 0x84, 0xe6, 0xbc, 0xc1, 0xbe, 0x48, 0xb8, 0x6f, 0xd3, 0x1b, 0x0c, 0x3b, 0xf3, - 0xe8, 0x01, 0x68, 0xc6, 0x99, 0x66, 0xe4, 0x00, 0x7f, 0x33, 0x61, 0x67, 0xd4, 0x98, 0xa2, 0x68, - 0x0a, 0x19, 0x55, 0x10, 0xca, 0x84, 0x5b, 0xba, 0xd5, 0x9d, 0x27, 0xcd, 0x99, 0x8e, 0xe6, 0x5c, - 0x47, 0xb3, 0x2b, 0xf3, 0x51, 0x0c, 0x87, 0x2c, 0xce, 0xc1, 0xff, 0x6a, 0xc2, 0xce, 0x4c, 0x43, - 0x35, 0x80, 0x6c, 0x68, 0xcb, 0x1a, 0xaf, 0x71, 0x6d, 0x4e, 0x31, 0x60, 0x99, 0x16, 0xc6, 0xb3, - 0x6b, 0x2e, 0x07, 0x97, 0x23, 0x38, 0x2f, 0x94, 0x98, 0x4f, 0xf2, 0x1c, 0xdf, 0x97, 0xa7, 0x09, - 0x64, 0xf4, 0x58, 0x2a, 0x4d, 0xad, 0xce, 0x25, 0x8b, 0xae, 0xd9, 0xf0, 0x4b, 0xa9, 0x74, 0x9f, - 0x4d, 0xa0, 0xf1, 0x11, 0xe1, 0xf5, 0x79, 0xdf, 0xa1, 0x66, 0x3a, 0x57, 0xe4, 0x3b, 0x4c, 0x46, - 0x2c, 0x8c, 0x62, 0x39, 0xa6, 0xa1, 0xcc, 0x13, 0x4d, 0x8f, 0x45, 0xa2, 0x6d, 0xef, 0xb2, 0xef, - 0x14, 0xc8, 0xae, 0x01, 0x5e, 0x8a, 0x44, 0x93, 0xa7, 0x18, 0x67, 0xc0, 0x38, 0x8d, 0xe1, 0x04, - 0x62, 0xcb, 0x51, 0xf6, 0x57, 0x4c, 0xa4, 0x67, 0x02, 0xe4, 0x31, 0x5e, 0x61, 0x61, 0x54, 0xa0, - 0x65, 0x8b, 0x56, 0x59, 0x18, 0xcd, 0xc0, 0xe7, 0xf8, 0x7e, 0xc6, 0x34, 0xdc, 0x74, 0xa7, 0xb2, - 0x89, 0xb6, 0x90, 0xbf, 0x66, 0xc2, 0xd7, 0xda, 0x49, 0x17, 0xaf, 0x19, 0x1b, 0xa9, 0xe0, 0x74, - 0x14, 0xcb, 0x30, 0xda, 0x58, 0xb6, 0x1e, 0x6e, 0xfe, 0xef, 0x78, 0xbc, 0x6e, 0xc7, 0xe4, 0xf9, - 0xab, 0xa6, 0xcc, 0xe3, 0xf6, 0xd1, 0xf8, 0x11, 0xaf, 0xde, 0xc0, 0x48, 0x0d, 0x57, 0x95, 0x66, - 0x99, 0xa6, 0x82, 0x17, 0xe2, 0xbe, 0xb0, 0x6f, 0x8f, 0x93, 0x07, 0xf8, 0x1e, 0x24, 0xdc, 0x00, - 0x33, 0x3d, 0xcb, 0x90, 0x70, 0x8f, 0x37, 0x7e, 0x43, 0x18, 0x0f, 0x64, 0x1c, 0x43, 0xe6, 0x25, - 0xef, 0x24, 0xf9, 0x19, 0x3b, 0x31, 0x53, 0x9a, 0xb2, 0x30, 0x04, 0xa5, 0xa8, 0x59, 0xd4, 0x62, - 0xb8, 0xf5, 0x3b, 0xc3, 0x0d, 0xe6, 0x5b, 0xdc, 0xa9, 0xbc, 0xff, 0xeb, 0x19, 0xf2, 0xd7, 0x4d, - 0x65, 0xdb, 0x16, 0x1a, 0x88, 0xd4, 0x71, 0x55, 0x70, 0x48, 0xb4, 0xd0, 0xe7, 0xc5, 0x9c, 0xae, - 0xdf, 0x8b, 0x5c, 0x2a, 0x2f, 0x70, 0xa9, 0xf1, 0x07, 0xc2, 0xb5, 0xa1, 0x16, 0x61, 0x74, 0xbe, - 0x77, 0x06, 0x61, 0x6e, 0x16, 0xa4, 0xad, 0x75, 0x26, 0x46, 0xb9, 0x06, 0x45, 0x7e, 0xc2, 0xce, - 0xa9, 0xcc, 0x22, 0xc8, 0xec, 0x46, 0x52, 0x73, 0xa7, 0xc5, 0xdf, 0x3e, 0xfd, 0xec, 0x96, 0xfb, - 0xeb, 0xb3, 0xb2, 0xeb, 0xb3, 0x79, 0x83, 0x6b, 0x2a, 0x3c, 0x06, 0x9e, 0xc7, 0x40, 0xb5, 0xa4, - 0x33, 0x0f, 0x8d, 0x78, 0x99, 0x6b, 0xfb, 0xef, 0xab, 0x3b, 0xb5, 0xbb, 0xcb, 0x5d, 0x5c, 0x79, - 0xa7, 0xf2, 0xab, 0x91, 0xff, 0x70, 0xde, 0x21, 0x90, 0x43, 0x53, 0x1f, 0xcc, 0xca, 0x5f, 0xbc, - 0xc5, 0x5f, 0xde, 0xbc, 0x2e, 0x52, 0xc7, 0x0f, 0x83, 0xf6, 0x70, 0x9f, 0xf6, 0xbc, 0x61, 0x40, - 0xf7, 0xbd, 0x7e, 0x97, 0x7a, 0xfd, 0xc3, 0x76, 0xcf, 0xeb, 0x3a, 0x25, 0x52, 0xc3, 0x0f, 0x6e, - 0x61, 0xfd, 0x57, 0xfe, 0x41, 0xbb, 0xe7, 0xa0, 0x05, 0xd0, 0x30, 0xf0, 0x76, 0xf7, 0x8f, 0x9c, - 0xa5, 0x17, 0xfc, 0x5f, 0x86, 0xe0, 0x3c, 0x85, 0xff, 0x32, 0x04, 0x47, 0x83, 0xbd, 0x1b, 0x0c, - 0x8f, 0xf1, 0xa3, 0x5b, 0x58, 0x77, 0x6f, 0xd7, 0x1b, 0x7a, 0xaf, 0xfa, 0x0e, 0x5a, 0x00, 0xb6, - 0x77, 0x03, 0xef, 0xd0, 0x0b, 0x8e, 0x9c, 0xa5, 0xce, 0xdb, 0x8b, 0x4b, 0xb7, 0xf4, 0xe1, 0xd2, - 0x2d, 0x7d, 0xba, 0x74, 0xd1, 0x2f, 0x53, 0x17, 0xfd, 0x3e, 0x75, 0xd1, 0x9f, 0x53, 0x17, 0x5d, - 0x4c, 0x5d, 0xf4, 0xf7, 0xd4, 0x45, 0x1f, 0xa7, 0x6e, 0xe9, 0xd3, 0xd4, 0x45, 0xef, 0xaf, 0xdc, - 0xd2, 0xc5, 0x95, 0x5b, 0xfa, 0x70, 0xe5, 0x96, 0xf0, 0xa3, 0x50, 0x4e, 0x16, 0xcd, 0xa2, 0x53, - 0x6d, 0xa7, 0x62, 0x60, 0xac, 0x1c, 0xa0, 0x37, 0xcb, 0x2c, 0x15, 0x27, 0xdb, 0xa3, 0x7b, 0xd6, - 0xda, 0xef, 0xff, 0x09, 0x00, 0x00, 0xff, 0xff, 0x81, 0x79, 0x33, 0xbc, 0x89, 0x05, 0x00, 0x00, -} +type TaskListStatus struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x TaskListKind) String() string { - s, ok := TaskListKind_name[int32(x)] - if ok { - return s - } - return strconv.Itoa(int(x)) -} -func (x TaskListType) String() string { - s, ok := TaskListType_name[int32(x)] - if ok { - return s - } - return strconv.Itoa(int(x)) + BacklogCountHint int64 `protobuf:"varint,1,opt,name=backlog_count_hint,json=backlogCountHint,proto3" json:"backlog_count_hint,omitempty"` + ReadLevel int64 `protobuf:"varint,2,opt,name=read_level,json=readLevel,proto3" json:"read_level,omitempty"` + AckLevel int64 `protobuf:"varint,3,opt,name=ack_level,json=ackLevel,proto3" json:"ack_level,omitempty"` + RatePerSecond float64 `protobuf:"fixed64,4,opt,name=rate_per_second,json=ratePerSecond,proto3" json:"rate_per_second,omitempty"` + TaskIdBlock *TaskIDBlock `protobuf:"bytes,5,opt,name=task_id_block,json=taskIdBlock,proto3" json:"task_id_block,omitempty"` } -func (this *TaskList) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*TaskList) - if !ok { - that2, ok := that.(TaskList) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Name != that1.Name { - return false +func (x *TaskListStatus) Reset() { + *x = TaskListStatus{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_tasklist_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if this.Kind != that1.Kind { - return false - } - return true } -func (this *TaskListMetadata) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*TaskListMetadata) - if !ok { - that2, ok := that.(TaskListMetadata) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.MaxTasksPerSecond.Equal(that1.MaxTasksPerSecond) { - return false - } - return true +func (x *TaskListStatus) String() string { + return protoimpl.X.MessageStringOf(x) } -func (this *TaskListPartitionMetadata) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*TaskListPartitionMetadata) - if !ok { - that2, ok := that.(TaskListPartitionMetadata) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Key != that1.Key { - return false - } - if this.OwnerHostName != that1.OwnerHostName { - return false - } - return true -} -func (this *TaskListStatus) Equal(that interface{}) bool { - if that == nil { - return this == nil - } +func (*TaskListStatus) ProtoMessage() {} - that1, ok := that.(*TaskListStatus) - if !ok { - that2, ok := that.(TaskListStatus) - if ok { - that1 = &that2 - } else { - return false +func (x *TaskListStatus) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_tasklist_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.BacklogCountHint != that1.BacklogCountHint { - return false - } - if this.ReadLevel != that1.ReadLevel { - return false - } - if this.AckLevel != that1.AckLevel { - return false - } - if this.RatePerSecond != that1.RatePerSecond { - return false - } - if !this.TaskIdBlock.Equal(that1.TaskIdBlock) { - return false - } - return true + return mi.MessageOf(x) } -func (this *TaskIDBlock) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*TaskIDBlock) - if !ok { - that2, ok := that.(TaskIDBlock) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.StartId != that1.StartId { - return false - } - if this.EndId != that1.EndId { - return false - } - return true +// Deprecated: Use TaskListStatus.ProtoReflect.Descriptor instead. +func (*TaskListStatus) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_tasklist_proto_rawDescGZIP(), []int{3} } -func (this *PollerInfo) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*PollerInfo) - if !ok { - that2, ok := that.(PollerInfo) - if ok { - that1 = &that2 - } else { - return false - } +func (x *TaskListStatus) GetBacklogCountHint() int64 { + if x != nil { + return x.BacklogCountHint } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if that1.LastAccessTime == nil { - if this.LastAccessTime != nil { - return false - } - } else if !this.LastAccessTime.Equal(*that1.LastAccessTime) { - return false - } - if this.Identity != that1.Identity { - return false - } - if this.RatePerSecond != that1.RatePerSecond { - return false - } - return true + return 0 } -func (this *StickyExecutionAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*StickyExecutionAttributes) - if !ok { - that2, ok := that.(StickyExecutionAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.WorkerTaskList.Equal(that1.WorkerTaskList) { - return false - } - if this.ScheduleToStartTimeout != nil && that1.ScheduleToStartTimeout != nil { - if *this.ScheduleToStartTimeout != *that1.ScheduleToStartTimeout { - return false - } - } else if this.ScheduleToStartTimeout != nil { - return false - } else if that1.ScheduleToStartTimeout != nil { - return false - } - return true -} -func (this *TaskList) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.TaskList{") - s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n") - s = append(s, "Kind: "+fmt.Sprintf("%#v", this.Kind)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *TaskListMetadata) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&apiv1.TaskListMetadata{") - if this.MaxTasksPerSecond != nil { - s = append(s, "MaxTasksPerSecond: "+fmt.Sprintf("%#v", this.MaxTasksPerSecond)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *TaskListPartitionMetadata) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.TaskListPartitionMetadata{") - s = append(s, "Key: "+fmt.Sprintf("%#v", this.Key)+",\n") - s = append(s, "OwnerHostName: "+fmt.Sprintf("%#v", this.OwnerHostName)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *TaskListStatus) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 9) - s = append(s, "&apiv1.TaskListStatus{") - s = append(s, "BacklogCountHint: "+fmt.Sprintf("%#v", this.BacklogCountHint)+",\n") - s = append(s, "ReadLevel: "+fmt.Sprintf("%#v", this.ReadLevel)+",\n") - s = append(s, "AckLevel: "+fmt.Sprintf("%#v", this.AckLevel)+",\n") - s = append(s, "RatePerSecond: "+fmt.Sprintf("%#v", this.RatePerSecond)+",\n") - if this.TaskIdBlock != nil { - s = append(s, "TaskIdBlock: "+fmt.Sprintf("%#v", this.TaskIdBlock)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *TaskIDBlock) GoString() string { - if this == nil { - return "nil" +func (x *TaskListStatus) GetReadLevel() int64 { + if x != nil { + return x.ReadLevel } - s := make([]string, 0, 6) - s = append(s, "&apiv1.TaskIDBlock{") - s = append(s, "StartId: "+fmt.Sprintf("%#v", this.StartId)+",\n") - s = append(s, "EndId: "+fmt.Sprintf("%#v", this.EndId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *PollerInfo) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&apiv1.PollerInfo{") - s = append(s, "LastAccessTime: "+fmt.Sprintf("%#v", this.LastAccessTime)+",\n") - s = append(s, "Identity: "+fmt.Sprintf("%#v", this.Identity)+",\n") - s = append(s, "RatePerSecond: "+fmt.Sprintf("%#v", this.RatePerSecond)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *StickyExecutionAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.StickyExecutionAttributes{") - if this.WorkerTaskList != nil { - s = append(s, "WorkerTaskList: "+fmt.Sprintf("%#v", this.WorkerTaskList)+",\n") - } - s = append(s, "ScheduleToStartTimeout: "+fmt.Sprintf("%#v", this.ScheduleToStartTimeout)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func valueToGoStringTasklist(v interface{}, typ string) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) -} -func (m *TaskList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TaskList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return 0 } -func (m *TaskList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Kind != 0 { - i = encodeVarintTasklist(dAtA, i, uint64(m.Kind)) - i-- - dAtA[i] = 0x10 +func (x *TaskListStatus) GetAckLevel() int64 { + if x != nil { + return x.AckLevel } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintTasklist(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return 0 } -func (m *TaskListMetadata) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *TaskListStatus) GetRatePerSecond() float64 { + if x != nil { + return x.RatePerSecond } - return dAtA[:n], nil -} - -func (m *TaskListMetadata) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return 0 } -func (m *TaskListMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.MaxTasksPerSecond != nil { - { - size, err := m.MaxTasksPerSecond.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTasklist(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa +func (x *TaskListStatus) GetTaskIdBlock() *TaskIDBlock { + if x != nil { + return x.TaskIdBlock } - return len(dAtA) - i, nil + return nil } -func (m *TaskListPartitionMetadata) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} +type TaskIDBlock struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *TaskListPartitionMetadata) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + StartId int64 `protobuf:"varint,1,opt,name=start_id,json=startId,proto3" json:"start_id,omitempty"` + EndId int64 `protobuf:"varint,2,opt,name=end_id,json=endId,proto3" json:"end_id,omitempty"` } -func (m *TaskListPartitionMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.OwnerHostName) > 0 { - i -= len(m.OwnerHostName) - copy(dAtA[i:], m.OwnerHostName) - i = encodeVarintTasklist(dAtA, i, uint64(len(m.OwnerHostName))) - i-- - dAtA[i] = 0x12 - } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintTasklist(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0xa +func (x *TaskIDBlock) Reset() { + *x = TaskIDBlock{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_tasklist_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return len(dAtA) - i, nil } -func (m *TaskListStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *TaskIDBlock) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TaskListStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*TaskIDBlock) ProtoMessage() {} -func (m *TaskListStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.TaskIdBlock != nil { - { - size, err := m.TaskIdBlock.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTasklist(dAtA, i, uint64(size)) +func (x *TaskIDBlock) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_tasklist_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0x2a - } - if m.RatePerSecond != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.RatePerSecond)))) - i-- - dAtA[i] = 0x21 - } - if m.AckLevel != 0 { - i = encodeVarintTasklist(dAtA, i, uint64(m.AckLevel)) - i-- - dAtA[i] = 0x18 - } - if m.ReadLevel != 0 { - i = encodeVarintTasklist(dAtA, i, uint64(m.ReadLevel)) - i-- - dAtA[i] = 0x10 + return ms } - if m.BacklogCountHint != 0 { - i = encodeVarintTasklist(dAtA, i, uint64(m.BacklogCountHint)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *TaskIDBlock) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil + return mi.MessageOf(x) } -func (m *TaskIDBlock) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use TaskIDBlock.ProtoReflect.Descriptor instead. +func (*TaskIDBlock) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_tasklist_proto_rawDescGZIP(), []int{4} } -func (m *TaskIDBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.EndId != 0 { - i = encodeVarintTasklist(dAtA, i, uint64(m.EndId)) - i-- - dAtA[i] = 0x10 - } - if m.StartId != 0 { - i = encodeVarintTasklist(dAtA, i, uint64(m.StartId)) - i-- - dAtA[i] = 0x8 +func (x *TaskIDBlock) GetStartId() int64 { + if x != nil { + return x.StartId } - return len(dAtA) - i, nil + return 0 } -func (m *PollerInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *TaskIDBlock) GetEndId() int64 { + if x != nil { + return x.EndId } - return dAtA[:n], nil + return 0 } -func (m *PollerInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +type PollerInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *PollerInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.RatePerSecond != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.RatePerSecond)))) - i-- - dAtA[i] = 0x19 - } - if len(m.Identity) > 0 { - i -= len(m.Identity) - copy(dAtA[i:], m.Identity) - i = encodeVarintTasklist(dAtA, i, uint64(len(m.Identity))) - i-- - dAtA[i] = 0x12 - } - if m.LastAccessTime != nil { - n3, err3 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.LastAccessTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.LastAccessTime):]) - if err3 != nil { - return 0, err3 - } - i -= n3 - i = encodeVarintTasklist(dAtA, i, uint64(n3)) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + LastAccessTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=last_access_time,json=lastAccessTime,proto3" json:"last_access_time,omitempty"` + Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` + RatePerSecond float64 `protobuf:"fixed64,3,opt,name=rate_per_second,json=ratePerSecond,proto3" json:"rate_per_second,omitempty"` } -func (m *StickyExecutionAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *PollerInfo) Reset() { + *x = PollerInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_tasklist_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return dAtA[:n], nil } -func (m *StickyExecutionAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *PollerInfo) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *StickyExecutionAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ScheduleToStartTimeout != nil { - n4, err4 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.ScheduleToStartTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ScheduleToStartTimeout):]) - if err4 != nil { - return 0, err4 - } - i -= n4 - i = encodeVarintTasklist(dAtA, i, uint64(n4)) - i-- - dAtA[i] = 0x12 - } - if m.WorkerTaskList != nil { - { - size, err := m.WorkerTaskList.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTasklist(dAtA, i, uint64(size)) +func (*PollerInfo) ProtoMessage() {} + +func (x *PollerInfo) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_tasklist_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0xa + return ms } - return len(dAtA) - i, nil + return mi.MessageOf(x) } -func encodeVarintTasklist(dAtA []byte, offset int, v uint64) int { - offset -= sovTasklist(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *TaskList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovTasklist(uint64(l)) - } - if m.Kind != 0 { - n += 1 + sovTasklist(uint64(m.Kind)) - } - return n +// Deprecated: Use PollerInfo.ProtoReflect.Descriptor instead. +func (*PollerInfo) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_tasklist_proto_rawDescGZIP(), []int{5} } -func (m *TaskListMetadata) Size() (n int) { - if m == nil { - return 0 +func (x *PollerInfo) GetLastAccessTime() *timestamppb.Timestamp { + if x != nil { + return x.LastAccessTime } - var l int - _ = l - if m.MaxTasksPerSecond != nil { - l = m.MaxTasksPerSecond.Size() - n += 1 + l + sovTasklist(uint64(l)) - } - return n + return nil } -func (m *TaskListPartitionMetadata) Size() (n int) { - if m == nil { - return 0 +func (x *PollerInfo) GetIdentity() string { + if x != nil { + return x.Identity } - var l int - _ = l - l = len(m.Key) - if l > 0 { - n += 1 + l + sovTasklist(uint64(l)) - } - l = len(m.OwnerHostName) - if l > 0 { - n += 1 + l + sovTasklist(uint64(l)) - } - return n + return "" } -func (m *TaskListStatus) Size() (n int) { - if m == nil { - return 0 +func (x *PollerInfo) GetRatePerSecond() float64 { + if x != nil { + return x.RatePerSecond } - var l int - _ = l - if m.BacklogCountHint != 0 { - n += 1 + sovTasklist(uint64(m.BacklogCountHint)) - } - if m.ReadLevel != 0 { - n += 1 + sovTasklist(uint64(m.ReadLevel)) - } - if m.AckLevel != 0 { - n += 1 + sovTasklist(uint64(m.AckLevel)) - } - if m.RatePerSecond != 0 { - n += 9 - } - if m.TaskIdBlock != nil { - l = m.TaskIdBlock.Size() - n += 1 + l + sovTasklist(uint64(l)) - } - return n + return 0 } -func (m *TaskIDBlock) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.StartId != 0 { - n += 1 + sovTasklist(uint64(m.StartId)) - } - if m.EndId != 0 { - n += 1 + sovTasklist(uint64(m.EndId)) - } - return n -} +type StickyExecutionAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *PollerInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.LastAccessTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.LastAccessTime) - n += 1 + l + sovTasklist(uint64(l)) - } - l = len(m.Identity) - if l > 0 { - n += 1 + l + sovTasklist(uint64(l)) - } - if m.RatePerSecond != 0 { - n += 9 - } - return n + WorkerTaskList *TaskList `protobuf:"bytes,1,opt,name=worker_task_list,json=workerTaskList,proto3" json:"worker_task_list,omitempty"` + ScheduleToStartTimeout *durationpb.Duration `protobuf:"bytes,2,opt,name=schedule_to_start_timeout,json=scheduleToStartTimeout,proto3" json:"schedule_to_start_timeout,omitempty"` } -func (m *StickyExecutionAttributes) Size() (n int) { - if m == nil { - return 0 +func (x *StickyExecutionAttributes) Reset() { + *x = StickyExecutionAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_tasklist_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - var l int - _ = l - if m.WorkerTaskList != nil { - l = m.WorkerTaskList.Size() - n += 1 + l + sovTasklist(uint64(l)) - } - if m.ScheduleToStartTimeout != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ScheduleToStartTimeout) - n += 1 + l + sovTasklist(uint64(l)) - } - return n } -func sovTasklist(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 +func (x *StickyExecutionAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -func sozTasklist(x uint64) (n int) { - return sovTasklist(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *TaskList) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TaskList{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, - `}`, - }, "") - return s -} -func (this *TaskListMetadata) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TaskListMetadata{`, - `MaxTasksPerSecond:` + strings.Replace(fmt.Sprintf("%v", this.MaxTasksPerSecond), "DoubleValue", "types.DoubleValue", 1) + `,`, - `}`, - }, "") - return s -} -func (this *TaskListPartitionMetadata) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TaskListPartitionMetadata{`, - `Key:` + fmt.Sprintf("%v", this.Key) + `,`, - `OwnerHostName:` + fmt.Sprintf("%v", this.OwnerHostName) + `,`, - `}`, - }, "") - return s -} -func (this *TaskListStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TaskListStatus{`, - `BacklogCountHint:` + fmt.Sprintf("%v", this.BacklogCountHint) + `,`, - `ReadLevel:` + fmt.Sprintf("%v", this.ReadLevel) + `,`, - `AckLevel:` + fmt.Sprintf("%v", this.AckLevel) + `,`, - `RatePerSecond:` + fmt.Sprintf("%v", this.RatePerSecond) + `,`, - `TaskIdBlock:` + strings.Replace(this.TaskIdBlock.String(), "TaskIDBlock", "TaskIDBlock", 1) + `,`, - `}`, - }, "") - return s -} -func (this *TaskIDBlock) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TaskIDBlock{`, - `StartId:` + fmt.Sprintf("%v", this.StartId) + `,`, - `EndId:` + fmt.Sprintf("%v", this.EndId) + `,`, - `}`, - }, "") - return s -} -func (this *PollerInfo) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PollerInfo{`, - `LastAccessTime:` + strings.Replace(fmt.Sprintf("%v", this.LastAccessTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `Identity:` + fmt.Sprintf("%v", this.Identity) + `,`, - `RatePerSecond:` + fmt.Sprintf("%v", this.RatePerSecond) + `,`, - `}`, - }, "") - return s -} -func (this *StickyExecutionAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&StickyExecutionAttributes{`, - `WorkerTaskList:` + strings.Replace(this.WorkerTaskList.String(), "TaskList", "TaskList", 1) + `,`, - `ScheduleToStartTimeout:` + strings.Replace(fmt.Sprintf("%v", this.ScheduleToStartTimeout), "Duration", "duration.Duration", 1) + `,`, - `}`, - }, "") - return s -} -func valueToStringTasklist(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *TaskList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTasklist - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TaskList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TaskList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTasklist - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTasklist - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTasklist - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) - } - m.Kind = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTasklist - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Kind |= TaskListKind(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipTasklist(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthTasklist - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTasklist - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TaskListMetadata) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTasklist - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TaskListMetadata: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TaskListMetadata: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxTasksPerSecond", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTasklist - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTasklist - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTasklist - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MaxTasksPerSecond == nil { - m.MaxTasksPerSecond = &types.DoubleValue{} - } - if err := m.MaxTasksPerSecond.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTasklist(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthTasklist - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTasklist - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } +func (*StickyExecutionAttributes) ProtoMessage() {} - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TaskListPartitionMetadata) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTasklist - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TaskListPartitionMetadata: wiretype end group for non-group") +func (x *StickyExecutionAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_tasklist_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - if fieldNum <= 0 { - return fmt.Errorf("proto: TaskListPartitionMetadata: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTasklist - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTasklist - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTasklist - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Key = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OwnerHostName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTasklist - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTasklist - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTasklist - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.OwnerHostName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTasklist(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthTasklist - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTasklist - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF + return ms } - return nil + return mi.MessageOf(x) } -func (m *TaskListStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTasklist - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TaskListStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TaskListStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BacklogCountHint", wireType) - } - m.BacklogCountHint = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTasklist - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.BacklogCountHint |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadLevel", wireType) - } - m.ReadLevel = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTasklist - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ReadLevel |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AckLevel", wireType) - } - m.AckLevel = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTasklist - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.AckLevel |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field RatePerSecond", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.RatePerSecond = float64(math.Float64frombits(v)) - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskIdBlock", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTasklist - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTasklist - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTasklist - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TaskIdBlock == nil { - m.TaskIdBlock = &TaskIDBlock{} - } - if err := m.TaskIdBlock.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTasklist(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthTasklist - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTasklist - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +// Deprecated: Use StickyExecutionAttributes.ProtoReflect.Descriptor instead. +func (*StickyExecutionAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_tasklist_proto_rawDescGZIP(), []int{6} } -func (m *TaskIDBlock) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTasklist - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TaskIDBlock: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TaskIDBlock: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartId", wireType) - } - m.StartId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTasklist - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EndId", wireType) - } - m.EndId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTasklist - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EndId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipTasklist(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthTasklist - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTasklist - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *StickyExecutionAttributes) GetWorkerTaskList() *TaskList { + if x != nil { + return x.WorkerTaskList } return nil } -func (m *PollerInfo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTasklist - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PollerInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PollerInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastAccessTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTasklist - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTasklist - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTasklist - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LastAccessTime == nil { - m.LastAccessTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.LastAccessTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTasklist - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTasklist - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTasklist - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identity = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field RatePerSecond", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.RatePerSecond = float64(math.Float64frombits(v)) - default: - iNdEx = preIndex - skippy, err := skipTasklist(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthTasklist - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTasklist - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *StickyExecutionAttributes) GetScheduleToStartTimeout() *durationpb.Duration { + if x != nil { + return x.ScheduleToStartTimeout } return nil } -func (m *StickyExecutionAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTasklist - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StickyExecutionAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StickyExecutionAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkerTaskList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTasklist - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTasklist - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTasklist - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkerTaskList == nil { - m.WorkerTaskList = &TaskList{} - } - if err := m.WorkerTaskList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduleToStartTimeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTasklist - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTasklist - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTasklist - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ScheduleToStartTimeout == nil { - m.ScheduleToStartTimeout = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.ScheduleToStartTimeout, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTasklist(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthTasklist - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthTasklist - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipTasklist(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowTasklist - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowTasklist - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowTasklist - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthTasklist - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupTasklist - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthTasklist - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF +var File_uber_cadence_api_v1_tasklist_proto protoreflect.FileDescriptor + +var file_uber_cadence_api_v1_tasklist_proto_rawDesc = []byte{ + 0x0a, 0x22, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, + 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x55, 0x0a, 0x08, 0x54, 0x61, + 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x04, 0x6b, 0x69, + 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, + 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x04, 0x6b, 0x69, 0x6e, + 0x64, 0x22, 0x61, 0x0a, 0x10, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x4d, 0x0a, 0x14, 0x6d, 0x61, 0x78, 0x5f, 0x74, 0x61, 0x73, + 0x6b, 0x73, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x52, 0x11, 0x6d, 0x61, 0x78, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x50, 0x65, 0x72, 0x53, 0x65, + 0x63, 0x6f, 0x6e, 0x64, 0x22, 0x55, 0x0a, 0x19, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, + 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x6b, 0x65, 0x79, 0x12, 0x26, 0x0a, 0x0f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x68, 0x6f, 0x73, + 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6f, 0x77, + 0x6e, 0x65, 0x72, 0x48, 0x6f, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xe8, 0x01, 0x0a, 0x0e, + 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2c, + 0x0a, 0x12, 0x62, 0x61, 0x63, 0x6b, 0x6c, 0x6f, 0x67, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, + 0x68, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x62, 0x61, 0x63, 0x6b, + 0x6c, 0x6f, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x48, 0x69, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, + 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x09, 0x72, 0x65, 0x61, 0x64, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x1b, 0x0a, 0x09, 0x61, + 0x63, 0x6b, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, + 0x61, 0x63, 0x6b, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x26, 0x0a, 0x0f, 0x72, 0x61, 0x74, 0x65, + 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x01, 0x52, 0x0d, 0x72, 0x61, 0x74, 0x65, 0x50, 0x65, 0x72, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, + 0x12, 0x44, 0x0a, 0x0d, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x5f, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, + 0x73, 0x6b, 0x49, 0x44, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x0b, 0x74, 0x61, 0x73, 0x6b, 0x49, + 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x22, 0x3f, 0x0a, 0x0b, 0x54, 0x61, 0x73, 0x6b, 0x49, 0x44, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x73, 0x74, 0x61, 0x72, 0x74, 0x49, 0x64, + 0x12, 0x15, 0x0a, 0x06, 0x65, 0x6e, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x05, 0x65, 0x6e, 0x64, 0x49, 0x64, 0x22, 0x96, 0x01, 0x0a, 0x0a, 0x50, 0x6f, 0x6c, 0x6c, + 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x44, 0x0a, 0x10, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x61, + 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0e, 0x6c, 0x61, + 0x73, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, + 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x26, 0x0a, 0x0f, 0x72, 0x61, 0x74, 0x65, + 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x01, 0x52, 0x0d, 0x72, 0x61, 0x74, 0x65, 0x50, 0x65, 0x72, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, + 0x22, 0xba, 0x01, 0x0a, 0x19, 0x53, 0x74, 0x69, 0x63, 0x6b, 0x79, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x47, + 0x0a, 0x10, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6c, 0x69, + 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, + 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x0e, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x54, + 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x54, 0x0a, 0x19, 0x73, 0x63, 0x68, 0x65, 0x64, + 0x75, 0x6c, 0x65, 0x5f, 0x74, 0x6f, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, + 0x65, 0x6f, 0x75, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x16, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x54, + 0x6f, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x2a, 0x60, 0x0a, + 0x0c, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x1a, 0x0a, + 0x16, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x4c, 0x49, 0x53, 0x54, 0x5f, 0x4b, 0x49, 0x4e, 0x44, 0x5f, + 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x41, 0x53, + 0x4b, 0x5f, 0x4c, 0x49, 0x53, 0x54, 0x5f, 0x4b, 0x49, 0x4e, 0x44, 0x5f, 0x4e, 0x4f, 0x52, 0x4d, + 0x41, 0x4c, 0x10, 0x01, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x4c, 0x49, 0x53, + 0x54, 0x5f, 0x4b, 0x49, 0x4e, 0x44, 0x5f, 0x53, 0x54, 0x49, 0x43, 0x4b, 0x59, 0x10, 0x02, 0x2a, + 0x64, 0x0a, 0x0c, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x1a, 0x0a, 0x16, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x4c, 0x49, 0x53, 0x54, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x54, + 0x41, 0x53, 0x4b, 0x5f, 0x4c, 0x49, 0x53, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x45, + 0x43, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x12, 0x1b, 0x0a, 0x17, 0x54, 0x41, 0x53, 0x4b, + 0x5f, 0x4c, 0x49, 0x53, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, + 0x49, 0x54, 0x59, 0x10, 0x02, 0x42, 0x56, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x42, 0x08, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2f, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x2e, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x70, 0x69, 0x76, 0x31, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - ErrInvalidLengthTasklist = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTasklist = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupTasklist = fmt.Errorf("proto: unexpected end of group") + file_uber_cadence_api_v1_tasklist_proto_rawDescOnce sync.Once + file_uber_cadence_api_v1_tasklist_proto_rawDescData = file_uber_cadence_api_v1_tasklist_proto_rawDesc ) + +func file_uber_cadence_api_v1_tasklist_proto_rawDescGZIP() []byte { + file_uber_cadence_api_v1_tasklist_proto_rawDescOnce.Do(func() { + file_uber_cadence_api_v1_tasklist_proto_rawDescData = protoimpl.X.CompressGZIP(file_uber_cadence_api_v1_tasklist_proto_rawDescData) + }) + return file_uber_cadence_api_v1_tasklist_proto_rawDescData +} + +var file_uber_cadence_api_v1_tasklist_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_uber_cadence_api_v1_tasklist_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_uber_cadence_api_v1_tasklist_proto_goTypes = []interface{}{ + (TaskListKind)(0), // 0: uber.cadence.api.v1.TaskListKind + (TaskListType)(0), // 1: uber.cadence.api.v1.TaskListType + (*TaskList)(nil), // 2: uber.cadence.api.v1.TaskList + (*TaskListMetadata)(nil), // 3: uber.cadence.api.v1.TaskListMetadata + (*TaskListPartitionMetadata)(nil), // 4: uber.cadence.api.v1.TaskListPartitionMetadata + (*TaskListStatus)(nil), // 5: uber.cadence.api.v1.TaskListStatus + (*TaskIDBlock)(nil), // 6: uber.cadence.api.v1.TaskIDBlock + (*PollerInfo)(nil), // 7: uber.cadence.api.v1.PollerInfo + (*StickyExecutionAttributes)(nil), // 8: uber.cadence.api.v1.StickyExecutionAttributes + (*wrapperspb.DoubleValue)(nil), // 9: google.protobuf.DoubleValue + (*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp + (*durationpb.Duration)(nil), // 11: google.protobuf.Duration +} +var file_uber_cadence_api_v1_tasklist_proto_depIdxs = []int32{ + 0, // 0: uber.cadence.api.v1.TaskList.kind:type_name -> uber.cadence.api.v1.TaskListKind + 9, // 1: uber.cadence.api.v1.TaskListMetadata.max_tasks_per_second:type_name -> google.protobuf.DoubleValue + 6, // 2: uber.cadence.api.v1.TaskListStatus.task_id_block:type_name -> uber.cadence.api.v1.TaskIDBlock + 10, // 3: uber.cadence.api.v1.PollerInfo.last_access_time:type_name -> google.protobuf.Timestamp + 2, // 4: uber.cadence.api.v1.StickyExecutionAttributes.worker_task_list:type_name -> uber.cadence.api.v1.TaskList + 11, // 5: uber.cadence.api.v1.StickyExecutionAttributes.schedule_to_start_timeout:type_name -> google.protobuf.Duration + 6, // [6:6] is the sub-list for method output_type + 6, // [6:6] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name +} + +func init() { file_uber_cadence_api_v1_tasklist_proto_init() } +func file_uber_cadence_api_v1_tasklist_proto_init() { + if File_uber_cadence_api_v1_tasklist_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_uber_cadence_api_v1_tasklist_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_tasklist_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskListMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_tasklist_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskListPartitionMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_tasklist_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskListStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_tasklist_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskIDBlock); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_tasklist_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PollerInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_tasklist_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StickyExecutionAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_uber_cadence_api_v1_tasklist_proto_rawDesc, + NumEnums: 2, + NumMessages: 7, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_uber_cadence_api_v1_tasklist_proto_goTypes, + DependencyIndexes: file_uber_cadence_api_v1_tasklist_proto_depIdxs, + EnumInfos: file_uber_cadence_api_v1_tasklist_proto_enumTypes, + MessageInfos: file_uber_cadence_api_v1_tasklist_proto_msgTypes, + }.Build() + File_uber_cadence_api_v1_tasklist_proto = out.File + file_uber_cadence_api_v1_tasklist_proto_rawDesc = nil + file_uber_cadence_api_v1_tasklist_proto_goTypes = nil + file_uber_cadence_api_v1_tasklist_proto_depIdxs = nil +} diff --git a/.gen/proto/api/v1/visibility.pb.go b/.gen/proto/api/v1/visibility.pb.go index 30da2e88898..d3242a6e198 100644 --- a/.gen/proto/api/v1/visibility.pb.go +++ b/.gen/proto/api/v1/visibility.pb.go @@ -1,1242 +1,481 @@ -// The MIT License (MIT) - -// Copyright (c) 2017-2020 Uber Technologies Inc. - +// 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 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. +// 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. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.14.0 // source: uber/cadence/api/v1/visibility.proto package apiv1 import ( - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" reflect "reflect" - strconv "strconv" - strings "strings" - time "time" + sync "sync" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" - _ "github.com/golang/protobuf/ptypes/timestamp" + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf -var _ = time.Kitchen +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// 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 +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type IndexedValueType int32 const ( - INDEXED_VALUE_TYPE_INVALID IndexedValueType = 0 - INDEXED_VALUE_TYPE_STRING IndexedValueType = 1 - INDEXED_VALUE_TYPE_KEYWORD IndexedValueType = 2 - INDEXED_VALUE_TYPE_INT IndexedValueType = 3 - INDEXED_VALUE_TYPE_DOUBLE IndexedValueType = 4 - INDEXED_VALUE_TYPE_BOOL IndexedValueType = 5 - INDEXED_VALUE_TYPE_DATETIME IndexedValueType = 6 + IndexedValueType_INDEXED_VALUE_TYPE_INVALID IndexedValueType = 0 + IndexedValueType_INDEXED_VALUE_TYPE_STRING IndexedValueType = 1 + IndexedValueType_INDEXED_VALUE_TYPE_KEYWORD IndexedValueType = 2 + IndexedValueType_INDEXED_VALUE_TYPE_INT IndexedValueType = 3 + IndexedValueType_INDEXED_VALUE_TYPE_DOUBLE IndexedValueType = 4 + IndexedValueType_INDEXED_VALUE_TYPE_BOOL IndexedValueType = 5 + IndexedValueType_INDEXED_VALUE_TYPE_DATETIME IndexedValueType = 6 ) -var IndexedValueType_name = map[int32]string{ - 0: "INDEXED_VALUE_TYPE_INVALID", - 1: "INDEXED_VALUE_TYPE_STRING", - 2: "INDEXED_VALUE_TYPE_KEYWORD", - 3: "INDEXED_VALUE_TYPE_INT", - 4: "INDEXED_VALUE_TYPE_DOUBLE", - 5: "INDEXED_VALUE_TYPE_BOOL", - 6: "INDEXED_VALUE_TYPE_DATETIME", -} +// Enum value maps for IndexedValueType. +var ( + IndexedValueType_name = map[int32]string{ + 0: "INDEXED_VALUE_TYPE_INVALID", + 1: "INDEXED_VALUE_TYPE_STRING", + 2: "INDEXED_VALUE_TYPE_KEYWORD", + 3: "INDEXED_VALUE_TYPE_INT", + 4: "INDEXED_VALUE_TYPE_DOUBLE", + 5: "INDEXED_VALUE_TYPE_BOOL", + 6: "INDEXED_VALUE_TYPE_DATETIME", + } + IndexedValueType_value = map[string]int32{ + "INDEXED_VALUE_TYPE_INVALID": 0, + "INDEXED_VALUE_TYPE_STRING": 1, + "INDEXED_VALUE_TYPE_KEYWORD": 2, + "INDEXED_VALUE_TYPE_INT": 3, + "INDEXED_VALUE_TYPE_DOUBLE": 4, + "INDEXED_VALUE_TYPE_BOOL": 5, + "INDEXED_VALUE_TYPE_DATETIME": 6, + } +) -var IndexedValueType_value = map[string]int32{ - "INDEXED_VALUE_TYPE_INVALID": 0, - "INDEXED_VALUE_TYPE_STRING": 1, - "INDEXED_VALUE_TYPE_KEYWORD": 2, - "INDEXED_VALUE_TYPE_INT": 3, - "INDEXED_VALUE_TYPE_DOUBLE": 4, - "INDEXED_VALUE_TYPE_BOOL": 5, - "INDEXED_VALUE_TYPE_DATETIME": 6, +func (x IndexedValueType) Enum() *IndexedValueType { + p := new(IndexedValueType) + *p = x + return p } -func (IndexedValueType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_c1b2132ef24217c8, []int{0} +func (x IndexedValueType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -type WorkflowExecutionFilter struct { - WorkflowId string `protobuf:"bytes,1,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` - RunId string `protobuf:"bytes,2,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` +func (IndexedValueType) Descriptor() protoreflect.EnumDescriptor { + return file_uber_cadence_api_v1_visibility_proto_enumTypes[0].Descriptor() } -func (m *WorkflowExecutionFilter) Reset() { *m = WorkflowExecutionFilter{} } -func (*WorkflowExecutionFilter) ProtoMessage() {} -func (*WorkflowExecutionFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_c1b2132ef24217c8, []int{0} -} -func (m *WorkflowExecutionFilter) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowExecutionFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowExecutionFilter.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *WorkflowExecutionFilter) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowExecutionFilter.Merge(m, src) -} -func (m *WorkflowExecutionFilter) XXX_Size() int { - return m.Size() -} -func (m *WorkflowExecutionFilter) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowExecutionFilter.DiscardUnknown(m) +func (IndexedValueType) Type() protoreflect.EnumType { + return &file_uber_cadence_api_v1_visibility_proto_enumTypes[0] } -var xxx_messageInfo_WorkflowExecutionFilter proto.InternalMessageInfo - -func (m *WorkflowExecutionFilter) GetWorkflowId() string { - if m != nil { - return m.WorkflowId - } - return "" +func (x IndexedValueType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -func (m *WorkflowExecutionFilter) GetRunId() string { - if m != nil { - return m.RunId - } - return "" +// Deprecated: Use IndexedValueType.Descriptor instead. +func (IndexedValueType) EnumDescriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_visibility_proto_rawDescGZIP(), []int{0} } -type WorkflowTypeFilter struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} +type WorkflowExecutionFilter struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *WorkflowTypeFilter) Reset() { *m = WorkflowTypeFilter{} } -func (*WorkflowTypeFilter) ProtoMessage() {} -func (*WorkflowTypeFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_c1b2132ef24217c8, []int{1} -} -func (m *WorkflowTypeFilter) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowTypeFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowTypeFilter.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *WorkflowTypeFilter) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowTypeFilter.Merge(m, src) -} -func (m *WorkflowTypeFilter) XXX_Size() int { - return m.Size() -} -func (m *WorkflowTypeFilter) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowTypeFilter.DiscardUnknown(m) + WorkflowId string `protobuf:"bytes,1,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` + RunId string `protobuf:"bytes,2,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` } -var xxx_messageInfo_WorkflowTypeFilter proto.InternalMessageInfo - -func (m *WorkflowTypeFilter) GetName() string { - if m != nil { - return m.Name +func (x *WorkflowExecutionFilter) Reset() { + *x = WorkflowExecutionFilter{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_visibility_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -type StartTimeFilter struct { - EarliestTime *time.Time `protobuf:"bytes,1,opt,name=earliest_time,json=earliestTime,proto3,stdtime" json:"earliest_time,omitempty"` - LatestTime *time.Time `protobuf:"bytes,2,opt,name=latest_time,json=latestTime,proto3,stdtime" json:"latest_time,omitempty"` +func (x *WorkflowExecutionFilter) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *StartTimeFilter) Reset() { *m = StartTimeFilter{} } -func (*StartTimeFilter) ProtoMessage() {} -func (*StartTimeFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_c1b2132ef24217c8, []int{2} -} -func (m *StartTimeFilter) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StartTimeFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StartTimeFilter.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *StartTimeFilter) XXX_Merge(src proto.Message) { - xxx_messageInfo_StartTimeFilter.Merge(m, src) -} -func (m *StartTimeFilter) XXX_Size() int { - return m.Size() -} -func (m *StartTimeFilter) XXX_DiscardUnknown() { - xxx_messageInfo_StartTimeFilter.DiscardUnknown(m) -} - -var xxx_messageInfo_StartTimeFilter proto.InternalMessageInfo - -func (m *StartTimeFilter) GetEarliestTime() *time.Time { - if m != nil { - return m.EarliestTime - } - return nil -} +func (*WorkflowExecutionFilter) ProtoMessage() {} -func (m *StartTimeFilter) GetLatestTime() *time.Time { - if m != nil { - return m.LatestTime +func (x *WorkflowExecutionFilter) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_visibility_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -type StatusFilter struct { - Status WorkflowExecutionCloseStatus `protobuf:"varint,1,opt,name=status,proto3,enum=uber.cadence.api.v1.WorkflowExecutionCloseStatus" json:"status,omitempty"` +// Deprecated: Use WorkflowExecutionFilter.ProtoReflect.Descriptor instead. +func (*WorkflowExecutionFilter) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_visibility_proto_rawDescGZIP(), []int{0} } -func (m *StatusFilter) Reset() { *m = StatusFilter{} } -func (*StatusFilter) ProtoMessage() {} -func (*StatusFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_c1b2132ef24217c8, []int{3} -} -func (m *StatusFilter) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StatusFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StatusFilter.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *WorkflowExecutionFilter) GetWorkflowId() string { + if x != nil { + return x.WorkflowId } -} -func (m *StatusFilter) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatusFilter.Merge(m, src) -} -func (m *StatusFilter) XXX_Size() int { - return m.Size() -} -func (m *StatusFilter) XXX_DiscardUnknown() { - xxx_messageInfo_StatusFilter.DiscardUnknown(m) + return "" } -var xxx_messageInfo_StatusFilter proto.InternalMessageInfo - -func (m *StatusFilter) GetStatus() WorkflowExecutionCloseStatus { - if m != nil { - return m.Status +func (x *WorkflowExecutionFilter) GetRunId() string { + if x != nil { + return x.RunId } - return WORKFLOW_EXECUTION_CLOSE_STATUS_INVALID -} - -func init() { - proto.RegisterEnum("uber.cadence.api.v1.IndexedValueType", IndexedValueType_name, IndexedValueType_value) - proto.RegisterType((*WorkflowExecutionFilter)(nil), "uber.cadence.api.v1.WorkflowExecutionFilter") - proto.RegisterType((*WorkflowTypeFilter)(nil), "uber.cadence.api.v1.WorkflowTypeFilter") - proto.RegisterType((*StartTimeFilter)(nil), "uber.cadence.api.v1.StartTimeFilter") - proto.RegisterType((*StatusFilter)(nil), "uber.cadence.api.v1.StatusFilter") -} - -func init() { - proto.RegisterFile("github.com/uber/cadence/.gen/proto/api/v1/visibility.proto", fileDescriptor_c1b2132ef24217c8) + return "" } -var fileDescriptor_c1b2132ef24217c8 = []byte{ - // 517 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0xc1, 0x8e, 0xd2, 0x50, - 0x14, 0x86, 0x7b, 0x11, 0x88, 0x1e, 0x46, 0x6d, 0xae, 0x51, 0x94, 0xd1, 0x8b, 0x21, 0x2e, 0x26, - 0x2e, 0xda, 0x30, 0x3e, 0x01, 0x48, 0x35, 0x8d, 0x08, 0x08, 0x1d, 0x46, 0xdc, 0xe0, 0x85, 0xde, - 0x21, 0x37, 0x96, 0xde, 0xa6, 0xbd, 0x65, 0x66, 0x76, 0x3e, 0xc2, 0xec, 0x7d, 0x01, 0x1f, 0xc5, - 0x25, 0xcb, 0xd9, 0x29, 0x65, 0x63, 0x5c, 0xcd, 0x23, 0x98, 0x96, 0xd6, 0x8d, 0x9d, 0x64, 0x76, - 0xed, 0xf9, 0xff, 0xff, 0xeb, 0xe9, 0x7f, 0xe0, 0x45, 0x38, 0x63, 0xbe, 0x3e, 0xa7, 0x36, 0x73, - 0xe7, 0x4c, 0xa7, 0x1e, 0xd7, 0x57, 0x4d, 0x7d, 0xc5, 0x03, 0x3e, 0xe3, 0x0e, 0x97, 0xe7, 0x9a, - 0xe7, 0x0b, 0x29, 0xf0, 0x83, 0xd8, 0xa5, 0xa5, 0x2e, 0x8d, 0x7a, 0x5c, 0x5b, 0x35, 0x6b, 0xf5, - 0x85, 0x10, 0x0b, 0x87, 0xe9, 0x89, 0x65, 0x16, 0x9e, 0xe8, 0x92, 0x2f, 0x59, 0x20, 0xe9, 0xd2, - 0xdb, 0xa5, 0x6a, 0x4f, 0x6d, 0xe6, 0x31, 0x37, 0xce, 0x70, 0x16, 0xe8, 0x0b, 0xb1, 0x10, 0xc9, - 0x3c, 0x55, 0x1b, 0x79, 0x5f, 0x3e, 0x15, 0xfe, 0x97, 0x13, 0x47, 0x9c, 0xee, 0x3c, 0x8d, 0x0f, - 0x50, 0x3d, 0x4e, 0x27, 0xc6, 0x19, 0x9b, 0x87, 0x92, 0x0b, 0xf7, 0x0d, 0x77, 0x24, 0xf3, 0x71, - 0x1d, 0x2a, 0x99, 0x79, 0xca, 0xed, 0xc7, 0xe8, 0x39, 0x3a, 0xb8, 0x33, 0x84, 0x6c, 0x64, 0xda, - 0xf8, 0x21, 0x94, 0xfd, 0xd0, 0x8d, 0xb5, 0x42, 0xa2, 0x95, 0xfc, 0xd0, 0x35, 0xed, 0xc6, 0x01, - 0xe0, 0x0c, 0x69, 0x9d, 0x7b, 0x2c, 0xa5, 0x61, 0x28, 0xba, 0x74, 0xc9, 0x52, 0x4c, 0xf2, 0xdc, - 0xf8, 0x86, 0xe0, 0xfe, 0x48, 0x52, 0x5f, 0x5a, 0x7c, 0x99, 0xf9, 0x0c, 0xb8, 0xcb, 0xa8, 0xef, - 0x70, 0x16, 0xc8, 0x69, 0xfc, 0xbb, 0x49, 0xa0, 0x72, 0x58, 0xd3, 0x76, 0x5d, 0x68, 0x59, 0x17, - 0x9a, 0x95, 0x75, 0xd1, 0x2e, 0x5e, 0xfc, 0xac, 0xa3, 0xe1, 0x5e, 0x16, 0x8b, 0x05, 0xdc, 0x82, - 0x8a, 0x43, 0xe5, 0x3f, 0x48, 0xe1, 0x86, 0x10, 0xd8, 0x85, 0xe2, 0x71, 0x63, 0x02, 0x7b, 0x23, - 0x49, 0x65, 0x18, 0xa4, 0x9b, 0x99, 0x50, 0x0e, 0x92, 0xf7, 0x64, 0xa5, 0x7b, 0x87, 0x4d, 0x2d, - 0xe7, 0x66, 0xda, 0x7f, 0x6d, 0xbe, 0x76, 0x44, 0xc0, 0x76, 0xa0, 0x61, 0x0a, 0x78, 0xf9, 0x07, - 0x81, 0x6a, 0xba, 0x36, 0x3b, 0x63, 0xf6, 0x98, 0x3a, 0x21, 0x8b, 0x7b, 0xc2, 0x04, 0x6a, 0x66, - 0xaf, 0x63, 0x7c, 0x34, 0x3a, 0xd3, 0x71, 0xab, 0x7b, 0x64, 0x4c, 0xad, 0xc9, 0xc0, 0x98, 0x9a, - 0xbd, 0x71, 0xab, 0x6b, 0x76, 0x54, 0x05, 0x3f, 0x83, 0x27, 0x39, 0xfa, 0xc8, 0x1a, 0x9a, 0xbd, - 0xb7, 0x2a, 0xba, 0x26, 0xfe, 0xce, 0x98, 0x1c, 0xf7, 0x87, 0x1d, 0xb5, 0x80, 0x6b, 0xf0, 0x28, - 0x17, 0x6f, 0xa9, 0xb7, 0xae, 0x41, 0x77, 0xfa, 0x47, 0xed, 0xae, 0xa1, 0x16, 0xf1, 0x3e, 0x54, - 0x73, 0xe4, 0x76, 0xbf, 0xdf, 0x55, 0x4b, 0xb8, 0x0e, 0xfb, 0x79, 0xd9, 0x96, 0x65, 0x58, 0xe6, - 0x7b, 0x43, 0x2d, 0xb7, 0x3f, 0xaf, 0x37, 0x44, 0xb9, 0xdc, 0x10, 0xe5, 0x6a, 0x43, 0xd0, 0xd7, - 0x88, 0xa0, 0xef, 0x11, 0x41, 0x3f, 0x22, 0x82, 0xd6, 0x11, 0x41, 0xbf, 0x22, 0x82, 0x7e, 0x47, - 0x44, 0xb9, 0x8a, 0x08, 0xba, 0xd8, 0x12, 0x65, 0xbd, 0x25, 0xca, 0xe5, 0x96, 0x28, 0x50, 0x9d, - 0x8b, 0x65, 0x5e, 0xc1, 0xed, 0xdb, 0x2d, 0x8f, 0x0f, 0xe2, 0xfb, 0x0d, 0xd0, 0xa7, 0x12, 0xf5, - 0xf8, 0xaa, 0x39, 0x2b, 0x27, 0xf7, 0x7c, 0xf5, 0x37, 0x00, 0x00, 0xff, 0xff, 0xc6, 0x69, 0x21, - 0xe5, 0x6b, 0x03, 0x00, 0x00, -} +type WorkflowTypeFilter struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x IndexedValueType) String() string { - s, ok := IndexedValueType_name[int32(x)] - if ok { - return s - } - return strconv.Itoa(int(x)) + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } -func (this *WorkflowExecutionFilter) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*WorkflowExecutionFilter) - if !ok { - that2, ok := that.(WorkflowExecutionFilter) - if ok { - that1 = &that2 - } else { - return false - } +func (x *WorkflowTypeFilter) Reset() { + *x = WorkflowTypeFilter{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_visibility_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.WorkflowId != that1.WorkflowId { - return false - } - if this.RunId != that1.RunId { - return false - } - return true } -func (this *WorkflowTypeFilter) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*WorkflowTypeFilter) - if !ok { - that2, ok := that.(WorkflowTypeFilter) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Name != that1.Name { - return false - } - return true +func (x *WorkflowTypeFilter) String() string { + return protoimpl.X.MessageStringOf(x) } -func (this *StartTimeFilter) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*StartTimeFilter) - if !ok { - that2, ok := that.(StartTimeFilter) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if that1.EarliestTime == nil { - if this.EarliestTime != nil { - return false - } - } else if !this.EarliestTime.Equal(*that1.EarliestTime) { - return false - } - if that1.LatestTime == nil { - if this.LatestTime != nil { - return false - } - } else if !this.LatestTime.Equal(*that1.LatestTime) { - return false - } - return true -} -func (this *StatusFilter) Equal(that interface{}) bool { - if that == nil { - return this == nil - } +func (*WorkflowTypeFilter) ProtoMessage() {} - that1, ok := that.(*StatusFilter) - if !ok { - that2, ok := that.(StatusFilter) - if ok { - that1 = &that2 - } else { - return false +func (x *WorkflowTypeFilter) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_visibility_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Status != that1.Status { - return false - } - return true -} -func (this *WorkflowExecutionFilter) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.WorkflowExecutionFilter{") - s = append(s, "WorkflowId: "+fmt.Sprintf("%#v", this.WorkflowId)+",\n") - s = append(s, "RunId: "+fmt.Sprintf("%#v", this.RunId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *WorkflowTypeFilter) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&apiv1.WorkflowTypeFilter{") - s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *StartTimeFilter) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&apiv1.StartTimeFilter{") - s = append(s, "EarliestTime: "+fmt.Sprintf("%#v", this.EarliestTime)+",\n") - s = append(s, "LatestTime: "+fmt.Sprintf("%#v", this.LatestTime)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *StatusFilter) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&apiv1.StatusFilter{") - s = append(s, "Status: "+fmt.Sprintf("%#v", this.Status)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func valueToGoStringVisibility(v interface{}, typ string) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) -} -func (m *WorkflowExecutionFilter) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil + return mi.MessageOf(x) } -func (m *WorkflowExecutionFilter) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use WorkflowTypeFilter.ProtoReflect.Descriptor instead. +func (*WorkflowTypeFilter) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_visibility_proto_rawDescGZIP(), []int{1} } -func (m *WorkflowExecutionFilter) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RunId) > 0 { - i -= len(m.RunId) - copy(dAtA[i:], m.RunId) - i = encodeVarintVisibility(dAtA, i, uint64(len(m.RunId))) - i-- - dAtA[i] = 0x12 - } - if len(m.WorkflowId) > 0 { - i -= len(m.WorkflowId) - copy(dAtA[i:], m.WorkflowId) - i = encodeVarintVisibility(dAtA, i, uint64(len(m.WorkflowId))) - i-- - dAtA[i] = 0xa +func (x *WorkflowTypeFilter) GetName() string { + if x != nil { + return x.Name } - return len(dAtA) - i, nil + return "" } -func (m *WorkflowTypeFilter) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} +type StartTimeFilter struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *WorkflowTypeFilter) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + EarliestTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=earliest_time,json=earliestTime,proto3" json:"earliest_time,omitempty"` + LatestTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=latest_time,json=latestTime,proto3" json:"latest_time,omitempty"` } -func (m *WorkflowTypeFilter) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintVisibility(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa +func (x *StartTimeFilter) Reset() { + *x = StartTimeFilter{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_visibility_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return len(dAtA) - i, nil } -func (m *StartTimeFilter) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *StartTimeFilter) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *StartTimeFilter) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*StartTimeFilter) ProtoMessage() {} -func (m *StartTimeFilter) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.LatestTime != nil { - n1, err1 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.LatestTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.LatestTime):]) - if err1 != nil { - return 0, err1 - } - i -= n1 - i = encodeVarintVisibility(dAtA, i, uint64(n1)) - i-- - dAtA[i] = 0x12 - } - if m.EarliestTime != nil { - n2, err2 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.EarliestTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.EarliestTime):]) - if err2 != nil { - return 0, err2 +func (x *StartTimeFilter) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_visibility_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i -= n2 - i = encodeVarintVisibility(dAtA, i, uint64(n2)) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *StatusFilter) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + return ms } - return dAtA[:n], nil + return mi.MessageOf(x) } -func (m *StatusFilter) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use StartTimeFilter.ProtoReflect.Descriptor instead. +func (*StartTimeFilter) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_visibility_proto_rawDescGZIP(), []int{2} } -func (m *StatusFilter) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Status != 0 { - i = encodeVarintVisibility(dAtA, i, uint64(m.Status)) - i-- - dAtA[i] = 0x8 +func (x *StartTimeFilter) GetEarliestTime() *timestamppb.Timestamp { + if x != nil { + return x.EarliestTime } - return len(dAtA) - i, nil + return nil } -func encodeVarintVisibility(dAtA []byte, offset int, v uint64) int { - offset -= sovVisibility(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ +func (x *StartTimeFilter) GetLatestTime() *timestamppb.Timestamp { + if x != nil { + return x.LatestTime } - dAtA[offset] = uint8(v) - return base -} -func (m *WorkflowExecutionFilter) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.WorkflowId) - if l > 0 { - n += 1 + l + sovVisibility(uint64(l)) - } - l = len(m.RunId) - if l > 0 { - n += 1 + l + sovVisibility(uint64(l)) - } - return n + return nil } -func (m *WorkflowTypeFilter) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovVisibility(uint64(l)) - } - return n -} +type StatusFilter struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *StartTimeFilter) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.EarliestTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.EarliestTime) - n += 1 + l + sovVisibility(uint64(l)) - } - if m.LatestTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.LatestTime) - n += 1 + l + sovVisibility(uint64(l)) - } - return n + Status WorkflowExecutionCloseStatus `protobuf:"varint,1,opt,name=status,proto3,enum=uber.cadence.api.v1.WorkflowExecutionCloseStatus" json:"status,omitempty"` } -func (m *StatusFilter) Size() (n int) { - if m == nil { - return 0 +func (x *StatusFilter) Reset() { + *x = StatusFilter{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_visibility_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - var l int - _ = l - if m.Status != 0 { - n += 1 + sovVisibility(uint64(m.Status)) - } - return n } -func sovVisibility(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozVisibility(x uint64) (n int) { - return sovVisibility(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func (x *StatusFilter) String() string { + return protoimpl.X.MessageStringOf(x) } -func (this *WorkflowExecutionFilter) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&WorkflowExecutionFilter{`, - `WorkflowId:` + fmt.Sprintf("%v", this.WorkflowId) + `,`, - `RunId:` + fmt.Sprintf("%v", this.RunId) + `,`, - `}`, - }, "") - return s -} -func (this *WorkflowTypeFilter) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&WorkflowTypeFilter{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `}`, - }, "") - return s -} -func (this *StartTimeFilter) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&StartTimeFilter{`, - `EarliestTime:` + strings.Replace(fmt.Sprintf("%v", this.EarliestTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `LatestTime:` + strings.Replace(fmt.Sprintf("%v", this.LatestTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `}`, - }, "") - return s -} -func (this *StatusFilter) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&StatusFilter{`, - `Status:` + fmt.Sprintf("%v", this.Status) + `,`, - `}`, - }, "") - return s -} -func valueToStringVisibility(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *WorkflowExecutionFilter) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowExecutionFilter: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowExecutionFilter: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthVisibility - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVisibility - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.WorkflowId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RunId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthVisibility - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVisibility - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RunId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipVisibility(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthVisibility - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthVisibility - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WorkflowTypeFilter) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowTypeFilter: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowTypeFilter: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthVisibility - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVisibility - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipVisibility(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthVisibility - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthVisibility - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } +func (*StatusFilter) ProtoMessage() {} - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StartTimeFilter) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StartTimeFilter: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StartTimeFilter: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EarliestTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthVisibility - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthVisibility - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.EarliestTime == nil { - m.EarliestTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.EarliestTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LatestTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthVisibility - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthVisibility - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LatestTime == nil { - m.LatestTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.LatestTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipVisibility(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthVisibility - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthVisibility - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy +func (x *StatusFilter) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_visibility_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil + return mi.MessageOf(x) } -func (m *StatusFilter) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StatusFilter: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StatusFilter: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - m.Status = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVisibility - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Status |= WorkflowExecutionCloseStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipVisibility(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthVisibility - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthVisibility - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipVisibility(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowVisibility - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowVisibility - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowVisibility - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthVisibility - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupVisibility - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthVisibility - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF +// Deprecated: Use StatusFilter.ProtoReflect.Descriptor instead. +func (*StatusFilter) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_visibility_proto_rawDescGZIP(), []int{3} +} + +func (x *StatusFilter) GetStatus() WorkflowExecutionCloseStatus { + if x != nil { + return x.Status + } + return WorkflowExecutionCloseStatus_WORKFLOW_EXECUTION_CLOSE_STATUS_INVALID +} + +var File_uber_cadence_api_v1_visibility_proto protoreflect.FileDescriptor + +var file_uber_cadence_api_v1_visibility_proto_rawDesc = []byte{ + 0x0a, 0x24, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x75, 0x62, + 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, + 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x22, 0x51, 0x0a, 0x17, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x77, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0a, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, + 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x75, + 0x6e, 0x49, 0x64, 0x22, 0x28, 0x0a, 0x12, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, + 0x79, 0x70, 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x8f, 0x01, + 0x0a, 0x0f, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, + 0x72, 0x12, 0x3f, 0x0a, 0x0d, 0x65, 0x61, 0x72, 0x6c, 0x69, 0x65, 0x73, 0x74, 0x5f, 0x74, 0x69, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x65, 0x61, 0x72, 0x6c, 0x69, 0x65, 0x73, 0x74, 0x54, 0x69, + 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x74, 0x69, 0x6d, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x22, + 0x59, 0x0a, 0x0c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, + 0x49, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x31, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2a, 0xea, 0x01, 0x0a, 0x10, 0x49, + 0x6e, 0x64, 0x65, 0x78, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x1e, 0x0a, 0x1a, 0x49, 0x4e, 0x44, 0x45, 0x58, 0x45, 0x44, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, + 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, + 0x1d, 0x0a, 0x19, 0x49, 0x4e, 0x44, 0x45, 0x58, 0x45, 0x44, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, + 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x1e, + 0x0a, 0x1a, 0x49, 0x4e, 0x44, 0x45, 0x58, 0x45, 0x44, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4b, 0x45, 0x59, 0x57, 0x4f, 0x52, 0x44, 0x10, 0x02, 0x12, 0x1a, + 0x0a, 0x16, 0x49, 0x4e, 0x44, 0x45, 0x58, 0x45, 0x44, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x54, 0x10, 0x03, 0x12, 0x1d, 0x0a, 0x19, 0x49, 0x4e, + 0x44, 0x45, 0x58, 0x45, 0x44, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x44, 0x4f, 0x55, 0x42, 0x4c, 0x45, 0x10, 0x04, 0x12, 0x1b, 0x0a, 0x17, 0x49, 0x4e, 0x44, + 0x45, 0x58, 0x45, 0x44, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x42, 0x4f, 0x4f, 0x4c, 0x10, 0x05, 0x12, 0x1f, 0x0a, 0x1b, 0x49, 0x4e, 0x44, 0x45, 0x58, 0x45, + 0x44, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x41, 0x54, + 0x45, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x06, 0x42, 0x56, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x76, 0x31, 0x42, 0x08, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2f, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x62, 0x65, 0x72, 0x2f, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x2e, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x70, 0x69, 0x76, 0x31, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - ErrInvalidLengthVisibility = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowVisibility = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupVisibility = fmt.Errorf("proto: unexpected end of group") + file_uber_cadence_api_v1_visibility_proto_rawDescOnce sync.Once + file_uber_cadence_api_v1_visibility_proto_rawDescData = file_uber_cadence_api_v1_visibility_proto_rawDesc ) + +func file_uber_cadence_api_v1_visibility_proto_rawDescGZIP() []byte { + file_uber_cadence_api_v1_visibility_proto_rawDescOnce.Do(func() { + file_uber_cadence_api_v1_visibility_proto_rawDescData = protoimpl.X.CompressGZIP(file_uber_cadence_api_v1_visibility_proto_rawDescData) + }) + return file_uber_cadence_api_v1_visibility_proto_rawDescData +} + +var file_uber_cadence_api_v1_visibility_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_uber_cadence_api_v1_visibility_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_uber_cadence_api_v1_visibility_proto_goTypes = []interface{}{ + (IndexedValueType)(0), // 0: uber.cadence.api.v1.IndexedValueType + (*WorkflowExecutionFilter)(nil), // 1: uber.cadence.api.v1.WorkflowExecutionFilter + (*WorkflowTypeFilter)(nil), // 2: uber.cadence.api.v1.WorkflowTypeFilter + (*StartTimeFilter)(nil), // 3: uber.cadence.api.v1.StartTimeFilter + (*StatusFilter)(nil), // 4: uber.cadence.api.v1.StatusFilter + (*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp + (WorkflowExecutionCloseStatus)(0), // 6: uber.cadence.api.v1.WorkflowExecutionCloseStatus +} +var file_uber_cadence_api_v1_visibility_proto_depIdxs = []int32{ + 5, // 0: uber.cadence.api.v1.StartTimeFilter.earliest_time:type_name -> google.protobuf.Timestamp + 5, // 1: uber.cadence.api.v1.StartTimeFilter.latest_time:type_name -> google.protobuf.Timestamp + 6, // 2: uber.cadence.api.v1.StatusFilter.status:type_name -> uber.cadence.api.v1.WorkflowExecutionCloseStatus + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_uber_cadence_api_v1_visibility_proto_init() } +func file_uber_cadence_api_v1_visibility_proto_init() { + if File_uber_cadence_api_v1_visibility_proto != nil { + return + } + file_uber_cadence_api_v1_workflow_proto_init() + if !protoimpl.UnsafeEnabled { + file_uber_cadence_api_v1_visibility_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowExecutionFilter); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_visibility_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowTypeFilter); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_visibility_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StartTimeFilter); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_visibility_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StatusFilter); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_uber_cadence_api_v1_visibility_proto_rawDesc, + NumEnums: 1, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_uber_cadence_api_v1_visibility_proto_goTypes, + DependencyIndexes: file_uber_cadence_api_v1_visibility_proto_depIdxs, + EnumInfos: file_uber_cadence_api_v1_visibility_proto_enumTypes, + MessageInfos: file_uber_cadence_api_v1_visibility_proto_msgTypes, + }.Build() + File_uber_cadence_api_v1_visibility_proto = out.File + file_uber_cadence_api_v1_visibility_proto_rawDesc = nil + file_uber_cadence_api_v1_visibility_proto_goTypes = nil + file_uber_cadence_api_v1_visibility_proto_depIdxs = nil +} diff --git a/.gen/proto/api/v1/workflow.pb.go b/.gen/proto/api/v1/workflow.pb.go index 975e4e76368..3bc9f55426c 100644 --- a/.gen/proto/api/v1/workflow.pb.go +++ b/.gen/proto/api/v1/workflow.pb.go @@ -1,4964 +1,2041 @@ -// The MIT License (MIT) - -// Copyright (c) 2017-2020 Uber Technologies Inc. - +// 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 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. +// 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. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.14.0 // source: uber/cadence/api/v1/workflow.proto package apiv1 import ( - bytes "bytes" - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" reflect "reflect" - strconv "strconv" - strings "strings" - time "time" - - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" - _ "github.com/golang/protobuf/ptypes/duration" - _ "github.com/golang/protobuf/ptypes/timestamp" + sync "sync" + + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf -var _ = time.Kitchen +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// 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 +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type PendingActivityState int32 const ( - PENDING_ACTIVITY_STATE_INVALID PendingActivityState = 0 - PENDING_ACTIVITY_STATE_SCHEDULED PendingActivityState = 1 - PENDING_ACTIVITY_STATE_STARTED PendingActivityState = 2 - PENDING_ACTIVITY_STATE_CANCEL_REQUESTED PendingActivityState = 3 + PendingActivityState_PENDING_ACTIVITY_STATE_INVALID PendingActivityState = 0 + PendingActivityState_PENDING_ACTIVITY_STATE_SCHEDULED PendingActivityState = 1 + PendingActivityState_PENDING_ACTIVITY_STATE_STARTED PendingActivityState = 2 + PendingActivityState_PENDING_ACTIVITY_STATE_CANCEL_REQUESTED PendingActivityState = 3 +) + +// Enum value maps for PendingActivityState. +var ( + PendingActivityState_name = map[int32]string{ + 0: "PENDING_ACTIVITY_STATE_INVALID", + 1: "PENDING_ACTIVITY_STATE_SCHEDULED", + 2: "PENDING_ACTIVITY_STATE_STARTED", + 3: "PENDING_ACTIVITY_STATE_CANCEL_REQUESTED", + } + PendingActivityState_value = map[string]int32{ + "PENDING_ACTIVITY_STATE_INVALID": 0, + "PENDING_ACTIVITY_STATE_SCHEDULED": 1, + "PENDING_ACTIVITY_STATE_STARTED": 2, + "PENDING_ACTIVITY_STATE_CANCEL_REQUESTED": 3, + } ) -var PendingActivityState_name = map[int32]string{ - 0: "PENDING_ACTIVITY_STATE_INVALID", - 1: "PENDING_ACTIVITY_STATE_SCHEDULED", - 2: "PENDING_ACTIVITY_STATE_STARTED", - 3: "PENDING_ACTIVITY_STATE_CANCEL_REQUESTED", +func (x PendingActivityState) Enum() *PendingActivityState { + p := new(PendingActivityState) + *p = x + return p +} + +func (x PendingActivityState) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (PendingActivityState) Descriptor() protoreflect.EnumDescriptor { + return file_uber_cadence_api_v1_workflow_proto_enumTypes[0].Descriptor() +} + +func (PendingActivityState) Type() protoreflect.EnumType { + return &file_uber_cadence_api_v1_workflow_proto_enumTypes[0] } -var PendingActivityState_value = map[string]int32{ - "PENDING_ACTIVITY_STATE_INVALID": 0, - "PENDING_ACTIVITY_STATE_SCHEDULED": 1, - "PENDING_ACTIVITY_STATE_STARTED": 2, - "PENDING_ACTIVITY_STATE_CANCEL_REQUESTED": 3, +func (x PendingActivityState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use PendingActivityState.Descriptor instead. func (PendingActivityState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_2775eefb5053680f, []int{0} + return file_uber_cadence_api_v1_workflow_proto_rawDescGZIP(), []int{0} } type PendingDecisionState int32 const ( - PENDING_DECISION_STATE_INVALID PendingDecisionState = 0 - PENDING_DECISION_STATE_SCHEDULED PendingDecisionState = 1 - PENDING_DECISION_STATE_STARTED PendingDecisionState = 2 + PendingDecisionState_PENDING_DECISION_STATE_INVALID PendingDecisionState = 0 + PendingDecisionState_PENDING_DECISION_STATE_SCHEDULED PendingDecisionState = 1 + PendingDecisionState_PENDING_DECISION_STATE_STARTED PendingDecisionState = 2 ) -var PendingDecisionState_name = map[int32]string{ - 0: "PENDING_DECISION_STATE_INVALID", - 1: "PENDING_DECISION_STATE_SCHEDULED", - 2: "PENDING_DECISION_STATE_STARTED", +// Enum value maps for PendingDecisionState. +var ( + PendingDecisionState_name = map[int32]string{ + 0: "PENDING_DECISION_STATE_INVALID", + 1: "PENDING_DECISION_STATE_SCHEDULED", + 2: "PENDING_DECISION_STATE_STARTED", + } + PendingDecisionState_value = map[string]int32{ + "PENDING_DECISION_STATE_INVALID": 0, + "PENDING_DECISION_STATE_SCHEDULED": 1, + "PENDING_DECISION_STATE_STARTED": 2, + } +) + +func (x PendingDecisionState) Enum() *PendingDecisionState { + p := new(PendingDecisionState) + *p = x + return p +} + +func (x PendingDecisionState) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -var PendingDecisionState_value = map[string]int32{ - "PENDING_DECISION_STATE_INVALID": 0, - "PENDING_DECISION_STATE_SCHEDULED": 1, - "PENDING_DECISION_STATE_STARTED": 2, +func (PendingDecisionState) Descriptor() protoreflect.EnumDescriptor { + return file_uber_cadence_api_v1_workflow_proto_enumTypes[1].Descriptor() } +func (PendingDecisionState) Type() protoreflect.EnumType { + return &file_uber_cadence_api_v1_workflow_proto_enumTypes[1] +} + +func (x PendingDecisionState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use PendingDecisionState.Descriptor instead. func (PendingDecisionState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_2775eefb5053680f, []int{1} + return file_uber_cadence_api_v1_workflow_proto_rawDescGZIP(), []int{1} } type WorkflowIdReusePolicy int32 const ( - WORKFLOW_ID_REUSE_POLICY_INVALID WorkflowIdReusePolicy = 0 + WorkflowIdReusePolicy_WORKFLOW_ID_REUSE_POLICY_INVALID WorkflowIdReusePolicy = 0 // Allow start a workflow execution using the same workflow ID, // when workflow not running, and the last execution close state is in [terminated, cancelled, timeouted, failed]. - WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY WorkflowIdReusePolicy = 1 + WorkflowIdReusePolicy_WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY WorkflowIdReusePolicy = 1 // Allow start a workflow execution using the same workflow ID, when workflow not running. - WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE WorkflowIdReusePolicy = 2 + WorkflowIdReusePolicy_WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE WorkflowIdReusePolicy = 2 // Do not allow start a workflow execution using the same workflow ID at all. - WORKFLOW_ID_REUSE_POLICY_REJECT_DUPLICATE WorkflowIdReusePolicy = 3 + WorkflowIdReusePolicy_WORKFLOW_ID_REUSE_POLICY_REJECT_DUPLICATE WorkflowIdReusePolicy = 3 // If a workflow is running using the same workflow ID, terminate it and start a new one. - WORKFLOW_ID_REUSE_POLICY_TERMINATE_IF_RUNNING WorkflowIdReusePolicy = 4 + WorkflowIdReusePolicy_WORKFLOW_ID_REUSE_POLICY_TERMINATE_IF_RUNNING WorkflowIdReusePolicy = 4 +) + +// Enum value maps for WorkflowIdReusePolicy. +var ( + WorkflowIdReusePolicy_name = map[int32]string{ + 0: "WORKFLOW_ID_REUSE_POLICY_INVALID", + 1: "WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY", + 2: "WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE", + 3: "WORKFLOW_ID_REUSE_POLICY_REJECT_DUPLICATE", + 4: "WORKFLOW_ID_REUSE_POLICY_TERMINATE_IF_RUNNING", + } + WorkflowIdReusePolicy_value = map[string]int32{ + "WORKFLOW_ID_REUSE_POLICY_INVALID": 0, + "WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY": 1, + "WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE": 2, + "WORKFLOW_ID_REUSE_POLICY_REJECT_DUPLICATE": 3, + "WORKFLOW_ID_REUSE_POLICY_TERMINATE_IF_RUNNING": 4, + } ) -var WorkflowIdReusePolicy_name = map[int32]string{ - 0: "WORKFLOW_ID_REUSE_POLICY_INVALID", - 1: "WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY", - 2: "WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE", - 3: "WORKFLOW_ID_REUSE_POLICY_REJECT_DUPLICATE", - 4: "WORKFLOW_ID_REUSE_POLICY_TERMINATE_IF_RUNNING", +func (x WorkflowIdReusePolicy) Enum() *WorkflowIdReusePolicy { + p := new(WorkflowIdReusePolicy) + *p = x + return p } -var WorkflowIdReusePolicy_value = map[string]int32{ - "WORKFLOW_ID_REUSE_POLICY_INVALID": 0, - "WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY": 1, - "WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE": 2, - "WORKFLOW_ID_REUSE_POLICY_REJECT_DUPLICATE": 3, - "WORKFLOW_ID_REUSE_POLICY_TERMINATE_IF_RUNNING": 4, +func (x WorkflowIdReusePolicy) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (WorkflowIdReusePolicy) Descriptor() protoreflect.EnumDescriptor { + return file_uber_cadence_api_v1_workflow_proto_enumTypes[2].Descriptor() +} + +func (WorkflowIdReusePolicy) Type() protoreflect.EnumType { + return &file_uber_cadence_api_v1_workflow_proto_enumTypes[2] +} + +func (x WorkflowIdReusePolicy) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use WorkflowIdReusePolicy.Descriptor instead. func (WorkflowIdReusePolicy) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_2775eefb5053680f, []int{2} + return file_uber_cadence_api_v1_workflow_proto_rawDescGZIP(), []int{2} } type ParentClosePolicy int32 const ( - PARENT_CLOSE_POLICY_INVALID ParentClosePolicy = 0 + ParentClosePolicy_PARENT_CLOSE_POLICY_INVALID ParentClosePolicy = 0 // Abandon means not doing anything on the child workflow. - PARENT_CLOSE_POLICY_ABANDON ParentClosePolicy = 1 + ParentClosePolicy_PARENT_CLOSE_POLICY_ABANDON ParentClosePolicy = 1 // Cancel means requesting cancellation on the child workflow. - PARENT_CLOSE_POLICY_REQUEST_CANCEL ParentClosePolicy = 2 + ParentClosePolicy_PARENT_CLOSE_POLICY_REQUEST_CANCEL ParentClosePolicy = 2 // Terminate means terminating the child workflow. - PARENT_CLOSE_POLICY_TERMINATE ParentClosePolicy = 3 + ParentClosePolicy_PARENT_CLOSE_POLICY_TERMINATE ParentClosePolicy = 3 +) + +// Enum value maps for ParentClosePolicy. +var ( + ParentClosePolicy_name = map[int32]string{ + 0: "PARENT_CLOSE_POLICY_INVALID", + 1: "PARENT_CLOSE_POLICY_ABANDON", + 2: "PARENT_CLOSE_POLICY_REQUEST_CANCEL", + 3: "PARENT_CLOSE_POLICY_TERMINATE", + } + ParentClosePolicy_value = map[string]int32{ + "PARENT_CLOSE_POLICY_INVALID": 0, + "PARENT_CLOSE_POLICY_ABANDON": 1, + "PARENT_CLOSE_POLICY_REQUEST_CANCEL": 2, + "PARENT_CLOSE_POLICY_TERMINATE": 3, + } ) -var ParentClosePolicy_name = map[int32]string{ - 0: "PARENT_CLOSE_POLICY_INVALID", - 1: "PARENT_CLOSE_POLICY_ABANDON", - 2: "PARENT_CLOSE_POLICY_REQUEST_CANCEL", - 3: "PARENT_CLOSE_POLICY_TERMINATE", +func (x ParentClosePolicy) Enum() *ParentClosePolicy { + p := new(ParentClosePolicy) + *p = x + return p +} + +func (x ParentClosePolicy) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ParentClosePolicy) Descriptor() protoreflect.EnumDescriptor { + return file_uber_cadence_api_v1_workflow_proto_enumTypes[3].Descriptor() } -var ParentClosePolicy_value = map[string]int32{ - "PARENT_CLOSE_POLICY_INVALID": 0, - "PARENT_CLOSE_POLICY_ABANDON": 1, - "PARENT_CLOSE_POLICY_REQUEST_CANCEL": 2, - "PARENT_CLOSE_POLICY_TERMINATE": 3, +func (ParentClosePolicy) Type() protoreflect.EnumType { + return &file_uber_cadence_api_v1_workflow_proto_enumTypes[3] } +func (x ParentClosePolicy) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ParentClosePolicy.Descriptor instead. func (ParentClosePolicy) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_2775eefb5053680f, []int{3} + return file_uber_cadence_api_v1_workflow_proto_rawDescGZIP(), []int{3} } type WorkflowExecutionCloseStatus int32 const ( - WORKFLOW_EXECUTION_CLOSE_STATUS_INVALID WorkflowExecutionCloseStatus = 0 - WORKFLOW_EXECUTION_CLOSE_STATUS_COMPLETED WorkflowExecutionCloseStatus = 1 - WORKFLOW_EXECUTION_CLOSE_STATUS_FAILED WorkflowExecutionCloseStatus = 2 - WORKFLOW_EXECUTION_CLOSE_STATUS_CANCELED WorkflowExecutionCloseStatus = 3 - WORKFLOW_EXECUTION_CLOSE_STATUS_TERMINATED WorkflowExecutionCloseStatus = 4 - WORKFLOW_EXECUTION_CLOSE_STATUS_CONTINUED_AS_NEW WorkflowExecutionCloseStatus = 5 - WORKFLOW_EXECUTION_CLOSE_STATUS_TIMED_OUT WorkflowExecutionCloseStatus = 6 + WorkflowExecutionCloseStatus_WORKFLOW_EXECUTION_CLOSE_STATUS_INVALID WorkflowExecutionCloseStatus = 0 + WorkflowExecutionCloseStatus_WORKFLOW_EXECUTION_CLOSE_STATUS_COMPLETED WorkflowExecutionCloseStatus = 1 + WorkflowExecutionCloseStatus_WORKFLOW_EXECUTION_CLOSE_STATUS_FAILED WorkflowExecutionCloseStatus = 2 + WorkflowExecutionCloseStatus_WORKFLOW_EXECUTION_CLOSE_STATUS_CANCELED WorkflowExecutionCloseStatus = 3 + WorkflowExecutionCloseStatus_WORKFLOW_EXECUTION_CLOSE_STATUS_TERMINATED WorkflowExecutionCloseStatus = 4 + WorkflowExecutionCloseStatus_WORKFLOW_EXECUTION_CLOSE_STATUS_CONTINUED_AS_NEW WorkflowExecutionCloseStatus = 5 + WorkflowExecutionCloseStatus_WORKFLOW_EXECUTION_CLOSE_STATUS_TIMED_OUT WorkflowExecutionCloseStatus = 6 +) + +// Enum value maps for WorkflowExecutionCloseStatus. +var ( + WorkflowExecutionCloseStatus_name = map[int32]string{ + 0: "WORKFLOW_EXECUTION_CLOSE_STATUS_INVALID", + 1: "WORKFLOW_EXECUTION_CLOSE_STATUS_COMPLETED", + 2: "WORKFLOW_EXECUTION_CLOSE_STATUS_FAILED", + 3: "WORKFLOW_EXECUTION_CLOSE_STATUS_CANCELED", + 4: "WORKFLOW_EXECUTION_CLOSE_STATUS_TERMINATED", + 5: "WORKFLOW_EXECUTION_CLOSE_STATUS_CONTINUED_AS_NEW", + 6: "WORKFLOW_EXECUTION_CLOSE_STATUS_TIMED_OUT", + } + WorkflowExecutionCloseStatus_value = map[string]int32{ + "WORKFLOW_EXECUTION_CLOSE_STATUS_INVALID": 0, + "WORKFLOW_EXECUTION_CLOSE_STATUS_COMPLETED": 1, + "WORKFLOW_EXECUTION_CLOSE_STATUS_FAILED": 2, + "WORKFLOW_EXECUTION_CLOSE_STATUS_CANCELED": 3, + "WORKFLOW_EXECUTION_CLOSE_STATUS_TERMINATED": 4, + "WORKFLOW_EXECUTION_CLOSE_STATUS_CONTINUED_AS_NEW": 5, + "WORKFLOW_EXECUTION_CLOSE_STATUS_TIMED_OUT": 6, + } ) -var WorkflowExecutionCloseStatus_name = map[int32]string{ - 0: "WORKFLOW_EXECUTION_CLOSE_STATUS_INVALID", - 1: "WORKFLOW_EXECUTION_CLOSE_STATUS_COMPLETED", - 2: "WORKFLOW_EXECUTION_CLOSE_STATUS_FAILED", - 3: "WORKFLOW_EXECUTION_CLOSE_STATUS_CANCELED", - 4: "WORKFLOW_EXECUTION_CLOSE_STATUS_TERMINATED", - 5: "WORKFLOW_EXECUTION_CLOSE_STATUS_CONTINUED_AS_NEW", - 6: "WORKFLOW_EXECUTION_CLOSE_STATUS_TIMED_OUT", +func (x WorkflowExecutionCloseStatus) Enum() *WorkflowExecutionCloseStatus { + p := new(WorkflowExecutionCloseStatus) + *p = x + return p +} + +func (x WorkflowExecutionCloseStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (WorkflowExecutionCloseStatus) Descriptor() protoreflect.EnumDescriptor { + return file_uber_cadence_api_v1_workflow_proto_enumTypes[4].Descriptor() +} + +func (WorkflowExecutionCloseStatus) Type() protoreflect.EnumType { + return &file_uber_cadence_api_v1_workflow_proto_enumTypes[4] } -var WorkflowExecutionCloseStatus_value = map[string]int32{ - "WORKFLOW_EXECUTION_CLOSE_STATUS_INVALID": 0, - "WORKFLOW_EXECUTION_CLOSE_STATUS_COMPLETED": 1, - "WORKFLOW_EXECUTION_CLOSE_STATUS_FAILED": 2, - "WORKFLOW_EXECUTION_CLOSE_STATUS_CANCELED": 3, - "WORKFLOW_EXECUTION_CLOSE_STATUS_TERMINATED": 4, - "WORKFLOW_EXECUTION_CLOSE_STATUS_CONTINUED_AS_NEW": 5, - "WORKFLOW_EXECUTION_CLOSE_STATUS_TIMED_OUT": 6, +func (x WorkflowExecutionCloseStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use WorkflowExecutionCloseStatus.Descriptor instead. func (WorkflowExecutionCloseStatus) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_2775eefb5053680f, []int{4} + return file_uber_cadence_api_v1_workflow_proto_rawDescGZIP(), []int{4} } type ContinueAsNewInitiator int32 const ( - CONTINUE_AS_NEW_INITIATOR_INVALID ContinueAsNewInitiator = 0 - CONTINUE_AS_NEW_INITIATOR_DECIDER ContinueAsNewInitiator = 1 - CONTINUE_AS_NEW_INITIATOR_RETRY_POLICY ContinueAsNewInitiator = 2 - CONTINUE_AS_NEW_INITIATOR_CRON_SCHEDULE ContinueAsNewInitiator = 3 + ContinueAsNewInitiator_CONTINUE_AS_NEW_INITIATOR_INVALID ContinueAsNewInitiator = 0 + ContinueAsNewInitiator_CONTINUE_AS_NEW_INITIATOR_DECIDER ContinueAsNewInitiator = 1 + ContinueAsNewInitiator_CONTINUE_AS_NEW_INITIATOR_RETRY_POLICY ContinueAsNewInitiator = 2 + ContinueAsNewInitiator_CONTINUE_AS_NEW_INITIATOR_CRON_SCHEDULE ContinueAsNewInitiator = 3 +) + +// Enum value maps for ContinueAsNewInitiator. +var ( + ContinueAsNewInitiator_name = map[int32]string{ + 0: "CONTINUE_AS_NEW_INITIATOR_INVALID", + 1: "CONTINUE_AS_NEW_INITIATOR_DECIDER", + 2: "CONTINUE_AS_NEW_INITIATOR_RETRY_POLICY", + 3: "CONTINUE_AS_NEW_INITIATOR_CRON_SCHEDULE", + } + ContinueAsNewInitiator_value = map[string]int32{ + "CONTINUE_AS_NEW_INITIATOR_INVALID": 0, + "CONTINUE_AS_NEW_INITIATOR_DECIDER": 1, + "CONTINUE_AS_NEW_INITIATOR_RETRY_POLICY": 2, + "CONTINUE_AS_NEW_INITIATOR_CRON_SCHEDULE": 3, + } ) -var ContinueAsNewInitiator_name = map[int32]string{ - 0: "CONTINUE_AS_NEW_INITIATOR_INVALID", - 1: "CONTINUE_AS_NEW_INITIATOR_DECIDER", - 2: "CONTINUE_AS_NEW_INITIATOR_RETRY_POLICY", - 3: "CONTINUE_AS_NEW_INITIATOR_CRON_SCHEDULE", +func (x ContinueAsNewInitiator) Enum() *ContinueAsNewInitiator { + p := new(ContinueAsNewInitiator) + *p = x + return p +} + +func (x ContinueAsNewInitiator) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ContinueAsNewInitiator) Descriptor() protoreflect.EnumDescriptor { + return file_uber_cadence_api_v1_workflow_proto_enumTypes[5].Descriptor() +} + +func (ContinueAsNewInitiator) Type() protoreflect.EnumType { + return &file_uber_cadence_api_v1_workflow_proto_enumTypes[5] } -var ContinueAsNewInitiator_value = map[string]int32{ - "CONTINUE_AS_NEW_INITIATOR_INVALID": 0, - "CONTINUE_AS_NEW_INITIATOR_DECIDER": 1, - "CONTINUE_AS_NEW_INITIATOR_RETRY_POLICY": 2, - "CONTINUE_AS_NEW_INITIATOR_CRON_SCHEDULE": 3, +func (x ContinueAsNewInitiator) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use ContinueAsNewInitiator.Descriptor instead. func (ContinueAsNewInitiator) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_2775eefb5053680f, []int{5} + return file_uber_cadence_api_v1_workflow_proto_rawDescGZIP(), []int{5} } type TimeoutType int32 const ( - TIMEOUT_TYPE_INVALID TimeoutType = 0 - TIMEOUT_TYPE_START_TO_CLOSE TimeoutType = 1 - TIMEOUT_TYPE_SCHEDULE_TO_START TimeoutType = 2 - TIMEOUT_TYPE_SCHEDULE_TO_CLOSE TimeoutType = 3 - TIMEOUT_TYPE_HEARTBEAT TimeoutType = 4 + TimeoutType_TIMEOUT_TYPE_INVALID TimeoutType = 0 + TimeoutType_TIMEOUT_TYPE_START_TO_CLOSE TimeoutType = 1 + TimeoutType_TIMEOUT_TYPE_SCHEDULE_TO_START TimeoutType = 2 + TimeoutType_TIMEOUT_TYPE_SCHEDULE_TO_CLOSE TimeoutType = 3 + TimeoutType_TIMEOUT_TYPE_HEARTBEAT TimeoutType = 4 ) -var TimeoutType_name = map[int32]string{ - 0: "TIMEOUT_TYPE_INVALID", - 1: "TIMEOUT_TYPE_START_TO_CLOSE", - 2: "TIMEOUT_TYPE_SCHEDULE_TO_START", - 3: "TIMEOUT_TYPE_SCHEDULE_TO_CLOSE", - 4: "TIMEOUT_TYPE_HEARTBEAT", +// Enum value maps for TimeoutType. +var ( + TimeoutType_name = map[int32]string{ + 0: "TIMEOUT_TYPE_INVALID", + 1: "TIMEOUT_TYPE_START_TO_CLOSE", + 2: "TIMEOUT_TYPE_SCHEDULE_TO_START", + 3: "TIMEOUT_TYPE_SCHEDULE_TO_CLOSE", + 4: "TIMEOUT_TYPE_HEARTBEAT", + } + TimeoutType_value = map[string]int32{ + "TIMEOUT_TYPE_INVALID": 0, + "TIMEOUT_TYPE_START_TO_CLOSE": 1, + "TIMEOUT_TYPE_SCHEDULE_TO_START": 2, + "TIMEOUT_TYPE_SCHEDULE_TO_CLOSE": 3, + "TIMEOUT_TYPE_HEARTBEAT": 4, + } +) + +func (x TimeoutType) Enum() *TimeoutType { + p := new(TimeoutType) + *p = x + return p +} + +func (x TimeoutType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (TimeoutType) Descriptor() protoreflect.EnumDescriptor { + return file_uber_cadence_api_v1_workflow_proto_enumTypes[6].Descriptor() +} + +func (TimeoutType) Type() protoreflect.EnumType { + return &file_uber_cadence_api_v1_workflow_proto_enumTypes[6] } -var TimeoutType_value = map[string]int32{ - "TIMEOUT_TYPE_INVALID": 0, - "TIMEOUT_TYPE_START_TO_CLOSE": 1, - "TIMEOUT_TYPE_SCHEDULE_TO_START": 2, - "TIMEOUT_TYPE_SCHEDULE_TO_CLOSE": 3, - "TIMEOUT_TYPE_HEARTBEAT": 4, +func (x TimeoutType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use TimeoutType.Descriptor instead. func (TimeoutType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_2775eefb5053680f, []int{6} + return file_uber_cadence_api_v1_workflow_proto_rawDescGZIP(), []int{6} } type DecisionTaskFailedCause int32 const ( - DECISION_TASK_FAILED_CAUSE_INVALID DecisionTaskFailedCause = 0 - DECISION_TASK_FAILED_CAUSE_UNHANDLED_DECISION DecisionTaskFailedCause = 1 - DECISION_TASK_FAILED_CAUSE_BAD_SCHEDULE_ACTIVITY_ATTRIBUTES DecisionTaskFailedCause = 2 - DECISION_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_ACTIVITY_ATTRIBUTES DecisionTaskFailedCause = 3 - DECISION_TASK_FAILED_CAUSE_BAD_START_TIMER_ATTRIBUTES DecisionTaskFailedCause = 4 - DECISION_TASK_FAILED_CAUSE_BAD_CANCEL_TIMER_ATTRIBUTES DecisionTaskFailedCause = 5 - DECISION_TASK_FAILED_CAUSE_BAD_RECORD_MARKER_ATTRIBUTES DecisionTaskFailedCause = 6 - DECISION_TASK_FAILED_CAUSE_BAD_COMPLETE_WORKFLOW_EXECUTION_ATTRIBUTES DecisionTaskFailedCause = 7 - DECISION_TASK_FAILED_CAUSE_BAD_FAIL_WORKFLOW_EXECUTION_ATTRIBUTES DecisionTaskFailedCause = 8 - DECISION_TASK_FAILED_CAUSE_BAD_CANCEL_WORKFLOW_EXECUTION_ATTRIBUTES DecisionTaskFailedCause = 9 - DECISION_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_ATTRIBUTES DecisionTaskFailedCause = 10 - DECISION_TASK_FAILED_CAUSE_BAD_CONTINUE_AS_NEW_ATTRIBUTES DecisionTaskFailedCause = 11 - DECISION_TASK_FAILED_CAUSE_START_TIMER_DUPLICATE_ID DecisionTaskFailedCause = 12 - DECISION_TASK_FAILED_CAUSE_RESET_STICKY_TASK_LIST DecisionTaskFailedCause = 13 - DECISION_TASK_FAILED_CAUSE_WORKFLOW_WORKER_UNHANDLED_FAILURE DecisionTaskFailedCause = 14 - DECISION_TASK_FAILED_CAUSE_BAD_SIGNAL_WORKFLOW_EXECUTION_ATTRIBUTES DecisionTaskFailedCause = 15 - DECISION_TASK_FAILED_CAUSE_BAD_START_CHILD_EXECUTION_ATTRIBUTES DecisionTaskFailedCause = 16 - DECISION_TASK_FAILED_CAUSE_FORCE_CLOSE_DECISION DecisionTaskFailedCause = 17 - DECISION_TASK_FAILED_CAUSE_FAILOVER_CLOSE_DECISION DecisionTaskFailedCause = 18 - DECISION_TASK_FAILED_CAUSE_BAD_SIGNAL_INPUT_SIZE DecisionTaskFailedCause = 19 - DECISION_TASK_FAILED_CAUSE_RESET_WORKFLOW DecisionTaskFailedCause = 20 - DECISION_TASK_FAILED_CAUSE_BAD_BINARY DecisionTaskFailedCause = 21 - DECISION_TASK_FAILED_CAUSE_SCHEDULE_ACTIVITY_DUPLICATE_ID DecisionTaskFailedCause = 22 - DECISION_TASK_FAILED_CAUSE_BAD_SEARCH_ATTRIBUTES DecisionTaskFailedCause = 23 + DecisionTaskFailedCause_DECISION_TASK_FAILED_CAUSE_INVALID DecisionTaskFailedCause = 0 + DecisionTaskFailedCause_DECISION_TASK_FAILED_CAUSE_UNHANDLED_DECISION DecisionTaskFailedCause = 1 + DecisionTaskFailedCause_DECISION_TASK_FAILED_CAUSE_BAD_SCHEDULE_ACTIVITY_ATTRIBUTES DecisionTaskFailedCause = 2 + DecisionTaskFailedCause_DECISION_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_ACTIVITY_ATTRIBUTES DecisionTaskFailedCause = 3 + DecisionTaskFailedCause_DECISION_TASK_FAILED_CAUSE_BAD_START_TIMER_ATTRIBUTES DecisionTaskFailedCause = 4 + DecisionTaskFailedCause_DECISION_TASK_FAILED_CAUSE_BAD_CANCEL_TIMER_ATTRIBUTES DecisionTaskFailedCause = 5 + DecisionTaskFailedCause_DECISION_TASK_FAILED_CAUSE_BAD_RECORD_MARKER_ATTRIBUTES DecisionTaskFailedCause = 6 + DecisionTaskFailedCause_DECISION_TASK_FAILED_CAUSE_BAD_COMPLETE_WORKFLOW_EXECUTION_ATTRIBUTES DecisionTaskFailedCause = 7 + DecisionTaskFailedCause_DECISION_TASK_FAILED_CAUSE_BAD_FAIL_WORKFLOW_EXECUTION_ATTRIBUTES DecisionTaskFailedCause = 8 + DecisionTaskFailedCause_DECISION_TASK_FAILED_CAUSE_BAD_CANCEL_WORKFLOW_EXECUTION_ATTRIBUTES DecisionTaskFailedCause = 9 + DecisionTaskFailedCause_DECISION_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_ATTRIBUTES DecisionTaskFailedCause = 10 + DecisionTaskFailedCause_DECISION_TASK_FAILED_CAUSE_BAD_CONTINUE_AS_NEW_ATTRIBUTES DecisionTaskFailedCause = 11 + DecisionTaskFailedCause_DECISION_TASK_FAILED_CAUSE_START_TIMER_DUPLICATE_ID DecisionTaskFailedCause = 12 + DecisionTaskFailedCause_DECISION_TASK_FAILED_CAUSE_RESET_STICKY_TASK_LIST DecisionTaskFailedCause = 13 + DecisionTaskFailedCause_DECISION_TASK_FAILED_CAUSE_WORKFLOW_WORKER_UNHANDLED_FAILURE DecisionTaskFailedCause = 14 + DecisionTaskFailedCause_DECISION_TASK_FAILED_CAUSE_BAD_SIGNAL_WORKFLOW_EXECUTION_ATTRIBUTES DecisionTaskFailedCause = 15 + DecisionTaskFailedCause_DECISION_TASK_FAILED_CAUSE_BAD_START_CHILD_EXECUTION_ATTRIBUTES DecisionTaskFailedCause = 16 + DecisionTaskFailedCause_DECISION_TASK_FAILED_CAUSE_FORCE_CLOSE_DECISION DecisionTaskFailedCause = 17 + DecisionTaskFailedCause_DECISION_TASK_FAILED_CAUSE_FAILOVER_CLOSE_DECISION DecisionTaskFailedCause = 18 + DecisionTaskFailedCause_DECISION_TASK_FAILED_CAUSE_BAD_SIGNAL_INPUT_SIZE DecisionTaskFailedCause = 19 + DecisionTaskFailedCause_DECISION_TASK_FAILED_CAUSE_RESET_WORKFLOW DecisionTaskFailedCause = 20 + DecisionTaskFailedCause_DECISION_TASK_FAILED_CAUSE_BAD_BINARY DecisionTaskFailedCause = 21 + DecisionTaskFailedCause_DECISION_TASK_FAILED_CAUSE_SCHEDULE_ACTIVITY_DUPLICATE_ID DecisionTaskFailedCause = 22 + DecisionTaskFailedCause_DECISION_TASK_FAILED_CAUSE_BAD_SEARCH_ATTRIBUTES DecisionTaskFailedCause = 23 +) + +// Enum value maps for DecisionTaskFailedCause. +var ( + DecisionTaskFailedCause_name = map[int32]string{ + 0: "DECISION_TASK_FAILED_CAUSE_INVALID", + 1: "DECISION_TASK_FAILED_CAUSE_UNHANDLED_DECISION", + 2: "DECISION_TASK_FAILED_CAUSE_BAD_SCHEDULE_ACTIVITY_ATTRIBUTES", + 3: "DECISION_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_ACTIVITY_ATTRIBUTES", + 4: "DECISION_TASK_FAILED_CAUSE_BAD_START_TIMER_ATTRIBUTES", + 5: "DECISION_TASK_FAILED_CAUSE_BAD_CANCEL_TIMER_ATTRIBUTES", + 6: "DECISION_TASK_FAILED_CAUSE_BAD_RECORD_MARKER_ATTRIBUTES", + 7: "DECISION_TASK_FAILED_CAUSE_BAD_COMPLETE_WORKFLOW_EXECUTION_ATTRIBUTES", + 8: "DECISION_TASK_FAILED_CAUSE_BAD_FAIL_WORKFLOW_EXECUTION_ATTRIBUTES", + 9: "DECISION_TASK_FAILED_CAUSE_BAD_CANCEL_WORKFLOW_EXECUTION_ATTRIBUTES", + 10: "DECISION_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_ATTRIBUTES", + 11: "DECISION_TASK_FAILED_CAUSE_BAD_CONTINUE_AS_NEW_ATTRIBUTES", + 12: "DECISION_TASK_FAILED_CAUSE_START_TIMER_DUPLICATE_ID", + 13: "DECISION_TASK_FAILED_CAUSE_RESET_STICKY_TASK_LIST", + 14: "DECISION_TASK_FAILED_CAUSE_WORKFLOW_WORKER_UNHANDLED_FAILURE", + 15: "DECISION_TASK_FAILED_CAUSE_BAD_SIGNAL_WORKFLOW_EXECUTION_ATTRIBUTES", + 16: "DECISION_TASK_FAILED_CAUSE_BAD_START_CHILD_EXECUTION_ATTRIBUTES", + 17: "DECISION_TASK_FAILED_CAUSE_FORCE_CLOSE_DECISION", + 18: "DECISION_TASK_FAILED_CAUSE_FAILOVER_CLOSE_DECISION", + 19: "DECISION_TASK_FAILED_CAUSE_BAD_SIGNAL_INPUT_SIZE", + 20: "DECISION_TASK_FAILED_CAUSE_RESET_WORKFLOW", + 21: "DECISION_TASK_FAILED_CAUSE_BAD_BINARY", + 22: "DECISION_TASK_FAILED_CAUSE_SCHEDULE_ACTIVITY_DUPLICATE_ID", + 23: "DECISION_TASK_FAILED_CAUSE_BAD_SEARCH_ATTRIBUTES", + } + DecisionTaskFailedCause_value = map[string]int32{ + "DECISION_TASK_FAILED_CAUSE_INVALID": 0, + "DECISION_TASK_FAILED_CAUSE_UNHANDLED_DECISION": 1, + "DECISION_TASK_FAILED_CAUSE_BAD_SCHEDULE_ACTIVITY_ATTRIBUTES": 2, + "DECISION_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_ACTIVITY_ATTRIBUTES": 3, + "DECISION_TASK_FAILED_CAUSE_BAD_START_TIMER_ATTRIBUTES": 4, + "DECISION_TASK_FAILED_CAUSE_BAD_CANCEL_TIMER_ATTRIBUTES": 5, + "DECISION_TASK_FAILED_CAUSE_BAD_RECORD_MARKER_ATTRIBUTES": 6, + "DECISION_TASK_FAILED_CAUSE_BAD_COMPLETE_WORKFLOW_EXECUTION_ATTRIBUTES": 7, + "DECISION_TASK_FAILED_CAUSE_BAD_FAIL_WORKFLOW_EXECUTION_ATTRIBUTES": 8, + "DECISION_TASK_FAILED_CAUSE_BAD_CANCEL_WORKFLOW_EXECUTION_ATTRIBUTES": 9, + "DECISION_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_ATTRIBUTES": 10, + "DECISION_TASK_FAILED_CAUSE_BAD_CONTINUE_AS_NEW_ATTRIBUTES": 11, + "DECISION_TASK_FAILED_CAUSE_START_TIMER_DUPLICATE_ID": 12, + "DECISION_TASK_FAILED_CAUSE_RESET_STICKY_TASK_LIST": 13, + "DECISION_TASK_FAILED_CAUSE_WORKFLOW_WORKER_UNHANDLED_FAILURE": 14, + "DECISION_TASK_FAILED_CAUSE_BAD_SIGNAL_WORKFLOW_EXECUTION_ATTRIBUTES": 15, + "DECISION_TASK_FAILED_CAUSE_BAD_START_CHILD_EXECUTION_ATTRIBUTES": 16, + "DECISION_TASK_FAILED_CAUSE_FORCE_CLOSE_DECISION": 17, + "DECISION_TASK_FAILED_CAUSE_FAILOVER_CLOSE_DECISION": 18, + "DECISION_TASK_FAILED_CAUSE_BAD_SIGNAL_INPUT_SIZE": 19, + "DECISION_TASK_FAILED_CAUSE_RESET_WORKFLOW": 20, + "DECISION_TASK_FAILED_CAUSE_BAD_BINARY": 21, + "DECISION_TASK_FAILED_CAUSE_SCHEDULE_ACTIVITY_DUPLICATE_ID": 22, + "DECISION_TASK_FAILED_CAUSE_BAD_SEARCH_ATTRIBUTES": 23, + } ) -var DecisionTaskFailedCause_name = map[int32]string{ - 0: "DECISION_TASK_FAILED_CAUSE_INVALID", - 1: "DECISION_TASK_FAILED_CAUSE_UNHANDLED_DECISION", - 2: "DECISION_TASK_FAILED_CAUSE_BAD_SCHEDULE_ACTIVITY_ATTRIBUTES", - 3: "DECISION_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_ACTIVITY_ATTRIBUTES", - 4: "DECISION_TASK_FAILED_CAUSE_BAD_START_TIMER_ATTRIBUTES", - 5: "DECISION_TASK_FAILED_CAUSE_BAD_CANCEL_TIMER_ATTRIBUTES", - 6: "DECISION_TASK_FAILED_CAUSE_BAD_RECORD_MARKER_ATTRIBUTES", - 7: "DECISION_TASK_FAILED_CAUSE_BAD_COMPLETE_WORKFLOW_EXECUTION_ATTRIBUTES", - 8: "DECISION_TASK_FAILED_CAUSE_BAD_FAIL_WORKFLOW_EXECUTION_ATTRIBUTES", - 9: "DECISION_TASK_FAILED_CAUSE_BAD_CANCEL_WORKFLOW_EXECUTION_ATTRIBUTES", - 10: "DECISION_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_ATTRIBUTES", - 11: "DECISION_TASK_FAILED_CAUSE_BAD_CONTINUE_AS_NEW_ATTRIBUTES", - 12: "DECISION_TASK_FAILED_CAUSE_START_TIMER_DUPLICATE_ID", - 13: "DECISION_TASK_FAILED_CAUSE_RESET_STICKY_TASK_LIST", - 14: "DECISION_TASK_FAILED_CAUSE_WORKFLOW_WORKER_UNHANDLED_FAILURE", - 15: "DECISION_TASK_FAILED_CAUSE_BAD_SIGNAL_WORKFLOW_EXECUTION_ATTRIBUTES", - 16: "DECISION_TASK_FAILED_CAUSE_BAD_START_CHILD_EXECUTION_ATTRIBUTES", - 17: "DECISION_TASK_FAILED_CAUSE_FORCE_CLOSE_DECISION", - 18: "DECISION_TASK_FAILED_CAUSE_FAILOVER_CLOSE_DECISION", - 19: "DECISION_TASK_FAILED_CAUSE_BAD_SIGNAL_INPUT_SIZE", - 20: "DECISION_TASK_FAILED_CAUSE_RESET_WORKFLOW", - 21: "DECISION_TASK_FAILED_CAUSE_BAD_BINARY", - 22: "DECISION_TASK_FAILED_CAUSE_SCHEDULE_ACTIVITY_DUPLICATE_ID", - 23: "DECISION_TASK_FAILED_CAUSE_BAD_SEARCH_ATTRIBUTES", -} - -var DecisionTaskFailedCause_value = map[string]int32{ - "DECISION_TASK_FAILED_CAUSE_INVALID": 0, - "DECISION_TASK_FAILED_CAUSE_UNHANDLED_DECISION": 1, - "DECISION_TASK_FAILED_CAUSE_BAD_SCHEDULE_ACTIVITY_ATTRIBUTES": 2, - "DECISION_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_ACTIVITY_ATTRIBUTES": 3, - "DECISION_TASK_FAILED_CAUSE_BAD_START_TIMER_ATTRIBUTES": 4, - "DECISION_TASK_FAILED_CAUSE_BAD_CANCEL_TIMER_ATTRIBUTES": 5, - "DECISION_TASK_FAILED_CAUSE_BAD_RECORD_MARKER_ATTRIBUTES": 6, - "DECISION_TASK_FAILED_CAUSE_BAD_COMPLETE_WORKFLOW_EXECUTION_ATTRIBUTES": 7, - "DECISION_TASK_FAILED_CAUSE_BAD_FAIL_WORKFLOW_EXECUTION_ATTRIBUTES": 8, - "DECISION_TASK_FAILED_CAUSE_BAD_CANCEL_WORKFLOW_EXECUTION_ATTRIBUTES": 9, - "DECISION_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_ATTRIBUTES": 10, - "DECISION_TASK_FAILED_CAUSE_BAD_CONTINUE_AS_NEW_ATTRIBUTES": 11, - "DECISION_TASK_FAILED_CAUSE_START_TIMER_DUPLICATE_ID": 12, - "DECISION_TASK_FAILED_CAUSE_RESET_STICKY_TASK_LIST": 13, - "DECISION_TASK_FAILED_CAUSE_WORKFLOW_WORKER_UNHANDLED_FAILURE": 14, - "DECISION_TASK_FAILED_CAUSE_BAD_SIGNAL_WORKFLOW_EXECUTION_ATTRIBUTES": 15, - "DECISION_TASK_FAILED_CAUSE_BAD_START_CHILD_EXECUTION_ATTRIBUTES": 16, - "DECISION_TASK_FAILED_CAUSE_FORCE_CLOSE_DECISION": 17, - "DECISION_TASK_FAILED_CAUSE_FAILOVER_CLOSE_DECISION": 18, - "DECISION_TASK_FAILED_CAUSE_BAD_SIGNAL_INPUT_SIZE": 19, - "DECISION_TASK_FAILED_CAUSE_RESET_WORKFLOW": 20, - "DECISION_TASK_FAILED_CAUSE_BAD_BINARY": 21, - "DECISION_TASK_FAILED_CAUSE_SCHEDULE_ACTIVITY_DUPLICATE_ID": 22, - "DECISION_TASK_FAILED_CAUSE_BAD_SEARCH_ATTRIBUTES": 23, +func (x DecisionTaskFailedCause) Enum() *DecisionTaskFailedCause { + p := new(DecisionTaskFailedCause) + *p = x + return p +} + +func (x DecisionTaskFailedCause) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (DecisionTaskFailedCause) Descriptor() protoreflect.EnumDescriptor { + return file_uber_cadence_api_v1_workflow_proto_enumTypes[7].Descriptor() +} + +func (DecisionTaskFailedCause) Type() protoreflect.EnumType { + return &file_uber_cadence_api_v1_workflow_proto_enumTypes[7] +} + +func (x DecisionTaskFailedCause) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use DecisionTaskFailedCause.Descriptor instead. func (DecisionTaskFailedCause) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_2775eefb5053680f, []int{7} + return file_uber_cadence_api_v1_workflow_proto_rawDescGZIP(), []int{7} } type ChildWorkflowExecutionFailedCause int32 const ( - CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_INVALID ChildWorkflowExecutionFailedCause = 0 - CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_WORKFLOW_ALREADY_RUNNING ChildWorkflowExecutionFailedCause = 1 + ChildWorkflowExecutionFailedCause_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_INVALID ChildWorkflowExecutionFailedCause = 0 + ChildWorkflowExecutionFailedCause_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_WORKFLOW_ALREADY_RUNNING ChildWorkflowExecutionFailedCause = 1 ) -var ChildWorkflowExecutionFailedCause_name = map[int32]string{ - 0: "CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_INVALID", - 1: "CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_WORKFLOW_ALREADY_RUNNING", +// Enum value maps for ChildWorkflowExecutionFailedCause. +var ( + ChildWorkflowExecutionFailedCause_name = map[int32]string{ + 0: "CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_INVALID", + 1: "CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_WORKFLOW_ALREADY_RUNNING", + } + ChildWorkflowExecutionFailedCause_value = map[string]int32{ + "CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_INVALID": 0, + "CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_WORKFLOW_ALREADY_RUNNING": 1, + } +) + +func (x ChildWorkflowExecutionFailedCause) Enum() *ChildWorkflowExecutionFailedCause { + p := new(ChildWorkflowExecutionFailedCause) + *p = x + return p +} + +func (x ChildWorkflowExecutionFailedCause) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -var ChildWorkflowExecutionFailedCause_value = map[string]int32{ - "CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_INVALID": 0, - "CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_WORKFLOW_ALREADY_RUNNING": 1, +func (ChildWorkflowExecutionFailedCause) Descriptor() protoreflect.EnumDescriptor { + return file_uber_cadence_api_v1_workflow_proto_enumTypes[8].Descriptor() } +func (ChildWorkflowExecutionFailedCause) Type() protoreflect.EnumType { + return &file_uber_cadence_api_v1_workflow_proto_enumTypes[8] +} + +func (x ChildWorkflowExecutionFailedCause) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ChildWorkflowExecutionFailedCause.Descriptor instead. func (ChildWorkflowExecutionFailedCause) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_2775eefb5053680f, []int{8} + return file_uber_cadence_api_v1_workflow_proto_rawDescGZIP(), []int{8} } type CancelExternalWorkflowExecutionFailedCause int32 const ( - CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_INVALID CancelExternalWorkflowExecutionFailedCause = 0 - CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION CancelExternalWorkflowExecutionFailedCause = 1 + CancelExternalWorkflowExecutionFailedCause_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_INVALID CancelExternalWorkflowExecutionFailedCause = 0 + CancelExternalWorkflowExecutionFailedCause_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION CancelExternalWorkflowExecutionFailedCause = 1 +) + +// Enum value maps for CancelExternalWorkflowExecutionFailedCause. +var ( + CancelExternalWorkflowExecutionFailedCause_name = map[int32]string{ + 0: "CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_INVALID", + 1: "CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION", + } + CancelExternalWorkflowExecutionFailedCause_value = map[string]int32{ + "CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_INVALID": 0, + "CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION": 1, + } ) -var CancelExternalWorkflowExecutionFailedCause_name = map[int32]string{ - 0: "CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_INVALID", - 1: "CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION", +func (x CancelExternalWorkflowExecutionFailedCause) Enum() *CancelExternalWorkflowExecutionFailedCause { + p := new(CancelExternalWorkflowExecutionFailedCause) + *p = x + return p +} + +func (x CancelExternalWorkflowExecutionFailedCause) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (CancelExternalWorkflowExecutionFailedCause) Descriptor() protoreflect.EnumDescriptor { + return file_uber_cadence_api_v1_workflow_proto_enumTypes[9].Descriptor() +} + +func (CancelExternalWorkflowExecutionFailedCause) Type() protoreflect.EnumType { + return &file_uber_cadence_api_v1_workflow_proto_enumTypes[9] } -var CancelExternalWorkflowExecutionFailedCause_value = map[string]int32{ - "CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_INVALID": 0, - "CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION": 1, +func (x CancelExternalWorkflowExecutionFailedCause) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use CancelExternalWorkflowExecutionFailedCause.Descriptor instead. func (CancelExternalWorkflowExecutionFailedCause) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_2775eefb5053680f, []int{9} + return file_uber_cadence_api_v1_workflow_proto_rawDescGZIP(), []int{9} } type SignalExternalWorkflowExecutionFailedCause int32 const ( - SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_INVALID SignalExternalWorkflowExecutionFailedCause = 0 - SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION SignalExternalWorkflowExecutionFailedCause = 1 + SignalExternalWorkflowExecutionFailedCause_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_INVALID SignalExternalWorkflowExecutionFailedCause = 0 + SignalExternalWorkflowExecutionFailedCause_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION SignalExternalWorkflowExecutionFailedCause = 1 ) -var SignalExternalWorkflowExecutionFailedCause_name = map[int32]string{ - 0: "SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_INVALID", - 1: "SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION", +// Enum value maps for SignalExternalWorkflowExecutionFailedCause. +var ( + SignalExternalWorkflowExecutionFailedCause_name = map[int32]string{ + 0: "SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_INVALID", + 1: "SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION", + } + SignalExternalWorkflowExecutionFailedCause_value = map[string]int32{ + "SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_INVALID": 0, + "SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION": 1, + } +) + +func (x SignalExternalWorkflowExecutionFailedCause) Enum() *SignalExternalWorkflowExecutionFailedCause { + p := new(SignalExternalWorkflowExecutionFailedCause) + *p = x + return p +} + +func (x SignalExternalWorkflowExecutionFailedCause) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (SignalExternalWorkflowExecutionFailedCause) Descriptor() protoreflect.EnumDescriptor { + return file_uber_cadence_api_v1_workflow_proto_enumTypes[10].Descriptor() +} + +func (SignalExternalWorkflowExecutionFailedCause) Type() protoreflect.EnumType { + return &file_uber_cadence_api_v1_workflow_proto_enumTypes[10] } -var SignalExternalWorkflowExecutionFailedCause_value = map[string]int32{ - "SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_INVALID": 0, - "SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION": 1, +func (x SignalExternalWorkflowExecutionFailedCause) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use SignalExternalWorkflowExecutionFailedCause.Descriptor instead. func (SignalExternalWorkflowExecutionFailedCause) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_2775eefb5053680f, []int{10} + return file_uber_cadence_api_v1_workflow_proto_rawDescGZIP(), []int{10} } type WorkflowExecutionInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + WorkflowExecution *WorkflowExecution `protobuf:"bytes,1,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` Type *WorkflowType `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` - StartTime *time.Time `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time,omitempty"` - CloseTime *time.Time `protobuf:"bytes,4,opt,name=close_time,json=closeTime,proto3,stdtime" json:"close_time,omitempty"` + StartTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + CloseTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=close_time,json=closeTime,proto3" json:"close_time,omitempty"` CloseStatus WorkflowExecutionCloseStatus `protobuf:"varint,5,opt,name=close_status,json=closeStatus,proto3,enum=uber.cadence.api.v1.WorkflowExecutionCloseStatus" json:"close_status,omitempty"` HistoryLength int64 `protobuf:"varint,6,opt,name=history_length,json=historyLength,proto3" json:"history_length,omitempty"` ParentDomainId string `protobuf:"bytes,7,opt,name=parent_domain_id,json=parentDomainId,proto3" json:"parent_domain_id,omitempty"` ParentExecution *WorkflowExecution `protobuf:"bytes,8,opt,name=parent_execution,json=parentExecution,proto3" json:"parent_execution,omitempty"` - ExecutionTime *time.Time `protobuf:"bytes,9,opt,name=execution_time,json=executionTime,proto3,stdtime" json:"execution_time,omitempty"` + ExecutionTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=execution_time,json=executionTime,proto3" json:"execution_time,omitempty"` Memo *Memo `protobuf:"bytes,10,opt,name=memo,proto3" json:"memo,omitempty"` SearchAttributes *SearchAttributes `protobuf:"bytes,11,opt,name=search_attributes,json=searchAttributes,proto3" json:"search_attributes,omitempty"` AutoResetPoints *ResetPoints `protobuf:"bytes,12,opt,name=auto_reset_points,json=autoResetPoints,proto3" json:"auto_reset_points,omitempty"` TaskList string `protobuf:"bytes,13,opt,name=task_list,json=taskList,proto3" json:"task_list,omitempty"` } -func (m *WorkflowExecutionInfo) Reset() { *m = WorkflowExecutionInfo{} } -func (*WorkflowExecutionInfo) ProtoMessage() {} -func (*WorkflowExecutionInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_2775eefb5053680f, []int{0} -} -func (m *WorkflowExecutionInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowExecutionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowExecutionInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *WorkflowExecutionInfo) Reset() { + *x = WorkflowExecutionInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_workflow_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *WorkflowExecutionInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowExecutionInfo.Merge(m, src) -} -func (m *WorkflowExecutionInfo) XXX_Size() int { - return m.Size() + +func (x *WorkflowExecutionInfo) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WorkflowExecutionInfo) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowExecutionInfo.DiscardUnknown(m) + +func (*WorkflowExecutionInfo) ProtoMessage() {} + +func (x *WorkflowExecutionInfo) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_workflow_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WorkflowExecutionInfo proto.InternalMessageInfo +// Deprecated: Use WorkflowExecutionInfo.ProtoReflect.Descriptor instead. +func (*WorkflowExecutionInfo) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_workflow_proto_rawDescGZIP(), []int{0} +} -func (m *WorkflowExecutionInfo) GetWorkflowExecution() *WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *WorkflowExecutionInfo) GetWorkflowExecution() *WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *WorkflowExecutionInfo) GetType() *WorkflowType { - if m != nil { - return m.Type +func (x *WorkflowExecutionInfo) GetType() *WorkflowType { + if x != nil { + return x.Type } return nil } -func (m *WorkflowExecutionInfo) GetStartTime() *time.Time { - if m != nil { - return m.StartTime +func (x *WorkflowExecutionInfo) GetStartTime() *timestamppb.Timestamp { + if x != nil { + return x.StartTime } return nil } -func (m *WorkflowExecutionInfo) GetCloseTime() *time.Time { - if m != nil { - return m.CloseTime +func (x *WorkflowExecutionInfo) GetCloseTime() *timestamppb.Timestamp { + if x != nil { + return x.CloseTime } return nil } -func (m *WorkflowExecutionInfo) GetCloseStatus() WorkflowExecutionCloseStatus { - if m != nil { - return m.CloseStatus +func (x *WorkflowExecutionInfo) GetCloseStatus() WorkflowExecutionCloseStatus { + if x != nil { + return x.CloseStatus } - return WORKFLOW_EXECUTION_CLOSE_STATUS_INVALID + return WorkflowExecutionCloseStatus_WORKFLOW_EXECUTION_CLOSE_STATUS_INVALID } -func (m *WorkflowExecutionInfo) GetHistoryLength() int64 { - if m != nil { - return m.HistoryLength +func (x *WorkflowExecutionInfo) GetHistoryLength() int64 { + if x != nil { + return x.HistoryLength } return 0 } -func (m *WorkflowExecutionInfo) GetParentDomainId() string { - if m != nil { - return m.ParentDomainId +func (x *WorkflowExecutionInfo) GetParentDomainId() string { + if x != nil { + return x.ParentDomainId } return "" } -func (m *WorkflowExecutionInfo) GetParentExecution() *WorkflowExecution { - if m != nil { - return m.ParentExecution +func (x *WorkflowExecutionInfo) GetParentExecution() *WorkflowExecution { + if x != nil { + return x.ParentExecution } return nil } -func (m *WorkflowExecutionInfo) GetExecutionTime() *time.Time { - if m != nil { - return m.ExecutionTime +func (x *WorkflowExecutionInfo) GetExecutionTime() *timestamppb.Timestamp { + if x != nil { + return x.ExecutionTime } return nil } -func (m *WorkflowExecutionInfo) GetMemo() *Memo { - if m != nil { - return m.Memo +func (x *WorkflowExecutionInfo) GetMemo() *Memo { + if x != nil { + return x.Memo } return nil } -func (m *WorkflowExecutionInfo) GetSearchAttributes() *SearchAttributes { - if m != nil { - return m.SearchAttributes +func (x *WorkflowExecutionInfo) GetSearchAttributes() *SearchAttributes { + if x != nil { + return x.SearchAttributes } return nil } -func (m *WorkflowExecutionInfo) GetAutoResetPoints() *ResetPoints { - if m != nil { - return m.AutoResetPoints +func (x *WorkflowExecutionInfo) GetAutoResetPoints() *ResetPoints { + if x != nil { + return x.AutoResetPoints } return nil } -func (m *WorkflowExecutionInfo) GetTaskList() string { - if m != nil { - return m.TaskList +func (x *WorkflowExecutionInfo) GetTaskList() string { + if x != nil { + return x.TaskList } return "" } type WorkflowExecutionConfiguration struct { - TaskList *TaskList `protobuf:"bytes,1,opt,name=task_list,json=taskList,proto3" json:"task_list,omitempty"` - ExecutionStartToCloseTimeout *time.Duration `protobuf:"bytes,2,opt,name=execution_start_to_close_timeout,json=executionStartToCloseTimeout,proto3,stdduration" json:"execution_start_to_close_timeout,omitempty"` - TaskStartToCloseTimeout *time.Duration `protobuf:"bytes,3,opt,name=task_start_to_close_timeout,json=taskStartToCloseTimeout,proto3,stdduration" json:"task_start_to_close_timeout,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TaskList *TaskList `protobuf:"bytes,1,opt,name=task_list,json=taskList,proto3" json:"task_list,omitempty"` + ExecutionStartToCloseTimeout *durationpb.Duration `protobuf:"bytes,2,opt,name=execution_start_to_close_timeout,json=executionStartToCloseTimeout,proto3" json:"execution_start_to_close_timeout,omitempty"` + TaskStartToCloseTimeout *durationpb.Duration `protobuf:"bytes,3,opt,name=task_start_to_close_timeout,json=taskStartToCloseTimeout,proto3" json:"task_start_to_close_timeout,omitempty"` } -func (m *WorkflowExecutionConfiguration) Reset() { *m = WorkflowExecutionConfiguration{} } -func (*WorkflowExecutionConfiguration) ProtoMessage() {} -func (*WorkflowExecutionConfiguration) Descriptor() ([]byte, []int) { - return fileDescriptor_2775eefb5053680f, []int{1} -} -func (m *WorkflowExecutionConfiguration) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WorkflowExecutionConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WorkflowExecutionConfiguration.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *WorkflowExecutionConfiguration) Reset() { + *x = WorkflowExecutionConfiguration{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_workflow_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *WorkflowExecutionConfiguration) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowExecutionConfiguration.Merge(m, src) -} -func (m *WorkflowExecutionConfiguration) XXX_Size() int { - return m.Size() + +func (x *WorkflowExecutionConfiguration) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WorkflowExecutionConfiguration) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowExecutionConfiguration.DiscardUnknown(m) + +func (*WorkflowExecutionConfiguration) ProtoMessage() {} + +func (x *WorkflowExecutionConfiguration) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_workflow_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WorkflowExecutionConfiguration proto.InternalMessageInfo +// Deprecated: Use WorkflowExecutionConfiguration.ProtoReflect.Descriptor instead. +func (*WorkflowExecutionConfiguration) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_workflow_proto_rawDescGZIP(), []int{1} +} -func (m *WorkflowExecutionConfiguration) GetTaskList() *TaskList { - if m != nil { - return m.TaskList +func (x *WorkflowExecutionConfiguration) GetTaskList() *TaskList { + if x != nil { + return x.TaskList } return nil } -func (m *WorkflowExecutionConfiguration) GetExecutionStartToCloseTimeout() *time.Duration { - if m != nil { - return m.ExecutionStartToCloseTimeout +func (x *WorkflowExecutionConfiguration) GetExecutionStartToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.ExecutionStartToCloseTimeout } return nil } -func (m *WorkflowExecutionConfiguration) GetTaskStartToCloseTimeout() *time.Duration { - if m != nil { - return m.TaskStartToCloseTimeout +func (x *WorkflowExecutionConfiguration) GetTaskStartToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.TaskStartToCloseTimeout } return nil } type PendingActivityInfo struct { - ActivityId string `protobuf:"bytes,1,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` - ActivityType *ActivityType `protobuf:"bytes,2,opt,name=activity_type,json=activityType,proto3" json:"activity_type,omitempty"` - State PendingActivityState `protobuf:"varint,3,opt,name=state,proto3,enum=uber.cadence.api.v1.PendingActivityState" json:"state,omitempty"` - HeartbeatDetails *Payload `protobuf:"bytes,4,opt,name=heartbeat_details,json=heartbeatDetails,proto3" json:"heartbeat_details,omitempty"` - LastHeartbeatTime *time.Time `protobuf:"bytes,5,opt,name=last_heartbeat_time,json=lastHeartbeatTime,proto3,stdtime" json:"last_heartbeat_time,omitempty"` - LastStartedTime *time.Time `protobuf:"bytes,6,opt,name=last_started_time,json=lastStartedTime,proto3,stdtime" json:"last_started_time,omitempty"` - Attempt int32 `protobuf:"varint,7,opt,name=attempt,proto3" json:"attempt,omitempty"` - MaximumAttempts int32 `protobuf:"varint,8,opt,name=maximum_attempts,json=maximumAttempts,proto3" json:"maximum_attempts,omitempty"` - ScheduledTime *time.Time `protobuf:"bytes,9,opt,name=scheduled_time,json=scheduledTime,proto3,stdtime" json:"scheduled_time,omitempty"` - ExpirationTime *time.Time `protobuf:"bytes,10,opt,name=expiration_time,json=expirationTime,proto3,stdtime" json:"expiration_time,omitempty"` - LastFailure *Failure `protobuf:"bytes,11,opt,name=last_failure,json=lastFailure,proto3" json:"last_failure,omitempty"` - LastWorkerIdentity string `protobuf:"bytes,12,opt,name=last_worker_identity,json=lastWorkerIdentity,proto3" json:"last_worker_identity,omitempty"` -} - -func (m *PendingActivityInfo) Reset() { *m = PendingActivityInfo{} } -func (*PendingActivityInfo) ProtoMessage() {} -func (*PendingActivityInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_2775eefb5053680f, []int{2} -} -func (m *PendingActivityInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PendingActivityInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PendingActivityInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ActivityId string `protobuf:"bytes,1,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` + ActivityType *ActivityType `protobuf:"bytes,2,opt,name=activity_type,json=activityType,proto3" json:"activity_type,omitempty"` + State PendingActivityState `protobuf:"varint,3,opt,name=state,proto3,enum=uber.cadence.api.v1.PendingActivityState" json:"state,omitempty"` + HeartbeatDetails *Payload `protobuf:"bytes,4,opt,name=heartbeat_details,json=heartbeatDetails,proto3" json:"heartbeat_details,omitempty"` + LastHeartbeatTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=last_heartbeat_time,json=lastHeartbeatTime,proto3" json:"last_heartbeat_time,omitempty"` + LastStartedTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=last_started_time,json=lastStartedTime,proto3" json:"last_started_time,omitempty"` + Attempt int32 `protobuf:"varint,7,opt,name=attempt,proto3" json:"attempt,omitempty"` + MaximumAttempts int32 `protobuf:"varint,8,opt,name=maximum_attempts,json=maximumAttempts,proto3" json:"maximum_attempts,omitempty"` + ScheduledTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=scheduled_time,json=scheduledTime,proto3" json:"scheduled_time,omitempty"` + ExpirationTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=expiration_time,json=expirationTime,proto3" json:"expiration_time,omitempty"` + LastFailure *Failure `protobuf:"bytes,11,opt,name=last_failure,json=lastFailure,proto3" json:"last_failure,omitempty"` + LastWorkerIdentity string `protobuf:"bytes,12,opt,name=last_worker_identity,json=lastWorkerIdentity,proto3" json:"last_worker_identity,omitempty"` } -func (m *PendingActivityInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_PendingActivityInfo.Merge(m, src) + +func (x *PendingActivityInfo) Reset() { + *x = PendingActivityInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_workflow_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *PendingActivityInfo) XXX_Size() int { - return m.Size() + +func (x *PendingActivityInfo) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PendingActivityInfo) XXX_DiscardUnknown() { - xxx_messageInfo_PendingActivityInfo.DiscardUnknown(m) + +func (*PendingActivityInfo) ProtoMessage() {} + +func (x *PendingActivityInfo) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_workflow_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PendingActivityInfo proto.InternalMessageInfo +// Deprecated: Use PendingActivityInfo.ProtoReflect.Descriptor instead. +func (*PendingActivityInfo) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_workflow_proto_rawDescGZIP(), []int{2} +} -func (m *PendingActivityInfo) GetActivityId() string { - if m != nil { - return m.ActivityId +func (x *PendingActivityInfo) GetActivityId() string { + if x != nil { + return x.ActivityId } return "" } -func (m *PendingActivityInfo) GetActivityType() *ActivityType { - if m != nil { - return m.ActivityType +func (x *PendingActivityInfo) GetActivityType() *ActivityType { + if x != nil { + return x.ActivityType } return nil } -func (m *PendingActivityInfo) GetState() PendingActivityState { - if m != nil { - return m.State +func (x *PendingActivityInfo) GetState() PendingActivityState { + if x != nil { + return x.State } - return PENDING_ACTIVITY_STATE_INVALID + return PendingActivityState_PENDING_ACTIVITY_STATE_INVALID } -func (m *PendingActivityInfo) GetHeartbeatDetails() *Payload { - if m != nil { - return m.HeartbeatDetails +func (x *PendingActivityInfo) GetHeartbeatDetails() *Payload { + if x != nil { + return x.HeartbeatDetails } return nil } -func (m *PendingActivityInfo) GetLastHeartbeatTime() *time.Time { - if m != nil { - return m.LastHeartbeatTime +func (x *PendingActivityInfo) GetLastHeartbeatTime() *timestamppb.Timestamp { + if x != nil { + return x.LastHeartbeatTime } return nil } -func (m *PendingActivityInfo) GetLastStartedTime() *time.Time { - if m != nil { - return m.LastStartedTime +func (x *PendingActivityInfo) GetLastStartedTime() *timestamppb.Timestamp { + if x != nil { + return x.LastStartedTime } return nil } -func (m *PendingActivityInfo) GetAttempt() int32 { - if m != nil { - return m.Attempt +func (x *PendingActivityInfo) GetAttempt() int32 { + if x != nil { + return x.Attempt } return 0 } -func (m *PendingActivityInfo) GetMaximumAttempts() int32 { - if m != nil { - return m.MaximumAttempts +func (x *PendingActivityInfo) GetMaximumAttempts() int32 { + if x != nil { + return x.MaximumAttempts } return 0 } -func (m *PendingActivityInfo) GetScheduledTime() *time.Time { - if m != nil { - return m.ScheduledTime +func (x *PendingActivityInfo) GetScheduledTime() *timestamppb.Timestamp { + if x != nil { + return x.ScheduledTime } return nil } -func (m *PendingActivityInfo) GetExpirationTime() *time.Time { - if m != nil { - return m.ExpirationTime +func (x *PendingActivityInfo) GetExpirationTime() *timestamppb.Timestamp { + if x != nil { + return x.ExpirationTime } return nil } -func (m *PendingActivityInfo) GetLastFailure() *Failure { - if m != nil { - return m.LastFailure +func (x *PendingActivityInfo) GetLastFailure() *Failure { + if x != nil { + return x.LastFailure } return nil } -func (m *PendingActivityInfo) GetLastWorkerIdentity() string { - if m != nil { - return m.LastWorkerIdentity +func (x *PendingActivityInfo) GetLastWorkerIdentity() string { + if x != nil { + return x.LastWorkerIdentity } return "" } type PendingChildExecutionInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + WorkflowExecution *WorkflowExecution `protobuf:"bytes,1,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` WorkflowTypeName string `protobuf:"bytes,2,opt,name=workflow_type_name,json=workflowTypeName,proto3" json:"workflow_type_name,omitempty"` InitiatedId int64 `protobuf:"varint,3,opt,name=initiated_id,json=initiatedId,proto3" json:"initiated_id,omitempty"` ParentClosePolicy ParentClosePolicy `protobuf:"varint,4,opt,name=parent_close_policy,json=parentClosePolicy,proto3,enum=uber.cadence.api.v1.ParentClosePolicy" json:"parent_close_policy,omitempty"` } -func (m *PendingChildExecutionInfo) Reset() { *m = PendingChildExecutionInfo{} } -func (*PendingChildExecutionInfo) ProtoMessage() {} -func (*PendingChildExecutionInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_2775eefb5053680f, []int{3} -} -func (m *PendingChildExecutionInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PendingChildExecutionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PendingChildExecutionInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *PendingChildExecutionInfo) Reset() { + *x = PendingChildExecutionInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_workflow_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *PendingChildExecutionInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_PendingChildExecutionInfo.Merge(m, src) -} -func (m *PendingChildExecutionInfo) XXX_Size() int { - return m.Size() + +func (x *PendingChildExecutionInfo) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PendingChildExecutionInfo) XXX_DiscardUnknown() { - xxx_messageInfo_PendingChildExecutionInfo.DiscardUnknown(m) + +func (*PendingChildExecutionInfo) ProtoMessage() {} + +func (x *PendingChildExecutionInfo) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_workflow_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PendingChildExecutionInfo proto.InternalMessageInfo +// Deprecated: Use PendingChildExecutionInfo.ProtoReflect.Descriptor instead. +func (*PendingChildExecutionInfo) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_workflow_proto_rawDescGZIP(), []int{3} +} -func (m *PendingChildExecutionInfo) GetWorkflowExecution() *WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *PendingChildExecutionInfo) GetWorkflowExecution() *WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *PendingChildExecutionInfo) GetWorkflowTypeName() string { - if m != nil { - return m.WorkflowTypeName +func (x *PendingChildExecutionInfo) GetWorkflowTypeName() string { + if x != nil { + return x.WorkflowTypeName } return "" } -func (m *PendingChildExecutionInfo) GetInitiatedId() int64 { - if m != nil { - return m.InitiatedId +func (x *PendingChildExecutionInfo) GetInitiatedId() int64 { + if x != nil { + return x.InitiatedId } return 0 } -func (m *PendingChildExecutionInfo) GetParentClosePolicy() ParentClosePolicy { - if m != nil { - return m.ParentClosePolicy +func (x *PendingChildExecutionInfo) GetParentClosePolicy() ParentClosePolicy { + if x != nil { + return x.ParentClosePolicy } - return PARENT_CLOSE_POLICY_INVALID + return ParentClosePolicy_PARENT_CLOSE_POLICY_INVALID } type PendingDecisionInfo struct { - State PendingDecisionState `protobuf:"varint,1,opt,name=state,proto3,enum=uber.cadence.api.v1.PendingDecisionState" json:"state,omitempty"` - ScheduledTime *time.Time `protobuf:"bytes,2,opt,name=scheduled_time,json=scheduledTime,proto3,stdtime" json:"scheduled_time,omitempty"` - StartedTime *time.Time `protobuf:"bytes,3,opt,name=started_time,json=startedTime,proto3,stdtime" json:"started_time,omitempty"` - Attempt int32 `protobuf:"varint,4,opt,name=attempt,proto3" json:"attempt,omitempty"` - OriginalScheduledTime *time.Time `protobuf:"bytes,5,opt,name=original_scheduled_time,json=originalScheduledTime,proto3,stdtime" json:"original_scheduled_time,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + State PendingDecisionState `protobuf:"varint,1,opt,name=state,proto3,enum=uber.cadence.api.v1.PendingDecisionState" json:"state,omitempty"` + ScheduledTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=scheduled_time,json=scheduledTime,proto3" json:"scheduled_time,omitempty"` + StartedTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=started_time,json=startedTime,proto3" json:"started_time,omitempty"` + Attempt int32 `protobuf:"varint,4,opt,name=attempt,proto3" json:"attempt,omitempty"` + OriginalScheduledTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=original_scheduled_time,json=originalScheduledTime,proto3" json:"original_scheduled_time,omitempty"` } -func (m *PendingDecisionInfo) Reset() { *m = PendingDecisionInfo{} } -func (*PendingDecisionInfo) ProtoMessage() {} -func (*PendingDecisionInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_2775eefb5053680f, []int{4} -} -func (m *PendingDecisionInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PendingDecisionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PendingDecisionInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *PendingDecisionInfo) Reset() { + *x = PendingDecisionInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_workflow_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *PendingDecisionInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_PendingDecisionInfo.Merge(m, src) -} -func (m *PendingDecisionInfo) XXX_Size() int { - return m.Size() + +func (x *PendingDecisionInfo) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PendingDecisionInfo) XXX_DiscardUnknown() { - xxx_messageInfo_PendingDecisionInfo.DiscardUnknown(m) + +func (*PendingDecisionInfo) ProtoMessage() {} + +func (x *PendingDecisionInfo) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_workflow_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PendingDecisionInfo proto.InternalMessageInfo +// Deprecated: Use PendingDecisionInfo.ProtoReflect.Descriptor instead. +func (*PendingDecisionInfo) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_workflow_proto_rawDescGZIP(), []int{4} +} -func (m *PendingDecisionInfo) GetState() PendingDecisionState { - if m != nil { - return m.State +func (x *PendingDecisionInfo) GetState() PendingDecisionState { + if x != nil { + return x.State } - return PENDING_DECISION_STATE_INVALID + return PendingDecisionState_PENDING_DECISION_STATE_INVALID } -func (m *PendingDecisionInfo) GetScheduledTime() *time.Time { - if m != nil { - return m.ScheduledTime +func (x *PendingDecisionInfo) GetScheduledTime() *timestamppb.Timestamp { + if x != nil { + return x.ScheduledTime } return nil } -func (m *PendingDecisionInfo) GetStartedTime() *time.Time { - if m != nil { - return m.StartedTime +func (x *PendingDecisionInfo) GetStartedTime() *timestamppb.Timestamp { + if x != nil { + return x.StartedTime } return nil } -func (m *PendingDecisionInfo) GetAttempt() int32 { - if m != nil { - return m.Attempt +func (x *PendingDecisionInfo) GetAttempt() int32 { + if x != nil { + return x.Attempt } return 0 } -func (m *PendingDecisionInfo) GetOriginalScheduledTime() *time.Time { - if m != nil { - return m.OriginalScheduledTime +func (x *PendingDecisionInfo) GetOriginalScheduledTime() *timestamppb.Timestamp { + if x != nil { + return x.OriginalScheduledTime } return nil } type ActivityLocalDispatchInfo struct { - ActivityId string `protobuf:"bytes,1,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` - ScheduledTime *time.Time `protobuf:"bytes,2,opt,name=scheduled_time,json=scheduledTime,proto3,stdtime" json:"scheduled_time,omitempty"` - StartedTime *time.Time `protobuf:"bytes,3,opt,name=started_time,json=startedTime,proto3,stdtime" json:"started_time,omitempty"` - ScheduledTimeOfThisAttempt *time.Time `protobuf:"bytes,4,opt,name=scheduled_time_of_this_attempt,json=scheduledTimeOfThisAttempt,proto3,stdtime" json:"scheduled_time_of_this_attempt,omitempty"` - TaskToken []byte `protobuf:"bytes,5,opt,name=task_token,json=taskToken,proto3" json:"task_token,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ActivityId string `protobuf:"bytes,1,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` + ScheduledTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=scheduled_time,json=scheduledTime,proto3" json:"scheduled_time,omitempty"` + StartedTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=started_time,json=startedTime,proto3" json:"started_time,omitempty"` + ScheduledTimeOfThisAttempt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=scheduled_time_of_this_attempt,json=scheduledTimeOfThisAttempt,proto3" json:"scheduled_time_of_this_attempt,omitempty"` + TaskToken []byte `protobuf:"bytes,5,opt,name=task_token,json=taskToken,proto3" json:"task_token,omitempty"` } -func (m *ActivityLocalDispatchInfo) Reset() { *m = ActivityLocalDispatchInfo{} } -func (*ActivityLocalDispatchInfo) ProtoMessage() {} -func (*ActivityLocalDispatchInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_2775eefb5053680f, []int{5} -} -func (m *ActivityLocalDispatchInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ActivityLocalDispatchInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ActivityLocalDispatchInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ActivityLocalDispatchInfo) Reset() { + *x = ActivityLocalDispatchInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_workflow_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ActivityLocalDispatchInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_ActivityLocalDispatchInfo.Merge(m, src) -} -func (m *ActivityLocalDispatchInfo) XXX_Size() int { - return m.Size() + +func (x *ActivityLocalDispatchInfo) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ActivityLocalDispatchInfo) XXX_DiscardUnknown() { - xxx_messageInfo_ActivityLocalDispatchInfo.DiscardUnknown(m) + +func (*ActivityLocalDispatchInfo) ProtoMessage() {} + +func (x *ActivityLocalDispatchInfo) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_workflow_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ActivityLocalDispatchInfo proto.InternalMessageInfo +// Deprecated: Use ActivityLocalDispatchInfo.ProtoReflect.Descriptor instead. +func (*ActivityLocalDispatchInfo) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_workflow_proto_rawDescGZIP(), []int{5} +} -func (m *ActivityLocalDispatchInfo) GetActivityId() string { - if m != nil { - return m.ActivityId +func (x *ActivityLocalDispatchInfo) GetActivityId() string { + if x != nil { + return x.ActivityId } return "" } -func (m *ActivityLocalDispatchInfo) GetScheduledTime() *time.Time { - if m != nil { - return m.ScheduledTime +func (x *ActivityLocalDispatchInfo) GetScheduledTime() *timestamppb.Timestamp { + if x != nil { + return x.ScheduledTime } return nil } -func (m *ActivityLocalDispatchInfo) GetStartedTime() *time.Time { - if m != nil { - return m.StartedTime +func (x *ActivityLocalDispatchInfo) GetStartedTime() *timestamppb.Timestamp { + if x != nil { + return x.StartedTime } return nil } -func (m *ActivityLocalDispatchInfo) GetScheduledTimeOfThisAttempt() *time.Time { - if m != nil { - return m.ScheduledTimeOfThisAttempt +func (x *ActivityLocalDispatchInfo) GetScheduledTimeOfThisAttempt() *timestamppb.Timestamp { + if x != nil { + return x.ScheduledTimeOfThisAttempt } return nil } -func (m *ActivityLocalDispatchInfo) GetTaskToken() []byte { - if m != nil { - return m.TaskToken +func (x *ActivityLocalDispatchInfo) GetTaskToken() []byte { + if x != nil { + return x.TaskToken } return nil } type ResetPoints struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Points []*ResetPointInfo `protobuf:"bytes,1,rep,name=points,proto3" json:"points,omitempty"` } -func (m *ResetPoints) Reset() { *m = ResetPoints{} } -func (*ResetPoints) ProtoMessage() {} -func (*ResetPoints) Descriptor() ([]byte, []int) { - return fileDescriptor_2775eefb5053680f, []int{6} -} -func (m *ResetPoints) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResetPoints) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ResetPoints.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ResetPoints) Reset() { + *x = ResetPoints{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_workflow_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ResetPoints) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResetPoints.Merge(m, src) -} -func (m *ResetPoints) XXX_Size() int { - return m.Size() + +func (x *ResetPoints) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ResetPoints) XXX_DiscardUnknown() { - xxx_messageInfo_ResetPoints.DiscardUnknown(m) + +func (*ResetPoints) ProtoMessage() {} + +func (x *ResetPoints) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_workflow_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ResetPoints proto.InternalMessageInfo +// Deprecated: Use ResetPoints.ProtoReflect.Descriptor instead. +func (*ResetPoints) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_workflow_proto_rawDescGZIP(), []int{6} +} -func (m *ResetPoints) GetPoints() []*ResetPointInfo { - if m != nil { - return m.Points +func (x *ResetPoints) GetPoints() []*ResetPointInfo { + if x != nil { + return x.Points } return nil } type ResetPointInfo struct { - BinaryChecksum string `protobuf:"bytes,1,opt,name=binary_checksum,json=binaryChecksum,proto3" json:"binary_checksum,omitempty"` - RunId string `protobuf:"bytes,2,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` - FirstDecisionCompletedId int64 `protobuf:"varint,3,opt,name=first_decision_completed_id,json=firstDecisionCompletedId,proto3" json:"first_decision_completed_id,omitempty"` - CreatedTime *time.Time `protobuf:"bytes,4,opt,name=created_time,json=createdTime,proto3,stdtime" json:"created_time,omitempty"` - ExpiringTime *time.Time `protobuf:"bytes,5,opt,name=expiring_time,json=expiringTime,proto3,stdtime" json:"expiring_time,omitempty"` - Resettable bool `protobuf:"varint,6,opt,name=resettable,proto3" json:"resettable,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BinaryChecksum string `protobuf:"bytes,1,opt,name=binary_checksum,json=binaryChecksum,proto3" json:"binary_checksum,omitempty"` + RunId string `protobuf:"bytes,2,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` + FirstDecisionCompletedId int64 `protobuf:"varint,3,opt,name=first_decision_completed_id,json=firstDecisionCompletedId,proto3" json:"first_decision_completed_id,omitempty"` + CreatedTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_time,json=createdTime,proto3" json:"created_time,omitempty"` + ExpiringTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=expiring_time,json=expiringTime,proto3" json:"expiring_time,omitempty"` + Resettable bool `protobuf:"varint,6,opt,name=resettable,proto3" json:"resettable,omitempty"` } -func (m *ResetPointInfo) Reset() { *m = ResetPointInfo{} } -func (*ResetPointInfo) ProtoMessage() {} -func (*ResetPointInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_2775eefb5053680f, []int{7} -} -func (m *ResetPointInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResetPointInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ResetPointInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ResetPointInfo) Reset() { + *x = ResetPointInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_api_v1_workflow_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ResetPointInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResetPointInfo.Merge(m, src) -} -func (m *ResetPointInfo) XXX_Size() int { - return m.Size() + +func (x *ResetPointInfo) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ResetPointInfo) XXX_DiscardUnknown() { - xxx_messageInfo_ResetPointInfo.DiscardUnknown(m) + +func (*ResetPointInfo) ProtoMessage() {} + +func (x *ResetPointInfo) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_api_v1_workflow_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ResetPointInfo proto.InternalMessageInfo +// Deprecated: Use ResetPointInfo.ProtoReflect.Descriptor instead. +func (*ResetPointInfo) Descriptor() ([]byte, []int) { + return file_uber_cadence_api_v1_workflow_proto_rawDescGZIP(), []int{7} +} -func (m *ResetPointInfo) GetBinaryChecksum() string { - if m != nil { - return m.BinaryChecksum +func (x *ResetPointInfo) GetBinaryChecksum() string { + if x != nil { + return x.BinaryChecksum } return "" } -func (m *ResetPointInfo) GetRunId() string { - if m != nil { - return m.RunId +func (x *ResetPointInfo) GetRunId() string { + if x != nil { + return x.RunId } return "" } -func (m *ResetPointInfo) GetFirstDecisionCompletedId() int64 { - if m != nil { - return m.FirstDecisionCompletedId +func (x *ResetPointInfo) GetFirstDecisionCompletedId() int64 { + if x != nil { + return x.FirstDecisionCompletedId } return 0 } -func (m *ResetPointInfo) GetCreatedTime() *time.Time { - if m != nil { - return m.CreatedTime +func (x *ResetPointInfo) GetCreatedTime() *timestamppb.Timestamp { + if x != nil { + return x.CreatedTime } return nil } -func (m *ResetPointInfo) GetExpiringTime() *time.Time { - if m != nil { - return m.ExpiringTime +func (x *ResetPointInfo) GetExpiringTime() *timestamppb.Timestamp { + if x != nil { + return x.ExpiringTime } return nil } -func (m *ResetPointInfo) GetResettable() bool { - if m != nil { - return m.Resettable +func (x *ResetPointInfo) GetResettable() bool { + if x != nil { + return x.Resettable } return false } -func init() { - proto.RegisterEnum("uber.cadence.api.v1.PendingActivityState", PendingActivityState_name, PendingActivityState_value) - proto.RegisterEnum("uber.cadence.api.v1.PendingDecisionState", PendingDecisionState_name, PendingDecisionState_value) - proto.RegisterEnum("uber.cadence.api.v1.WorkflowIdReusePolicy", WorkflowIdReusePolicy_name, WorkflowIdReusePolicy_value) - proto.RegisterEnum("uber.cadence.api.v1.ParentClosePolicy", ParentClosePolicy_name, ParentClosePolicy_value) - proto.RegisterEnum("uber.cadence.api.v1.WorkflowExecutionCloseStatus", WorkflowExecutionCloseStatus_name, WorkflowExecutionCloseStatus_value) - proto.RegisterEnum("uber.cadence.api.v1.ContinueAsNewInitiator", ContinueAsNewInitiator_name, ContinueAsNewInitiator_value) - proto.RegisterEnum("uber.cadence.api.v1.TimeoutType", TimeoutType_name, TimeoutType_value) - proto.RegisterEnum("uber.cadence.api.v1.DecisionTaskFailedCause", DecisionTaskFailedCause_name, DecisionTaskFailedCause_value) - proto.RegisterEnum("uber.cadence.api.v1.ChildWorkflowExecutionFailedCause", ChildWorkflowExecutionFailedCause_name, ChildWorkflowExecutionFailedCause_value) - proto.RegisterEnum("uber.cadence.api.v1.CancelExternalWorkflowExecutionFailedCause", CancelExternalWorkflowExecutionFailedCause_name, CancelExternalWorkflowExecutionFailedCause_value) - proto.RegisterEnum("uber.cadence.api.v1.SignalExternalWorkflowExecutionFailedCause", SignalExternalWorkflowExecutionFailedCause_name, SignalExternalWorkflowExecutionFailedCause_value) - proto.RegisterType((*WorkflowExecutionInfo)(nil), "uber.cadence.api.v1.WorkflowExecutionInfo") - proto.RegisterType((*WorkflowExecutionConfiguration)(nil), "uber.cadence.api.v1.WorkflowExecutionConfiguration") - proto.RegisterType((*PendingActivityInfo)(nil), "uber.cadence.api.v1.PendingActivityInfo") - proto.RegisterType((*PendingChildExecutionInfo)(nil), "uber.cadence.api.v1.PendingChildExecutionInfo") - proto.RegisterType((*PendingDecisionInfo)(nil), "uber.cadence.api.v1.PendingDecisionInfo") - proto.RegisterType((*ActivityLocalDispatchInfo)(nil), "uber.cadence.api.v1.ActivityLocalDispatchInfo") - proto.RegisterType((*ResetPoints)(nil), "uber.cadence.api.v1.ResetPoints") - proto.RegisterType((*ResetPointInfo)(nil), "uber.cadence.api.v1.ResetPointInfo") -} - -func init() { - proto.RegisterFile("github.com/uber/cadence/.gen/proto/api/v1/workflow.proto", fileDescriptor_2775eefb5053680f) -} - -var fileDescriptor_2775eefb5053680f = []byte{ - // 2245 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0x3b, 0x70, 0xdb, 0xc8, - 0x19, 0x16, 0x48, 0x49, 0x67, 0xfd, 0xd4, 0x03, 0x5a, 0xbf, 0xe8, 0x17, 0x2d, 0x33, 0xb1, 0x4f, - 0x66, 0xce, 0xd2, 0xc9, 0x3e, 0x9f, 0x73, 0xe7, 0x5c, 0x1c, 0x08, 0x58, 0x59, 0x38, 0x53, 0x20, - 0x6f, 0x01, 0x5a, 0xd6, 0xcd, 0x64, 0x10, 0x88, 0x5c, 0x51, 0x18, 0x93, 0x00, 0x87, 0x00, 0x6d, - 0xab, 0x4b, 0x91, 0x99, 0xb4, 0x57, 0x66, 0x92, 0x26, 0x45, 0x8a, 0x14, 0x69, 0x52, 0xa7, 0xc8, - 0x4c, 0xaa, 0x74, 0x71, 0x95, 0x71, 0x97, 0x58, 0x6e, 0x92, 0xee, 0xaa, 0xd4, 0x99, 0x5d, 0x3c, - 0x08, 0x4a, 0x7c, 0xc0, 0x57, 0x64, 0xd2, 0x89, 0xff, 0x7e, 0xdf, 0xb7, 0xff, 0xfe, 0xaf, 0x5d, - 0x08, 0x8a, 0xbd, 0x7d, 0xda, 0x5d, 0xaf, 0x5b, 0x0d, 0xea, 0xd4, 0xe9, 0xba, 0xd5, 0xb1, 0xd7, - 0x5f, 0x6c, 0xac, 0xbf, 0x74, 0xbb, 0xcf, 0x0f, 0x5a, 0xee, 0xcb, 0xb5, 0x4e, 0xd7, 0xf5, 0x5d, - 0x74, 0x96, 0x61, 0xd6, 0x42, 0xcc, 0x9a, 0xd5, 0xb1, 0xd7, 0x5e, 0x6c, 0x5c, 0x2e, 0x34, 0x5d, - 0xb7, 0xd9, 0xa2, 0xeb, 0x1c, 0xb2, 0xdf, 0x3b, 0x58, 0x6f, 0xf4, 0xba, 0x96, 0x6f, 0xbb, 0x4e, - 0x40, 0xba, 0x7c, 0xfd, 0xe4, 0xba, 0x6f, 0xb7, 0xa9, 0xe7, 0x5b, 0xed, 0x4e, 0x08, 0xb8, 0xda, - 0xa0, 0x1d, 0xea, 0x30, 0x4d, 0x9b, 0x7a, 0xeb, 0x4d, 0xb7, 0xe9, 0x72, 0x7b, 0xb8, 0xba, 0x32, - 0xcc, 0xaf, 0xba, 0xdb, 0x6e, 0xc7, 0x1b, 0x0c, 0xf5, 0xdc, 0xb7, 0xbc, 0xe7, 0x2d, 0xdb, 0xf3, - 0x03, 0x4c, 0xf1, 0xcd, 0x2c, 0x9c, 0xdf, 0x0d, 0x0f, 0x83, 0x5f, 0xd1, 0x7a, 0x8f, 0x39, 0xa8, - 0x3a, 0x07, 0x2e, 0xaa, 0x01, 0x8a, 0x4e, 0x69, 0xd2, 0x68, 0x25, 0x2f, 0xac, 0x08, 0xab, 0xb9, - 0xbb, 0xb7, 0xd6, 0x86, 0x1c, 0x78, 0xed, 0x94, 0x0e, 0x59, 0x7e, 0x79, 0xd2, 0x84, 0xee, 0xc3, - 0xb4, 0x7f, 0xd4, 0xa1, 0xf9, 0x0c, 0x17, 0xba, 0x31, 0x56, 0xc8, 0x38, 0xea, 0x50, 0xc2, 0xe1, - 0xe8, 0x11, 0x80, 0xe7, 0x5b, 0x5d, 0xdf, 0x64, 0x41, 0xca, 0x67, 0x39, 0xf9, 0xf2, 0x5a, 0x10, - 0xc1, 0xb5, 0x28, 0x82, 0x6b, 0x46, 0x14, 0xc1, 0xcd, 0xe9, 0x6f, 0xfe, 0x71, 0x5d, 0x20, 0x73, - 0x9c, 0xc3, 0xac, 0x4c, 0xa0, 0xde, 0x72, 0x3d, 0x1a, 0x08, 0x4c, 0xa7, 0x15, 0xe0, 0x1c, 0x2e, - 0x60, 0xc0, 0x7c, 0x20, 0xe0, 0xf9, 0x96, 0xdf, 0xf3, 0xf2, 0x33, 0x2b, 0xc2, 0xea, 0xe2, 0xdd, - 0x8d, 0x74, 0x91, 0x90, 0x19, 0x53, 0xe7, 0x44, 0x92, 0xab, 0xf7, 0x7f, 0xa0, 0x9b, 0xb0, 0x78, - 0x68, 0x7b, 0xbe, 0xdb, 0x3d, 0x32, 0x5b, 0xd4, 0x69, 0xfa, 0x87, 0xf9, 0xd9, 0x15, 0x61, 0x35, - 0x4b, 0x16, 0x42, 0x6b, 0x99, 0x1b, 0xd1, 0x2a, 0x88, 0x1d, 0xab, 0x4b, 0x1d, 0xdf, 0x6c, 0xb8, - 0x6d, 0xcb, 0x76, 0x4c, 0xbb, 0x91, 0xff, 0x60, 0x45, 0x58, 0x9d, 0x23, 0x8b, 0x81, 0x5d, 0xe1, - 0x66, 0xb5, 0x81, 0xbe, 0x8a, 0x91, 0xfd, 0xa4, 0x9d, 0x79, 0xaf, 0xa4, 0x2d, 0x05, 0xfc, 0x7e, - 0xca, 0x1e, 0xc3, 0x62, 0xac, 0x15, 0x84, 0x6f, 0x2e, 0x65, 0xf8, 0x16, 0x62, 0x1e, 0x0f, 0xe1, - 0x1d, 0x98, 0x6e, 0xd3, 0xb6, 0x9b, 0x07, 0x4e, 0xbf, 0x34, 0xd4, 0x9f, 0x1d, 0xda, 0x76, 0x09, - 0x87, 0x21, 0x02, 0xcb, 0x1e, 0xb5, 0xba, 0xf5, 0x43, 0xd3, 0xf2, 0xfd, 0xae, 0xbd, 0xdf, 0xf3, - 0xa9, 0x97, 0xcf, 0x71, 0xee, 0xcd, 0xa1, 0x5c, 0x9d, 0xa3, 0xa5, 0x18, 0x4c, 0x44, 0xef, 0x84, - 0x05, 0x95, 0x61, 0xd9, 0xea, 0xf9, 0xae, 0xd9, 0xa5, 0x1e, 0xf5, 0xcd, 0x8e, 0x6b, 0x3b, 0xbe, - 0x97, 0x9f, 0xe7, 0x9a, 0x2b, 0x43, 0x35, 0x09, 0x03, 0x56, 0x39, 0x8e, 0x2c, 0x31, 0x6a, 0xc2, - 0x80, 0xae, 0xc0, 0x1c, 0xeb, 0x27, 0x93, 0x35, 0x54, 0x7e, 0x81, 0xe7, 0xe3, 0x0c, 0x33, 0x94, - 0x6d, 0xcf, 0x2f, 0xfe, 0x2e, 0x03, 0x85, 0xd3, 0x85, 0xe0, 0x3a, 0x07, 0x76, 0x33, 0x1c, 0x04, - 0xe8, 0xf3, 0x24, 0x3f, 0x68, 0xad, 0x6b, 0x43, 0xbd, 0x30, 0x42, 0xd1, 0xbe, 0x3c, 0x6a, 0xc2, - 0x4a, 0x3f, 0x2b, 0x61, 0x6f, 0xb8, 0x66, 0xbf, 0xc6, 0xdd, 0x9e, 0x1f, 0x36, 0xd9, 0xa5, 0x53, - 0x79, 0x52, 0x42, 0x07, 0x36, 0xa7, 0x7f, 0xc5, 0xd2, 0x74, 0x35, 0x16, 0xd2, 0x79, 0xbf, 0xb8, - 0x72, 0x54, 0xf5, 0x6e, 0xcf, 0x47, 0x3f, 0x85, 0x2b, 0xdc, 0xc9, 0x11, 0x7b, 0x64, 0xd3, 0xed, - 0x71, 0x91, 0x69, 0x0c, 0x91, 0x2f, 0xfe, 0x67, 0x06, 0xce, 0x56, 0xa9, 0xd3, 0xb0, 0x9d, 0xa6, - 0x54, 0xf7, 0xed, 0x17, 0xb6, 0x7f, 0xc4, 0xe7, 0xcf, 0x75, 0xc8, 0x59, 0xe1, 0x6f, 0x56, 0xed, - 0x02, 0x8f, 0x2e, 0x44, 0x26, 0xb5, 0x81, 0xb6, 0x60, 0x21, 0x06, 0x4c, 0x1c, 0x29, 0x91, 0x34, - 0x1f, 0x29, 0xf3, 0x56, 0xe2, 0x17, 0x7a, 0x04, 0x33, 0xac, 0xa5, 0x83, 0xa9, 0xb2, 0x78, 0xf7, - 0xf6, 0x50, 0xfe, 0x09, 0x0f, 0x59, 0xf7, 0x52, 0x12, 0xf0, 0x90, 0x0a, 0xcb, 0x87, 0xd4, 0xea, - 0xfa, 0xfb, 0xd4, 0xf2, 0xcd, 0x06, 0xf5, 0x2d, 0xbb, 0xe5, 0x85, 0x13, 0xe6, 0xea, 0x70, 0x31, - 0xeb, 0xa8, 0xe5, 0x5a, 0x0d, 0x22, 0xc6, 0x34, 0x25, 0x60, 0xa1, 0x2a, 0x9c, 0x6d, 0x59, 0x9e, - 0x6f, 0xf6, 0xf5, 0x78, 0xbf, 0xcd, 0xa4, 0xec, 0xb7, 0x65, 0x46, 0xde, 0x8e, 0xb8, 0xbc, 0xe7, - 0xca, 0xc0, 0x8d, 0x41, 0xf6, 0x68, 0x23, 0xd0, 0x9b, 0x4d, 0xa9, 0xb7, 0xc4, 0xa8, 0x7a, 0xc0, - 0xe4, 0x6a, 0x79, 0xf8, 0xc0, 0xf2, 0x7d, 0xda, 0xee, 0xf8, 0x7c, 0xfc, 0xcc, 0x90, 0xe8, 0x27, - 0xba, 0x0d, 0x62, 0xdb, 0x7a, 0x65, 0xb7, 0x7b, 0x6d, 0x33, 0x34, 0x79, 0x7c, 0xee, 0xcc, 0x90, - 0xa5, 0xd0, 0x2e, 0x85, 0x66, 0x36, 0x4f, 0xbc, 0xfa, 0x21, 0x6d, 0xf4, 0x5a, 0x91, 0x3f, 0xa9, - 0xe7, 0x49, 0xcc, 0xe3, 0xde, 0xa8, 0xb0, 0x44, 0x5f, 0x75, 0xec, 0xa0, 0xce, 0x02, 0x25, 0x48, - 0xa9, 0xb4, 0xd8, 0x27, 0x86, 0xd7, 0xc3, 0x3c, 0x0f, 0xd3, 0x81, 0x65, 0xb7, 0x7a, 0x5d, 0x1a, - 0x8e, 0x99, 0xe1, 0xe9, 0xdb, 0x0a, 0x30, 0x24, 0xc7, 0x18, 0xe1, 0x0f, 0xf4, 0x31, 0x9c, 0xe3, - 0x02, 0xec, 0xc6, 0xa3, 0x5d, 0xd3, 0x6e, 0x50, 0xc7, 0xb7, 0xfd, 0x23, 0x3e, 0x5b, 0xe6, 0x08, - 0x62, 0x6b, 0xbb, 0x7c, 0x49, 0x0d, 0x57, 0x8a, 0xbf, 0xc9, 0xc0, 0xa5, 0xb0, 0xac, 0xe4, 0x43, - 0xbb, 0xd5, 0xf8, 0x9f, 0x5c, 0xbf, 0x1f, 0x25, 0x64, 0x59, 0xd3, 0x98, 0x8e, 0xd5, 0x0e, 0x3a, - 0x67, 0x8e, 0x88, 0x2f, 0x13, 0xf7, 0xae, 0x66, 0xb5, 0x29, 0xba, 0x01, 0xf3, 0xb6, 0x63, 0xfb, - 0xb6, 0xc5, 0x2a, 0xc7, 0x6e, 0xf0, 0x0e, 0xc9, 0x92, 0x5c, 0x6c, 0x53, 0x1b, 0xe8, 0x29, 0x9c, - 0x0d, 0xef, 0x9b, 0x60, 0x2c, 0x74, 0xdc, 0x96, 0x5d, 0x3f, 0xe2, 0xe5, 0xbf, 0x38, 0xc2, 0xd1, - 0x2a, 0xc7, 0xf3, 0x21, 0x50, 0xe5, 0x68, 0xb2, 0xdc, 0x39, 0x69, 0x2a, 0xbe, 0xc9, 0xc4, 0x63, - 0x41, 0xa1, 0x75, 0xdb, 0x8b, 0xe2, 0x12, 0x77, 0xab, 0x30, 0xb9, 0x5b, 0x23, 0xe2, 0x40, 0xb7, - 0x9e, 0xae, 0xbe, 0xcc, 0x77, 0xab, 0x3e, 0x19, 0xe6, 0x07, 0x9a, 0x2a, 0xed, 0xa3, 0x24, 0xe7, - 0x0d, 0x6f, 0xa8, 0xe9, 0xc1, 0x86, 0x7a, 0x06, 0x17, 0xdd, 0xae, 0xdd, 0xb4, 0x1d, 0xab, 0x65, - 0x9e, 0x70, 0x38, 0xed, 0x38, 0x38, 0x1f, 0x09, 0xe8, 0x49, 0xc7, 0x8b, 0x7f, 0xcb, 0xc0, 0xa5, - 0x68, 0x90, 0x95, 0xdd, 0xba, 0xd5, 0x52, 0x6c, 0xaf, 0x63, 0xf9, 0xf5, 0xc3, 0x74, 0x73, 0xf7, - 0xff, 0x2b, 0x80, 0x0d, 0x28, 0x0c, 0x7a, 0x63, 0xba, 0x07, 0xa6, 0x7f, 0x68, 0x7b, 0x66, 0x32, - 0xae, 0x69, 0x64, 0x2f, 0x0f, 0x78, 0x57, 0x39, 0x30, 0x0e, 0x6d, 0x2f, 0x9c, 0x59, 0xe8, 0x1a, - 0x00, 0xbf, 0x03, 0x7d, 0xf7, 0x39, 0x75, 0x78, 0xfc, 0xe7, 0x09, 0xbf, 0xba, 0x0d, 0x66, 0x28, - 0x7e, 0x09, 0xb9, 0xe4, 0xb3, 0xe0, 0x21, 0xcc, 0x86, 0x2f, 0x0b, 0x61, 0x25, 0xbb, 0x9a, 0xbb, - 0xfb, 0xbd, 0x09, 0x2f, 0x0b, 0x16, 0x77, 0x12, 0x52, 0x8a, 0x7f, 0xca, 0xc0, 0xe2, 0xe0, 0x12, - 0xfa, 0x10, 0x96, 0xf6, 0x6d, 0xc7, 0xea, 0x1e, 0x99, 0xf5, 0x43, 0x5a, 0x7f, 0xee, 0xf5, 0xda, - 0x61, 0x5a, 0x16, 0x03, 0xb3, 0x1c, 0x5a, 0xd1, 0x79, 0x98, 0xed, 0xf6, 0xf8, 0xe3, 0x30, 0xe8, - 0xe8, 0x99, 0x6e, 0x8f, 0xbd, 0x09, 0xbf, 0x80, 0x2b, 0x07, 0x76, 0xd7, 0x63, 0x97, 0x53, 0xd0, - 0x10, 0x66, 0xdd, 0x6d, 0x77, 0x5a, 0x74, 0xa0, 0xab, 0xf3, 0x1c, 0x12, 0xb5, 0x8c, 0x1c, 0x01, - 0xd4, 0x06, 0xcb, 0x53, 0xbd, 0x4b, 0xad, 0x38, 0x4f, 0x69, 0x03, 0x9a, 0x0b, 0x59, 0x3c, 0x4f, - 0x18, 0x16, 0xf8, 0xc8, 0xb5, 0x9d, 0xe6, 0xfb, 0x15, 0xf1, 0x7c, 0x44, 0xe3, 0x32, 0x05, 0x00, - 0xfe, 0x74, 0xf3, 0xad, 0xfd, 0x56, 0x70, 0x8f, 0x9d, 0x21, 0x09, 0x4b, 0xe9, 0x8f, 0x02, 0x9c, - 0x1b, 0x76, 0x57, 0xa3, 0x22, 0x14, 0xaa, 0x58, 0x53, 0x54, 0xed, 0xb1, 0x29, 0xc9, 0x86, 0xfa, - 0x54, 0x35, 0xf6, 0x4c, 0xdd, 0x90, 0x0c, 0x6c, 0xaa, 0xda, 0x53, 0xa9, 0xac, 0x2a, 0xe2, 0x14, - 0xfa, 0x3e, 0xac, 0x8c, 0xc0, 0xe8, 0xf2, 0x36, 0x56, 0x6a, 0x65, 0xac, 0x88, 0xc2, 0x18, 0x25, - 0xdd, 0x90, 0x88, 0x81, 0x15, 0x31, 0x83, 0x7e, 0x00, 0x1f, 0x8e, 0xc0, 0xc8, 0x92, 0x26, 0xe3, - 0xb2, 0x49, 0xf0, 0x57, 0x35, 0xac, 0x33, 0x70, 0xb6, 0xf4, 0x8b, 0xbe, 0xcf, 0x03, 0x13, 0x2b, - 0xb9, 0x93, 0x82, 0x65, 0x55, 0x57, 0x2b, 0xda, 0x38, 0x9f, 0x4f, 0x60, 0x46, 0xf8, 0x7c, 0x12, - 0x15, 0xf9, 0x5c, 0xfa, 0x65, 0xa6, 0xff, 0x29, 0xa8, 0x36, 0x08, 0xed, 0x45, 0xb3, 0x98, 0xed, - 0xb1, 0x5b, 0x21, 0x4f, 0xb6, 0xca, 0x95, 0x5d, 0x53, 0x55, 0x4c, 0x82, 0x6b, 0x3a, 0x36, 0xab, - 0x95, 0xb2, 0x2a, 0xef, 0x25, 0x3c, 0xf9, 0x21, 0x7c, 0x32, 0x12, 0x25, 0x95, 0x99, 0x55, 0xa9, - 0x55, 0xcb, 0xaa, 0xcc, 0x76, 0xdd, 0x92, 0xd4, 0x32, 0x56, 0xcc, 0x8a, 0x56, 0xde, 0x13, 0x05, - 0xf4, 0x11, 0xac, 0xa6, 0x65, 0x8a, 0x19, 0x74, 0x07, 0x6e, 0x8f, 0x44, 0x13, 0xfc, 0x25, 0x96, - 0x8d, 0x04, 0x3c, 0x8b, 0x36, 0xe0, 0xce, 0x48, 0xb8, 0x81, 0xc9, 0x8e, 0xaa, 0xf1, 0x80, 0x6e, - 0x99, 0xa4, 0xa6, 0x69, 0xaa, 0xf6, 0x58, 0x9c, 0x2e, 0xfd, 0x56, 0x80, 0xe5, 0x53, 0x97, 0x14, - 0xba, 0x0e, 0x57, 0xaa, 0x12, 0xc1, 0x9a, 0x61, 0xca, 0xe5, 0xca, 0xb0, 0x00, 0x8c, 0x00, 0x48, - 0x9b, 0x92, 0xa6, 0x54, 0x34, 0x51, 0x40, 0xb7, 0xa0, 0x38, 0x0c, 0x10, 0xd6, 0x42, 0x58, 0x1a, - 0x62, 0x06, 0xdd, 0x80, 0x6b, 0xc3, 0x70, 0xb1, 0xb7, 0x62, 0xb6, 0xf4, 0xef, 0x0c, 0x5c, 0x1d, - 0xf7, 0x95, 0xc9, 0x2a, 0x30, 0x3e, 0x36, 0x7e, 0x86, 0xe5, 0x9a, 0xc1, 0x72, 0x1e, 0xe8, 0xb1, - 0xcc, 0xd7, 0xf4, 0x84, 0xe7, 0xc9, 0x90, 0x8e, 0x00, 0xcb, 0x95, 0x9d, 0x6a, 0x19, 0x1b, 0xbc, - 0x9a, 0x4a, 0x70, 0x6b, 0x12, 0x3c, 0x48, 0xb0, 0x98, 0x19, 0xc8, 0xed, 0x28, 0x69, 0x7e, 0x6e, - 0xd6, 0x0a, 0x68, 0x0d, 0x4a, 0x93, 0xd0, 0x71, 0x14, 0x14, 0x71, 0x1a, 0x7d, 0x02, 0x1f, 0x4f, - 0x76, 0x5c, 0x33, 0x54, 0xad, 0x86, 0x15, 0x53, 0xd2, 0x4d, 0x0d, 0xef, 0x8a, 0x33, 0x69, 0x8e, - 0x6b, 0xa8, 0x3b, 0xac, 0x3e, 0x6b, 0x86, 0x38, 0x5b, 0xfa, 0xb3, 0x00, 0x17, 0x64, 0xd7, 0xf1, - 0x6d, 0xa7, 0x47, 0x25, 0x4f, 0xa3, 0x2f, 0xd5, 0xe0, 0xfd, 0xe3, 0x76, 0xd1, 0x4d, 0xb8, 0x11, - 0xe9, 0x87, 0xf2, 0xa6, 0xaa, 0xa9, 0x86, 0x2a, 0x19, 0x15, 0x92, 0x88, 0xef, 0x58, 0x18, 0x6b, - 0x48, 0x05, 0x93, 0x20, 0xae, 0xa3, 0x61, 0x04, 0x1b, 0x64, 0x2f, 0x2c, 0x85, 0x60, 0xc2, 0x8c, - 0xc6, 0xca, 0x84, 0xf5, 0x77, 0xd8, 0xff, 0x62, 0xb6, 0xf4, 0x07, 0x01, 0x72, 0xe1, 0xf7, 0x16, - 0xff, 0xe4, 0xc9, 0xc3, 0x39, 0x76, 0xc0, 0x4a, 0xcd, 0x30, 0x8d, 0xbd, 0x2a, 0x1e, 0xac, 0xe1, - 0x81, 0x15, 0x3e, 0x1e, 0x4c, 0xa3, 0x12, 0x44, 0x27, 0x98, 0x24, 0x83, 0x80, 0x70, 0x17, 0x86, - 0xe1, 0x60, 0x31, 0x33, 0x16, 0x13, 0xe8, 0x64, 0xd1, 0x65, 0xb8, 0x30, 0x80, 0xd9, 0xc6, 0x12, - 0x31, 0x36, 0xb1, 0x64, 0x88, 0xd3, 0xa5, 0xbf, 0xe7, 0xe0, 0x62, 0x34, 0x09, 0xd9, 0x97, 0x2f, - 0x7b, 0x63, 0xd3, 0x86, 0x6c, 0xf5, 0x3c, 0xca, 0x7a, 0x28, 0x9e, 0x60, 0x86, 0xa4, 0x3f, 0x89, - 0x46, 0x89, 0x2c, 0xb1, 0xbe, 0xee, 0x1f, 0x64, 0x03, 0xee, 0x8c, 0xc1, 0xd5, 0xb4, 0x6d, 0x49, - 0x53, 0xd8, 0xef, 0x08, 0x24, 0x0a, 0xe8, 0x11, 0x3c, 0x1c, 0x43, 0xd9, 0x94, 0x94, 0xfe, 0x41, - 0xe2, 0xa1, 0x2e, 0x19, 0x06, 0x51, 0x37, 0x6b, 0x06, 0xd6, 0xc5, 0x0c, 0xc2, 0x20, 0x4d, 0x10, - 0x18, 0x6c, 0xf5, 0xa1, 0x32, 0x59, 0xf4, 0x19, 0xdc, 0x9f, 0xe4, 0x47, 0x90, 0x15, 0x75, 0x07, - 0x93, 0x24, 0x75, 0x1a, 0x7d, 0x0e, 0x9f, 0x4e, 0xa0, 0x86, 0x3b, 0x9f, 0xe2, 0xce, 0xa0, 0x87, - 0xf0, 0x60, 0xa2, 0xf7, 0x72, 0x85, 0x28, 0xe6, 0x8e, 0x44, 0x9e, 0x0c, 0x92, 0x67, 0x91, 0x0a, - 0x78, 0xd2, 0xc6, 0xe1, 0x00, 0x31, 0x87, 0xb4, 0x5e, 0x42, 0xea, 0x83, 0x14, 0x51, 0x64, 0x86, - 0x09, 0x32, 0x67, 0xd0, 0x63, 0x90, 0xd3, 0x85, 0x62, 0xbc, 0xd0, 0x1c, 0x7a, 0x06, 0xc6, 0xfb, - 0x65, 0x15, 0x3f, 0x33, 0x30, 0xd1, 0xa4, 0x49, 0xca, 0x80, 0xbe, 0x80, 0xcf, 0x26, 0x06, 0x6d, - 0xb0, 0xc5, 0x13, 0xf4, 0x1c, 0x7a, 0x00, 0xf7, 0xc6, 0xd0, 0x93, 0x35, 0xd2, 0xbf, 0x78, 0x55, - 0x45, 0x9c, 0x47, 0xf7, 0x61, 0x63, 0x0c, 0x91, 0x60, 0x1d, 0x1b, 0xa6, 0x6e, 0xa8, 0xf2, 0x93, - 0xbd, 0x60, 0xb9, 0xac, 0xea, 0x86, 0xb8, 0x80, 0x7e, 0x02, 0x3f, 0x1a, 0x43, 0x8b, 0x0f, 0xcb, - 0xfe, 0xc0, 0x24, 0xd1, 0x62, 0x0c, 0x56, 0x23, 0x58, 0x5c, 0x4c, 0x91, 0x13, 0x5d, 0x7d, 0x3c, - 0x39, 0x72, 0x4b, 0x48, 0x86, 0x47, 0xa9, 0x5a, 0x44, 0xde, 0x56, 0xcb, 0xca, 0x70, 0x11, 0x11, - 0xdd, 0x83, 0xf5, 0x31, 0x22, 0x5b, 0x15, 0x22, 0xe3, 0xf0, 0x52, 0x88, 0x87, 0xc4, 0x32, 0xfa, - 0x14, 0xee, 0x8e, 0x23, 0x49, 0x6a, 0xb9, 0xf2, 0x14, 0x93, 0x93, 0x3c, 0xc4, 0x6e, 0xaa, 0x74, - 0x47, 0x57, 0xb5, 0x6a, 0xcd, 0x30, 0x75, 0xf5, 0x6b, 0x2c, 0x9e, 0x65, 0x37, 0xd5, 0xc4, 0x4c, - 0x45, 0xb1, 0x12, 0xcf, 0xa1, 0xdb, 0x70, 0x73, 0xc2, 0x26, 0x9b, 0xaa, 0x26, 0x91, 0x3d, 0xf1, - 0xfc, 0x84, 0xda, 0x3b, 0x3d, 0xe8, 0x06, 0x4a, 0xe8, 0x42, 0x9a, 0xe3, 0x60, 0x89, 0xc8, 0xdb, - 0xc9, 0x88, 0x5f, 0x2c, 0xfd, 0x5a, 0x80, 0x1b, 0xfc, 0x7f, 0x1d, 0xa7, 0x9e, 0x2e, 0xc9, 0x11, - 0xbf, 0x01, 0x77, 0x82, 0xbc, 0x0d, 0xa9, 0x82, 0x11, 0xd3, 0x7e, 0x13, 0x7e, 0x9c, 0x8e, 0x12, - 0xaf, 0x4b, 0x65, 0x82, 0x25, 0x65, 0x2f, 0x7e, 0xf5, 0x09, 0xa5, 0xbf, 0x08, 0x50, 0x92, 0x2d, - 0xa7, 0x4e, 0x5b, 0xf8, 0x95, 0x4f, 0xbb, 0x8e, 0xd5, 0x1a, 0xeb, 0xe5, 0x43, 0x78, 0x90, 0xa2, - 0xdf, 0x47, 0xf8, 0xbb, 0x0b, 0xfa, 0xfb, 0x92, 0x6b, 0xda, 0x13, 0xad, 0xb2, 0xab, 0x8d, 0x23, - 0x84, 0x87, 0xd0, 0xed, 0xa6, 0x63, 0xa5, 0x3e, 0x44, 0x58, 0x76, 0xdf, 0xed, 0x10, 0xef, 0x4b, - 0x4e, 0x75, 0x88, 0xcd, 0x9f, 0xbd, 0x7e, 0x5b, 0x98, 0x7a, 0xf3, 0xb6, 0x30, 0xf5, 0xed, 0xdb, - 0x82, 0xf0, 0xf3, 0xe3, 0x82, 0xf0, 0xfb, 0xe3, 0x82, 0xf0, 0xd7, 0xe3, 0x82, 0xf0, 0xfa, 0xb8, - 0x20, 0xfc, 0xf3, 0xb8, 0x20, 0xfc, 0xeb, 0xb8, 0x30, 0xf5, 0xed, 0x71, 0x41, 0xf8, 0xe6, 0x5d, - 0x61, 0xea, 0xf5, 0xbb, 0xc2, 0xd4, 0x9b, 0x77, 0x85, 0x29, 0xb8, 0x58, 0x77, 0xdb, 0xc3, 0x3e, - 0xb4, 0x37, 0xcf, 0x48, 0x1d, 0xbb, 0xca, 0x3e, 0x2f, 0xab, 0xc2, 0xd7, 0x33, 0x56, 0xc7, 0x7e, - 0xb1, 0xb1, 0x3f, 0xcb, 0x3f, 0x37, 0xef, 0xfd, 0x37, 0x00, 0x00, 0xff, 0xff, 0x46, 0x9c, 0x3e, - 0x84, 0xdd, 0x1b, 0x00, 0x00, +var File_uber_cadence_api_v1_workflow_proto protoreflect.FileDescriptor + +var file_uber_cadence_api_v1_workflow_proto_rawDesc = []byte{ + 0x0a, 0x22, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x75, 0x62, 0x65, 0x72, + 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, + 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x75, 0x62, + 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, + 0x31, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x22, 0xc6, 0x06, 0x0a, 0x15, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, + 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x35, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x21, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x79, + 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, + 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, + 0x69, 0x6d, 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x5f, 0x74, 0x69, 0x6d, + 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x54, + 0x0a, 0x0c, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x31, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6c, 0x6f, 0x73, + 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0b, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x5f, + 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x68, 0x69, + 0x73, 0x74, 0x6f, 0x72, 0x79, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x28, 0x0a, 0x10, 0x70, + 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x44, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x51, 0x0a, 0x10, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, + 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x41, 0x0a, 0x0e, 0x65, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0d, 0x65, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x04, 0x6d, + 0x65, 0x6d, 0x6f, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x65, 0x6d, 0x6f, 0x52, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x12, 0x52, 0x0a, 0x11, 0x73, 0x65, + 0x61, 0x72, 0x63, 0x68, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, + 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, + 0x63, 0x68, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x10, 0x73, 0x65, + 0x61, 0x72, 0x63, 0x68, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x4c, + 0x0a, 0x11, 0x61, 0x75, 0x74, 0x6f, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x74, 0x5f, 0x70, 0x6f, 0x69, + 0x6e, 0x74, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x52, 0x65, 0x73, 0x65, 0x74, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x52, 0x0f, 0x61, 0x75, 0x74, + 0x6f, 0x52, 0x65, 0x73, 0x65, 0x74, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x1b, 0x0a, 0x09, + 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x74, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x98, 0x02, 0x0a, 0x1e, 0x57, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3a, 0x0a, 0x09, + 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x08, + 0x74, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x61, 0x0a, 0x20, 0x65, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x6f, 0x5f, 0x63, + 0x6c, 0x6f, 0x73, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x1c, 0x65, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x6f, 0x43, + 0x6c, 0x6f, 0x73, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x57, 0x0a, 0x1b, 0x74, + 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x6f, 0x5f, 0x63, 0x6c, 0x6f, + 0x73, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x17, 0x74, 0x61, 0x73, + 0x6b, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x6f, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x54, 0x69, 0x6d, + 0x65, 0x6f, 0x75, 0x74, 0x22, 0xde, 0x05, 0x0a, 0x13, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, + 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1f, 0x0a, 0x0b, + 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x46, 0x0a, + 0x0d, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, + 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, + 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3f, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, 0x6e, 0x64, 0x69, + 0x6e, 0x67, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, + 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x49, 0x0a, 0x11, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, + 0x65, 0x61, 0x74, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, + 0x10, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, + 0x73, 0x12, 0x4a, 0x0a, 0x13, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, + 0x65, 0x61, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x11, 0x6c, 0x61, 0x73, 0x74, + 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x46, 0x0a, + 0x11, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x69, + 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0f, 0x6c, 0x61, 0x73, 0x74, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, + 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x12, + 0x29, 0x0a, 0x10, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x6d, + 0x70, 0x74, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x6d, 0x61, 0x78, 0x69, 0x6d, + 0x75, 0x6d, 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x73, 0x12, 0x41, 0x0a, 0x0e, 0x73, 0x63, + 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0d, + 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x43, 0x0a, + 0x0f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, + 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x52, 0x0e, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, + 0x6d, 0x65, 0x12, 0x3f, 0x0a, 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x75, + 0x72, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x46, + 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x52, 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x46, 0x61, 0x69, 0x6c, + 0x75, 0x72, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x77, 0x6f, 0x72, 0x6b, + 0x65, 0x72, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x0c, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x12, 0x6c, 0x61, 0x73, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0x9b, 0x02, 0x0a, 0x19, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, + 0x67, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, + 0x6e, 0x66, 0x6f, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, + 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2c, 0x0a, 0x12, 0x77, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x54, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x6e, 0x69, 0x74, + 0x69, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, + 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x49, 0x64, 0x12, 0x56, 0x0a, 0x13, 0x70, + 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x5f, 0x70, 0x6f, 0x6c, 0x69, + 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, + 0x61, 0x72, 0x65, 0x6e, 0x74, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, + 0x52, 0x11, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x50, 0x6f, 0x6c, + 0x69, 0x63, 0x79, 0x22, 0xc6, 0x02, 0x0a, 0x13, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x44, + 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x3f, 0x0a, 0x05, 0x73, + 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x41, 0x0a, 0x0e, + 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, + 0x3d, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x18, + 0x0a, 0x07, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x07, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x12, 0x52, 0x0a, 0x17, 0x6f, 0x72, 0x69, 0x67, + 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x5f, 0x74, + 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x15, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x53, + 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xbd, 0x02, 0x0a, + 0x19, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x44, 0x69, + 0x73, 0x70, 0x61, 0x74, 0x63, 0x68, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x63, + 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x41, 0x0a, 0x0e, 0x73, + 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, + 0x0d, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3d, + 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x5e, 0x0a, + 0x1e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, + 0x6f, 0x66, 0x5f, 0x74, 0x68, 0x69, 0x73, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x52, 0x1a, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, + 0x4f, 0x66, 0x54, 0x68, 0x69, 0x73, 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x12, 0x1d, 0x0a, + 0x0a, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x4a, 0x0a, 0x0b, + 0x52, 0x65, 0x73, 0x65, 0x74, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x3b, 0x0a, 0x06, 0x70, + 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x74, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, + 0x52, 0x06, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x22, 0xaf, 0x02, 0x0a, 0x0e, 0x52, 0x65, 0x73, + 0x65, 0x74, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x27, 0x0a, 0x0f, 0x62, + 0x69, 0x6e, 0x61, 0x72, 0x79, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x43, 0x68, 0x65, 0x63, + 0x6b, 0x73, 0x75, 0x6d, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x3d, 0x0a, 0x1b, 0x66, + 0x69, 0x72, 0x73, 0x74, 0x5f, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, + 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x18, 0x66, 0x69, 0x72, 0x73, 0x74, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x43, + 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x49, 0x64, 0x12, 0x3d, 0x0a, 0x0c, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0b, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x65, 0x78, 0x70, + 0x69, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x65, 0x78, + 0x70, 0x69, 0x72, 0x69, 0x6e, 0x67, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, + 0x73, 0x65, 0x74, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, + 0x72, 0x65, 0x73, 0x65, 0x74, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2a, 0xb1, 0x01, 0x0a, 0x14, 0x50, + 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x12, 0x22, 0x0a, 0x1e, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x41, + 0x43, 0x54, 0x49, 0x56, 0x49, 0x54, 0x59, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x49, 0x4e, + 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x24, 0x0a, 0x20, 0x50, 0x45, 0x4e, 0x44, 0x49, + 0x4e, 0x47, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, 0x49, 0x54, 0x59, 0x5f, 0x53, 0x54, 0x41, 0x54, + 0x45, 0x5f, 0x53, 0x43, 0x48, 0x45, 0x44, 0x55, 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, 0x22, 0x0a, + 0x1e, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, 0x49, 0x54, + 0x59, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x45, 0x44, 0x10, + 0x02, 0x12, 0x2b, 0x0a, 0x27, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x41, 0x43, 0x54, + 0x49, 0x56, 0x49, 0x54, 0x59, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x43, 0x41, 0x4e, 0x43, + 0x45, 0x4c, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x45, 0x44, 0x10, 0x03, 0x2a, 0x84, + 0x01, 0x0a, 0x14, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, + 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x22, 0x0a, 0x1e, 0x50, 0x45, 0x4e, 0x44, 0x49, + 0x4e, 0x47, 0x5f, 0x44, 0x45, 0x43, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, + 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x24, 0x0a, 0x20, 0x50, + 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x44, 0x45, 0x43, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x5f, + 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x43, 0x48, 0x45, 0x44, 0x55, 0x4c, 0x45, 0x44, 0x10, + 0x01, 0x12, 0x22, 0x0a, 0x1e, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x44, 0x45, 0x43, + 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x52, + 0x54, 0x45, 0x44, 0x10, 0x02, 0x2a, 0x87, 0x02, 0x0a, 0x15, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x49, 0x64, 0x52, 0x65, 0x75, 0x73, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, + 0x24, 0x0a, 0x20, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x49, 0x44, 0x5f, 0x52, + 0x45, 0x55, 0x53, 0x45, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x49, 0x4e, 0x56, 0x41, + 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x38, 0x0a, 0x34, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, + 0x57, 0x5f, 0x49, 0x44, 0x5f, 0x52, 0x45, 0x55, 0x53, 0x45, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, + 0x59, 0x5f, 0x41, 0x4c, 0x4c, 0x4f, 0x57, 0x5f, 0x44, 0x55, 0x50, 0x4c, 0x49, 0x43, 0x41, 0x54, + 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x01, 0x12, + 0x2c, 0x0a, 0x28, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x49, 0x44, 0x5f, 0x52, + 0x45, 0x55, 0x53, 0x45, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x41, 0x4c, 0x4c, 0x4f, + 0x57, 0x5f, 0x44, 0x55, 0x50, 0x4c, 0x49, 0x43, 0x41, 0x54, 0x45, 0x10, 0x02, 0x12, 0x2d, 0x0a, + 0x29, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x49, 0x44, 0x5f, 0x52, 0x45, 0x55, + 0x53, 0x45, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, + 0x5f, 0x44, 0x55, 0x50, 0x4c, 0x49, 0x43, 0x41, 0x54, 0x45, 0x10, 0x03, 0x12, 0x31, 0x0a, 0x2d, + 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x49, 0x44, 0x5f, 0x52, 0x45, 0x55, 0x53, + 0x45, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x54, 0x45, 0x52, 0x4d, 0x49, 0x4e, 0x41, + 0x54, 0x45, 0x5f, 0x49, 0x46, 0x5f, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x04, 0x2a, + 0xa0, 0x01, 0x0a, 0x11, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x50, + 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x1f, 0x0a, 0x1b, 0x50, 0x41, 0x52, 0x45, 0x4e, 0x54, 0x5f, + 0x43, 0x4c, 0x4f, 0x53, 0x45, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x49, 0x4e, 0x56, + 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x1f, 0x0a, 0x1b, 0x50, 0x41, 0x52, 0x45, 0x4e, 0x54, + 0x5f, 0x43, 0x4c, 0x4f, 0x53, 0x45, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x41, 0x42, + 0x41, 0x4e, 0x44, 0x4f, 0x4e, 0x10, 0x01, 0x12, 0x26, 0x0a, 0x22, 0x50, 0x41, 0x52, 0x45, 0x4e, + 0x54, 0x5f, 0x43, 0x4c, 0x4f, 0x53, 0x45, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x52, + 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x10, 0x02, 0x12, + 0x21, 0x0a, 0x1d, 0x50, 0x41, 0x52, 0x45, 0x4e, 0x54, 0x5f, 0x43, 0x4c, 0x4f, 0x53, 0x45, 0x5f, + 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x54, 0x45, 0x52, 0x4d, 0x49, 0x4e, 0x41, 0x54, 0x45, + 0x10, 0x03, 0x2a, 0xe9, 0x02, 0x0a, 0x1c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x12, 0x2b, 0x0a, 0x27, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, + 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x43, 0x4c, 0x4f, 0x53, 0x45, 0x5f, + 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, + 0x12, 0x2d, 0x0a, 0x29, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x45, 0x58, 0x45, + 0x43, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x43, 0x4c, 0x4f, 0x53, 0x45, 0x5f, 0x53, 0x54, 0x41, + 0x54, 0x55, 0x53, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, + 0x2a, 0x0a, 0x26, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x45, 0x58, 0x45, 0x43, + 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x43, 0x4c, 0x4f, 0x53, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, + 0x55, 0x53, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x12, 0x2c, 0x0a, 0x28, 0x57, + 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4f, + 0x4e, 0x5f, 0x43, 0x4c, 0x4f, 0x53, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x43, + 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x12, 0x2e, 0x0a, 0x2a, 0x57, 0x4f, 0x52, + 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x5f, + 0x43, 0x4c, 0x4f, 0x53, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x54, 0x45, 0x52, + 0x4d, 0x49, 0x4e, 0x41, 0x54, 0x45, 0x44, 0x10, 0x04, 0x12, 0x34, 0x0a, 0x30, 0x57, 0x4f, 0x52, + 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x5f, + 0x43, 0x4c, 0x4f, 0x53, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x43, 0x4f, 0x4e, + 0x54, 0x49, 0x4e, 0x55, 0x45, 0x44, 0x5f, 0x41, 0x53, 0x5f, 0x4e, 0x45, 0x57, 0x10, 0x05, 0x12, + 0x2d, 0x0a, 0x29, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x45, 0x58, 0x45, 0x43, + 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x43, 0x4c, 0x4f, 0x53, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, + 0x55, 0x53, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x44, 0x5f, 0x4f, 0x55, 0x54, 0x10, 0x06, 0x2a, 0xbf, + 0x01, 0x0a, 0x16, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x41, 0x73, 0x4e, 0x65, 0x77, + 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x25, 0x0a, 0x21, 0x43, 0x4f, 0x4e, + 0x54, 0x49, 0x4e, 0x55, 0x45, 0x5f, 0x41, 0x53, 0x5f, 0x4e, 0x45, 0x57, 0x5f, 0x49, 0x4e, 0x49, + 0x54, 0x49, 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, + 0x12, 0x25, 0x0a, 0x21, 0x43, 0x4f, 0x4e, 0x54, 0x49, 0x4e, 0x55, 0x45, 0x5f, 0x41, 0x53, 0x5f, + 0x4e, 0x45, 0x57, 0x5f, 0x49, 0x4e, 0x49, 0x54, 0x49, 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x44, 0x45, + 0x43, 0x49, 0x44, 0x45, 0x52, 0x10, 0x01, 0x12, 0x2a, 0x0a, 0x26, 0x43, 0x4f, 0x4e, 0x54, 0x49, + 0x4e, 0x55, 0x45, 0x5f, 0x41, 0x53, 0x5f, 0x4e, 0x45, 0x57, 0x5f, 0x49, 0x4e, 0x49, 0x54, 0x49, + 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x52, 0x45, 0x54, 0x52, 0x59, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, + 0x59, 0x10, 0x02, 0x12, 0x2b, 0x0a, 0x27, 0x43, 0x4f, 0x4e, 0x54, 0x49, 0x4e, 0x55, 0x45, 0x5f, + 0x41, 0x53, 0x5f, 0x4e, 0x45, 0x57, 0x5f, 0x49, 0x4e, 0x49, 0x54, 0x49, 0x41, 0x54, 0x4f, 0x52, + 0x5f, 0x43, 0x52, 0x4f, 0x4e, 0x5f, 0x53, 0x43, 0x48, 0x45, 0x44, 0x55, 0x4c, 0x45, 0x10, 0x03, + 0x2a, 0xac, 0x01, 0x0a, 0x0b, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x18, 0x0a, 0x14, 0x54, 0x49, 0x4d, 0x45, 0x4f, 0x55, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x1f, 0x0a, 0x1b, 0x54, 0x49, + 0x4d, 0x45, 0x4f, 0x55, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, + 0x5f, 0x54, 0x4f, 0x5f, 0x43, 0x4c, 0x4f, 0x53, 0x45, 0x10, 0x01, 0x12, 0x22, 0x0a, 0x1e, 0x54, + 0x49, 0x4d, 0x45, 0x4f, 0x55, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x43, 0x48, 0x45, + 0x44, 0x55, 0x4c, 0x45, 0x5f, 0x54, 0x4f, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x10, 0x02, 0x12, + 0x22, 0x0a, 0x1e, 0x54, 0x49, 0x4d, 0x45, 0x4f, 0x55, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x53, 0x43, 0x48, 0x45, 0x44, 0x55, 0x4c, 0x45, 0x5f, 0x54, 0x4f, 0x5f, 0x43, 0x4c, 0x4f, 0x53, + 0x45, 0x10, 0x03, 0x12, 0x1a, 0x0a, 0x16, 0x54, 0x49, 0x4d, 0x45, 0x4f, 0x55, 0x54, 0x5f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x48, 0x45, 0x41, 0x52, 0x54, 0x42, 0x45, 0x41, 0x54, 0x10, 0x04, 0x2a, + 0xd6, 0x0b, 0x0a, 0x17, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, + 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x43, 0x61, 0x75, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x22, 0x44, + 0x45, 0x43, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x46, 0x41, 0x49, + 0x4c, 0x45, 0x44, 0x5f, 0x43, 0x41, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, + 0x44, 0x10, 0x00, 0x12, 0x31, 0x0a, 0x2d, 0x44, 0x45, 0x43, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x5f, + 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x43, 0x41, 0x55, 0x53, + 0x45, 0x5f, 0x55, 0x4e, 0x48, 0x41, 0x4e, 0x44, 0x4c, 0x45, 0x44, 0x5f, 0x44, 0x45, 0x43, 0x49, + 0x53, 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x12, 0x3f, 0x0a, 0x3b, 0x44, 0x45, 0x43, 0x49, 0x53, 0x49, + 0x4f, 0x4e, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x43, + 0x41, 0x55, 0x53, 0x45, 0x5f, 0x42, 0x41, 0x44, 0x5f, 0x53, 0x43, 0x48, 0x45, 0x44, 0x55, 0x4c, + 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, 0x49, 0x54, 0x59, 0x5f, 0x41, 0x54, 0x54, 0x52, 0x49, + 0x42, 0x55, 0x54, 0x45, 0x53, 0x10, 0x02, 0x12, 0x45, 0x0a, 0x41, 0x44, 0x45, 0x43, 0x49, 0x53, + 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x5f, + 0x43, 0x41, 0x55, 0x53, 0x45, 0x5f, 0x42, 0x41, 0x44, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, + 0x54, 0x5f, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, 0x49, 0x54, + 0x59, 0x5f, 0x41, 0x54, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x45, 0x53, 0x10, 0x03, 0x12, 0x39, + 0x0a, 0x35, 0x44, 0x45, 0x43, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, + 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x43, 0x41, 0x55, 0x53, 0x45, 0x5f, 0x42, 0x41, 0x44, + 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x52, 0x5f, 0x41, 0x54, 0x54, + 0x52, 0x49, 0x42, 0x55, 0x54, 0x45, 0x53, 0x10, 0x04, 0x12, 0x3a, 0x0a, 0x36, 0x44, 0x45, 0x43, + 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, + 0x44, 0x5f, 0x43, 0x41, 0x55, 0x53, 0x45, 0x5f, 0x42, 0x41, 0x44, 0x5f, 0x43, 0x41, 0x4e, 0x43, + 0x45, 0x4c, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x52, 0x5f, 0x41, 0x54, 0x54, 0x52, 0x49, 0x42, 0x55, + 0x54, 0x45, 0x53, 0x10, 0x05, 0x12, 0x3b, 0x0a, 0x37, 0x44, 0x45, 0x43, 0x49, 0x53, 0x49, 0x4f, + 0x4e, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x43, 0x41, + 0x55, 0x53, 0x45, 0x5f, 0x42, 0x41, 0x44, 0x5f, 0x52, 0x45, 0x43, 0x4f, 0x52, 0x44, 0x5f, 0x4d, + 0x41, 0x52, 0x4b, 0x45, 0x52, 0x5f, 0x41, 0x54, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x45, 0x53, + 0x10, 0x06, 0x12, 0x49, 0x0a, 0x45, 0x44, 0x45, 0x43, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, + 0x41, 0x53, 0x4b, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x43, 0x41, 0x55, 0x53, 0x45, + 0x5f, 0x42, 0x41, 0x44, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, 0x5f, 0x57, 0x4f, + 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4f, 0x4e, + 0x5f, 0x41, 0x54, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x45, 0x53, 0x10, 0x07, 0x12, 0x45, 0x0a, + 0x41, 0x44, 0x45, 0x43, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x46, + 0x41, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x43, 0x41, 0x55, 0x53, 0x45, 0x5f, 0x42, 0x41, 0x44, 0x5f, + 0x46, 0x41, 0x49, 0x4c, 0x5f, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x45, 0x58, + 0x45, 0x43, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x41, 0x54, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, + 0x45, 0x53, 0x10, 0x08, 0x12, 0x47, 0x0a, 0x43, 0x44, 0x45, 0x43, 0x49, 0x53, 0x49, 0x4f, 0x4e, + 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x43, 0x41, 0x55, + 0x53, 0x45, 0x5f, 0x42, 0x41, 0x44, 0x5f, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x5f, 0x57, 0x4f, + 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4f, 0x4e, + 0x5f, 0x41, 0x54, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x45, 0x53, 0x10, 0x09, 0x12, 0x58, 0x0a, + 0x54, 0x44, 0x45, 0x43, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x46, + 0x41, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x43, 0x41, 0x55, 0x53, 0x45, 0x5f, 0x42, 0x41, 0x44, 0x5f, + 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x5f, 0x45, + 0x58, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x5f, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, + 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x41, 0x54, 0x54, 0x52, 0x49, + 0x42, 0x55, 0x54, 0x45, 0x53, 0x10, 0x0a, 0x12, 0x3d, 0x0a, 0x39, 0x44, 0x45, 0x43, 0x49, 0x53, + 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x5f, + 0x43, 0x41, 0x55, 0x53, 0x45, 0x5f, 0x42, 0x41, 0x44, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x49, 0x4e, + 0x55, 0x45, 0x5f, 0x41, 0x53, 0x5f, 0x4e, 0x45, 0x57, 0x5f, 0x41, 0x54, 0x54, 0x52, 0x49, 0x42, + 0x55, 0x54, 0x45, 0x53, 0x10, 0x0b, 0x12, 0x37, 0x0a, 0x33, 0x44, 0x45, 0x43, 0x49, 0x53, 0x49, + 0x4f, 0x4e, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x43, + 0x41, 0x55, 0x53, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x52, + 0x5f, 0x44, 0x55, 0x50, 0x4c, 0x49, 0x43, 0x41, 0x54, 0x45, 0x5f, 0x49, 0x44, 0x10, 0x0c, 0x12, + 0x35, 0x0a, 0x31, 0x44, 0x45, 0x43, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x41, 0x53, 0x4b, + 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x43, 0x41, 0x55, 0x53, 0x45, 0x5f, 0x52, 0x45, + 0x53, 0x45, 0x54, 0x5f, 0x53, 0x54, 0x49, 0x43, 0x4b, 0x59, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, + 0x4c, 0x49, 0x53, 0x54, 0x10, 0x0d, 0x12, 0x40, 0x0a, 0x3c, 0x44, 0x45, 0x43, 0x49, 0x53, 0x49, + 0x4f, 0x4e, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x43, + 0x41, 0x55, 0x53, 0x45, 0x5f, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x57, 0x4f, + 0x52, 0x4b, 0x45, 0x52, 0x5f, 0x55, 0x4e, 0x48, 0x41, 0x4e, 0x44, 0x4c, 0x45, 0x44, 0x5f, 0x46, + 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x0e, 0x12, 0x47, 0x0a, 0x43, 0x44, 0x45, 0x43, 0x49, + 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, + 0x5f, 0x43, 0x41, 0x55, 0x53, 0x45, 0x5f, 0x42, 0x41, 0x44, 0x5f, 0x53, 0x49, 0x47, 0x4e, 0x41, + 0x4c, 0x5f, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, + 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x41, 0x54, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x45, 0x53, 0x10, + 0x0f, 0x12, 0x43, 0x0a, 0x3f, 0x44, 0x45, 0x43, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x41, + 0x53, 0x4b, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x43, 0x41, 0x55, 0x53, 0x45, 0x5f, + 0x42, 0x41, 0x44, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x5f, 0x43, 0x48, 0x49, 0x4c, 0x44, 0x5f, + 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x41, 0x54, 0x54, 0x52, 0x49, 0x42, + 0x55, 0x54, 0x45, 0x53, 0x10, 0x10, 0x12, 0x33, 0x0a, 0x2f, 0x44, 0x45, 0x43, 0x49, 0x53, 0x49, + 0x4f, 0x4e, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x43, + 0x41, 0x55, 0x53, 0x45, 0x5f, 0x46, 0x4f, 0x52, 0x43, 0x45, 0x5f, 0x43, 0x4c, 0x4f, 0x53, 0x45, + 0x5f, 0x44, 0x45, 0x43, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x10, 0x11, 0x12, 0x36, 0x0a, 0x32, 0x44, + 0x45, 0x43, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x46, 0x41, 0x49, + 0x4c, 0x45, 0x44, 0x5f, 0x43, 0x41, 0x55, 0x53, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x4f, 0x56, + 0x45, 0x52, 0x5f, 0x43, 0x4c, 0x4f, 0x53, 0x45, 0x5f, 0x44, 0x45, 0x43, 0x49, 0x53, 0x49, 0x4f, + 0x4e, 0x10, 0x12, 0x12, 0x34, 0x0a, 0x30, 0x44, 0x45, 0x43, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x5f, + 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x43, 0x41, 0x55, 0x53, + 0x45, 0x5f, 0x42, 0x41, 0x44, 0x5f, 0x53, 0x49, 0x47, 0x4e, 0x41, 0x4c, 0x5f, 0x49, 0x4e, 0x50, + 0x55, 0x54, 0x5f, 0x53, 0x49, 0x5a, 0x45, 0x10, 0x13, 0x12, 0x2d, 0x0a, 0x29, 0x44, 0x45, 0x43, + 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, + 0x44, 0x5f, 0x43, 0x41, 0x55, 0x53, 0x45, 0x5f, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x57, 0x4f, + 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x10, 0x14, 0x12, 0x29, 0x0a, 0x25, 0x44, 0x45, 0x43, 0x49, + 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, + 0x5f, 0x43, 0x41, 0x55, 0x53, 0x45, 0x5f, 0x42, 0x41, 0x44, 0x5f, 0x42, 0x49, 0x4e, 0x41, 0x52, + 0x59, 0x10, 0x15, 0x12, 0x3d, 0x0a, 0x39, 0x44, 0x45, 0x43, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x5f, + 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x43, 0x41, 0x55, 0x53, + 0x45, 0x5f, 0x53, 0x43, 0x48, 0x45, 0x44, 0x55, 0x4c, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, + 0x49, 0x54, 0x59, 0x5f, 0x44, 0x55, 0x50, 0x4c, 0x49, 0x43, 0x41, 0x54, 0x45, 0x5f, 0x49, 0x44, + 0x10, 0x16, 0x12, 0x34, 0x0a, 0x30, 0x44, 0x45, 0x43, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, + 0x41, 0x53, 0x4b, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x43, 0x41, 0x55, 0x53, 0x45, + 0x5f, 0x42, 0x41, 0x44, 0x5f, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x5f, 0x41, 0x54, 0x54, 0x52, + 0x49, 0x42, 0x55, 0x54, 0x45, 0x53, 0x10, 0x17, 0x2a, 0x9a, 0x01, 0x0a, 0x21, 0x43, 0x68, 0x69, + 0x6c, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x43, 0x61, 0x75, 0x73, 0x65, 0x12, 0x31, + 0x0a, 0x2d, 0x43, 0x48, 0x49, 0x4c, 0x44, 0x5f, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, + 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, + 0x44, 0x5f, 0x43, 0x41, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, + 0x00, 0x12, 0x42, 0x0a, 0x3e, 0x43, 0x48, 0x49, 0x4c, 0x44, 0x5f, 0x57, 0x4f, 0x52, 0x4b, 0x46, + 0x4c, 0x4f, 0x57, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41, + 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x43, 0x41, 0x55, 0x53, 0x45, 0x5f, 0x57, 0x4f, 0x52, 0x4b, 0x46, + 0x4c, 0x4f, 0x57, 0x5f, 0x41, 0x4c, 0x52, 0x45, 0x41, 0x44, 0x59, 0x5f, 0x52, 0x55, 0x4e, 0x4e, + 0x49, 0x4e, 0x47, 0x10, 0x01, 0x2a, 0xc2, 0x01, 0x0a, 0x2a, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, + 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x43, + 0x61, 0x75, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x37, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x5f, 0x45, + 0x58, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x5f, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, + 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, + 0x44, 0x5f, 0x43, 0x41, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, + 0x00, 0x12, 0x57, 0x0a, 0x53, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x5f, 0x45, 0x58, 0x54, 0x45, + 0x52, 0x4e, 0x41, 0x4c, 0x5f, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x45, 0x58, + 0x45, 0x43, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x43, + 0x41, 0x55, 0x53, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x45, 0x58, 0x54, + 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x5f, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x45, + 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x2a, 0xc2, 0x01, 0x0a, 0x2a, 0x53, + 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x57, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, + 0x69, 0x6c, 0x65, 0x64, 0x43, 0x61, 0x75, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x37, 0x53, 0x49, 0x47, + 0x4e, 0x41, 0x4c, 0x5f, 0x45, 0x58, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x5f, 0x57, 0x4f, 0x52, + 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x5f, + 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x43, 0x41, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x4e, 0x56, + 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x57, 0x0a, 0x53, 0x53, 0x49, 0x47, 0x4e, 0x41, 0x4c, + 0x5f, 0x45, 0x58, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x5f, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, + 0x4f, 0x57, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41, 0x49, + 0x4c, 0x45, 0x44, 0x5f, 0x43, 0x41, 0x55, 0x53, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, + 0x4e, 0x5f, 0x45, 0x58, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x5f, 0x57, 0x4f, 0x52, 0x4b, 0x46, + 0x4c, 0x4f, 0x57, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x42, + 0x56, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x42, 0x08, 0x41, 0x70, 0x69, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, + 0x2e, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, + 0x31, 0x3b, 0x61, 0x70, 0x69, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func (x PendingActivityState) String() string { - s, ok := PendingActivityState_name[int32(x)] - if ok { - return s - } - return strconv.Itoa(int(x)) -} -func (x PendingDecisionState) String() string { - s, ok := PendingDecisionState_name[int32(x)] - if ok { - return s - } - return strconv.Itoa(int(x)) -} -func (x WorkflowIdReusePolicy) String() string { - s, ok := WorkflowIdReusePolicy_name[int32(x)] - if ok { - return s - } - return strconv.Itoa(int(x)) -} -func (x ParentClosePolicy) String() string { - s, ok := ParentClosePolicy_name[int32(x)] - if ok { - return s - } - return strconv.Itoa(int(x)) -} -func (x WorkflowExecutionCloseStatus) String() string { - s, ok := WorkflowExecutionCloseStatus_name[int32(x)] - if ok { - return s - } - return strconv.Itoa(int(x)) +var ( + file_uber_cadence_api_v1_workflow_proto_rawDescOnce sync.Once + file_uber_cadence_api_v1_workflow_proto_rawDescData = file_uber_cadence_api_v1_workflow_proto_rawDesc +) + +func file_uber_cadence_api_v1_workflow_proto_rawDescGZIP() []byte { + file_uber_cadence_api_v1_workflow_proto_rawDescOnce.Do(func() { + file_uber_cadence_api_v1_workflow_proto_rawDescData = protoimpl.X.CompressGZIP(file_uber_cadence_api_v1_workflow_proto_rawDescData) + }) + return file_uber_cadence_api_v1_workflow_proto_rawDescData +} + +var file_uber_cadence_api_v1_workflow_proto_enumTypes = make([]protoimpl.EnumInfo, 11) +var file_uber_cadence_api_v1_workflow_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_uber_cadence_api_v1_workflow_proto_goTypes = []interface{}{ + (PendingActivityState)(0), // 0: uber.cadence.api.v1.PendingActivityState + (PendingDecisionState)(0), // 1: uber.cadence.api.v1.PendingDecisionState + (WorkflowIdReusePolicy)(0), // 2: uber.cadence.api.v1.WorkflowIdReusePolicy + (ParentClosePolicy)(0), // 3: uber.cadence.api.v1.ParentClosePolicy + (WorkflowExecutionCloseStatus)(0), // 4: uber.cadence.api.v1.WorkflowExecutionCloseStatus + (ContinueAsNewInitiator)(0), // 5: uber.cadence.api.v1.ContinueAsNewInitiator + (TimeoutType)(0), // 6: uber.cadence.api.v1.TimeoutType + (DecisionTaskFailedCause)(0), // 7: uber.cadence.api.v1.DecisionTaskFailedCause + (ChildWorkflowExecutionFailedCause)(0), // 8: uber.cadence.api.v1.ChildWorkflowExecutionFailedCause + (CancelExternalWorkflowExecutionFailedCause)(0), // 9: uber.cadence.api.v1.CancelExternalWorkflowExecutionFailedCause + (SignalExternalWorkflowExecutionFailedCause)(0), // 10: uber.cadence.api.v1.SignalExternalWorkflowExecutionFailedCause + (*WorkflowExecutionInfo)(nil), // 11: uber.cadence.api.v1.WorkflowExecutionInfo + (*WorkflowExecutionConfiguration)(nil), // 12: uber.cadence.api.v1.WorkflowExecutionConfiguration + (*PendingActivityInfo)(nil), // 13: uber.cadence.api.v1.PendingActivityInfo + (*PendingChildExecutionInfo)(nil), // 14: uber.cadence.api.v1.PendingChildExecutionInfo + (*PendingDecisionInfo)(nil), // 15: uber.cadence.api.v1.PendingDecisionInfo + (*ActivityLocalDispatchInfo)(nil), // 16: uber.cadence.api.v1.ActivityLocalDispatchInfo + (*ResetPoints)(nil), // 17: uber.cadence.api.v1.ResetPoints + (*ResetPointInfo)(nil), // 18: uber.cadence.api.v1.ResetPointInfo + (*WorkflowExecution)(nil), // 19: uber.cadence.api.v1.WorkflowExecution + (*WorkflowType)(nil), // 20: uber.cadence.api.v1.WorkflowType + (*timestamppb.Timestamp)(nil), // 21: google.protobuf.Timestamp + (*Memo)(nil), // 22: uber.cadence.api.v1.Memo + (*SearchAttributes)(nil), // 23: uber.cadence.api.v1.SearchAttributes + (*TaskList)(nil), // 24: uber.cadence.api.v1.TaskList + (*durationpb.Duration)(nil), // 25: google.protobuf.Duration + (*ActivityType)(nil), // 26: uber.cadence.api.v1.ActivityType + (*Payload)(nil), // 27: uber.cadence.api.v1.Payload + (*Failure)(nil), // 28: uber.cadence.api.v1.Failure +} +var file_uber_cadence_api_v1_workflow_proto_depIdxs = []int32{ + 19, // 0: uber.cadence.api.v1.WorkflowExecutionInfo.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 20, // 1: uber.cadence.api.v1.WorkflowExecutionInfo.type:type_name -> uber.cadence.api.v1.WorkflowType + 21, // 2: uber.cadence.api.v1.WorkflowExecutionInfo.start_time:type_name -> google.protobuf.Timestamp + 21, // 3: uber.cadence.api.v1.WorkflowExecutionInfo.close_time:type_name -> google.protobuf.Timestamp + 4, // 4: uber.cadence.api.v1.WorkflowExecutionInfo.close_status:type_name -> uber.cadence.api.v1.WorkflowExecutionCloseStatus + 19, // 5: uber.cadence.api.v1.WorkflowExecutionInfo.parent_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 21, // 6: uber.cadence.api.v1.WorkflowExecutionInfo.execution_time:type_name -> google.protobuf.Timestamp + 22, // 7: uber.cadence.api.v1.WorkflowExecutionInfo.memo:type_name -> uber.cadence.api.v1.Memo + 23, // 8: uber.cadence.api.v1.WorkflowExecutionInfo.search_attributes:type_name -> uber.cadence.api.v1.SearchAttributes + 17, // 9: uber.cadence.api.v1.WorkflowExecutionInfo.auto_reset_points:type_name -> uber.cadence.api.v1.ResetPoints + 24, // 10: uber.cadence.api.v1.WorkflowExecutionConfiguration.task_list:type_name -> uber.cadence.api.v1.TaskList + 25, // 11: uber.cadence.api.v1.WorkflowExecutionConfiguration.execution_start_to_close_timeout:type_name -> google.protobuf.Duration + 25, // 12: uber.cadence.api.v1.WorkflowExecutionConfiguration.task_start_to_close_timeout:type_name -> google.protobuf.Duration + 26, // 13: uber.cadence.api.v1.PendingActivityInfo.activity_type:type_name -> uber.cadence.api.v1.ActivityType + 0, // 14: uber.cadence.api.v1.PendingActivityInfo.state:type_name -> uber.cadence.api.v1.PendingActivityState + 27, // 15: uber.cadence.api.v1.PendingActivityInfo.heartbeat_details:type_name -> uber.cadence.api.v1.Payload + 21, // 16: uber.cadence.api.v1.PendingActivityInfo.last_heartbeat_time:type_name -> google.protobuf.Timestamp + 21, // 17: uber.cadence.api.v1.PendingActivityInfo.last_started_time:type_name -> google.protobuf.Timestamp + 21, // 18: uber.cadence.api.v1.PendingActivityInfo.scheduled_time:type_name -> google.protobuf.Timestamp + 21, // 19: uber.cadence.api.v1.PendingActivityInfo.expiration_time:type_name -> google.protobuf.Timestamp + 28, // 20: uber.cadence.api.v1.PendingActivityInfo.last_failure:type_name -> uber.cadence.api.v1.Failure + 19, // 21: uber.cadence.api.v1.PendingChildExecutionInfo.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 3, // 22: uber.cadence.api.v1.PendingChildExecutionInfo.parent_close_policy:type_name -> uber.cadence.api.v1.ParentClosePolicy + 1, // 23: uber.cadence.api.v1.PendingDecisionInfo.state:type_name -> uber.cadence.api.v1.PendingDecisionState + 21, // 24: uber.cadence.api.v1.PendingDecisionInfo.scheduled_time:type_name -> google.protobuf.Timestamp + 21, // 25: uber.cadence.api.v1.PendingDecisionInfo.started_time:type_name -> google.protobuf.Timestamp + 21, // 26: uber.cadence.api.v1.PendingDecisionInfo.original_scheduled_time:type_name -> google.protobuf.Timestamp + 21, // 27: uber.cadence.api.v1.ActivityLocalDispatchInfo.scheduled_time:type_name -> google.protobuf.Timestamp + 21, // 28: uber.cadence.api.v1.ActivityLocalDispatchInfo.started_time:type_name -> google.protobuf.Timestamp + 21, // 29: uber.cadence.api.v1.ActivityLocalDispatchInfo.scheduled_time_of_this_attempt:type_name -> google.protobuf.Timestamp + 18, // 30: uber.cadence.api.v1.ResetPoints.points:type_name -> uber.cadence.api.v1.ResetPointInfo + 21, // 31: uber.cadence.api.v1.ResetPointInfo.created_time:type_name -> google.protobuf.Timestamp + 21, // 32: uber.cadence.api.v1.ResetPointInfo.expiring_time:type_name -> google.protobuf.Timestamp + 33, // [33:33] is the sub-list for method output_type + 33, // [33:33] is the sub-list for method input_type + 33, // [33:33] is the sub-list for extension type_name + 33, // [33:33] is the sub-list for extension extendee + 0, // [0:33] is the sub-list for field type_name +} + +func init() { file_uber_cadence_api_v1_workflow_proto_init() } +func file_uber_cadence_api_v1_workflow_proto_init() { + if File_uber_cadence_api_v1_workflow_proto != nil { + return + } + file_uber_cadence_api_v1_common_proto_init() + file_uber_cadence_api_v1_tasklist_proto_init() + if !protoimpl.UnsafeEnabled { + file_uber_cadence_api_v1_workflow_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowExecutionInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_workflow_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowExecutionConfiguration); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_workflow_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PendingActivityInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_workflow_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PendingChildExecutionInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_workflow_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PendingDecisionInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_workflow_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ActivityLocalDispatchInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_workflow_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResetPoints); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_api_v1_workflow_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResetPointInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_uber_cadence_api_v1_workflow_proto_rawDesc, + NumEnums: 11, + NumMessages: 8, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_uber_cadence_api_v1_workflow_proto_goTypes, + DependencyIndexes: file_uber_cadence_api_v1_workflow_proto_depIdxs, + EnumInfos: file_uber_cadence_api_v1_workflow_proto_enumTypes, + MessageInfos: file_uber_cadence_api_v1_workflow_proto_msgTypes, + }.Build() + File_uber_cadence_api_v1_workflow_proto = out.File + file_uber_cadence_api_v1_workflow_proto_rawDesc = nil + file_uber_cadence_api_v1_workflow_proto_goTypes = nil + file_uber_cadence_api_v1_workflow_proto_depIdxs = nil } -func (x ContinueAsNewInitiator) String() string { - s, ok := ContinueAsNewInitiator_name[int32(x)] - if ok { - return s - } - return strconv.Itoa(int(x)) -} -func (x TimeoutType) String() string { - s, ok := TimeoutType_name[int32(x)] - if ok { - return s - } - return strconv.Itoa(int(x)) -} -func (x DecisionTaskFailedCause) String() string { - s, ok := DecisionTaskFailedCause_name[int32(x)] - if ok { - return s - } - return strconv.Itoa(int(x)) -} -func (x ChildWorkflowExecutionFailedCause) String() string { - s, ok := ChildWorkflowExecutionFailedCause_name[int32(x)] - if ok { - return s - } - return strconv.Itoa(int(x)) -} -func (x CancelExternalWorkflowExecutionFailedCause) String() string { - s, ok := CancelExternalWorkflowExecutionFailedCause_name[int32(x)] - if ok { - return s - } - return strconv.Itoa(int(x)) -} -func (x SignalExternalWorkflowExecutionFailedCause) String() string { - s, ok := SignalExternalWorkflowExecutionFailedCause_name[int32(x)] - if ok { - return s - } - return strconv.Itoa(int(x)) -} -func (this *WorkflowExecutionInfo) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*WorkflowExecutionInfo) - if !ok { - that2, ok := that.(WorkflowExecutionInfo) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if !this.Type.Equal(that1.Type) { - return false - } - if that1.StartTime == nil { - if this.StartTime != nil { - return false - } - } else if !this.StartTime.Equal(*that1.StartTime) { - return false - } - if that1.CloseTime == nil { - if this.CloseTime != nil { - return false - } - } else if !this.CloseTime.Equal(*that1.CloseTime) { - return false - } - if this.CloseStatus != that1.CloseStatus { - return false - } - if this.HistoryLength != that1.HistoryLength { - return false - } - if this.ParentDomainId != that1.ParentDomainId { - return false - } - if !this.ParentExecution.Equal(that1.ParentExecution) { - return false - } - if that1.ExecutionTime == nil { - if this.ExecutionTime != nil { - return false - } - } else if !this.ExecutionTime.Equal(*that1.ExecutionTime) { - return false - } - if !this.Memo.Equal(that1.Memo) { - return false - } - if !this.SearchAttributes.Equal(that1.SearchAttributes) { - return false - } - if !this.AutoResetPoints.Equal(that1.AutoResetPoints) { - return false - } - if this.TaskList != that1.TaskList { - return false - } - return true -} -func (this *WorkflowExecutionConfiguration) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*WorkflowExecutionConfiguration) - if !ok { - that2, ok := that.(WorkflowExecutionConfiguration) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.TaskList.Equal(that1.TaskList) { - return false - } - if this.ExecutionStartToCloseTimeout != nil && that1.ExecutionStartToCloseTimeout != nil { - if *this.ExecutionStartToCloseTimeout != *that1.ExecutionStartToCloseTimeout { - return false - } - } else if this.ExecutionStartToCloseTimeout != nil { - return false - } else if that1.ExecutionStartToCloseTimeout != nil { - return false - } - if this.TaskStartToCloseTimeout != nil && that1.TaskStartToCloseTimeout != nil { - if *this.TaskStartToCloseTimeout != *that1.TaskStartToCloseTimeout { - return false - } - } else if this.TaskStartToCloseTimeout != nil { - return false - } else if that1.TaskStartToCloseTimeout != nil { - return false - } - return true -} -func (this *PendingActivityInfo) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*PendingActivityInfo) - if !ok { - that2, ok := that.(PendingActivityInfo) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.ActivityId != that1.ActivityId { - return false - } - if !this.ActivityType.Equal(that1.ActivityType) { - return false - } - if this.State != that1.State { - return false - } - if !this.HeartbeatDetails.Equal(that1.HeartbeatDetails) { - return false - } - if that1.LastHeartbeatTime == nil { - if this.LastHeartbeatTime != nil { - return false - } - } else if !this.LastHeartbeatTime.Equal(*that1.LastHeartbeatTime) { - return false - } - if that1.LastStartedTime == nil { - if this.LastStartedTime != nil { - return false - } - } else if !this.LastStartedTime.Equal(*that1.LastStartedTime) { - return false - } - if this.Attempt != that1.Attempt { - return false - } - if this.MaximumAttempts != that1.MaximumAttempts { - return false - } - if that1.ScheduledTime == nil { - if this.ScheduledTime != nil { - return false - } - } else if !this.ScheduledTime.Equal(*that1.ScheduledTime) { - return false - } - if that1.ExpirationTime == nil { - if this.ExpirationTime != nil { - return false - } - } else if !this.ExpirationTime.Equal(*that1.ExpirationTime) { - return false - } - if !this.LastFailure.Equal(that1.LastFailure) { - return false - } - if this.LastWorkerIdentity != that1.LastWorkerIdentity { - return false - } - return true -} -func (this *PendingChildExecutionInfo) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*PendingChildExecutionInfo) - if !ok { - that2, ok := that.(PendingChildExecutionInfo) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if this.WorkflowTypeName != that1.WorkflowTypeName { - return false - } - if this.InitiatedId != that1.InitiatedId { - return false - } - if this.ParentClosePolicy != that1.ParentClosePolicy { - return false - } - return true -} -func (this *PendingDecisionInfo) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*PendingDecisionInfo) - if !ok { - that2, ok := that.(PendingDecisionInfo) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.State != that1.State { - return false - } - if that1.ScheduledTime == nil { - if this.ScheduledTime != nil { - return false - } - } else if !this.ScheduledTime.Equal(*that1.ScheduledTime) { - return false - } - if that1.StartedTime == nil { - if this.StartedTime != nil { - return false - } - } else if !this.StartedTime.Equal(*that1.StartedTime) { - return false - } - if this.Attempt != that1.Attempt { - return false - } - if that1.OriginalScheduledTime == nil { - if this.OriginalScheduledTime != nil { - return false - } - } else if !this.OriginalScheduledTime.Equal(*that1.OriginalScheduledTime) { - return false - } - return true -} -func (this *ActivityLocalDispatchInfo) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ActivityLocalDispatchInfo) - if !ok { - that2, ok := that.(ActivityLocalDispatchInfo) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.ActivityId != that1.ActivityId { - return false - } - if that1.ScheduledTime == nil { - if this.ScheduledTime != nil { - return false - } - } else if !this.ScheduledTime.Equal(*that1.ScheduledTime) { - return false - } - if that1.StartedTime == nil { - if this.StartedTime != nil { - return false - } - } else if !this.StartedTime.Equal(*that1.StartedTime) { - return false - } - if that1.ScheduledTimeOfThisAttempt == nil { - if this.ScheduledTimeOfThisAttempt != nil { - return false - } - } else if !this.ScheduledTimeOfThisAttempt.Equal(*that1.ScheduledTimeOfThisAttempt) { - return false - } - if !bytes.Equal(this.TaskToken, that1.TaskToken) { - return false - } - return true -} -func (this *ResetPoints) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ResetPoints) - if !ok { - that2, ok := that.(ResetPoints) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if len(this.Points) != len(that1.Points) { - return false - } - for i := range this.Points { - if !this.Points[i].Equal(that1.Points[i]) { - return false - } - } - return true -} -func (this *ResetPointInfo) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ResetPointInfo) - if !ok { - that2, ok := that.(ResetPointInfo) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.BinaryChecksum != that1.BinaryChecksum { - return false - } - if this.RunId != that1.RunId { - return false - } - if this.FirstDecisionCompletedId != that1.FirstDecisionCompletedId { - return false - } - if that1.CreatedTime == nil { - if this.CreatedTime != nil { - return false - } - } else if !this.CreatedTime.Equal(*that1.CreatedTime) { - return false - } - if that1.ExpiringTime == nil { - if this.ExpiringTime != nil { - return false - } - } else if !this.ExpiringTime.Equal(*that1.ExpiringTime) { - return false - } - if this.Resettable != that1.Resettable { - return false - } - return true -} -func (this *WorkflowExecutionInfo) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 17) - s = append(s, "&apiv1.WorkflowExecutionInfo{") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - if this.Type != nil { - s = append(s, "Type: "+fmt.Sprintf("%#v", this.Type)+",\n") - } - s = append(s, "StartTime: "+fmt.Sprintf("%#v", this.StartTime)+",\n") - s = append(s, "CloseTime: "+fmt.Sprintf("%#v", this.CloseTime)+",\n") - s = append(s, "CloseStatus: "+fmt.Sprintf("%#v", this.CloseStatus)+",\n") - s = append(s, "HistoryLength: "+fmt.Sprintf("%#v", this.HistoryLength)+",\n") - s = append(s, "ParentDomainId: "+fmt.Sprintf("%#v", this.ParentDomainId)+",\n") - if this.ParentExecution != nil { - s = append(s, "ParentExecution: "+fmt.Sprintf("%#v", this.ParentExecution)+",\n") - } - s = append(s, "ExecutionTime: "+fmt.Sprintf("%#v", this.ExecutionTime)+",\n") - if this.Memo != nil { - s = append(s, "Memo: "+fmt.Sprintf("%#v", this.Memo)+",\n") - } - if this.SearchAttributes != nil { - s = append(s, "SearchAttributes: "+fmt.Sprintf("%#v", this.SearchAttributes)+",\n") - } - if this.AutoResetPoints != nil { - s = append(s, "AutoResetPoints: "+fmt.Sprintf("%#v", this.AutoResetPoints)+",\n") - } - s = append(s, "TaskList: "+fmt.Sprintf("%#v", this.TaskList)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *WorkflowExecutionConfiguration) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&apiv1.WorkflowExecutionConfiguration{") - if this.TaskList != nil { - s = append(s, "TaskList: "+fmt.Sprintf("%#v", this.TaskList)+",\n") - } - s = append(s, "ExecutionStartToCloseTimeout: "+fmt.Sprintf("%#v", this.ExecutionStartToCloseTimeout)+",\n") - s = append(s, "TaskStartToCloseTimeout: "+fmt.Sprintf("%#v", this.TaskStartToCloseTimeout)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *PendingActivityInfo) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 16) - s = append(s, "&apiv1.PendingActivityInfo{") - s = append(s, "ActivityId: "+fmt.Sprintf("%#v", this.ActivityId)+",\n") - if this.ActivityType != nil { - s = append(s, "ActivityType: "+fmt.Sprintf("%#v", this.ActivityType)+",\n") - } - s = append(s, "State: "+fmt.Sprintf("%#v", this.State)+",\n") - if this.HeartbeatDetails != nil { - s = append(s, "HeartbeatDetails: "+fmt.Sprintf("%#v", this.HeartbeatDetails)+",\n") - } - s = append(s, "LastHeartbeatTime: "+fmt.Sprintf("%#v", this.LastHeartbeatTime)+",\n") - s = append(s, "LastStartedTime: "+fmt.Sprintf("%#v", this.LastStartedTime)+",\n") - s = append(s, "Attempt: "+fmt.Sprintf("%#v", this.Attempt)+",\n") - s = append(s, "MaximumAttempts: "+fmt.Sprintf("%#v", this.MaximumAttempts)+",\n") - s = append(s, "ScheduledTime: "+fmt.Sprintf("%#v", this.ScheduledTime)+",\n") - s = append(s, "ExpirationTime: "+fmt.Sprintf("%#v", this.ExpirationTime)+",\n") - if this.LastFailure != nil { - s = append(s, "LastFailure: "+fmt.Sprintf("%#v", this.LastFailure)+",\n") - } - s = append(s, "LastWorkerIdentity: "+fmt.Sprintf("%#v", this.LastWorkerIdentity)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *PendingChildExecutionInfo) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 8) - s = append(s, "&apiv1.PendingChildExecutionInfo{") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "WorkflowTypeName: "+fmt.Sprintf("%#v", this.WorkflowTypeName)+",\n") - s = append(s, "InitiatedId: "+fmt.Sprintf("%#v", this.InitiatedId)+",\n") - s = append(s, "ParentClosePolicy: "+fmt.Sprintf("%#v", this.ParentClosePolicy)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *PendingDecisionInfo) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 9) - s = append(s, "&apiv1.PendingDecisionInfo{") - s = append(s, "State: "+fmt.Sprintf("%#v", this.State)+",\n") - s = append(s, "ScheduledTime: "+fmt.Sprintf("%#v", this.ScheduledTime)+",\n") - s = append(s, "StartedTime: "+fmt.Sprintf("%#v", this.StartedTime)+",\n") - s = append(s, "Attempt: "+fmt.Sprintf("%#v", this.Attempt)+",\n") - s = append(s, "OriginalScheduledTime: "+fmt.Sprintf("%#v", this.OriginalScheduledTime)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ActivityLocalDispatchInfo) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 9) - s = append(s, "&apiv1.ActivityLocalDispatchInfo{") - s = append(s, "ActivityId: "+fmt.Sprintf("%#v", this.ActivityId)+",\n") - s = append(s, "ScheduledTime: "+fmt.Sprintf("%#v", this.ScheduledTime)+",\n") - s = append(s, "StartedTime: "+fmt.Sprintf("%#v", this.StartedTime)+",\n") - s = append(s, "ScheduledTimeOfThisAttempt: "+fmt.Sprintf("%#v", this.ScheduledTimeOfThisAttempt)+",\n") - s = append(s, "TaskToken: "+fmt.Sprintf("%#v", this.TaskToken)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ResetPoints) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&apiv1.ResetPoints{") - if this.Points != nil { - s = append(s, "Points: "+fmt.Sprintf("%#v", this.Points)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ResetPointInfo) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 10) - s = append(s, "&apiv1.ResetPointInfo{") - s = append(s, "BinaryChecksum: "+fmt.Sprintf("%#v", this.BinaryChecksum)+",\n") - s = append(s, "RunId: "+fmt.Sprintf("%#v", this.RunId)+",\n") - s = append(s, "FirstDecisionCompletedId: "+fmt.Sprintf("%#v", this.FirstDecisionCompletedId)+",\n") - s = append(s, "CreatedTime: "+fmt.Sprintf("%#v", this.CreatedTime)+",\n") - s = append(s, "ExpiringTime: "+fmt.Sprintf("%#v", this.ExpiringTime)+",\n") - s = append(s, "Resettable: "+fmt.Sprintf("%#v", this.Resettable)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func valueToGoStringWorkflow(v interface{}, typ string) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) -} -func (m *WorkflowExecutionInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WorkflowExecutionInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WorkflowExecutionInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.TaskList) > 0 { - i -= len(m.TaskList) - copy(dAtA[i:], m.TaskList) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.TaskList))) - i-- - dAtA[i] = 0x6a - } - if m.AutoResetPoints != nil { - { - size, err := m.AutoResetPoints.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x62 - } - if m.SearchAttributes != nil { - { - size, err := m.SearchAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - } - if m.Memo != nil { - { - size, err := m.Memo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - } - if m.ExecutionTime != nil { - n4, err4 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.ExecutionTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.ExecutionTime):]) - if err4 != nil { - return 0, err4 - } - i -= n4 - i = encodeVarintWorkflow(dAtA, i, uint64(n4)) - i-- - dAtA[i] = 0x4a - } - if m.ParentExecution != nil { - { - size, err := m.ParentExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } - if len(m.ParentDomainId) > 0 { - i -= len(m.ParentDomainId) - copy(dAtA[i:], m.ParentDomainId) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.ParentDomainId))) - i-- - dAtA[i] = 0x3a - } - if m.HistoryLength != 0 { - i = encodeVarintWorkflow(dAtA, i, uint64(m.HistoryLength)) - i-- - dAtA[i] = 0x30 - } - if m.CloseStatus != 0 { - i = encodeVarintWorkflow(dAtA, i, uint64(m.CloseStatus)) - i-- - dAtA[i] = 0x28 - } - if m.CloseTime != nil { - n6, err6 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.CloseTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.CloseTime):]) - if err6 != nil { - return 0, err6 - } - i -= n6 - i = encodeVarintWorkflow(dAtA, i, uint64(n6)) - i-- - dAtA[i] = 0x22 - } - if m.StartTime != nil { - n7, err7 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.StartTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.StartTime):]) - if err7 != nil { - return 0, err7 - } - i -= n7 - i = encodeVarintWorkflow(dAtA, i, uint64(n7)) - i-- - dAtA[i] = 0x1a - } - if m.Type != nil { - { - size, err := m.Type.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *WorkflowExecutionConfiguration) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WorkflowExecutionConfiguration) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WorkflowExecutionConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.TaskStartToCloseTimeout != nil { - n10, err10 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.TaskStartToCloseTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.TaskStartToCloseTimeout):]) - if err10 != nil { - return 0, err10 - } - i -= n10 - i = encodeVarintWorkflow(dAtA, i, uint64(n10)) - i-- - dAtA[i] = 0x1a - } - if m.ExecutionStartToCloseTimeout != nil { - n11, err11 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.ExecutionStartToCloseTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ExecutionStartToCloseTimeout):]) - if err11 != nil { - return 0, err11 - } - i -= n11 - i = encodeVarintWorkflow(dAtA, i, uint64(n11)) - i-- - dAtA[i] = 0x12 - } - if m.TaskList != nil { - { - size, err := m.TaskList.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *PendingActivityInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PendingActivityInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PendingActivityInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.LastWorkerIdentity) > 0 { - i -= len(m.LastWorkerIdentity) - copy(dAtA[i:], m.LastWorkerIdentity) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.LastWorkerIdentity))) - i-- - dAtA[i] = 0x62 - } - if m.LastFailure != nil { - { - size, err := m.LastFailure.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - } - if m.ExpirationTime != nil { - n14, err14 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.ExpirationTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.ExpirationTime):]) - if err14 != nil { - return 0, err14 - } - i -= n14 - i = encodeVarintWorkflow(dAtA, i, uint64(n14)) - i-- - dAtA[i] = 0x52 - } - if m.ScheduledTime != nil { - n15, err15 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.ScheduledTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.ScheduledTime):]) - if err15 != nil { - return 0, err15 - } - i -= n15 - i = encodeVarintWorkflow(dAtA, i, uint64(n15)) - i-- - dAtA[i] = 0x4a - } - if m.MaximumAttempts != 0 { - i = encodeVarintWorkflow(dAtA, i, uint64(m.MaximumAttempts)) - i-- - dAtA[i] = 0x40 - } - if m.Attempt != 0 { - i = encodeVarintWorkflow(dAtA, i, uint64(m.Attempt)) - i-- - dAtA[i] = 0x38 - } - if m.LastStartedTime != nil { - n16, err16 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.LastStartedTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.LastStartedTime):]) - if err16 != nil { - return 0, err16 - } - i -= n16 - i = encodeVarintWorkflow(dAtA, i, uint64(n16)) - i-- - dAtA[i] = 0x32 - } - if m.LastHeartbeatTime != nil { - n17, err17 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.LastHeartbeatTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.LastHeartbeatTime):]) - if err17 != nil { - return 0, err17 - } - i -= n17 - i = encodeVarintWorkflow(dAtA, i, uint64(n17)) - i-- - dAtA[i] = 0x2a - } - if m.HeartbeatDetails != nil { - { - size, err := m.HeartbeatDetails.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.State != 0 { - i = encodeVarintWorkflow(dAtA, i, uint64(m.State)) - i-- - dAtA[i] = 0x18 - } - if m.ActivityType != nil { - { - size, err := m.ActivityType.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.ActivityId) > 0 { - i -= len(m.ActivityId) - copy(dAtA[i:], m.ActivityId) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.ActivityId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *PendingChildExecutionInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PendingChildExecutionInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PendingChildExecutionInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ParentClosePolicy != 0 { - i = encodeVarintWorkflow(dAtA, i, uint64(m.ParentClosePolicy)) - i-- - dAtA[i] = 0x20 - } - if m.InitiatedId != 0 { - i = encodeVarintWorkflow(dAtA, i, uint64(m.InitiatedId)) - i-- - dAtA[i] = 0x18 - } - if len(m.WorkflowTypeName) > 0 { - i -= len(m.WorkflowTypeName) - copy(dAtA[i:], m.WorkflowTypeName) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.WorkflowTypeName))) - i-- - dAtA[i] = 0x12 - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *PendingDecisionInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PendingDecisionInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PendingDecisionInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.OriginalScheduledTime != nil { - n21, err21 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.OriginalScheduledTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.OriginalScheduledTime):]) - if err21 != nil { - return 0, err21 - } - i -= n21 - i = encodeVarintWorkflow(dAtA, i, uint64(n21)) - i-- - dAtA[i] = 0x2a - } - if m.Attempt != 0 { - i = encodeVarintWorkflow(dAtA, i, uint64(m.Attempt)) - i-- - dAtA[i] = 0x20 - } - if m.StartedTime != nil { - n22, err22 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.StartedTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.StartedTime):]) - if err22 != nil { - return 0, err22 - } - i -= n22 - i = encodeVarintWorkflow(dAtA, i, uint64(n22)) - i-- - dAtA[i] = 0x1a - } - if m.ScheduledTime != nil { - n23, err23 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.ScheduledTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.ScheduledTime):]) - if err23 != nil { - return 0, err23 - } - i -= n23 - i = encodeVarintWorkflow(dAtA, i, uint64(n23)) - i-- - dAtA[i] = 0x12 - } - if m.State != 0 { - i = encodeVarintWorkflow(dAtA, i, uint64(m.State)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ActivityLocalDispatchInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ActivityLocalDispatchInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ActivityLocalDispatchInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.TaskToken) > 0 { - i -= len(m.TaskToken) - copy(dAtA[i:], m.TaskToken) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.TaskToken))) - i-- - dAtA[i] = 0x2a - } - if m.ScheduledTimeOfThisAttempt != nil { - n24, err24 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.ScheduledTimeOfThisAttempt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.ScheduledTimeOfThisAttempt):]) - if err24 != nil { - return 0, err24 - } - i -= n24 - i = encodeVarintWorkflow(dAtA, i, uint64(n24)) - i-- - dAtA[i] = 0x22 - } - if m.StartedTime != nil { - n25, err25 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.StartedTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.StartedTime):]) - if err25 != nil { - return 0, err25 - } - i -= n25 - i = encodeVarintWorkflow(dAtA, i, uint64(n25)) - i-- - dAtA[i] = 0x1a - } - if m.ScheduledTime != nil { - n26, err26 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.ScheduledTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.ScheduledTime):]) - if err26 != nil { - return 0, err26 - } - i -= n26 - i = encodeVarintWorkflow(dAtA, i, uint64(n26)) - i-- - dAtA[i] = 0x12 - } - if len(m.ActivityId) > 0 { - i -= len(m.ActivityId) - copy(dAtA[i:], m.ActivityId) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.ActivityId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ResetPoints) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResetPoints) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResetPoints) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Points) > 0 { - for iNdEx := len(m.Points) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Points[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ResetPointInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResetPointInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResetPointInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Resettable { - i-- - if m.Resettable { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - } - if m.ExpiringTime != nil { - n27, err27 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.ExpiringTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.ExpiringTime):]) - if err27 != nil { - return 0, err27 - } - i -= n27 - i = encodeVarintWorkflow(dAtA, i, uint64(n27)) - i-- - dAtA[i] = 0x2a - } - if m.CreatedTime != nil { - n28, err28 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.CreatedTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.CreatedTime):]) - if err28 != nil { - return 0, err28 - } - i -= n28 - i = encodeVarintWorkflow(dAtA, i, uint64(n28)) - i-- - dAtA[i] = 0x22 - } - if m.FirstDecisionCompletedId != 0 { - i = encodeVarintWorkflow(dAtA, i, uint64(m.FirstDecisionCompletedId)) - i-- - dAtA[i] = 0x18 - } - if len(m.RunId) > 0 { - i -= len(m.RunId) - copy(dAtA[i:], m.RunId) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.RunId))) - i-- - dAtA[i] = 0x12 - } - if len(m.BinaryChecksum) > 0 { - i -= len(m.BinaryChecksum) - copy(dAtA[i:], m.BinaryChecksum) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.BinaryChecksum))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintWorkflow(dAtA []byte, offset int, v uint64) int { - offset -= sovWorkflow(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *WorkflowExecutionInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.Type != nil { - l = m.Type.Size() - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.StartTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.StartTime) - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.CloseTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.CloseTime) - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.CloseStatus != 0 { - n += 1 + sovWorkflow(uint64(m.CloseStatus)) - } - if m.HistoryLength != 0 { - n += 1 + sovWorkflow(uint64(m.HistoryLength)) - } - l = len(m.ParentDomainId) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.ParentExecution != nil { - l = m.ParentExecution.Size() - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.ExecutionTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.ExecutionTime) - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.Memo != nil { - l = m.Memo.Size() - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.SearchAttributes != nil { - l = m.SearchAttributes.Size() - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.AutoResetPoints != nil { - l = m.AutoResetPoints.Size() - n += 1 + l + sovWorkflow(uint64(l)) - } - l = len(m.TaskList) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - return n -} - -func (m *WorkflowExecutionConfiguration) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.TaskList != nil { - l = m.TaskList.Size() - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.ExecutionStartToCloseTimeout != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ExecutionStartToCloseTimeout) - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.TaskStartToCloseTimeout != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.TaskStartToCloseTimeout) - n += 1 + l + sovWorkflow(uint64(l)) - } - return n -} - -func (m *PendingActivityInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ActivityId) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.ActivityType != nil { - l = m.ActivityType.Size() - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.State != 0 { - n += 1 + sovWorkflow(uint64(m.State)) - } - if m.HeartbeatDetails != nil { - l = m.HeartbeatDetails.Size() - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.LastHeartbeatTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.LastHeartbeatTime) - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.LastStartedTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.LastStartedTime) - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.Attempt != 0 { - n += 1 + sovWorkflow(uint64(m.Attempt)) - } - if m.MaximumAttempts != 0 { - n += 1 + sovWorkflow(uint64(m.MaximumAttempts)) - } - if m.ScheduledTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.ScheduledTime) - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.ExpirationTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.ExpirationTime) - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.LastFailure != nil { - l = m.LastFailure.Size() - n += 1 + l + sovWorkflow(uint64(l)) - } - l = len(m.LastWorkerIdentity) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - return n -} - -func (m *PendingChildExecutionInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovWorkflow(uint64(l)) - } - l = len(m.WorkflowTypeName) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.InitiatedId != 0 { - n += 1 + sovWorkflow(uint64(m.InitiatedId)) - } - if m.ParentClosePolicy != 0 { - n += 1 + sovWorkflow(uint64(m.ParentClosePolicy)) - } - return n -} - -func (m *PendingDecisionInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.State != 0 { - n += 1 + sovWorkflow(uint64(m.State)) - } - if m.ScheduledTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.ScheduledTime) - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.StartedTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.StartedTime) - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.Attempt != 0 { - n += 1 + sovWorkflow(uint64(m.Attempt)) - } - if m.OriginalScheduledTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.OriginalScheduledTime) - n += 1 + l + sovWorkflow(uint64(l)) - } - return n -} - -func (m *ActivityLocalDispatchInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ActivityId) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.ScheduledTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.ScheduledTime) - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.StartedTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.StartedTime) - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.ScheduledTimeOfThisAttempt != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.ScheduledTimeOfThisAttempt) - n += 1 + l + sovWorkflow(uint64(l)) - } - l = len(m.TaskToken) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - return n -} - -func (m *ResetPoints) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Points) > 0 { - for _, e := range m.Points { - l = e.Size() - n += 1 + l + sovWorkflow(uint64(l)) - } - } - return n -} - -func (m *ResetPointInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.BinaryChecksum) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - l = len(m.RunId) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.FirstDecisionCompletedId != 0 { - n += 1 + sovWorkflow(uint64(m.FirstDecisionCompletedId)) - } - if m.CreatedTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.CreatedTime) - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.ExpiringTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.ExpiringTime) - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.Resettable { - n += 2 - } - return n -} - -func sovWorkflow(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozWorkflow(x uint64) (n int) { - return sovWorkflow(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *WorkflowExecutionInfo) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&WorkflowExecutionInfo{`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "WorkflowExecution", 1) + `,`, - `Type:` + strings.Replace(fmt.Sprintf("%v", this.Type), "WorkflowType", "WorkflowType", 1) + `,`, - `StartTime:` + strings.Replace(fmt.Sprintf("%v", this.StartTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `CloseTime:` + strings.Replace(fmt.Sprintf("%v", this.CloseTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `CloseStatus:` + fmt.Sprintf("%v", this.CloseStatus) + `,`, - `HistoryLength:` + fmt.Sprintf("%v", this.HistoryLength) + `,`, - `ParentDomainId:` + fmt.Sprintf("%v", this.ParentDomainId) + `,`, - `ParentExecution:` + strings.Replace(fmt.Sprintf("%v", this.ParentExecution), "WorkflowExecution", "WorkflowExecution", 1) + `,`, - `ExecutionTime:` + strings.Replace(fmt.Sprintf("%v", this.ExecutionTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `Memo:` + strings.Replace(fmt.Sprintf("%v", this.Memo), "Memo", "Memo", 1) + `,`, - `SearchAttributes:` + strings.Replace(fmt.Sprintf("%v", this.SearchAttributes), "SearchAttributes", "SearchAttributes", 1) + `,`, - `AutoResetPoints:` + strings.Replace(this.AutoResetPoints.String(), "ResetPoints", "ResetPoints", 1) + `,`, - `TaskList:` + fmt.Sprintf("%v", this.TaskList) + `,`, - `}`, - }, "") - return s -} -func (this *WorkflowExecutionConfiguration) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&WorkflowExecutionConfiguration{`, - `TaskList:` + strings.Replace(fmt.Sprintf("%v", this.TaskList), "TaskList", "TaskList", 1) + `,`, - `ExecutionStartToCloseTimeout:` + strings.Replace(fmt.Sprintf("%v", this.ExecutionStartToCloseTimeout), "Duration", "duration.Duration", 1) + `,`, - `TaskStartToCloseTimeout:` + strings.Replace(fmt.Sprintf("%v", this.TaskStartToCloseTimeout), "Duration", "duration.Duration", 1) + `,`, - `}`, - }, "") - return s -} -func (this *PendingActivityInfo) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PendingActivityInfo{`, - `ActivityId:` + fmt.Sprintf("%v", this.ActivityId) + `,`, - `ActivityType:` + strings.Replace(fmt.Sprintf("%v", this.ActivityType), "ActivityType", "ActivityType", 1) + `,`, - `State:` + fmt.Sprintf("%v", this.State) + `,`, - `HeartbeatDetails:` + strings.Replace(fmt.Sprintf("%v", this.HeartbeatDetails), "Payload", "Payload", 1) + `,`, - `LastHeartbeatTime:` + strings.Replace(fmt.Sprintf("%v", this.LastHeartbeatTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `LastStartedTime:` + strings.Replace(fmt.Sprintf("%v", this.LastStartedTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `Attempt:` + fmt.Sprintf("%v", this.Attempt) + `,`, - `MaximumAttempts:` + fmt.Sprintf("%v", this.MaximumAttempts) + `,`, - `ScheduledTime:` + strings.Replace(fmt.Sprintf("%v", this.ScheduledTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `ExpirationTime:` + strings.Replace(fmt.Sprintf("%v", this.ExpirationTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `LastFailure:` + strings.Replace(fmt.Sprintf("%v", this.LastFailure), "Failure", "Failure", 1) + `,`, - `LastWorkerIdentity:` + fmt.Sprintf("%v", this.LastWorkerIdentity) + `,`, - `}`, - }, "") - return s -} -func (this *PendingChildExecutionInfo) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PendingChildExecutionInfo{`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "WorkflowExecution", 1) + `,`, - `WorkflowTypeName:` + fmt.Sprintf("%v", this.WorkflowTypeName) + `,`, - `InitiatedId:` + fmt.Sprintf("%v", this.InitiatedId) + `,`, - `ParentClosePolicy:` + fmt.Sprintf("%v", this.ParentClosePolicy) + `,`, - `}`, - }, "") - return s -} -func (this *PendingDecisionInfo) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PendingDecisionInfo{`, - `State:` + fmt.Sprintf("%v", this.State) + `,`, - `ScheduledTime:` + strings.Replace(fmt.Sprintf("%v", this.ScheduledTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `StartedTime:` + strings.Replace(fmt.Sprintf("%v", this.StartedTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `Attempt:` + fmt.Sprintf("%v", this.Attempt) + `,`, - `OriginalScheduledTime:` + strings.Replace(fmt.Sprintf("%v", this.OriginalScheduledTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ActivityLocalDispatchInfo) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ActivityLocalDispatchInfo{`, - `ActivityId:` + fmt.Sprintf("%v", this.ActivityId) + `,`, - `ScheduledTime:` + strings.Replace(fmt.Sprintf("%v", this.ScheduledTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `StartedTime:` + strings.Replace(fmt.Sprintf("%v", this.StartedTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `ScheduledTimeOfThisAttempt:` + strings.Replace(fmt.Sprintf("%v", this.ScheduledTimeOfThisAttempt), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `TaskToken:` + fmt.Sprintf("%v", this.TaskToken) + `,`, - `}`, - }, "") - return s -} -func (this *ResetPoints) String() string { - if this == nil { - return "nil" - } - repeatedStringForPoints := "[]*ResetPointInfo{" - for _, f := range this.Points { - repeatedStringForPoints += strings.Replace(f.String(), "ResetPointInfo", "ResetPointInfo", 1) + "," - } - repeatedStringForPoints += "}" - s := strings.Join([]string{`&ResetPoints{`, - `Points:` + repeatedStringForPoints + `,`, - `}`, - }, "") - return s -} -func (this *ResetPointInfo) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ResetPointInfo{`, - `BinaryChecksum:` + fmt.Sprintf("%v", this.BinaryChecksum) + `,`, - `RunId:` + fmt.Sprintf("%v", this.RunId) + `,`, - `FirstDecisionCompletedId:` + fmt.Sprintf("%v", this.FirstDecisionCompletedId) + `,`, - `CreatedTime:` + strings.Replace(fmt.Sprintf("%v", this.CreatedTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `ExpiringTime:` + strings.Replace(fmt.Sprintf("%v", this.ExpiringTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `Resettable:` + fmt.Sprintf("%v", this.Resettable) + `,`, - `}`, - }, "") - return s -} -func valueToStringWorkflow(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *WorkflowExecutionInfo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowExecutionInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowExecutionInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Type == nil { - m.Type = &WorkflowType{} - } - if err := m.Type.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StartTime == nil { - m.StartTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.StartTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CloseTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CloseTime == nil { - m.CloseTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.CloseTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CloseStatus", wireType) - } - m.CloseStatus = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CloseStatus |= WorkflowExecutionCloseStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HistoryLength", wireType) - } - m.HistoryLength = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.HistoryLength |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ParentDomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ParentDomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ParentExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ParentExecution == nil { - m.ParentExecution = &WorkflowExecution{} - } - if err := m.ParentExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExecutionTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ExecutionTime == nil { - m.ExecutionTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.ExecutionTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Memo", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Memo == nil { - m.Memo = &Memo{} - } - if err := m.Memo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SearchAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SearchAttributes == nil { - m.SearchAttributes = &SearchAttributes{} - } - if err := m.SearchAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AutoResetPoints", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AutoResetPoints == nil { - m.AutoResetPoints = &ResetPoints{} - } - if err := m.AutoResetPoints.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskList", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TaskList = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthWorkflow - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WorkflowExecutionConfiguration) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WorkflowExecutionConfiguration: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WorkflowExecutionConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TaskList == nil { - m.TaskList = &TaskList{} - } - if err := m.TaskList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExecutionStartToCloseTimeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ExecutionStartToCloseTimeout == nil { - m.ExecutionStartToCloseTimeout = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.ExecutionStartToCloseTimeout, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskStartToCloseTimeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TaskStartToCloseTimeout == nil { - m.TaskStartToCloseTimeout = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.TaskStartToCloseTimeout, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthWorkflow - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PendingActivityInfo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PendingActivityInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PendingActivityInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActivityId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ActivityId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActivityType", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ActivityType == nil { - m.ActivityType = &ActivityType{} - } - if err := m.ActivityType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) - } - m.State = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.State |= PendingActivityState(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HeartbeatDetails", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.HeartbeatDetails == nil { - m.HeartbeatDetails = &Payload{} - } - if err := m.HeartbeatDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastHeartbeatTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LastHeartbeatTime == nil { - m.LastHeartbeatTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.LastHeartbeatTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastStartedTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LastStartedTime == nil { - m.LastStartedTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.LastStartedTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Attempt", wireType) - } - m.Attempt = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Attempt |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaximumAttempts", wireType) - } - m.MaximumAttempts = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MaximumAttempts |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduledTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ScheduledTime == nil { - m.ScheduledTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.ScheduledTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExpirationTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ExpirationTime == nil { - m.ExpirationTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.ExpirationTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastFailure", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LastFailure == nil { - m.LastFailure = &Failure{} - } - if err := m.LastFailure.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastWorkerIdentity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LastWorkerIdentity = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthWorkflow - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PendingChildExecutionInfo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PendingChildExecutionInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PendingChildExecutionInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowTypeName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.WorkflowTypeName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field InitiatedId", wireType) - } - m.InitiatedId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.InitiatedId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ParentClosePolicy", wireType) - } - m.ParentClosePolicy = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ParentClosePolicy |= ParentClosePolicy(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthWorkflow - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PendingDecisionInfo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PendingDecisionInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PendingDecisionInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) - } - m.State = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.State |= PendingDecisionState(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduledTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ScheduledTime == nil { - m.ScheduledTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.ScheduledTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartedTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StartedTime == nil { - m.StartedTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.StartedTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Attempt", wireType) - } - m.Attempt = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Attempt |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OriginalScheduledTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.OriginalScheduledTime == nil { - m.OriginalScheduledTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.OriginalScheduledTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthWorkflow - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ActivityLocalDispatchInfo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ActivityLocalDispatchInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ActivityLocalDispatchInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActivityId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ActivityId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduledTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ScheduledTime == nil { - m.ScheduledTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.ScheduledTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartedTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StartedTime == nil { - m.StartedTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.StartedTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduledTimeOfThisAttempt", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ScheduledTimeOfThisAttempt == nil { - m.ScheduledTimeOfThisAttempt = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.ScheduledTimeOfThisAttempt, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TaskToken = append(m.TaskToken[:0], dAtA[iNdEx:postIndex]...) - if m.TaskToken == nil { - m.TaskToken = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthWorkflow - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResetPoints) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResetPoints: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResetPoints: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Points", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Points = append(m.Points, &ResetPointInfo{}) - if err := m.Points[len(m.Points)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthWorkflow - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResetPointInfo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResetPointInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResetPointInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BinaryChecksum", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BinaryChecksum = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RunId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RunId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field FirstDecisionCompletedId", wireType) - } - m.FirstDecisionCompletedId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.FirstDecisionCompletedId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreatedTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CreatedTime == nil { - m.CreatedTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.CreatedTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExpiringTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ExpiringTime == nil { - m.ExpiringTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.ExpiringTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Resettable", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Resettable = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthWorkflow - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipWorkflow(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowWorkflow - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowWorkflow - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowWorkflow - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthWorkflow - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupWorkflow - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthWorkflow - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthWorkflow = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowWorkflow = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupWorkflow = fmt.Errorf("proto: unexpected end of group") -) diff --git a/.gen/proto/dependencies/gogoproto.pb.go b/.gen/proto/dependencies/gogoproto.pb.go index b6a97eb12c3..fa9a8ed8f15 100644 --- a/.gen/proto/dependencies/gogoproto.pb.go +++ b/.gen/proto/dependencies/gogoproto.pb.go @@ -8,10 +8,10 @@ // 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 diff --git a/.gen/proto/history/v1/service.pb.go b/.gen/proto/history/v1/service.pb.go index b1401b57176..b0504b8fc00 100644 --- a/.gen/proto/history/v1/service.pb.go +++ b/.gen/proto/history/v1/service.pb.go @@ -1,648 +1,679 @@ -// The MIT License (MIT) - -// Copyright (c) 2017-2020 Uber Technologies Inc. - +// 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 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. +// 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. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.14.0 // source: uber/cadence/history/v1/service.proto package historyv1 import ( - bytes "bytes" - context "context" - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" reflect "reflect" - strings "strings" - time "time" - - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" - github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" - _ "github.com/golang/protobuf/ptypes/duration" - _ "github.com/golang/protobuf/ptypes/timestamp" + sync "sync" + + proto "github.com/golang/protobuf/proto" v1 "github.com/uber/cadence/.gen/proto/api/v1" v11 "github.com/uber/cadence/.gen/proto/shared/v1" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf -var _ = time.Kitchen +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// 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 +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type StartWorkflowExecutionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Request *v1.StartWorkflowExecutionRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` DomainId string `protobuf:"bytes,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` ParentExecutionInfo *v11.ParentExecutionInfo `protobuf:"bytes,3,opt,name=parent_execution_info,json=parentExecutionInfo,proto3" json:"parent_execution_info,omitempty"` Attempt int32 `protobuf:"varint,4,opt,name=attempt,proto3" json:"attempt,omitempty"` - ExpirationTime *time.Time `protobuf:"bytes,5,opt,name=expiration_time,json=expirationTime,proto3,stdtime" json:"expiration_time,omitempty"` + ExpirationTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=expiration_time,json=expirationTime,proto3" json:"expiration_time,omitempty"` ContinueAsNewInitiator v1.ContinueAsNewInitiator `protobuf:"varint,6,opt,name=continue_as_new_initiator,json=continueAsNewInitiator,proto3,enum=uber.cadence.api.v1.ContinueAsNewInitiator" json:"continue_as_new_initiator,omitempty"` ContinuedFailure *v1.Failure `protobuf:"bytes,7,opt,name=continued_failure,json=continuedFailure,proto3" json:"continued_failure,omitempty"` LastCompletionResult *v1.Payload `protobuf:"bytes,8,opt,name=last_completion_result,json=lastCompletionResult,proto3" json:"last_completion_result,omitempty"` - FirstDecisionTaskBackoff *time.Duration `protobuf:"bytes,9,opt,name=first_decision_task_backoff,json=firstDecisionTaskBackoff,proto3,stdduration" json:"first_decision_task_backoff,omitempty"` + FirstDecisionTaskBackoff *durationpb.Duration `protobuf:"bytes,9,opt,name=first_decision_task_backoff,json=firstDecisionTaskBackoff,proto3" json:"first_decision_task_backoff,omitempty"` } -func (m *StartWorkflowExecutionRequest) Reset() { *m = StartWorkflowExecutionRequest{} } -func (*StartWorkflowExecutionRequest) ProtoMessage() {} -func (*StartWorkflowExecutionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{0} -} -func (m *StartWorkflowExecutionRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StartWorkflowExecutionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StartWorkflowExecutionRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *StartWorkflowExecutionRequest) Reset() { + *x = StartWorkflowExecutionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *StartWorkflowExecutionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_StartWorkflowExecutionRequest.Merge(m, src) -} -func (m *StartWorkflowExecutionRequest) XXX_Size() int { - return m.Size() + +func (x *StartWorkflowExecutionRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *StartWorkflowExecutionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_StartWorkflowExecutionRequest.DiscardUnknown(m) + +func (*StartWorkflowExecutionRequest) ProtoMessage() {} + +func (x *StartWorkflowExecutionRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_StartWorkflowExecutionRequest proto.InternalMessageInfo +// Deprecated: Use StartWorkflowExecutionRequest.ProtoReflect.Descriptor instead. +func (*StartWorkflowExecutionRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{0} +} -func (m *StartWorkflowExecutionRequest) GetRequest() *v1.StartWorkflowExecutionRequest { - if m != nil { - return m.Request +func (x *StartWorkflowExecutionRequest) GetRequest() *v1.StartWorkflowExecutionRequest { + if x != nil { + return x.Request } return nil } -func (m *StartWorkflowExecutionRequest) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *StartWorkflowExecutionRequest) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } -func (m *StartWorkflowExecutionRequest) GetParentExecutionInfo() *v11.ParentExecutionInfo { - if m != nil { - return m.ParentExecutionInfo +func (x *StartWorkflowExecutionRequest) GetParentExecutionInfo() *v11.ParentExecutionInfo { + if x != nil { + return x.ParentExecutionInfo } return nil } -func (m *StartWorkflowExecutionRequest) GetAttempt() int32 { - if m != nil { - return m.Attempt +func (x *StartWorkflowExecutionRequest) GetAttempt() int32 { + if x != nil { + return x.Attempt } return 0 } -func (m *StartWorkflowExecutionRequest) GetExpirationTime() *time.Time { - if m != nil { - return m.ExpirationTime +func (x *StartWorkflowExecutionRequest) GetExpirationTime() *timestamppb.Timestamp { + if x != nil { + return x.ExpirationTime } return nil } -func (m *StartWorkflowExecutionRequest) GetContinueAsNewInitiator() v1.ContinueAsNewInitiator { - if m != nil { - return m.ContinueAsNewInitiator +func (x *StartWorkflowExecutionRequest) GetContinueAsNewInitiator() v1.ContinueAsNewInitiator { + if x != nil { + return x.ContinueAsNewInitiator } - return v1.CONTINUE_AS_NEW_INITIATOR_INVALID + return v1.ContinueAsNewInitiator_CONTINUE_AS_NEW_INITIATOR_INVALID } -func (m *StartWorkflowExecutionRequest) GetContinuedFailure() *v1.Failure { - if m != nil { - return m.ContinuedFailure +func (x *StartWorkflowExecutionRequest) GetContinuedFailure() *v1.Failure { + if x != nil { + return x.ContinuedFailure } return nil } -func (m *StartWorkflowExecutionRequest) GetLastCompletionResult() *v1.Payload { - if m != nil { - return m.LastCompletionResult +func (x *StartWorkflowExecutionRequest) GetLastCompletionResult() *v1.Payload { + if x != nil { + return x.LastCompletionResult } return nil } -func (m *StartWorkflowExecutionRequest) GetFirstDecisionTaskBackoff() *time.Duration { - if m != nil { - return m.FirstDecisionTaskBackoff +func (x *StartWorkflowExecutionRequest) GetFirstDecisionTaskBackoff() *durationpb.Duration { + if x != nil { + return x.FirstDecisionTaskBackoff } return nil } type StartWorkflowExecutionResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + RunId string `protobuf:"bytes,1,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` } -func (m *StartWorkflowExecutionResponse) Reset() { *m = StartWorkflowExecutionResponse{} } -func (*StartWorkflowExecutionResponse) ProtoMessage() {} -func (*StartWorkflowExecutionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{1} -} -func (m *StartWorkflowExecutionResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StartWorkflowExecutionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StartWorkflowExecutionResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *StartWorkflowExecutionResponse) Reset() { + *x = StartWorkflowExecutionResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *StartWorkflowExecutionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_StartWorkflowExecutionResponse.Merge(m, src) -} -func (m *StartWorkflowExecutionResponse) XXX_Size() int { - return m.Size() + +func (x *StartWorkflowExecutionResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *StartWorkflowExecutionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_StartWorkflowExecutionResponse.DiscardUnknown(m) + +func (*StartWorkflowExecutionResponse) ProtoMessage() {} + +func (x *StartWorkflowExecutionResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_StartWorkflowExecutionResponse proto.InternalMessageInfo +// Deprecated: Use StartWorkflowExecutionResponse.ProtoReflect.Descriptor instead. +func (*StartWorkflowExecutionResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{1} +} -func (m *StartWorkflowExecutionResponse) GetRunId() string { - if m != nil { - return m.RunId +func (x *StartWorkflowExecutionResponse) GetRunId() string { + if x != nil { + return x.RunId } return "" } type SignalWorkflowExecutionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Request *v1.SignalWorkflowExecutionRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` DomainId string `protobuf:"bytes,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` ExternalWorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,3,opt,name=external_workflow_execution,json=externalWorkflowExecution,proto3" json:"external_workflow_execution,omitempty"` ChildWorkflowOnly bool `protobuf:"varint,4,opt,name=child_workflow_only,json=childWorkflowOnly,proto3" json:"child_workflow_only,omitempty"` } -func (m *SignalWorkflowExecutionRequest) Reset() { *m = SignalWorkflowExecutionRequest{} } -func (*SignalWorkflowExecutionRequest) ProtoMessage() {} -func (*SignalWorkflowExecutionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{2} -} -func (m *SignalWorkflowExecutionRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SignalWorkflowExecutionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SignalWorkflowExecutionRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *SignalWorkflowExecutionRequest) Reset() { + *x = SignalWorkflowExecutionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *SignalWorkflowExecutionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SignalWorkflowExecutionRequest.Merge(m, src) -} -func (m *SignalWorkflowExecutionRequest) XXX_Size() int { - return m.Size() + +func (x *SignalWorkflowExecutionRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SignalWorkflowExecutionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SignalWorkflowExecutionRequest.DiscardUnknown(m) + +func (*SignalWorkflowExecutionRequest) ProtoMessage() {} + +func (x *SignalWorkflowExecutionRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SignalWorkflowExecutionRequest proto.InternalMessageInfo +// Deprecated: Use SignalWorkflowExecutionRequest.ProtoReflect.Descriptor instead. +func (*SignalWorkflowExecutionRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{2} +} -func (m *SignalWorkflowExecutionRequest) GetRequest() *v1.SignalWorkflowExecutionRequest { - if m != nil { - return m.Request +func (x *SignalWorkflowExecutionRequest) GetRequest() *v1.SignalWorkflowExecutionRequest { + if x != nil { + return x.Request } return nil } -func (m *SignalWorkflowExecutionRequest) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *SignalWorkflowExecutionRequest) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } -func (m *SignalWorkflowExecutionRequest) GetExternalWorkflowExecution() *v1.WorkflowExecution { - if m != nil { - return m.ExternalWorkflowExecution +func (x *SignalWorkflowExecutionRequest) GetExternalWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.ExternalWorkflowExecution } return nil } -func (m *SignalWorkflowExecutionRequest) GetChildWorkflowOnly() bool { - if m != nil { - return m.ChildWorkflowOnly +func (x *SignalWorkflowExecutionRequest) GetChildWorkflowOnly() bool { + if x != nil { + return x.ChildWorkflowOnly } return false } type SignalWorkflowExecutionResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *SignalWorkflowExecutionResponse) Reset() { *m = SignalWorkflowExecutionResponse{} } -func (*SignalWorkflowExecutionResponse) ProtoMessage() {} -func (*SignalWorkflowExecutionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{3} -} -func (m *SignalWorkflowExecutionResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SignalWorkflowExecutionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SignalWorkflowExecutionResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *SignalWorkflowExecutionResponse) Reset() { + *x = SignalWorkflowExecutionResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *SignalWorkflowExecutionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SignalWorkflowExecutionResponse.Merge(m, src) -} -func (m *SignalWorkflowExecutionResponse) XXX_Size() int { - return m.Size() + +func (x *SignalWorkflowExecutionResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SignalWorkflowExecutionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SignalWorkflowExecutionResponse.DiscardUnknown(m) + +func (*SignalWorkflowExecutionResponse) ProtoMessage() {} + +func (x *SignalWorkflowExecutionResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SignalWorkflowExecutionResponse proto.InternalMessageInfo +// Deprecated: Use SignalWorkflowExecutionResponse.ProtoReflect.Descriptor instead. +func (*SignalWorkflowExecutionResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{3} +} type SignalWithStartWorkflowExecutionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Request *v1.SignalWithStartWorkflowExecutionRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` DomainId string `protobuf:"bytes,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` } -func (m *SignalWithStartWorkflowExecutionRequest) Reset() { - *m = SignalWithStartWorkflowExecutionRequest{} +func (x *SignalWithStartWorkflowExecutionRequest) Reset() { + *x = SignalWithStartWorkflowExecutionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SignalWithStartWorkflowExecutionRequest) String() string { + return protoimpl.X.MessageStringOf(x) } + func (*SignalWithStartWorkflowExecutionRequest) ProtoMessage() {} -func (*SignalWithStartWorkflowExecutionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{4} -} -func (m *SignalWithStartWorkflowExecutionRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SignalWithStartWorkflowExecutionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SignalWithStartWorkflowExecutionRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *SignalWithStartWorkflowExecutionRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *SignalWithStartWorkflowExecutionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SignalWithStartWorkflowExecutionRequest.Merge(m, src) -} -func (m *SignalWithStartWorkflowExecutionRequest) XXX_Size() int { - return m.Size() -} -func (m *SignalWithStartWorkflowExecutionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SignalWithStartWorkflowExecutionRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_SignalWithStartWorkflowExecutionRequest proto.InternalMessageInfo +// Deprecated: Use SignalWithStartWorkflowExecutionRequest.ProtoReflect.Descriptor instead. +func (*SignalWithStartWorkflowExecutionRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{4} +} -func (m *SignalWithStartWorkflowExecutionRequest) GetRequest() *v1.SignalWithStartWorkflowExecutionRequest { - if m != nil { - return m.Request +func (x *SignalWithStartWorkflowExecutionRequest) GetRequest() *v1.SignalWithStartWorkflowExecutionRequest { + if x != nil { + return x.Request } return nil } -func (m *SignalWithStartWorkflowExecutionRequest) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *SignalWithStartWorkflowExecutionRequest) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } type SignalWithStartWorkflowExecutionResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + RunId string `protobuf:"bytes,1,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` } -func (m *SignalWithStartWorkflowExecutionResponse) Reset() { - *m = SignalWithStartWorkflowExecutionResponse{} +func (x *SignalWithStartWorkflowExecutionResponse) Reset() { + *x = SignalWithStartWorkflowExecutionResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SignalWithStartWorkflowExecutionResponse) String() string { + return protoimpl.X.MessageStringOf(x) } + func (*SignalWithStartWorkflowExecutionResponse) ProtoMessage() {} -func (*SignalWithStartWorkflowExecutionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{5} -} -func (m *SignalWithStartWorkflowExecutionResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SignalWithStartWorkflowExecutionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SignalWithStartWorkflowExecutionResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *SignalWithStartWorkflowExecutionResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *SignalWithStartWorkflowExecutionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SignalWithStartWorkflowExecutionResponse.Merge(m, src) -} -func (m *SignalWithStartWorkflowExecutionResponse) XXX_Size() int { - return m.Size() -} -func (m *SignalWithStartWorkflowExecutionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SignalWithStartWorkflowExecutionResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_SignalWithStartWorkflowExecutionResponse proto.InternalMessageInfo +// Deprecated: Use SignalWithStartWorkflowExecutionResponse.ProtoReflect.Descriptor instead. +func (*SignalWithStartWorkflowExecutionResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{5} +} -func (m *SignalWithStartWorkflowExecutionResponse) GetRunId() string { - if m != nil { - return m.RunId +func (x *SignalWithStartWorkflowExecutionResponse) GetRunId() string { + if x != nil { + return x.RunId } return "" } type ResetWorkflowExecutionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Request *v1.ResetWorkflowExecutionRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` DomainId string `protobuf:"bytes,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` } -func (m *ResetWorkflowExecutionRequest) Reset() { *m = ResetWorkflowExecutionRequest{} } -func (*ResetWorkflowExecutionRequest) ProtoMessage() {} -func (*ResetWorkflowExecutionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{6} -} -func (m *ResetWorkflowExecutionRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResetWorkflowExecutionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ResetWorkflowExecutionRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ResetWorkflowExecutionRequest) Reset() { + *x = ResetWorkflowExecutionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ResetWorkflowExecutionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResetWorkflowExecutionRequest.Merge(m, src) -} -func (m *ResetWorkflowExecutionRequest) XXX_Size() int { - return m.Size() + +func (x *ResetWorkflowExecutionRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ResetWorkflowExecutionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ResetWorkflowExecutionRequest.DiscardUnknown(m) + +func (*ResetWorkflowExecutionRequest) ProtoMessage() {} + +func (x *ResetWorkflowExecutionRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ResetWorkflowExecutionRequest proto.InternalMessageInfo +// Deprecated: Use ResetWorkflowExecutionRequest.ProtoReflect.Descriptor instead. +func (*ResetWorkflowExecutionRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{6} +} -func (m *ResetWorkflowExecutionRequest) GetRequest() *v1.ResetWorkflowExecutionRequest { - if m != nil { - return m.Request +func (x *ResetWorkflowExecutionRequest) GetRequest() *v1.ResetWorkflowExecutionRequest { + if x != nil { + return x.Request } return nil } -func (m *ResetWorkflowExecutionRequest) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *ResetWorkflowExecutionRequest) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } type ResetWorkflowExecutionResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + RunId string `protobuf:"bytes,1,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` } -func (m *ResetWorkflowExecutionResponse) Reset() { *m = ResetWorkflowExecutionResponse{} } -func (*ResetWorkflowExecutionResponse) ProtoMessage() {} -func (*ResetWorkflowExecutionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{7} -} -func (m *ResetWorkflowExecutionResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResetWorkflowExecutionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ResetWorkflowExecutionResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ResetWorkflowExecutionResponse) Reset() { + *x = ResetWorkflowExecutionResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ResetWorkflowExecutionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResetWorkflowExecutionResponse.Merge(m, src) -} -func (m *ResetWorkflowExecutionResponse) XXX_Size() int { - return m.Size() + +func (x *ResetWorkflowExecutionResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ResetWorkflowExecutionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ResetWorkflowExecutionResponse.DiscardUnknown(m) + +func (*ResetWorkflowExecutionResponse) ProtoMessage() {} + +func (x *ResetWorkflowExecutionResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ResetWorkflowExecutionResponse proto.InternalMessageInfo +// Deprecated: Use ResetWorkflowExecutionResponse.ProtoReflect.Descriptor instead. +func (*ResetWorkflowExecutionResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{7} +} -func (m *ResetWorkflowExecutionResponse) GetRunId() string { - if m != nil { - return m.RunId +func (x *ResetWorkflowExecutionResponse) GetRunId() string { + if x != nil { + return x.RunId } return "" } type TerminateWorkflowExecutionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Request *v1.TerminateWorkflowExecutionRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` DomainId string `protobuf:"bytes,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` } -func (m *TerminateWorkflowExecutionRequest) Reset() { *m = TerminateWorkflowExecutionRequest{} } -func (*TerminateWorkflowExecutionRequest) ProtoMessage() {} -func (*TerminateWorkflowExecutionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{8} -} -func (m *TerminateWorkflowExecutionRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TerminateWorkflowExecutionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TerminateWorkflowExecutionRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *TerminateWorkflowExecutionRequest) Reset() { + *x = TerminateWorkflowExecutionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *TerminateWorkflowExecutionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TerminateWorkflowExecutionRequest.Merge(m, src) -} -func (m *TerminateWorkflowExecutionRequest) XXX_Size() int { - return m.Size() + +func (x *TerminateWorkflowExecutionRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TerminateWorkflowExecutionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TerminateWorkflowExecutionRequest.DiscardUnknown(m) + +func (*TerminateWorkflowExecutionRequest) ProtoMessage() {} + +func (x *TerminateWorkflowExecutionRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_TerminateWorkflowExecutionRequest proto.InternalMessageInfo +// Deprecated: Use TerminateWorkflowExecutionRequest.ProtoReflect.Descriptor instead. +func (*TerminateWorkflowExecutionRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{8} +} -func (m *TerminateWorkflowExecutionRequest) GetRequest() *v1.TerminateWorkflowExecutionRequest { - if m != nil { - return m.Request +func (x *TerminateWorkflowExecutionRequest) GetRequest() *v1.TerminateWorkflowExecutionRequest { + if x != nil { + return x.Request } return nil } -func (m *TerminateWorkflowExecutionRequest) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *TerminateWorkflowExecutionRequest) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } type TerminateWorkflowExecutionResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *TerminateWorkflowExecutionResponse) Reset() { *m = TerminateWorkflowExecutionResponse{} } -func (*TerminateWorkflowExecutionResponse) ProtoMessage() {} -func (*TerminateWorkflowExecutionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{9} -} -func (m *TerminateWorkflowExecutionResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TerminateWorkflowExecutionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TerminateWorkflowExecutionResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *TerminateWorkflowExecutionResponse) Reset() { + *x = TerminateWorkflowExecutionResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *TerminateWorkflowExecutionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_TerminateWorkflowExecutionResponse.Merge(m, src) -} -func (m *TerminateWorkflowExecutionResponse) XXX_Size() int { - return m.Size() + +func (x *TerminateWorkflowExecutionResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TerminateWorkflowExecutionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_TerminateWorkflowExecutionResponse.DiscardUnknown(m) + +func (*TerminateWorkflowExecutionResponse) ProtoMessage() {} + +func (x *TerminateWorkflowExecutionResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_TerminateWorkflowExecutionResponse proto.InternalMessageInfo +// Deprecated: Use TerminateWorkflowExecutionResponse.ProtoReflect.Descriptor instead. +func (*TerminateWorkflowExecutionResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{9} +} type DescribeWorkflowExecutionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Request *v1.DescribeWorkflowExecutionRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` DomainId string `protobuf:"bytes,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` } -func (m *DescribeWorkflowExecutionRequest) Reset() { *m = DescribeWorkflowExecutionRequest{} } -func (*DescribeWorkflowExecutionRequest) ProtoMessage() {} -func (*DescribeWorkflowExecutionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{10} -} -func (m *DescribeWorkflowExecutionRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DescribeWorkflowExecutionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DescribeWorkflowExecutionRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *DescribeWorkflowExecutionRequest) Reset() { + *x = DescribeWorkflowExecutionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *DescribeWorkflowExecutionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescribeWorkflowExecutionRequest.Merge(m, src) -} -func (m *DescribeWorkflowExecutionRequest) XXX_Size() int { - return m.Size() + +func (x *DescribeWorkflowExecutionRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DescribeWorkflowExecutionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DescribeWorkflowExecutionRequest.DiscardUnknown(m) + +func (*DescribeWorkflowExecutionRequest) ProtoMessage() {} + +func (x *DescribeWorkflowExecutionRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DescribeWorkflowExecutionRequest proto.InternalMessageInfo +// Deprecated: Use DescribeWorkflowExecutionRequest.ProtoReflect.Descriptor instead. +func (*DescribeWorkflowExecutionRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{10} +} -func (m *DescribeWorkflowExecutionRequest) GetRequest() *v1.DescribeWorkflowExecutionRequest { - if m != nil { - return m.Request +func (x *DescribeWorkflowExecutionRequest) GetRequest() *v1.DescribeWorkflowExecutionRequest { + if x != nil { + return x.Request } return nil } -func (m *DescribeWorkflowExecutionRequest) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *DescribeWorkflowExecutionRequest) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } type DescribeWorkflowExecutionResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + ExecutionConfiguration *v1.WorkflowExecutionConfiguration `protobuf:"bytes,1,opt,name=execution_configuration,json=executionConfiguration,proto3" json:"execution_configuration,omitempty"` WorkflowExecutionInfo *v1.WorkflowExecutionInfo `protobuf:"bytes,2,opt,name=workflow_execution_info,json=workflowExecutionInfo,proto3" json:"workflow_execution_info,omitempty"` PendingActivities []*v1.PendingActivityInfo `protobuf:"bytes,3,rep,name=pending_activities,json=pendingActivities,proto3" json:"pending_activities,omitempty"` @@ -650,329 +681,352 @@ type DescribeWorkflowExecutionResponse struct { PendingDecision *v1.PendingDecisionInfo `protobuf:"bytes,5,opt,name=pending_decision,json=pendingDecision,proto3" json:"pending_decision,omitempty"` } -func (m *DescribeWorkflowExecutionResponse) Reset() { *m = DescribeWorkflowExecutionResponse{} } -func (*DescribeWorkflowExecutionResponse) ProtoMessage() {} -func (*DescribeWorkflowExecutionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{11} -} -func (m *DescribeWorkflowExecutionResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DescribeWorkflowExecutionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DescribeWorkflowExecutionResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *DescribeWorkflowExecutionResponse) Reset() { + *x = DescribeWorkflowExecutionResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *DescribeWorkflowExecutionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescribeWorkflowExecutionResponse.Merge(m, src) -} -func (m *DescribeWorkflowExecutionResponse) XXX_Size() int { - return m.Size() + +func (x *DescribeWorkflowExecutionResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DescribeWorkflowExecutionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DescribeWorkflowExecutionResponse.DiscardUnknown(m) + +func (*DescribeWorkflowExecutionResponse) ProtoMessage() {} + +func (x *DescribeWorkflowExecutionResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DescribeWorkflowExecutionResponse proto.InternalMessageInfo +// Deprecated: Use DescribeWorkflowExecutionResponse.ProtoReflect.Descriptor instead. +func (*DescribeWorkflowExecutionResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{11} +} -func (m *DescribeWorkflowExecutionResponse) GetExecutionConfiguration() *v1.WorkflowExecutionConfiguration { - if m != nil { - return m.ExecutionConfiguration +func (x *DescribeWorkflowExecutionResponse) GetExecutionConfiguration() *v1.WorkflowExecutionConfiguration { + if x != nil { + return x.ExecutionConfiguration } return nil } -func (m *DescribeWorkflowExecutionResponse) GetWorkflowExecutionInfo() *v1.WorkflowExecutionInfo { - if m != nil { - return m.WorkflowExecutionInfo +func (x *DescribeWorkflowExecutionResponse) GetWorkflowExecutionInfo() *v1.WorkflowExecutionInfo { + if x != nil { + return x.WorkflowExecutionInfo } return nil } -func (m *DescribeWorkflowExecutionResponse) GetPendingActivities() []*v1.PendingActivityInfo { - if m != nil { - return m.PendingActivities +func (x *DescribeWorkflowExecutionResponse) GetPendingActivities() []*v1.PendingActivityInfo { + if x != nil { + return x.PendingActivities } return nil } -func (m *DescribeWorkflowExecutionResponse) GetPendingChildren() []*v1.PendingChildExecutionInfo { - if m != nil { - return m.PendingChildren +func (x *DescribeWorkflowExecutionResponse) GetPendingChildren() []*v1.PendingChildExecutionInfo { + if x != nil { + return x.PendingChildren } return nil } -func (m *DescribeWorkflowExecutionResponse) GetPendingDecision() *v1.PendingDecisionInfo { - if m != nil { - return m.PendingDecision +func (x *DescribeWorkflowExecutionResponse) GetPendingDecision() *v1.PendingDecisionInfo { + if x != nil { + return x.PendingDecision } return nil } type QueryWorkflowRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Request *v1.QueryWorkflowRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` DomainId string `protobuf:"bytes,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` } -func (m *QueryWorkflowRequest) Reset() { *m = QueryWorkflowRequest{} } -func (*QueryWorkflowRequest) ProtoMessage() {} -func (*QueryWorkflowRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{12} -} -func (m *QueryWorkflowRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryWorkflowRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryWorkflowRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *QueryWorkflowRequest) Reset() { + *x = QueryWorkflowRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *QueryWorkflowRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryWorkflowRequest.Merge(m, src) -} -func (m *QueryWorkflowRequest) XXX_Size() int { - return m.Size() + +func (x *QueryWorkflowRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *QueryWorkflowRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryWorkflowRequest.DiscardUnknown(m) + +func (*QueryWorkflowRequest) ProtoMessage() {} + +func (x *QueryWorkflowRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_QueryWorkflowRequest proto.InternalMessageInfo +// Deprecated: Use QueryWorkflowRequest.ProtoReflect.Descriptor instead. +func (*QueryWorkflowRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{12} +} -func (m *QueryWorkflowRequest) GetRequest() *v1.QueryWorkflowRequest { - if m != nil { - return m.Request +func (x *QueryWorkflowRequest) GetRequest() *v1.QueryWorkflowRequest { + if x != nil { + return x.Request } return nil } -func (m *QueryWorkflowRequest) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *QueryWorkflowRequest) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } type QueryWorkflowResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + QueryResult *v1.Payload `protobuf:"bytes,1,opt,name=query_result,json=queryResult,proto3" json:"query_result,omitempty"` QueryRejected *v1.QueryRejected `protobuf:"bytes,2,opt,name=query_rejected,json=queryRejected,proto3" json:"query_rejected,omitempty"` } -func (m *QueryWorkflowResponse) Reset() { *m = QueryWorkflowResponse{} } -func (*QueryWorkflowResponse) ProtoMessage() {} -func (*QueryWorkflowResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{13} -} -func (m *QueryWorkflowResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryWorkflowResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryWorkflowResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *QueryWorkflowResponse) Reset() { + *x = QueryWorkflowResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *QueryWorkflowResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryWorkflowResponse.Merge(m, src) -} -func (m *QueryWorkflowResponse) XXX_Size() int { - return m.Size() + +func (x *QueryWorkflowResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *QueryWorkflowResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryWorkflowResponse.DiscardUnknown(m) + +func (*QueryWorkflowResponse) ProtoMessage() {} + +func (x *QueryWorkflowResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_QueryWorkflowResponse proto.InternalMessageInfo +// Deprecated: Use QueryWorkflowResponse.ProtoReflect.Descriptor instead. +func (*QueryWorkflowResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{13} +} -func (m *QueryWorkflowResponse) GetQueryResult() *v1.Payload { - if m != nil { - return m.QueryResult +func (x *QueryWorkflowResponse) GetQueryResult() *v1.Payload { + if x != nil { + return x.QueryResult } return nil } -func (m *QueryWorkflowResponse) GetQueryRejected() *v1.QueryRejected { - if m != nil { - return m.QueryRejected +func (x *QueryWorkflowResponse) GetQueryRejected() *v1.QueryRejected { + if x != nil { + return x.QueryRejected } return nil } type ResetStickyTaskListRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Request *v1.ResetStickyTaskListRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` DomainId string `protobuf:"bytes,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` } -func (m *ResetStickyTaskListRequest) Reset() { *m = ResetStickyTaskListRequest{} } -func (*ResetStickyTaskListRequest) ProtoMessage() {} -func (*ResetStickyTaskListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{14} -} -func (m *ResetStickyTaskListRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResetStickyTaskListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ResetStickyTaskListRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ResetStickyTaskListRequest) Reset() { + *x = ResetStickyTaskListRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ResetStickyTaskListRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResetStickyTaskListRequest.Merge(m, src) -} -func (m *ResetStickyTaskListRequest) XXX_Size() int { - return m.Size() + +func (x *ResetStickyTaskListRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ResetStickyTaskListRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ResetStickyTaskListRequest.DiscardUnknown(m) + +func (*ResetStickyTaskListRequest) ProtoMessage() {} + +func (x *ResetStickyTaskListRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ResetStickyTaskListRequest proto.InternalMessageInfo +// Deprecated: Use ResetStickyTaskListRequest.ProtoReflect.Descriptor instead. +func (*ResetStickyTaskListRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{14} +} -func (m *ResetStickyTaskListRequest) GetRequest() *v1.ResetStickyTaskListRequest { - if m != nil { - return m.Request +func (x *ResetStickyTaskListRequest) GetRequest() *v1.ResetStickyTaskListRequest { + if x != nil { + return x.Request } return nil } -func (m *ResetStickyTaskListRequest) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *ResetStickyTaskListRequest) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } type ResetStickyTaskListResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ResetStickyTaskListResponse) Reset() { *m = ResetStickyTaskListResponse{} } -func (*ResetStickyTaskListResponse) ProtoMessage() {} -func (*ResetStickyTaskListResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{15} -} -func (m *ResetStickyTaskListResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResetStickyTaskListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ResetStickyTaskListResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ResetStickyTaskListResponse) Reset() { + *x = ResetStickyTaskListResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ResetStickyTaskListResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResetStickyTaskListResponse.Merge(m, src) -} -func (m *ResetStickyTaskListResponse) XXX_Size() int { - return m.Size() + +func (x *ResetStickyTaskListResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ResetStickyTaskListResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ResetStickyTaskListResponse.DiscardUnknown(m) + +func (*ResetStickyTaskListResponse) ProtoMessage() {} + +func (x *ResetStickyTaskListResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ResetStickyTaskListResponse proto.InternalMessageInfo +// Deprecated: Use ResetStickyTaskListResponse.ProtoReflect.Descriptor instead. +func (*ResetStickyTaskListResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{15} +} type GetMutableStateRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + DomainId string `protobuf:"bytes,1,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` ExpectedNextEventId int64 `protobuf:"varint,3,opt,name=expected_next_event_id,json=expectedNextEventId,proto3" json:"expected_next_event_id,omitempty"` CurrentBranchToken []byte `protobuf:"bytes,4,opt,name=current_branch_token,json=currentBranchToken,proto3" json:"current_branch_token,omitempty"` } -func (m *GetMutableStateRequest) Reset() { *m = GetMutableStateRequest{} } -func (*GetMutableStateRequest) ProtoMessage() {} -func (*GetMutableStateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{16} -} -func (m *GetMutableStateRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetMutableStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetMutableStateRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *GetMutableStateRequest) Reset() { + *x = GetMutableStateRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *GetMutableStateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetMutableStateRequest.Merge(m, src) -} -func (m *GetMutableStateRequest) XXX_Size() int { - return m.Size() + +func (x *GetMutableStateRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetMutableStateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetMutableStateRequest.DiscardUnknown(m) + +func (*GetMutableStateRequest) ProtoMessage() {} + +func (x *GetMutableStateRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetMutableStateRequest proto.InternalMessageInfo +// Deprecated: Use GetMutableStateRequest.ProtoReflect.Descriptor instead. +func (*GetMutableStateRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{16} +} -func (m *GetMutableStateRequest) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *GetMutableStateRequest) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } -func (m *GetMutableStateRequest) GetWorkflowExecution() *v1.WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *GetMutableStateRequest) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *GetMutableStateRequest) GetExpectedNextEventId() int64 { - if m != nil { - return m.ExpectedNextEventId +func (x *GetMutableStateRequest) GetExpectedNextEventId() int64 { + if x != nil { + return x.ExpectedNextEventId } return 0 } -func (m *GetMutableStateRequest) GetCurrentBranchToken() []byte { - if m != nil { - return m.CurrentBranchToken +func (x *GetMutableStateRequest) GetCurrentBranchToken() []byte { + if x != nil { + return x.CurrentBranchToken } return nil } type GetMutableStateResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,1,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` WorkflowType *v1.WorkflowType `protobuf:"bytes,2,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` NextEventId int64 `protobuf:"varint,3,opt,name=next_event_id,json=nextEventId,proto3" json:"next_event_id,omitempty"` @@ -983,7 +1037,7 @@ type GetMutableStateResponse struct { ClientLibraryVersion string `protobuf:"bytes,8,opt,name=client_library_version,json=clientLibraryVersion,proto3" json:"client_library_version,omitempty"` ClientFeatureVersion string `protobuf:"bytes,9,opt,name=client_feature_version,json=clientFeatureVersion,proto3" json:"client_feature_version,omitempty"` ClientImpl string `protobuf:"bytes,10,opt,name=client_impl,json=clientImpl,proto3" json:"client_impl,omitempty"` - StickyTaskListScheduleToStartTimeout *time.Duration `protobuf:"bytes,11,opt,name=sticky_task_list_schedule_to_start_timeout,json=stickyTaskListScheduleToStartTimeout,proto3,stdduration" json:"sticky_task_list_schedule_to_start_timeout,omitempty"` + StickyTaskListScheduleToStartTimeout *durationpb.Duration `protobuf:"bytes,11,opt,name=sticky_task_list_schedule_to_start_timeout,json=stickyTaskListScheduleToStartTimeout,proto3" json:"sticky_task_list_schedule_to_start_timeout,omitempty"` EventStoreVersion int32 `protobuf:"varint,12,opt,name=event_store_version,json=eventStoreVersion,proto3" json:"event_store_version,omitempty"` CurrentBranchToken []byte `protobuf:"bytes,13,opt,name=current_branch_token,json=currentBranchToken,proto3" json:"current_branch_token,omitempty"` WorkflowState v11.WorkflowState `protobuf:"varint,14,opt,name=workflow_state,json=workflowState,proto3,enum=uber.cadence.shared.v1.WorkflowState" json:"workflow_state,omitempty"` @@ -992,225 +1046,233 @@ type GetMutableStateResponse struct { IsStickyTaskListEnabled bool `protobuf:"varint,17,opt,name=is_sticky_task_list_enabled,json=isStickyTaskListEnabled,proto3" json:"is_sticky_task_list_enabled,omitempty"` } -func (m *GetMutableStateResponse) Reset() { *m = GetMutableStateResponse{} } -func (*GetMutableStateResponse) ProtoMessage() {} -func (*GetMutableStateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{17} -} -func (m *GetMutableStateResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetMutableStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetMutableStateResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *GetMutableStateResponse) Reset() { + *x = GetMutableStateResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *GetMutableStateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetMutableStateResponse.Merge(m, src) -} -func (m *GetMutableStateResponse) XXX_Size() int { - return m.Size() + +func (x *GetMutableStateResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetMutableStateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetMutableStateResponse.DiscardUnknown(m) + +func (*GetMutableStateResponse) ProtoMessage() {} + +func (x *GetMutableStateResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetMutableStateResponse proto.InternalMessageInfo +// Deprecated: Use GetMutableStateResponse.ProtoReflect.Descriptor instead. +func (*GetMutableStateResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{17} +} -func (m *GetMutableStateResponse) GetWorkflowExecution() *v1.WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *GetMutableStateResponse) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *GetMutableStateResponse) GetWorkflowType() *v1.WorkflowType { - if m != nil { - return m.WorkflowType +func (x *GetMutableStateResponse) GetWorkflowType() *v1.WorkflowType { + if x != nil { + return x.WorkflowType } return nil } -func (m *GetMutableStateResponse) GetNextEventId() int64 { - if m != nil { - return m.NextEventId +func (x *GetMutableStateResponse) GetNextEventId() int64 { + if x != nil { + return x.NextEventId } return 0 } -func (m *GetMutableStateResponse) GetPreviousStartedEventId() int64 { - if m != nil { - return m.PreviousStartedEventId +func (x *GetMutableStateResponse) GetPreviousStartedEventId() int64 { + if x != nil { + return x.PreviousStartedEventId } return 0 } -func (m *GetMutableStateResponse) GetLastFirstEventId() int64 { - if m != nil { - return m.LastFirstEventId +func (x *GetMutableStateResponse) GetLastFirstEventId() int64 { + if x != nil { + return x.LastFirstEventId } return 0 } -func (m *GetMutableStateResponse) GetTaskList() *v1.TaskList { - if m != nil { - return m.TaskList +func (x *GetMutableStateResponse) GetTaskList() *v1.TaskList { + if x != nil { + return x.TaskList } return nil } -func (m *GetMutableStateResponse) GetStickyTaskList() *v1.TaskList { - if m != nil { - return m.StickyTaskList +func (x *GetMutableStateResponse) GetStickyTaskList() *v1.TaskList { + if x != nil { + return x.StickyTaskList } return nil } -func (m *GetMutableStateResponse) GetClientLibraryVersion() string { - if m != nil { - return m.ClientLibraryVersion +func (x *GetMutableStateResponse) GetClientLibraryVersion() string { + if x != nil { + return x.ClientLibraryVersion } return "" } -func (m *GetMutableStateResponse) GetClientFeatureVersion() string { - if m != nil { - return m.ClientFeatureVersion +func (x *GetMutableStateResponse) GetClientFeatureVersion() string { + if x != nil { + return x.ClientFeatureVersion } return "" } -func (m *GetMutableStateResponse) GetClientImpl() string { - if m != nil { - return m.ClientImpl +func (x *GetMutableStateResponse) GetClientImpl() string { + if x != nil { + return x.ClientImpl } return "" } -func (m *GetMutableStateResponse) GetStickyTaskListScheduleToStartTimeout() *time.Duration { - if m != nil { - return m.StickyTaskListScheduleToStartTimeout +func (x *GetMutableStateResponse) GetStickyTaskListScheduleToStartTimeout() *durationpb.Duration { + if x != nil { + return x.StickyTaskListScheduleToStartTimeout } return nil } -func (m *GetMutableStateResponse) GetEventStoreVersion() int32 { - if m != nil { - return m.EventStoreVersion +func (x *GetMutableStateResponse) GetEventStoreVersion() int32 { + if x != nil { + return x.EventStoreVersion } return 0 } -func (m *GetMutableStateResponse) GetCurrentBranchToken() []byte { - if m != nil { - return m.CurrentBranchToken +func (x *GetMutableStateResponse) GetCurrentBranchToken() []byte { + if x != nil { + return x.CurrentBranchToken } return nil } -func (m *GetMutableStateResponse) GetWorkflowState() v11.WorkflowState { - if m != nil { - return m.WorkflowState +func (x *GetMutableStateResponse) GetWorkflowState() v11.WorkflowState { + if x != nil { + return x.WorkflowState } - return v11.WORKFLOW_STATE_INVALID + return v11.WorkflowState_WORKFLOW_STATE_INVALID } -func (m *GetMutableStateResponse) GetWorkflowCloseState() v1.WorkflowExecutionCloseStatus { - if m != nil { - return m.WorkflowCloseState +func (x *GetMutableStateResponse) GetWorkflowCloseState() v1.WorkflowExecutionCloseStatus { + if x != nil { + return x.WorkflowCloseState } - return v1.WORKFLOW_EXECUTION_CLOSE_STATUS_INVALID + return v1.WorkflowExecutionCloseStatus_WORKFLOW_EXECUTION_CLOSE_STATUS_INVALID } -func (m *GetMutableStateResponse) GetVersionHistories() *v11.VersionHistories { - if m != nil { - return m.VersionHistories +func (x *GetMutableStateResponse) GetVersionHistories() *v11.VersionHistories { + if x != nil { + return x.VersionHistories } return nil } -func (m *GetMutableStateResponse) GetIsStickyTaskListEnabled() bool { - if m != nil { - return m.IsStickyTaskListEnabled +func (x *GetMutableStateResponse) GetIsStickyTaskListEnabled() bool { + if x != nil { + return x.IsStickyTaskListEnabled } return false } type PollMutableStateRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + DomainId string `protobuf:"bytes,1,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` ExpectedNextEventId int64 `protobuf:"varint,3,opt,name=expected_next_event_id,json=expectedNextEventId,proto3" json:"expected_next_event_id,omitempty"` CurrentBranchToken []byte `protobuf:"bytes,4,opt,name=current_branch_token,json=currentBranchToken,proto3" json:"current_branch_token,omitempty"` } -func (m *PollMutableStateRequest) Reset() { *m = PollMutableStateRequest{} } -func (*PollMutableStateRequest) ProtoMessage() {} -func (*PollMutableStateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{18} -} -func (m *PollMutableStateRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PollMutableStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PollMutableStateRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *PollMutableStateRequest) Reset() { + *x = PollMutableStateRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *PollMutableStateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PollMutableStateRequest.Merge(m, src) -} -func (m *PollMutableStateRequest) XXX_Size() int { - return m.Size() + +func (x *PollMutableStateRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PollMutableStateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PollMutableStateRequest.DiscardUnknown(m) + +func (*PollMutableStateRequest) ProtoMessage() {} + +func (x *PollMutableStateRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PollMutableStateRequest proto.InternalMessageInfo +// Deprecated: Use PollMutableStateRequest.ProtoReflect.Descriptor instead. +func (*PollMutableStateRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{18} +} -func (m *PollMutableStateRequest) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *PollMutableStateRequest) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } -func (m *PollMutableStateRequest) GetWorkflowExecution() *v1.WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *PollMutableStateRequest) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *PollMutableStateRequest) GetExpectedNextEventId() int64 { - if m != nil { - return m.ExpectedNextEventId +func (x *PollMutableStateRequest) GetExpectedNextEventId() int64 { + if x != nil { + return x.ExpectedNextEventId } return 0 } -func (m *PollMutableStateRequest) GetCurrentBranchToken() []byte { - if m != nil { - return m.CurrentBranchToken +func (x *PollMutableStateRequest) GetCurrentBranchToken() []byte { + if x != nil { + return x.CurrentBranchToken } return nil } type PollMutableStateResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,1,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` WorkflowType *v1.WorkflowType `protobuf:"bytes,2,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` NextEventId int64 `protobuf:"varint,3,opt,name=next_event_id,json=nextEventId,proto3" json:"next_event_id,omitempty"` @@ -1221,151 +1283,155 @@ type PollMutableStateResponse struct { ClientLibraryVersion string `protobuf:"bytes,8,opt,name=client_library_version,json=clientLibraryVersion,proto3" json:"client_library_version,omitempty"` ClientFeatureVersion string `protobuf:"bytes,9,opt,name=client_feature_version,json=clientFeatureVersion,proto3" json:"client_feature_version,omitempty"` ClientImpl string `protobuf:"bytes,10,opt,name=client_impl,json=clientImpl,proto3" json:"client_impl,omitempty"` - StickyTaskListScheduleToStartTimeout *time.Duration `protobuf:"bytes,11,opt,name=sticky_task_list_schedule_to_start_timeout,json=stickyTaskListScheduleToStartTimeout,proto3,stdduration" json:"sticky_task_list_schedule_to_start_timeout,omitempty"` + StickyTaskListScheduleToStartTimeout *durationpb.Duration `protobuf:"bytes,11,opt,name=sticky_task_list_schedule_to_start_timeout,json=stickyTaskListScheduleToStartTimeout,proto3" json:"sticky_task_list_schedule_to_start_timeout,omitempty"` CurrentBranchToken []byte `protobuf:"bytes,12,opt,name=current_branch_token,json=currentBranchToken,proto3" json:"current_branch_token,omitempty"` VersionHistories *v11.VersionHistories `protobuf:"bytes,13,opt,name=version_histories,json=versionHistories,proto3" json:"version_histories,omitempty"` WorkflowState v11.WorkflowState `protobuf:"varint,14,opt,name=workflow_state,json=workflowState,proto3,enum=uber.cadence.shared.v1.WorkflowState" json:"workflow_state,omitempty"` WorkflowCloseState v1.WorkflowExecutionCloseStatus `protobuf:"varint,15,opt,name=workflow_close_state,json=workflowCloseState,proto3,enum=uber.cadence.api.v1.WorkflowExecutionCloseStatus" json:"workflow_close_state,omitempty"` } -func (m *PollMutableStateResponse) Reset() { *m = PollMutableStateResponse{} } -func (*PollMutableStateResponse) ProtoMessage() {} -func (*PollMutableStateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{19} -} -func (m *PollMutableStateResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PollMutableStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PollMutableStateResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *PollMutableStateResponse) Reset() { + *x = PollMutableStateResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *PollMutableStateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PollMutableStateResponse.Merge(m, src) -} -func (m *PollMutableStateResponse) XXX_Size() int { - return m.Size() -} -func (m *PollMutableStateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PollMutableStateResponse.DiscardUnknown(m) + +func (x *PollMutableStateResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_PollMutableStateResponse proto.InternalMessageInfo +func (*PollMutableStateResponse) ProtoMessage() {} + +func (x *PollMutableStateResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PollMutableStateResponse.ProtoReflect.Descriptor instead. +func (*PollMutableStateResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{19} +} -func (m *PollMutableStateResponse) GetWorkflowExecution() *v1.WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *PollMutableStateResponse) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *PollMutableStateResponse) GetWorkflowType() *v1.WorkflowType { - if m != nil { - return m.WorkflowType +func (x *PollMutableStateResponse) GetWorkflowType() *v1.WorkflowType { + if x != nil { + return x.WorkflowType } return nil } -func (m *PollMutableStateResponse) GetNextEventId() int64 { - if m != nil { - return m.NextEventId +func (x *PollMutableStateResponse) GetNextEventId() int64 { + if x != nil { + return x.NextEventId } return 0 } -func (m *PollMutableStateResponse) GetPreviousStartedEventId() int64 { - if m != nil { - return m.PreviousStartedEventId +func (x *PollMutableStateResponse) GetPreviousStartedEventId() int64 { + if x != nil { + return x.PreviousStartedEventId } return 0 } -func (m *PollMutableStateResponse) GetLastFirstEventId() int64 { - if m != nil { - return m.LastFirstEventId +func (x *PollMutableStateResponse) GetLastFirstEventId() int64 { + if x != nil { + return x.LastFirstEventId } return 0 } -func (m *PollMutableStateResponse) GetTaskList() *v1.TaskList { - if m != nil { - return m.TaskList +func (x *PollMutableStateResponse) GetTaskList() *v1.TaskList { + if x != nil { + return x.TaskList } return nil } -func (m *PollMutableStateResponse) GetStickyTaskList() *v1.TaskList { - if m != nil { - return m.StickyTaskList +func (x *PollMutableStateResponse) GetStickyTaskList() *v1.TaskList { + if x != nil { + return x.StickyTaskList } return nil } -func (m *PollMutableStateResponse) GetClientLibraryVersion() string { - if m != nil { - return m.ClientLibraryVersion +func (x *PollMutableStateResponse) GetClientLibraryVersion() string { + if x != nil { + return x.ClientLibraryVersion } return "" } -func (m *PollMutableStateResponse) GetClientFeatureVersion() string { - if m != nil { - return m.ClientFeatureVersion +func (x *PollMutableStateResponse) GetClientFeatureVersion() string { + if x != nil { + return x.ClientFeatureVersion } return "" } -func (m *PollMutableStateResponse) GetClientImpl() string { - if m != nil { - return m.ClientImpl +func (x *PollMutableStateResponse) GetClientImpl() string { + if x != nil { + return x.ClientImpl } return "" } -func (m *PollMutableStateResponse) GetStickyTaskListScheduleToStartTimeout() *time.Duration { - if m != nil { - return m.StickyTaskListScheduleToStartTimeout +func (x *PollMutableStateResponse) GetStickyTaskListScheduleToStartTimeout() *durationpb.Duration { + if x != nil { + return x.StickyTaskListScheduleToStartTimeout } return nil } -func (m *PollMutableStateResponse) GetCurrentBranchToken() []byte { - if m != nil { - return m.CurrentBranchToken +func (x *PollMutableStateResponse) GetCurrentBranchToken() []byte { + if x != nil { + return x.CurrentBranchToken } return nil } -func (m *PollMutableStateResponse) GetVersionHistories() *v11.VersionHistories { - if m != nil { - return m.VersionHistories +func (x *PollMutableStateResponse) GetVersionHistories() *v11.VersionHistories { + if x != nil { + return x.VersionHistories } return nil } -func (m *PollMutableStateResponse) GetWorkflowState() v11.WorkflowState { - if m != nil { - return m.WorkflowState +func (x *PollMutableStateResponse) GetWorkflowState() v11.WorkflowState { + if x != nil { + return x.WorkflowState } - return v11.WORKFLOW_STATE_INVALID + return v11.WorkflowState_WORKFLOW_STATE_INVALID } -func (m *PollMutableStateResponse) GetWorkflowCloseState() v1.WorkflowExecutionCloseStatus { - if m != nil { - return m.WorkflowCloseState +func (x *PollMutableStateResponse) GetWorkflowCloseState() v1.WorkflowExecutionCloseStatus { + if x != nil { + return x.WorkflowCloseState } - return v1.WORKFLOW_EXECUTION_CLOSE_STATUS_INVALID + return v1.WorkflowExecutionCloseStatus_WORKFLOW_EXECUTION_CLOSE_STATUS_INVALID } type RecordDecisionTaskStartedRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + DomainId string `protobuf:"bytes,1,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` ScheduleId int64 `protobuf:"varint,3,opt,name=schedule_id,json=scheduleId,proto3" json:"schedule_id,omitempty"` @@ -1375,81 +1441,85 @@ type RecordDecisionTaskStartedRequest struct { PollRequest *v1.PollForDecisionTaskRequest `protobuf:"bytes,6,opt,name=poll_request,json=pollRequest,proto3" json:"poll_request,omitempty"` } -func (m *RecordDecisionTaskStartedRequest) Reset() { *m = RecordDecisionTaskStartedRequest{} } -func (*RecordDecisionTaskStartedRequest) ProtoMessage() {} -func (*RecordDecisionTaskStartedRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{20} -} -func (m *RecordDecisionTaskStartedRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RecordDecisionTaskStartedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RecordDecisionTaskStartedRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RecordDecisionTaskStartedRequest) Reset() { + *x = RecordDecisionTaskStartedRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RecordDecisionTaskStartedRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RecordDecisionTaskStartedRequest.Merge(m, src) -} -func (m *RecordDecisionTaskStartedRequest) XXX_Size() int { - return m.Size() + +func (x *RecordDecisionTaskStartedRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RecordDecisionTaskStartedRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RecordDecisionTaskStartedRequest.DiscardUnknown(m) + +func (*RecordDecisionTaskStartedRequest) ProtoMessage() {} + +func (x *RecordDecisionTaskStartedRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RecordDecisionTaskStartedRequest proto.InternalMessageInfo +// Deprecated: Use RecordDecisionTaskStartedRequest.ProtoReflect.Descriptor instead. +func (*RecordDecisionTaskStartedRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{20} +} -func (m *RecordDecisionTaskStartedRequest) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *RecordDecisionTaskStartedRequest) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } -func (m *RecordDecisionTaskStartedRequest) GetWorkflowExecution() *v1.WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *RecordDecisionTaskStartedRequest) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *RecordDecisionTaskStartedRequest) GetScheduleId() int64 { - if m != nil { - return m.ScheduleId +func (x *RecordDecisionTaskStartedRequest) GetScheduleId() int64 { + if x != nil { + return x.ScheduleId } return 0 } -func (m *RecordDecisionTaskStartedRequest) GetTaskId() int64 { - if m != nil { - return m.TaskId +func (x *RecordDecisionTaskStartedRequest) GetTaskId() int64 { + if x != nil { + return x.TaskId } return 0 } -func (m *RecordDecisionTaskStartedRequest) GetRequestId() string { - if m != nil { - return m.RequestId +func (x *RecordDecisionTaskStartedRequest) GetRequestId() string { + if x != nil { + return x.RequestId } return "" } -func (m *RecordDecisionTaskStartedRequest) GetPollRequest() *v1.PollForDecisionTaskRequest { - if m != nil { - return m.PollRequest +func (x *RecordDecisionTaskStartedRequest) GetPollRequest() *v1.PollForDecisionTaskRequest { + if x != nil { + return x.PollRequest } return nil } type RecordDecisionTaskStartedResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + WorkflowType *v1.WorkflowType `protobuf:"bytes,1,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` PreviousStartedEventId int64 `protobuf:"varint,2,opt,name=previous_started_event_id,json=previousStartedEventId,proto3" json:"previous_started_event_id,omitempty"` ScheduledEventId int64 `protobuf:"varint,3,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` @@ -1461,142 +1531,146 @@ type RecordDecisionTaskStartedResponse struct { WorkflowExecutionTaskList *v1.TaskList `protobuf:"bytes,9,opt,name=workflow_execution_task_list,json=workflowExecutionTaskList,proto3" json:"workflow_execution_task_list,omitempty"` EventStoreVersion int32 `protobuf:"varint,10,opt,name=event_store_version,json=eventStoreVersion,proto3" json:"event_store_version,omitempty"` BranchToken []byte `protobuf:"bytes,11,opt,name=branch_token,json=branchToken,proto3" json:"branch_token,omitempty"` - ScheduledTime *time.Time `protobuf:"bytes,12,opt,name=scheduled_time,json=scheduledTime,proto3,stdtime" json:"scheduled_time,omitempty"` - StartedTime *time.Time `protobuf:"bytes,13,opt,name=started_time,json=startedTime,proto3,stdtime" json:"started_time,omitempty"` + ScheduledTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=scheduled_time,json=scheduledTime,proto3" json:"scheduled_time,omitempty"` + StartedTime *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=started_time,json=startedTime,proto3" json:"started_time,omitempty"` Queries map[string]*v1.WorkflowQuery `protobuf:"bytes,14,rep,name=queries,proto3" json:"queries,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func (m *RecordDecisionTaskStartedResponse) Reset() { *m = RecordDecisionTaskStartedResponse{} } -func (*RecordDecisionTaskStartedResponse) ProtoMessage() {} -func (*RecordDecisionTaskStartedResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{21} -} -func (m *RecordDecisionTaskStartedResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RecordDecisionTaskStartedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RecordDecisionTaskStartedResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RecordDecisionTaskStartedResponse) Reset() { + *x = RecordDecisionTaskStartedResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RecordDecisionTaskStartedResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RecordDecisionTaskStartedResponse.Merge(m, src) -} -func (m *RecordDecisionTaskStartedResponse) XXX_Size() int { - return m.Size() + +func (x *RecordDecisionTaskStartedResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RecordDecisionTaskStartedResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RecordDecisionTaskStartedResponse.DiscardUnknown(m) + +func (*RecordDecisionTaskStartedResponse) ProtoMessage() {} + +func (x *RecordDecisionTaskStartedResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RecordDecisionTaskStartedResponse proto.InternalMessageInfo +// Deprecated: Use RecordDecisionTaskStartedResponse.ProtoReflect.Descriptor instead. +func (*RecordDecisionTaskStartedResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{21} +} -func (m *RecordDecisionTaskStartedResponse) GetWorkflowType() *v1.WorkflowType { - if m != nil { - return m.WorkflowType +func (x *RecordDecisionTaskStartedResponse) GetWorkflowType() *v1.WorkflowType { + if x != nil { + return x.WorkflowType } return nil } -func (m *RecordDecisionTaskStartedResponse) GetPreviousStartedEventId() int64 { - if m != nil { - return m.PreviousStartedEventId +func (x *RecordDecisionTaskStartedResponse) GetPreviousStartedEventId() int64 { + if x != nil { + return x.PreviousStartedEventId } return 0 } -func (m *RecordDecisionTaskStartedResponse) GetScheduledEventId() int64 { - if m != nil { - return m.ScheduledEventId +func (x *RecordDecisionTaskStartedResponse) GetScheduledEventId() int64 { + if x != nil { + return x.ScheduledEventId } return 0 } -func (m *RecordDecisionTaskStartedResponse) GetStartedEventId() int64 { - if m != nil { - return m.StartedEventId +func (x *RecordDecisionTaskStartedResponse) GetStartedEventId() int64 { + if x != nil { + return x.StartedEventId } return 0 } -func (m *RecordDecisionTaskStartedResponse) GetNextEventId() int64 { - if m != nil { - return m.NextEventId +func (x *RecordDecisionTaskStartedResponse) GetNextEventId() int64 { + if x != nil { + return x.NextEventId } return 0 } -func (m *RecordDecisionTaskStartedResponse) GetAttempt() int32 { - if m != nil { - return m.Attempt +func (x *RecordDecisionTaskStartedResponse) GetAttempt() int32 { + if x != nil { + return x.Attempt } return 0 } -func (m *RecordDecisionTaskStartedResponse) GetStickyExecutionEnabled() bool { - if m != nil { - return m.StickyExecutionEnabled +func (x *RecordDecisionTaskStartedResponse) GetStickyExecutionEnabled() bool { + if x != nil { + return x.StickyExecutionEnabled } return false } -func (m *RecordDecisionTaskStartedResponse) GetDecisionInfo() *v11.TransientDecisionInfo { - if m != nil { - return m.DecisionInfo +func (x *RecordDecisionTaskStartedResponse) GetDecisionInfo() *v11.TransientDecisionInfo { + if x != nil { + return x.DecisionInfo } return nil } -func (m *RecordDecisionTaskStartedResponse) GetWorkflowExecutionTaskList() *v1.TaskList { - if m != nil { - return m.WorkflowExecutionTaskList +func (x *RecordDecisionTaskStartedResponse) GetWorkflowExecutionTaskList() *v1.TaskList { + if x != nil { + return x.WorkflowExecutionTaskList } return nil } -func (m *RecordDecisionTaskStartedResponse) GetEventStoreVersion() int32 { - if m != nil { - return m.EventStoreVersion +func (x *RecordDecisionTaskStartedResponse) GetEventStoreVersion() int32 { + if x != nil { + return x.EventStoreVersion } return 0 } -func (m *RecordDecisionTaskStartedResponse) GetBranchToken() []byte { - if m != nil { - return m.BranchToken +func (x *RecordDecisionTaskStartedResponse) GetBranchToken() []byte { + if x != nil { + return x.BranchToken } return nil } -func (m *RecordDecisionTaskStartedResponse) GetScheduledTime() *time.Time { - if m != nil { - return m.ScheduledTime +func (x *RecordDecisionTaskStartedResponse) GetScheduledTime() *timestamppb.Timestamp { + if x != nil { + return x.ScheduledTime } return nil } -func (m *RecordDecisionTaskStartedResponse) GetStartedTime() *time.Time { - if m != nil { - return m.StartedTime +func (x *RecordDecisionTaskStartedResponse) GetStartedTime() *timestamppb.Timestamp { + if x != nil { + return x.StartedTime } return nil } -func (m *RecordDecisionTaskStartedResponse) GetQueries() map[string]*v1.WorkflowQuery { - if m != nil { - return m.Queries +func (x *RecordDecisionTaskStartedResponse) GetQueries() map[string]*v1.WorkflowQuery { + if x != nil { + return x.Queries } return nil } type RecordActivityTaskStartedRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + DomainId string `protobuf:"bytes,1,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` ScheduleId int64 `protobuf:"varint,3,opt,name=schedule_id,json=scheduleId,proto3" json:"schedule_id,omitempty"` @@ -1606,806 +1680,865 @@ type RecordActivityTaskStartedRequest struct { PollRequest *v1.PollForActivityTaskRequest `protobuf:"bytes,6,opt,name=poll_request,json=pollRequest,proto3" json:"poll_request,omitempty"` } -func (m *RecordActivityTaskStartedRequest) Reset() { *m = RecordActivityTaskStartedRequest{} } -func (*RecordActivityTaskStartedRequest) ProtoMessage() {} -func (*RecordActivityTaskStartedRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{22} -} -func (m *RecordActivityTaskStartedRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RecordActivityTaskStartedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RecordActivityTaskStartedRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RecordActivityTaskStartedRequest) Reset() { + *x = RecordActivityTaskStartedRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RecordActivityTaskStartedRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RecordActivityTaskStartedRequest.Merge(m, src) -} -func (m *RecordActivityTaskStartedRequest) XXX_Size() int { - return m.Size() + +func (x *RecordActivityTaskStartedRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RecordActivityTaskStartedRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RecordActivityTaskStartedRequest.DiscardUnknown(m) + +func (*RecordActivityTaskStartedRequest) ProtoMessage() {} + +func (x *RecordActivityTaskStartedRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RecordActivityTaskStartedRequest proto.InternalMessageInfo +// Deprecated: Use RecordActivityTaskStartedRequest.ProtoReflect.Descriptor instead. +func (*RecordActivityTaskStartedRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{22} +} -func (m *RecordActivityTaskStartedRequest) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *RecordActivityTaskStartedRequest) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } -func (m *RecordActivityTaskStartedRequest) GetWorkflowExecution() *v1.WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *RecordActivityTaskStartedRequest) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *RecordActivityTaskStartedRequest) GetScheduleId() int64 { - if m != nil { - return m.ScheduleId +func (x *RecordActivityTaskStartedRequest) GetScheduleId() int64 { + if x != nil { + return x.ScheduleId } return 0 } -func (m *RecordActivityTaskStartedRequest) GetTaskId() int64 { - if m != nil { - return m.TaskId +func (x *RecordActivityTaskStartedRequest) GetTaskId() int64 { + if x != nil { + return x.TaskId } return 0 } -func (m *RecordActivityTaskStartedRequest) GetRequestId() string { - if m != nil { - return m.RequestId +func (x *RecordActivityTaskStartedRequest) GetRequestId() string { + if x != nil { + return x.RequestId } return "" } -func (m *RecordActivityTaskStartedRequest) GetPollRequest() *v1.PollForActivityTaskRequest { - if m != nil { - return m.PollRequest +func (x *RecordActivityTaskStartedRequest) GetPollRequest() *v1.PollForActivityTaskRequest { + if x != nil { + return x.PollRequest } return nil } type RecordActivityTaskStartedResponse struct { - ScheduledEvent *v1.HistoryEvent `protobuf:"bytes,1,opt,name=scheduled_event,json=scheduledEvent,proto3" json:"scheduled_event,omitempty"` - StartedTime *time.Time `protobuf:"bytes,2,opt,name=started_time,json=startedTime,proto3,stdtime" json:"started_time,omitempty"` - Attempt int32 `protobuf:"varint,3,opt,name=attempt,proto3" json:"attempt,omitempty"` - ScheduledTimeOfThisAttempt *time.Time `protobuf:"bytes,4,opt,name=scheduled_time_of_this_attempt,json=scheduledTimeOfThisAttempt,proto3,stdtime" json:"scheduled_time_of_this_attempt,omitempty"` - HeartbeatDetails *v1.Payload `protobuf:"bytes,5,opt,name=heartbeat_details,json=heartbeatDetails,proto3" json:"heartbeat_details,omitempty"` - WorkflowType *v1.WorkflowType `protobuf:"bytes,6,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` - WorkflowDomain string `protobuf:"bytes,7,opt,name=workflow_domain,json=workflowDomain,proto3" json:"workflow_domain,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ScheduledEvent *v1.HistoryEvent `protobuf:"bytes,1,opt,name=scheduled_event,json=scheduledEvent,proto3" json:"scheduled_event,omitempty"` + StartedTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=started_time,json=startedTime,proto3" json:"started_time,omitempty"` + Attempt int32 `protobuf:"varint,3,opt,name=attempt,proto3" json:"attempt,omitempty"` + ScheduledTimeOfThisAttempt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=scheduled_time_of_this_attempt,json=scheduledTimeOfThisAttempt,proto3" json:"scheduled_time_of_this_attempt,omitempty"` + HeartbeatDetails *v1.Payload `protobuf:"bytes,5,opt,name=heartbeat_details,json=heartbeatDetails,proto3" json:"heartbeat_details,omitempty"` + WorkflowType *v1.WorkflowType `protobuf:"bytes,6,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` + WorkflowDomain string `protobuf:"bytes,7,opt,name=workflow_domain,json=workflowDomain,proto3" json:"workflow_domain,omitempty"` } -func (m *RecordActivityTaskStartedResponse) Reset() { *m = RecordActivityTaskStartedResponse{} } -func (*RecordActivityTaskStartedResponse) ProtoMessage() {} -func (*RecordActivityTaskStartedResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{23} -} -func (m *RecordActivityTaskStartedResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RecordActivityTaskStartedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RecordActivityTaskStartedResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RecordActivityTaskStartedResponse) Reset() { + *x = RecordActivityTaskStartedResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RecordActivityTaskStartedResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RecordActivityTaskStartedResponse.Merge(m, src) -} -func (m *RecordActivityTaskStartedResponse) XXX_Size() int { - return m.Size() + +func (x *RecordActivityTaskStartedResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RecordActivityTaskStartedResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RecordActivityTaskStartedResponse.DiscardUnknown(m) + +func (*RecordActivityTaskStartedResponse) ProtoMessage() {} + +func (x *RecordActivityTaskStartedResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RecordActivityTaskStartedResponse proto.InternalMessageInfo +// Deprecated: Use RecordActivityTaskStartedResponse.ProtoReflect.Descriptor instead. +func (*RecordActivityTaskStartedResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{23} +} -func (m *RecordActivityTaskStartedResponse) GetScheduledEvent() *v1.HistoryEvent { - if m != nil { - return m.ScheduledEvent +func (x *RecordActivityTaskStartedResponse) GetScheduledEvent() *v1.HistoryEvent { + if x != nil { + return x.ScheduledEvent } return nil } -func (m *RecordActivityTaskStartedResponse) GetStartedTime() *time.Time { - if m != nil { - return m.StartedTime +func (x *RecordActivityTaskStartedResponse) GetStartedTime() *timestamppb.Timestamp { + if x != nil { + return x.StartedTime } return nil } -func (m *RecordActivityTaskStartedResponse) GetAttempt() int32 { - if m != nil { - return m.Attempt +func (x *RecordActivityTaskStartedResponse) GetAttempt() int32 { + if x != nil { + return x.Attempt } return 0 } -func (m *RecordActivityTaskStartedResponse) GetScheduledTimeOfThisAttempt() *time.Time { - if m != nil { - return m.ScheduledTimeOfThisAttempt +func (x *RecordActivityTaskStartedResponse) GetScheduledTimeOfThisAttempt() *timestamppb.Timestamp { + if x != nil { + return x.ScheduledTimeOfThisAttempt } return nil } -func (m *RecordActivityTaskStartedResponse) GetHeartbeatDetails() *v1.Payload { - if m != nil { - return m.HeartbeatDetails +func (x *RecordActivityTaskStartedResponse) GetHeartbeatDetails() *v1.Payload { + if x != nil { + return x.HeartbeatDetails } return nil } -func (m *RecordActivityTaskStartedResponse) GetWorkflowType() *v1.WorkflowType { - if m != nil { - return m.WorkflowType +func (x *RecordActivityTaskStartedResponse) GetWorkflowType() *v1.WorkflowType { + if x != nil { + return x.WorkflowType } return nil } -func (m *RecordActivityTaskStartedResponse) GetWorkflowDomain() string { - if m != nil { - return m.WorkflowDomain +func (x *RecordActivityTaskStartedResponse) GetWorkflowDomain() string { + if x != nil { + return x.WorkflowDomain } return "" } type RespondDecisionTaskCompletedRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Request *v1.RespondDecisionTaskCompletedRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` DomainId string `protobuf:"bytes,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` } -func (m *RespondDecisionTaskCompletedRequest) Reset() { *m = RespondDecisionTaskCompletedRequest{} } -func (*RespondDecisionTaskCompletedRequest) ProtoMessage() {} -func (*RespondDecisionTaskCompletedRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{24} -} -func (m *RespondDecisionTaskCompletedRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RespondDecisionTaskCompletedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RespondDecisionTaskCompletedRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RespondDecisionTaskCompletedRequest) Reset() { + *x = RespondDecisionTaskCompletedRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RespondDecisionTaskCompletedRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RespondDecisionTaskCompletedRequest.Merge(m, src) -} -func (m *RespondDecisionTaskCompletedRequest) XXX_Size() int { - return m.Size() + +func (x *RespondDecisionTaskCompletedRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RespondDecisionTaskCompletedRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RespondDecisionTaskCompletedRequest.DiscardUnknown(m) + +func (*RespondDecisionTaskCompletedRequest) ProtoMessage() {} + +func (x *RespondDecisionTaskCompletedRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RespondDecisionTaskCompletedRequest proto.InternalMessageInfo +// Deprecated: Use RespondDecisionTaskCompletedRequest.ProtoReflect.Descriptor instead. +func (*RespondDecisionTaskCompletedRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{24} +} -func (m *RespondDecisionTaskCompletedRequest) GetRequest() *v1.RespondDecisionTaskCompletedRequest { - if m != nil { - return m.Request +func (x *RespondDecisionTaskCompletedRequest) GetRequest() *v1.RespondDecisionTaskCompletedRequest { + if x != nil { + return x.Request } return nil } -func (m *RespondDecisionTaskCompletedRequest) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *RespondDecisionTaskCompletedRequest) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } type RespondDecisionTaskCompletedResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + StartedResponse *RecordDecisionTaskStartedResponse `protobuf:"bytes,1,opt,name=started_response,json=startedResponse,proto3" json:"started_response,omitempty"` ActivitiesToDispatchLocally map[string]*v1.ActivityLocalDispatchInfo `protobuf:"bytes,2,rep,name=activities_to_dispatch_locally,json=activitiesToDispatchLocally,proto3" json:"activities_to_dispatch_locally,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func (m *RespondDecisionTaskCompletedResponse) Reset() { *m = RespondDecisionTaskCompletedResponse{} } -func (*RespondDecisionTaskCompletedResponse) ProtoMessage() {} -func (*RespondDecisionTaskCompletedResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{25} -} -func (m *RespondDecisionTaskCompletedResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RespondDecisionTaskCompletedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RespondDecisionTaskCompletedResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RespondDecisionTaskCompletedResponse) Reset() { + *x = RespondDecisionTaskCompletedResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RespondDecisionTaskCompletedResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RespondDecisionTaskCompletedResponse.Merge(m, src) -} -func (m *RespondDecisionTaskCompletedResponse) XXX_Size() int { - return m.Size() + +func (x *RespondDecisionTaskCompletedResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RespondDecisionTaskCompletedResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RespondDecisionTaskCompletedResponse.DiscardUnknown(m) + +func (*RespondDecisionTaskCompletedResponse) ProtoMessage() {} + +func (x *RespondDecisionTaskCompletedResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RespondDecisionTaskCompletedResponse proto.InternalMessageInfo +// Deprecated: Use RespondDecisionTaskCompletedResponse.ProtoReflect.Descriptor instead. +func (*RespondDecisionTaskCompletedResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{25} +} -func (m *RespondDecisionTaskCompletedResponse) GetStartedResponse() *RecordDecisionTaskStartedResponse { - if m != nil { - return m.StartedResponse +func (x *RespondDecisionTaskCompletedResponse) GetStartedResponse() *RecordDecisionTaskStartedResponse { + if x != nil { + return x.StartedResponse } return nil } -func (m *RespondDecisionTaskCompletedResponse) GetActivitiesToDispatchLocally() map[string]*v1.ActivityLocalDispatchInfo { - if m != nil { - return m.ActivitiesToDispatchLocally +func (x *RespondDecisionTaskCompletedResponse) GetActivitiesToDispatchLocally() map[string]*v1.ActivityLocalDispatchInfo { + if x != nil { + return x.ActivitiesToDispatchLocally } return nil } type RespondDecisionTaskFailedRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Request *v1.RespondDecisionTaskFailedRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` DomainId string `protobuf:"bytes,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` } -func (m *RespondDecisionTaskFailedRequest) Reset() { *m = RespondDecisionTaskFailedRequest{} } -func (*RespondDecisionTaskFailedRequest) ProtoMessage() {} -func (*RespondDecisionTaskFailedRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{26} -} -func (m *RespondDecisionTaskFailedRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RespondDecisionTaskFailedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RespondDecisionTaskFailedRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RespondDecisionTaskFailedRequest) Reset() { + *x = RespondDecisionTaskFailedRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RespondDecisionTaskFailedRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RespondDecisionTaskFailedRequest.Merge(m, src) -} -func (m *RespondDecisionTaskFailedRequest) XXX_Size() int { - return m.Size() + +func (x *RespondDecisionTaskFailedRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RespondDecisionTaskFailedRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RespondDecisionTaskFailedRequest.DiscardUnknown(m) + +func (*RespondDecisionTaskFailedRequest) ProtoMessage() {} + +func (x *RespondDecisionTaskFailedRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RespondDecisionTaskFailedRequest proto.InternalMessageInfo +// Deprecated: Use RespondDecisionTaskFailedRequest.ProtoReflect.Descriptor instead. +func (*RespondDecisionTaskFailedRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{26} +} -func (m *RespondDecisionTaskFailedRequest) GetRequest() *v1.RespondDecisionTaskFailedRequest { - if m != nil { - return m.Request +func (x *RespondDecisionTaskFailedRequest) GetRequest() *v1.RespondDecisionTaskFailedRequest { + if x != nil { + return x.Request } return nil } -func (m *RespondDecisionTaskFailedRequest) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *RespondDecisionTaskFailedRequest) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } type RespondDecisionTaskFailedResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *RespondDecisionTaskFailedResponse) Reset() { *m = RespondDecisionTaskFailedResponse{} } -func (*RespondDecisionTaskFailedResponse) ProtoMessage() {} -func (*RespondDecisionTaskFailedResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{27} -} -func (m *RespondDecisionTaskFailedResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RespondDecisionTaskFailedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RespondDecisionTaskFailedResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RespondDecisionTaskFailedResponse) Reset() { + *x = RespondDecisionTaskFailedResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RespondDecisionTaskFailedResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RespondDecisionTaskFailedResponse.Merge(m, src) -} -func (m *RespondDecisionTaskFailedResponse) XXX_Size() int { - return m.Size() + +func (x *RespondDecisionTaskFailedResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RespondDecisionTaskFailedResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RespondDecisionTaskFailedResponse.DiscardUnknown(m) + +func (*RespondDecisionTaskFailedResponse) ProtoMessage() {} + +func (x *RespondDecisionTaskFailedResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RespondDecisionTaskFailedResponse proto.InternalMessageInfo +// Deprecated: Use RespondDecisionTaskFailedResponse.ProtoReflect.Descriptor instead. +func (*RespondDecisionTaskFailedResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{27} +} type RecordActivityTaskHeartbeatRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Request *v1.RecordActivityTaskHeartbeatRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` DomainId string `protobuf:"bytes,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` } -func (m *RecordActivityTaskHeartbeatRequest) Reset() { *m = RecordActivityTaskHeartbeatRequest{} } -func (*RecordActivityTaskHeartbeatRequest) ProtoMessage() {} -func (*RecordActivityTaskHeartbeatRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{28} -} -func (m *RecordActivityTaskHeartbeatRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RecordActivityTaskHeartbeatRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RecordActivityTaskHeartbeatRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RecordActivityTaskHeartbeatRequest) Reset() { + *x = RecordActivityTaskHeartbeatRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RecordActivityTaskHeartbeatRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RecordActivityTaskHeartbeatRequest.Merge(m, src) -} -func (m *RecordActivityTaskHeartbeatRequest) XXX_Size() int { - return m.Size() + +func (x *RecordActivityTaskHeartbeatRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RecordActivityTaskHeartbeatRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RecordActivityTaskHeartbeatRequest.DiscardUnknown(m) + +func (*RecordActivityTaskHeartbeatRequest) ProtoMessage() {} + +func (x *RecordActivityTaskHeartbeatRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[28] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RecordActivityTaskHeartbeatRequest proto.InternalMessageInfo +// Deprecated: Use RecordActivityTaskHeartbeatRequest.ProtoReflect.Descriptor instead. +func (*RecordActivityTaskHeartbeatRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{28} +} -func (m *RecordActivityTaskHeartbeatRequest) GetRequest() *v1.RecordActivityTaskHeartbeatRequest { - if m != nil { - return m.Request +func (x *RecordActivityTaskHeartbeatRequest) GetRequest() *v1.RecordActivityTaskHeartbeatRequest { + if x != nil { + return x.Request } return nil } -func (m *RecordActivityTaskHeartbeatRequest) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *RecordActivityTaskHeartbeatRequest) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } type RecordActivityTaskHeartbeatResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + CancelRequested bool `protobuf:"varint,1,opt,name=cancel_requested,json=cancelRequested,proto3" json:"cancel_requested,omitempty"` } -func (m *RecordActivityTaskHeartbeatResponse) Reset() { *m = RecordActivityTaskHeartbeatResponse{} } -func (*RecordActivityTaskHeartbeatResponse) ProtoMessage() {} -func (*RecordActivityTaskHeartbeatResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{29} -} -func (m *RecordActivityTaskHeartbeatResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RecordActivityTaskHeartbeatResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RecordActivityTaskHeartbeatResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RecordActivityTaskHeartbeatResponse) Reset() { + *x = RecordActivityTaskHeartbeatResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RecordActivityTaskHeartbeatResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RecordActivityTaskHeartbeatResponse.Merge(m, src) -} -func (m *RecordActivityTaskHeartbeatResponse) XXX_Size() int { - return m.Size() + +func (x *RecordActivityTaskHeartbeatResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RecordActivityTaskHeartbeatResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RecordActivityTaskHeartbeatResponse.DiscardUnknown(m) + +func (*RecordActivityTaskHeartbeatResponse) ProtoMessage() {} + +func (x *RecordActivityTaskHeartbeatResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[29] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RecordActivityTaskHeartbeatResponse proto.InternalMessageInfo +// Deprecated: Use RecordActivityTaskHeartbeatResponse.ProtoReflect.Descriptor instead. +func (*RecordActivityTaskHeartbeatResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{29} +} -func (m *RecordActivityTaskHeartbeatResponse) GetCancelRequested() bool { - if m != nil { - return m.CancelRequested +func (x *RecordActivityTaskHeartbeatResponse) GetCancelRequested() bool { + if x != nil { + return x.CancelRequested } return false } type RespondActivityTaskCompletedRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Request *v1.RespondActivityTaskCompletedRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` DomainId string `protobuf:"bytes,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` } -func (m *RespondActivityTaskCompletedRequest) Reset() { *m = RespondActivityTaskCompletedRequest{} } -func (*RespondActivityTaskCompletedRequest) ProtoMessage() {} -func (*RespondActivityTaskCompletedRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{30} -} -func (m *RespondActivityTaskCompletedRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RespondActivityTaskCompletedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RespondActivityTaskCompletedRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RespondActivityTaskCompletedRequest) Reset() { + *x = RespondActivityTaskCompletedRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RespondActivityTaskCompletedRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RespondActivityTaskCompletedRequest.Merge(m, src) -} -func (m *RespondActivityTaskCompletedRequest) XXX_Size() int { - return m.Size() + +func (x *RespondActivityTaskCompletedRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RespondActivityTaskCompletedRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RespondActivityTaskCompletedRequest.DiscardUnknown(m) + +func (*RespondActivityTaskCompletedRequest) ProtoMessage() {} + +func (x *RespondActivityTaskCompletedRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[30] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RespondActivityTaskCompletedRequest proto.InternalMessageInfo +// Deprecated: Use RespondActivityTaskCompletedRequest.ProtoReflect.Descriptor instead. +func (*RespondActivityTaskCompletedRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{30} +} -func (m *RespondActivityTaskCompletedRequest) GetRequest() *v1.RespondActivityTaskCompletedRequest { - if m != nil { - return m.Request +func (x *RespondActivityTaskCompletedRequest) GetRequest() *v1.RespondActivityTaskCompletedRequest { + if x != nil { + return x.Request } return nil } -func (m *RespondActivityTaskCompletedRequest) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *RespondActivityTaskCompletedRequest) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } type RespondActivityTaskCompletedResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *RespondActivityTaskCompletedResponse) Reset() { *m = RespondActivityTaskCompletedResponse{} } -func (*RespondActivityTaskCompletedResponse) ProtoMessage() {} -func (*RespondActivityTaskCompletedResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{31} -} -func (m *RespondActivityTaskCompletedResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RespondActivityTaskCompletedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RespondActivityTaskCompletedResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RespondActivityTaskCompletedResponse) Reset() { + *x = RespondActivityTaskCompletedResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RespondActivityTaskCompletedResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RespondActivityTaskCompletedResponse.Merge(m, src) -} -func (m *RespondActivityTaskCompletedResponse) XXX_Size() int { - return m.Size() + +func (x *RespondActivityTaskCompletedResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RespondActivityTaskCompletedResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RespondActivityTaskCompletedResponse.DiscardUnknown(m) + +func (*RespondActivityTaskCompletedResponse) ProtoMessage() {} + +func (x *RespondActivityTaskCompletedResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[31] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RespondActivityTaskCompletedResponse proto.InternalMessageInfo +// Deprecated: Use RespondActivityTaskCompletedResponse.ProtoReflect.Descriptor instead. +func (*RespondActivityTaskCompletedResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{31} +} type RespondActivityTaskFailedRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Request *v1.RespondActivityTaskFailedRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` DomainId string `protobuf:"bytes,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` } -func (m *RespondActivityTaskFailedRequest) Reset() { *m = RespondActivityTaskFailedRequest{} } -func (*RespondActivityTaskFailedRequest) ProtoMessage() {} -func (*RespondActivityTaskFailedRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{32} -} -func (m *RespondActivityTaskFailedRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RespondActivityTaskFailedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RespondActivityTaskFailedRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RespondActivityTaskFailedRequest) Reset() { + *x = RespondActivityTaskFailedRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RespondActivityTaskFailedRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RespondActivityTaskFailedRequest.Merge(m, src) -} -func (m *RespondActivityTaskFailedRequest) XXX_Size() int { - return m.Size() + +func (x *RespondActivityTaskFailedRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RespondActivityTaskFailedRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RespondActivityTaskFailedRequest.DiscardUnknown(m) + +func (*RespondActivityTaskFailedRequest) ProtoMessage() {} + +func (x *RespondActivityTaskFailedRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[32] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RespondActivityTaskFailedRequest proto.InternalMessageInfo +// Deprecated: Use RespondActivityTaskFailedRequest.ProtoReflect.Descriptor instead. +func (*RespondActivityTaskFailedRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{32} +} -func (m *RespondActivityTaskFailedRequest) GetRequest() *v1.RespondActivityTaskFailedRequest { - if m != nil { - return m.Request +func (x *RespondActivityTaskFailedRequest) GetRequest() *v1.RespondActivityTaskFailedRequest { + if x != nil { + return x.Request } return nil } -func (m *RespondActivityTaskFailedRequest) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *RespondActivityTaskFailedRequest) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } type RespondActivityTaskFailedResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *RespondActivityTaskFailedResponse) Reset() { *m = RespondActivityTaskFailedResponse{} } -func (*RespondActivityTaskFailedResponse) ProtoMessage() {} -func (*RespondActivityTaskFailedResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{33} -} -func (m *RespondActivityTaskFailedResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RespondActivityTaskFailedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RespondActivityTaskFailedResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RespondActivityTaskFailedResponse) Reset() { + *x = RespondActivityTaskFailedResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RespondActivityTaskFailedResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RespondActivityTaskFailedResponse.Merge(m, src) -} -func (m *RespondActivityTaskFailedResponse) XXX_Size() int { - return m.Size() + +func (x *RespondActivityTaskFailedResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RespondActivityTaskFailedResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RespondActivityTaskFailedResponse.DiscardUnknown(m) + +func (*RespondActivityTaskFailedResponse) ProtoMessage() {} + +func (x *RespondActivityTaskFailedResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[33] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RespondActivityTaskFailedResponse proto.InternalMessageInfo +// Deprecated: Use RespondActivityTaskFailedResponse.ProtoReflect.Descriptor instead. +func (*RespondActivityTaskFailedResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{33} +} type RespondActivityTaskCanceledRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Request *v1.RespondActivityTaskCanceledRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` DomainId string `protobuf:"bytes,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` } -func (m *RespondActivityTaskCanceledRequest) Reset() { *m = RespondActivityTaskCanceledRequest{} } -func (*RespondActivityTaskCanceledRequest) ProtoMessage() {} -func (*RespondActivityTaskCanceledRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{34} -} -func (m *RespondActivityTaskCanceledRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RespondActivityTaskCanceledRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RespondActivityTaskCanceledRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RespondActivityTaskCanceledRequest) Reset() { + *x = RespondActivityTaskCanceledRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RespondActivityTaskCanceledRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RespondActivityTaskCanceledRequest.Merge(m, src) -} -func (m *RespondActivityTaskCanceledRequest) XXX_Size() int { - return m.Size() + +func (x *RespondActivityTaskCanceledRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RespondActivityTaskCanceledRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RespondActivityTaskCanceledRequest.DiscardUnknown(m) + +func (*RespondActivityTaskCanceledRequest) ProtoMessage() {} + +func (x *RespondActivityTaskCanceledRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[34] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RespondActivityTaskCanceledRequest proto.InternalMessageInfo +// Deprecated: Use RespondActivityTaskCanceledRequest.ProtoReflect.Descriptor instead. +func (*RespondActivityTaskCanceledRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{34} +} -func (m *RespondActivityTaskCanceledRequest) GetRequest() *v1.RespondActivityTaskCanceledRequest { - if m != nil { - return m.Request +func (x *RespondActivityTaskCanceledRequest) GetRequest() *v1.RespondActivityTaskCanceledRequest { + if x != nil { + return x.Request } return nil } -func (m *RespondActivityTaskCanceledRequest) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *RespondActivityTaskCanceledRequest) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } type RespondActivityTaskCanceledResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *RespondActivityTaskCanceledResponse) Reset() { *m = RespondActivityTaskCanceledResponse{} } -func (*RespondActivityTaskCanceledResponse) ProtoMessage() {} -func (*RespondActivityTaskCanceledResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{35} -} -func (m *RespondActivityTaskCanceledResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RespondActivityTaskCanceledResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RespondActivityTaskCanceledResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RespondActivityTaskCanceledResponse) Reset() { + *x = RespondActivityTaskCanceledResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RespondActivityTaskCanceledResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RespondActivityTaskCanceledResponse.Merge(m, src) -} -func (m *RespondActivityTaskCanceledResponse) XXX_Size() int { - return m.Size() + +func (x *RespondActivityTaskCanceledResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RespondActivityTaskCanceledResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RespondActivityTaskCanceledResponse.DiscardUnknown(m) + +func (*RespondActivityTaskCanceledResponse) ProtoMessage() {} + +func (x *RespondActivityTaskCanceledResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[35] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RespondActivityTaskCanceledResponse proto.InternalMessageInfo +// Deprecated: Use RespondActivityTaskCanceledResponse.ProtoReflect.Descriptor instead. +func (*RespondActivityTaskCanceledResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{35} +} type RemoveSignalMutableStateRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + DomainId string `protobuf:"bytes,1,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` } -func (m *RemoveSignalMutableStateRequest) Reset() { *m = RemoveSignalMutableStateRequest{} } -func (*RemoveSignalMutableStateRequest) ProtoMessage() {} -func (*RemoveSignalMutableStateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{36} -} -func (m *RemoveSignalMutableStateRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RemoveSignalMutableStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RemoveSignalMutableStateRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RemoveSignalMutableStateRequest) Reset() { + *x = RemoveSignalMutableStateRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RemoveSignalMutableStateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemoveSignalMutableStateRequest.Merge(m, src) -} -func (m *RemoveSignalMutableStateRequest) XXX_Size() int { - return m.Size() + +func (x *RemoveSignalMutableStateRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RemoveSignalMutableStateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RemoveSignalMutableStateRequest.DiscardUnknown(m) + +func (*RemoveSignalMutableStateRequest) ProtoMessage() {} + +func (x *RemoveSignalMutableStateRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[36] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RemoveSignalMutableStateRequest proto.InternalMessageInfo +// Deprecated: Use RemoveSignalMutableStateRequest.ProtoReflect.Descriptor instead. +func (*RemoveSignalMutableStateRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{36} +} -func (m *RemoveSignalMutableStateRequest) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *RemoveSignalMutableStateRequest) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } -func (m *RemoveSignalMutableStateRequest) GetWorkflowExecution() *v1.WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *RemoveSignalMutableStateRequest) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *RemoveSignalMutableStateRequest) GetRequestId() string { - if m != nil { - return m.RequestId +func (x *RemoveSignalMutableStateRequest) GetRequestId() string { + if x != nil { + return x.RequestId } return "" } type RemoveSignalMutableStateResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *RemoveSignalMutableStateResponse) Reset() { *m = RemoveSignalMutableStateResponse{} } -func (*RemoveSignalMutableStateResponse) ProtoMessage() {} -func (*RemoveSignalMutableStateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{37} -} -func (m *RemoveSignalMutableStateResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RemoveSignalMutableStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RemoveSignalMutableStateResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RemoveSignalMutableStateResponse) Reset() { + *x = RemoveSignalMutableStateResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RemoveSignalMutableStateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemoveSignalMutableStateResponse.Merge(m, src) -} -func (m *RemoveSignalMutableStateResponse) XXX_Size() int { - return m.Size() + +func (x *RemoveSignalMutableStateResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RemoveSignalMutableStateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RemoveSignalMutableStateResponse.DiscardUnknown(m) + +func (*RemoveSignalMutableStateResponse) ProtoMessage() {} + +func (x *RemoveSignalMutableStateResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[37] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RemoveSignalMutableStateResponse proto.InternalMessageInfo +// Deprecated: Use RemoveSignalMutableStateResponse.ProtoReflect.Descriptor instead. +func (*RemoveSignalMutableStateResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{37} +} type RequestCancelWorkflowExecutionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + DomainId string `protobuf:"bytes,1,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` CancelRequest *v1.RequestCancelWorkflowExecutionRequest `protobuf:"bytes,2,opt,name=cancel_request,json=cancelRequest,proto3" json:"cancel_request,omitempty"` ExternalInitiatedEventId int64 `protobuf:"varint,3,opt,name=external_initiated_event_id,json=externalInitiatedEventId,proto3" json:"external_initiated_event_id,omitempty"` @@ -2413,203 +2546,211 @@ type RequestCancelWorkflowExecutionRequest struct { ChildWorkflowOnly bool `protobuf:"varint,5,opt,name=child_workflow_only,json=childWorkflowOnly,proto3" json:"child_workflow_only,omitempty"` } -func (m *RequestCancelWorkflowExecutionRequest) Reset() { *m = RequestCancelWorkflowExecutionRequest{} } -func (*RequestCancelWorkflowExecutionRequest) ProtoMessage() {} -func (*RequestCancelWorkflowExecutionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{38} -} -func (m *RequestCancelWorkflowExecutionRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RequestCancelWorkflowExecutionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RequestCancelWorkflowExecutionRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RequestCancelWorkflowExecutionRequest) Reset() { + *x = RequestCancelWorkflowExecutionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RequestCancelWorkflowExecutionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequestCancelWorkflowExecutionRequest.Merge(m, src) -} -func (m *RequestCancelWorkflowExecutionRequest) XXX_Size() int { - return m.Size() + +func (x *RequestCancelWorkflowExecutionRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RequestCancelWorkflowExecutionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RequestCancelWorkflowExecutionRequest.DiscardUnknown(m) + +func (*RequestCancelWorkflowExecutionRequest) ProtoMessage() {} + +func (x *RequestCancelWorkflowExecutionRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[38] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RequestCancelWorkflowExecutionRequest proto.InternalMessageInfo +// Deprecated: Use RequestCancelWorkflowExecutionRequest.ProtoReflect.Descriptor instead. +func (*RequestCancelWorkflowExecutionRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{38} +} -func (m *RequestCancelWorkflowExecutionRequest) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *RequestCancelWorkflowExecutionRequest) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } -func (m *RequestCancelWorkflowExecutionRequest) GetCancelRequest() *v1.RequestCancelWorkflowExecutionRequest { - if m != nil { - return m.CancelRequest +func (x *RequestCancelWorkflowExecutionRequest) GetCancelRequest() *v1.RequestCancelWorkflowExecutionRequest { + if x != nil { + return x.CancelRequest } return nil } -func (m *RequestCancelWorkflowExecutionRequest) GetExternalInitiatedEventId() int64 { - if m != nil { - return m.ExternalInitiatedEventId +func (x *RequestCancelWorkflowExecutionRequest) GetExternalInitiatedEventId() int64 { + if x != nil { + return x.ExternalInitiatedEventId } return 0 } -func (m *RequestCancelWorkflowExecutionRequest) GetExternalWorkflowExecution() *v1.WorkflowExecution { - if m != nil { - return m.ExternalWorkflowExecution +func (x *RequestCancelWorkflowExecutionRequest) GetExternalWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.ExternalWorkflowExecution } return nil } -func (m *RequestCancelWorkflowExecutionRequest) GetChildWorkflowOnly() bool { - if m != nil { - return m.ChildWorkflowOnly +func (x *RequestCancelWorkflowExecutionRequest) GetChildWorkflowOnly() bool { + if x != nil { + return x.ChildWorkflowOnly } return false } type RequestCancelWorkflowExecutionResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *RequestCancelWorkflowExecutionResponse) Reset() { + *x = RequestCancelWorkflowExecutionResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RequestCancelWorkflowExecutionResponse) Reset() { - *m = RequestCancelWorkflowExecutionResponse{} +func (x *RequestCancelWorkflowExecutionResponse) String() string { + return protoimpl.X.MessageStringOf(x) } + func (*RequestCancelWorkflowExecutionResponse) ProtoMessage() {} -func (*RequestCancelWorkflowExecutionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{39} -} -func (m *RequestCancelWorkflowExecutionResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RequestCancelWorkflowExecutionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RequestCancelWorkflowExecutionResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *RequestCancelWorkflowExecutionResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[39] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *RequestCancelWorkflowExecutionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequestCancelWorkflowExecutionResponse.Merge(m, src) -} -func (m *RequestCancelWorkflowExecutionResponse) XXX_Size() int { - return m.Size() -} -func (m *RequestCancelWorkflowExecutionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RequestCancelWorkflowExecutionResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_RequestCancelWorkflowExecutionResponse proto.InternalMessageInfo +// Deprecated: Use RequestCancelWorkflowExecutionResponse.ProtoReflect.Descriptor instead. +func (*RequestCancelWorkflowExecutionResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{39} +} type ScheduleDecisionTaskRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + DomainId string `protobuf:"bytes,1,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` IsFirstDecision bool `protobuf:"varint,3,opt,name=is_first_decision,json=isFirstDecision,proto3" json:"is_first_decision,omitempty"` } -func (m *ScheduleDecisionTaskRequest) Reset() { *m = ScheduleDecisionTaskRequest{} } -func (*ScheduleDecisionTaskRequest) ProtoMessage() {} -func (*ScheduleDecisionTaskRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{40} -} -func (m *ScheduleDecisionTaskRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ScheduleDecisionTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ScheduleDecisionTaskRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ScheduleDecisionTaskRequest) Reset() { + *x = ScheduleDecisionTaskRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ScheduleDecisionTaskRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ScheduleDecisionTaskRequest.Merge(m, src) -} -func (m *ScheduleDecisionTaskRequest) XXX_Size() int { - return m.Size() + +func (x *ScheduleDecisionTaskRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ScheduleDecisionTaskRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ScheduleDecisionTaskRequest.DiscardUnknown(m) + +func (*ScheduleDecisionTaskRequest) ProtoMessage() {} + +func (x *ScheduleDecisionTaskRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[40] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ScheduleDecisionTaskRequest proto.InternalMessageInfo +// Deprecated: Use ScheduleDecisionTaskRequest.ProtoReflect.Descriptor instead. +func (*ScheduleDecisionTaskRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{40} +} -func (m *ScheduleDecisionTaskRequest) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *ScheduleDecisionTaskRequest) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } -func (m *ScheduleDecisionTaskRequest) GetWorkflowExecution() *v1.WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *ScheduleDecisionTaskRequest) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *ScheduleDecisionTaskRequest) GetIsFirstDecision() bool { - if m != nil { - return m.IsFirstDecision +func (x *ScheduleDecisionTaskRequest) GetIsFirstDecision() bool { + if x != nil { + return x.IsFirstDecision } return false } type ScheduleDecisionTaskResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ScheduleDecisionTaskResponse) Reset() { *m = ScheduleDecisionTaskResponse{} } -func (*ScheduleDecisionTaskResponse) ProtoMessage() {} -func (*ScheduleDecisionTaskResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{41} -} -func (m *ScheduleDecisionTaskResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ScheduleDecisionTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ScheduleDecisionTaskResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ScheduleDecisionTaskResponse) Reset() { + *x = ScheduleDecisionTaskResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ScheduleDecisionTaskResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ScheduleDecisionTaskResponse.Merge(m, src) -} -func (m *ScheduleDecisionTaskResponse) XXX_Size() int { - return m.Size() + +func (x *ScheduleDecisionTaskResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ScheduleDecisionTaskResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ScheduleDecisionTaskResponse.DiscardUnknown(m) + +func (*ScheduleDecisionTaskResponse) ProtoMessage() {} + +func (x *ScheduleDecisionTaskResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[41] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ScheduleDecisionTaskResponse proto.InternalMessageInfo +// Deprecated: Use ScheduleDecisionTaskResponse.ProtoReflect.Descriptor instead. +func (*ScheduleDecisionTaskResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{41} +} // RecordChildExecutionCompletedRequest is used for reporting the completion of child execution to parent workflow // execution which started it. When a child execution is completed it creates this request and calls the @@ -2617,6 +2758,10 @@ var xxx_messageInfo_ScheduleDecisionTaskResponse proto.InternalMessageInfo // child as it could potentially be different than the ChildExecutionStartedEvent of parent in the situation when // child creates multiple runs through ContinueAsNew before finally completing. type RecordChildExecutionCompletedRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + DomainId string `protobuf:"bytes,1,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` InitiatedId int64 `protobuf:"varint,3,opt,name=initiated_id,json=initiatedId,proto3" json:"initiated_id,omitempty"` @@ -2624,109 +2769,116 @@ type RecordChildExecutionCompletedRequest struct { CompletionEvent *v1.HistoryEvent `protobuf:"bytes,5,opt,name=completion_event,json=completionEvent,proto3" json:"completion_event,omitempty"` } -func (m *RecordChildExecutionCompletedRequest) Reset() { *m = RecordChildExecutionCompletedRequest{} } -func (*RecordChildExecutionCompletedRequest) ProtoMessage() {} -func (*RecordChildExecutionCompletedRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{42} -} -func (m *RecordChildExecutionCompletedRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RecordChildExecutionCompletedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RecordChildExecutionCompletedRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RecordChildExecutionCompletedRequest) Reset() { + *x = RecordChildExecutionCompletedRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RecordChildExecutionCompletedRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RecordChildExecutionCompletedRequest.Merge(m, src) -} -func (m *RecordChildExecutionCompletedRequest) XXX_Size() int { - return m.Size() + +func (x *RecordChildExecutionCompletedRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RecordChildExecutionCompletedRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RecordChildExecutionCompletedRequest.DiscardUnknown(m) + +func (*RecordChildExecutionCompletedRequest) ProtoMessage() {} + +func (x *RecordChildExecutionCompletedRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[42] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RecordChildExecutionCompletedRequest proto.InternalMessageInfo +// Deprecated: Use RecordChildExecutionCompletedRequest.ProtoReflect.Descriptor instead. +func (*RecordChildExecutionCompletedRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{42} +} -func (m *RecordChildExecutionCompletedRequest) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *RecordChildExecutionCompletedRequest) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } -func (m *RecordChildExecutionCompletedRequest) GetWorkflowExecution() *v1.WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *RecordChildExecutionCompletedRequest) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *RecordChildExecutionCompletedRequest) GetInitiatedId() int64 { - if m != nil { - return m.InitiatedId +func (x *RecordChildExecutionCompletedRequest) GetInitiatedId() int64 { + if x != nil { + return x.InitiatedId } return 0 } -func (m *RecordChildExecutionCompletedRequest) GetCompletedExecution() *v1.WorkflowExecution { - if m != nil { - return m.CompletedExecution +func (x *RecordChildExecutionCompletedRequest) GetCompletedExecution() *v1.WorkflowExecution { + if x != nil { + return x.CompletedExecution } return nil } -func (m *RecordChildExecutionCompletedRequest) GetCompletionEvent() *v1.HistoryEvent { - if m != nil { - return m.CompletionEvent +func (x *RecordChildExecutionCompletedRequest) GetCompletionEvent() *v1.HistoryEvent { + if x != nil { + return x.CompletionEvent } return nil } type RecordChildExecutionCompletedResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *RecordChildExecutionCompletedResponse) Reset() { *m = RecordChildExecutionCompletedResponse{} } -func (*RecordChildExecutionCompletedResponse) ProtoMessage() {} -func (*RecordChildExecutionCompletedResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{43} -} -func (m *RecordChildExecutionCompletedResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RecordChildExecutionCompletedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RecordChildExecutionCompletedResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RecordChildExecutionCompletedResponse) Reset() { + *x = RecordChildExecutionCompletedResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RecordChildExecutionCompletedResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RecordChildExecutionCompletedResponse.Merge(m, src) -} -func (m *RecordChildExecutionCompletedResponse) XXX_Size() int { - return m.Size() + +func (x *RecordChildExecutionCompletedResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RecordChildExecutionCompletedResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RecordChildExecutionCompletedResponse.DiscardUnknown(m) + +func (*RecordChildExecutionCompletedResponse) ProtoMessage() {} + +func (x *RecordChildExecutionCompletedResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[43] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RecordChildExecutionCompletedResponse proto.InternalMessageInfo +// Deprecated: Use RecordChildExecutionCompletedResponse.ProtoReflect.Descriptor instead. +func (*RecordChildExecutionCompletedResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{43} +} type ReplicateEventsV2Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + DomainId string `protobuf:"bytes,1,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` VersionHistoryItems []*v11.VersionHistoryItem `protobuf:"bytes,3,rep,name=version_history_items,json=versionHistoryItems,proto3" json:"version_history_items,omitempty"` @@ -2735,538 +2887,571 @@ type ReplicateEventsV2Request struct { NewRunEvents *v1.DataBlob `protobuf:"bytes,5,opt,name=new_run_events,json=newRunEvents,proto3" json:"new_run_events,omitempty"` } -func (m *ReplicateEventsV2Request) Reset() { *m = ReplicateEventsV2Request{} } -func (*ReplicateEventsV2Request) ProtoMessage() {} -func (*ReplicateEventsV2Request) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{44} -} -func (m *ReplicateEventsV2Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicateEventsV2Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReplicateEventsV2Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ReplicateEventsV2Request) Reset() { + *x = ReplicateEventsV2Request{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ReplicateEventsV2Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicateEventsV2Request.Merge(m, src) -} -func (m *ReplicateEventsV2Request) XXX_Size() int { - return m.Size() + +func (x *ReplicateEventsV2Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ReplicateEventsV2Request) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicateEventsV2Request.DiscardUnknown(m) + +func (*ReplicateEventsV2Request) ProtoMessage() {} + +func (x *ReplicateEventsV2Request) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[44] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ReplicateEventsV2Request proto.InternalMessageInfo +// Deprecated: Use ReplicateEventsV2Request.ProtoReflect.Descriptor instead. +func (*ReplicateEventsV2Request) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{44} +} -func (m *ReplicateEventsV2Request) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *ReplicateEventsV2Request) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } -func (m *ReplicateEventsV2Request) GetWorkflowExecution() *v1.WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *ReplicateEventsV2Request) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *ReplicateEventsV2Request) GetVersionHistoryItems() []*v11.VersionHistoryItem { - if m != nil { - return m.VersionHistoryItems +func (x *ReplicateEventsV2Request) GetVersionHistoryItems() []*v11.VersionHistoryItem { + if x != nil { + return x.VersionHistoryItems } return nil } -func (m *ReplicateEventsV2Request) GetEvents() *v1.DataBlob { - if m != nil { - return m.Events +func (x *ReplicateEventsV2Request) GetEvents() *v1.DataBlob { + if x != nil { + return x.Events } return nil } -func (m *ReplicateEventsV2Request) GetNewRunEvents() *v1.DataBlob { - if m != nil { - return m.NewRunEvents +func (x *ReplicateEventsV2Request) GetNewRunEvents() *v1.DataBlob { + if x != nil { + return x.NewRunEvents } return nil } type ReplicateEventsV2Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ReplicateEventsV2Response) Reset() { + *x = ReplicateEventsV2Response{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ReplicateEventsV2Response) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ReplicateEventsV2Response) Reset() { *m = ReplicateEventsV2Response{} } func (*ReplicateEventsV2Response) ProtoMessage() {} -func (*ReplicateEventsV2Response) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{45} -} -func (m *ReplicateEventsV2Response) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicateEventsV2Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReplicateEventsV2Response.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *ReplicateEventsV2Response) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[45] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *ReplicateEventsV2Response) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicateEventsV2Response.Merge(m, src) -} -func (m *ReplicateEventsV2Response) XXX_Size() int { - return m.Size() + +// Deprecated: Use ReplicateEventsV2Response.ProtoReflect.Descriptor instead. +func (*ReplicateEventsV2Response) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{45} } -func (m *ReplicateEventsV2Response) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicateEventsV2Response.DiscardUnknown(m) + +type SyncShardStatusRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SourceCluster string `protobuf:"bytes,1,opt,name=source_cluster,json=sourceCluster,proto3" json:"source_cluster,omitempty"` + ShardId int32 `protobuf:"varint,2,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"` + Time *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"` } -var xxx_messageInfo_ReplicateEventsV2Response proto.InternalMessageInfo +func (x *SyncShardStatusRequest) Reset() { + *x = SyncShardStatusRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} -type SyncShardStatusRequest struct { - SourceCluster string `protobuf:"bytes,1,opt,name=source_cluster,json=sourceCluster,proto3" json:"source_cluster,omitempty"` - ShardId int32 `protobuf:"varint,2,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"` - Time *time.Time `protobuf:"bytes,3,opt,name=time,proto3,stdtime" json:"time,omitempty"` +func (x *SyncShardStatusRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SyncShardStatusRequest) Reset() { *m = SyncShardStatusRequest{} } func (*SyncShardStatusRequest) ProtoMessage() {} -func (*SyncShardStatusRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{46} -} -func (m *SyncShardStatusRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SyncShardStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SyncShardStatusRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *SyncShardStatusRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[46] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *SyncShardStatusRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SyncShardStatusRequest.Merge(m, src) -} -func (m *SyncShardStatusRequest) XXX_Size() int { - return m.Size() -} -func (m *SyncShardStatusRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SyncShardStatusRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_SyncShardStatusRequest proto.InternalMessageInfo +// Deprecated: Use SyncShardStatusRequest.ProtoReflect.Descriptor instead. +func (*SyncShardStatusRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{46} +} -func (m *SyncShardStatusRequest) GetSourceCluster() string { - if m != nil { - return m.SourceCluster +func (x *SyncShardStatusRequest) GetSourceCluster() string { + if x != nil { + return x.SourceCluster } return "" } -func (m *SyncShardStatusRequest) GetShardId() int32 { - if m != nil { - return m.ShardId +func (x *SyncShardStatusRequest) GetShardId() int32 { + if x != nil { + return x.ShardId } return 0 } -func (m *SyncShardStatusRequest) GetTime() *time.Time { - if m != nil { - return m.Time +func (x *SyncShardStatusRequest) GetTime() *timestamppb.Timestamp { + if x != nil { + return x.Time } return nil } type SyncShardStatusResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *SyncShardStatusResponse) Reset() { + *x = SyncShardStatusResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SyncShardStatusResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SyncShardStatusResponse) Reset() { *m = SyncShardStatusResponse{} } func (*SyncShardStatusResponse) ProtoMessage() {} -func (*SyncShardStatusResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{47} -} -func (m *SyncShardStatusResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SyncShardStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SyncShardStatusResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *SyncShardStatusResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[47] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *SyncShardStatusResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SyncShardStatusResponse.Merge(m, src) + +// Deprecated: Use SyncShardStatusResponse.ProtoReflect.Descriptor instead. +func (*SyncShardStatusResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{47} } -func (m *SyncShardStatusResponse) XXX_Size() int { - return m.Size() + +type SyncActivityRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DomainId string `protobuf:"bytes,1,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` + WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` + Version int64 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` + ScheduledId int64 `protobuf:"varint,4,opt,name=scheduled_id,json=scheduledId,proto3" json:"scheduled_id,omitempty"` + ScheduledTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=scheduled_time,json=scheduledTime,proto3" json:"scheduled_time,omitempty"` + StartedId int64 `protobuf:"varint,6,opt,name=started_id,json=startedId,proto3" json:"started_id,omitempty"` + StartedTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=started_time,json=startedTime,proto3" json:"started_time,omitempty"` + LastHeartbeatTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=last_heartbeat_time,json=lastHeartbeatTime,proto3" json:"last_heartbeat_time,omitempty"` + Details *v1.Payload `protobuf:"bytes,9,opt,name=details,proto3" json:"details,omitempty"` + Attempt int32 `protobuf:"varint,10,opt,name=attempt,proto3" json:"attempt,omitempty"` + LastFailure *v1.Failure `protobuf:"bytes,11,opt,name=last_failure,json=lastFailure,proto3" json:"last_failure,omitempty"` + LastWorkerIdentity string `protobuf:"bytes,12,opt,name=last_worker_identity,json=lastWorkerIdentity,proto3" json:"last_worker_identity,omitempty"` + VersionHistory *v11.VersionHistory `protobuf:"bytes,13,opt,name=version_history,json=versionHistory,proto3" json:"version_history,omitempty"` } -func (m *SyncShardStatusResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SyncShardStatusResponse.DiscardUnknown(m) + +func (x *SyncActivityRequest) Reset() { + *x = SyncActivityRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[48] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -var xxx_messageInfo_SyncShardStatusResponse proto.InternalMessageInfo +func (x *SyncActivityRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} -type SyncActivityRequest struct { - DomainId string `protobuf:"bytes,1,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` - WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` - Version int64 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` - ScheduledId int64 `protobuf:"varint,4,opt,name=scheduled_id,json=scheduledId,proto3" json:"scheduled_id,omitempty"` - ScheduledTime *time.Time `protobuf:"bytes,5,opt,name=scheduled_time,json=scheduledTime,proto3,stdtime" json:"scheduled_time,omitempty"` - StartedId int64 `protobuf:"varint,6,opt,name=started_id,json=startedId,proto3" json:"started_id,omitempty"` - StartedTime *time.Time `protobuf:"bytes,7,opt,name=started_time,json=startedTime,proto3,stdtime" json:"started_time,omitempty"` - LastHeartbeatTime *time.Time `protobuf:"bytes,8,opt,name=last_heartbeat_time,json=lastHeartbeatTime,proto3,stdtime" json:"last_heartbeat_time,omitempty"` - Details *v1.Payload `protobuf:"bytes,9,opt,name=details,proto3" json:"details,omitempty"` - Attempt int32 `protobuf:"varint,10,opt,name=attempt,proto3" json:"attempt,omitempty"` - LastFailure *v1.Failure `protobuf:"bytes,11,opt,name=last_failure,json=lastFailure,proto3" json:"last_failure,omitempty"` - LastWorkerIdentity string `protobuf:"bytes,12,opt,name=last_worker_identity,json=lastWorkerIdentity,proto3" json:"last_worker_identity,omitempty"` - VersionHistory *v11.VersionHistory `protobuf:"bytes,13,opt,name=version_history,json=versionHistory,proto3" json:"version_history,omitempty"` -} - -func (m *SyncActivityRequest) Reset() { *m = SyncActivityRequest{} } func (*SyncActivityRequest) ProtoMessage() {} -func (*SyncActivityRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{48} -} -func (m *SyncActivityRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SyncActivityRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SyncActivityRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *SyncActivityRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[48] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *SyncActivityRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SyncActivityRequest.Merge(m, src) -} -func (m *SyncActivityRequest) XXX_Size() int { - return m.Size() -} -func (m *SyncActivityRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SyncActivityRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_SyncActivityRequest proto.InternalMessageInfo +// Deprecated: Use SyncActivityRequest.ProtoReflect.Descriptor instead. +func (*SyncActivityRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{48} +} -func (m *SyncActivityRequest) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *SyncActivityRequest) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } -func (m *SyncActivityRequest) GetWorkflowExecution() *v1.WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *SyncActivityRequest) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *SyncActivityRequest) GetVersion() int64 { - if m != nil { - return m.Version +func (x *SyncActivityRequest) GetVersion() int64 { + if x != nil { + return x.Version } return 0 } -func (m *SyncActivityRequest) GetScheduledId() int64 { - if m != nil { - return m.ScheduledId +func (x *SyncActivityRequest) GetScheduledId() int64 { + if x != nil { + return x.ScheduledId } return 0 } -func (m *SyncActivityRequest) GetScheduledTime() *time.Time { - if m != nil { - return m.ScheduledTime +func (x *SyncActivityRequest) GetScheduledTime() *timestamppb.Timestamp { + if x != nil { + return x.ScheduledTime } return nil } -func (m *SyncActivityRequest) GetStartedId() int64 { - if m != nil { - return m.StartedId +func (x *SyncActivityRequest) GetStartedId() int64 { + if x != nil { + return x.StartedId } return 0 } -func (m *SyncActivityRequest) GetStartedTime() *time.Time { - if m != nil { - return m.StartedTime +func (x *SyncActivityRequest) GetStartedTime() *timestamppb.Timestamp { + if x != nil { + return x.StartedTime } return nil } -func (m *SyncActivityRequest) GetLastHeartbeatTime() *time.Time { - if m != nil { - return m.LastHeartbeatTime +func (x *SyncActivityRequest) GetLastHeartbeatTime() *timestamppb.Timestamp { + if x != nil { + return x.LastHeartbeatTime } return nil } -func (m *SyncActivityRequest) GetDetails() *v1.Payload { - if m != nil { - return m.Details +func (x *SyncActivityRequest) GetDetails() *v1.Payload { + if x != nil { + return x.Details } return nil } -func (m *SyncActivityRequest) GetAttempt() int32 { - if m != nil { - return m.Attempt +func (x *SyncActivityRequest) GetAttempt() int32 { + if x != nil { + return x.Attempt } return 0 } -func (m *SyncActivityRequest) GetLastFailure() *v1.Failure { - if m != nil { - return m.LastFailure +func (x *SyncActivityRequest) GetLastFailure() *v1.Failure { + if x != nil { + return x.LastFailure } return nil } -func (m *SyncActivityRequest) GetLastWorkerIdentity() string { - if m != nil { - return m.LastWorkerIdentity +func (x *SyncActivityRequest) GetLastWorkerIdentity() string { + if x != nil { + return x.LastWorkerIdentity } return "" } -func (m *SyncActivityRequest) GetVersionHistory() *v11.VersionHistory { - if m != nil { - return m.VersionHistory +func (x *SyncActivityRequest) GetVersionHistory() *v11.VersionHistory { + if x != nil { + return x.VersionHistory } return nil } type SyncActivityResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *SyncActivityResponse) Reset() { *m = SyncActivityResponse{} } -func (*SyncActivityResponse) ProtoMessage() {} -func (*SyncActivityResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{49} -} -func (m *SyncActivityResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SyncActivityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SyncActivityResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *SyncActivityResponse) Reset() { + *x = SyncActivityResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[49] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *SyncActivityResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SyncActivityResponse.Merge(m, src) -} -func (m *SyncActivityResponse) XXX_Size() int { - return m.Size() + +func (x *SyncActivityResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SyncActivityResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SyncActivityResponse.DiscardUnknown(m) + +func (*SyncActivityResponse) ProtoMessage() {} + +func (x *SyncActivityResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[49] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SyncActivityResponse proto.InternalMessageInfo +// Deprecated: Use SyncActivityResponse.ProtoReflect.Descriptor instead. +func (*SyncActivityResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{49} +} type DescribeMutableStateRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + DomainId string `protobuf:"bytes,1,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` } -func (m *DescribeMutableStateRequest) Reset() { *m = DescribeMutableStateRequest{} } -func (*DescribeMutableStateRequest) ProtoMessage() {} -func (*DescribeMutableStateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{50} -} -func (m *DescribeMutableStateRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DescribeMutableStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DescribeMutableStateRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *DescribeMutableStateRequest) Reset() { + *x = DescribeMutableStateRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[50] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *DescribeMutableStateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescribeMutableStateRequest.Merge(m, src) -} -func (m *DescribeMutableStateRequest) XXX_Size() int { - return m.Size() + +func (x *DescribeMutableStateRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DescribeMutableStateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DescribeMutableStateRequest.DiscardUnknown(m) + +func (*DescribeMutableStateRequest) ProtoMessage() {} + +func (x *DescribeMutableStateRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[50] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DescribeMutableStateRequest proto.InternalMessageInfo +// Deprecated: Use DescribeMutableStateRequest.ProtoReflect.Descriptor instead. +func (*DescribeMutableStateRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{50} +} -func (m *DescribeMutableStateRequest) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *DescribeMutableStateRequest) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } -func (m *DescribeMutableStateRequest) GetWorkflowExecution() *v1.WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *DescribeMutableStateRequest) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } type DescribeMutableStateResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + MutableStateInCache string `protobuf:"bytes,1,opt,name=mutable_state_in_cache,json=mutableStateInCache,proto3" json:"mutable_state_in_cache,omitempty"` MutableStateInDatabase string `protobuf:"bytes,2,opt,name=mutable_state_in_database,json=mutableStateInDatabase,proto3" json:"mutable_state_in_database,omitempty"` } -func (m *DescribeMutableStateResponse) Reset() { *m = DescribeMutableStateResponse{} } -func (*DescribeMutableStateResponse) ProtoMessage() {} -func (*DescribeMutableStateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{51} -} -func (m *DescribeMutableStateResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DescribeMutableStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DescribeMutableStateResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *DescribeMutableStateResponse) Reset() { + *x = DescribeMutableStateResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[51] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *DescribeMutableStateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescribeMutableStateResponse.Merge(m, src) -} -func (m *DescribeMutableStateResponse) XXX_Size() int { - return m.Size() + +func (x *DescribeMutableStateResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DescribeMutableStateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DescribeMutableStateResponse.DiscardUnknown(m) + +func (*DescribeMutableStateResponse) ProtoMessage() {} + +func (x *DescribeMutableStateResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[51] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DescribeMutableStateResponse proto.InternalMessageInfo +// Deprecated: Use DescribeMutableStateResponse.ProtoReflect.Descriptor instead. +func (*DescribeMutableStateResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{51} +} -func (m *DescribeMutableStateResponse) GetMutableStateInCache() string { - if m != nil { - return m.MutableStateInCache +func (x *DescribeMutableStateResponse) GetMutableStateInCache() string { + if x != nil { + return x.MutableStateInCache } return "" } -func (m *DescribeMutableStateResponse) GetMutableStateInDatabase() string { - if m != nil { - return m.MutableStateInDatabase +func (x *DescribeMutableStateResponse) GetMutableStateInDatabase() string { + if x != nil { + return x.MutableStateInDatabase } return "" } type DescribeHistoryHostRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + HostAddress string `protobuf:"bytes,1,opt,name=host_address,json=hostAddress,proto3" json:"host_address,omitempty"` ShardId int32 `protobuf:"varint,2,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"` WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` } -func (m *DescribeHistoryHostRequest) Reset() { *m = DescribeHistoryHostRequest{} } -func (*DescribeHistoryHostRequest) ProtoMessage() {} -func (*DescribeHistoryHostRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{52} -} -func (m *DescribeHistoryHostRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DescribeHistoryHostRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DescribeHistoryHostRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *DescribeHistoryHostRequest) Reset() { + *x = DescribeHistoryHostRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[52] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *DescribeHistoryHostRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescribeHistoryHostRequest.Merge(m, src) -} -func (m *DescribeHistoryHostRequest) XXX_Size() int { - return m.Size() + +func (x *DescribeHistoryHostRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DescribeHistoryHostRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DescribeHistoryHostRequest.DiscardUnknown(m) + +func (*DescribeHistoryHostRequest) ProtoMessage() {} + +func (x *DescribeHistoryHostRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[52] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DescribeHistoryHostRequest proto.InternalMessageInfo +// Deprecated: Use DescribeHistoryHostRequest.ProtoReflect.Descriptor instead. +func (*DescribeHistoryHostRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{52} +} -func (m *DescribeHistoryHostRequest) GetHostAddress() string { - if m != nil { - return m.HostAddress +func (x *DescribeHistoryHostRequest) GetHostAddress() string { + if x != nil { + return x.HostAddress } return "" } -func (m *DescribeHistoryHostRequest) GetShardId() int32 { - if m != nil { - return m.ShardId +func (x *DescribeHistoryHostRequest) GetShardId() int32 { + if x != nil { + return x.ShardId } return 0 } -func (m *DescribeHistoryHostRequest) GetWorkflowExecution() *v1.WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *DescribeHistoryHostRequest) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } type DescribeHistoryHostResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + NumberOfShards int32 `protobuf:"varint,1,opt,name=number_of_shards,json=numberOfShards,proto3" json:"number_of_shards,omitempty"` ShardIds []int32 `protobuf:"varint,2,rep,packed,name=shard_ids,json=shardIds,proto3" json:"shard_ids,omitempty"` DomainCache *v11.DomainCacheInfo `protobuf:"bytes,3,opt,name=domain_cache,json=domainCache,proto3" json:"domain_cache,omitempty"` @@ -3274,826 +3459,889 @@ type DescribeHistoryHostResponse struct { Address string `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"` } -func (m *DescribeHistoryHostResponse) Reset() { *m = DescribeHistoryHostResponse{} } -func (*DescribeHistoryHostResponse) ProtoMessage() {} -func (*DescribeHistoryHostResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{53} -} -func (m *DescribeHistoryHostResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DescribeHistoryHostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DescribeHistoryHostResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *DescribeHistoryHostResponse) Reset() { + *x = DescribeHistoryHostResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[53] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *DescribeHistoryHostResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescribeHistoryHostResponse.Merge(m, src) -} -func (m *DescribeHistoryHostResponse) XXX_Size() int { - return m.Size() + +func (x *DescribeHistoryHostResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DescribeHistoryHostResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DescribeHistoryHostResponse.DiscardUnknown(m) + +func (*DescribeHistoryHostResponse) ProtoMessage() {} + +func (x *DescribeHistoryHostResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[53] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DescribeHistoryHostResponse proto.InternalMessageInfo +// Deprecated: Use DescribeHistoryHostResponse.ProtoReflect.Descriptor instead. +func (*DescribeHistoryHostResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{53} +} -func (m *DescribeHistoryHostResponse) GetNumberOfShards() int32 { - if m != nil { - return m.NumberOfShards +func (x *DescribeHistoryHostResponse) GetNumberOfShards() int32 { + if x != nil { + return x.NumberOfShards } return 0 } -func (m *DescribeHistoryHostResponse) GetShardIds() []int32 { - if m != nil { - return m.ShardIds +func (x *DescribeHistoryHostResponse) GetShardIds() []int32 { + if x != nil { + return x.ShardIds } return nil } -func (m *DescribeHistoryHostResponse) GetDomainCache() *v11.DomainCacheInfo { - if m != nil { - return m.DomainCache +func (x *DescribeHistoryHostResponse) GetDomainCache() *v11.DomainCacheInfo { + if x != nil { + return x.DomainCache } return nil } -func (m *DescribeHistoryHostResponse) GetShardControllerStatus() string { - if m != nil { - return m.ShardControllerStatus +func (x *DescribeHistoryHostResponse) GetShardControllerStatus() string { + if x != nil { + return x.ShardControllerStatus } return "" } -func (m *DescribeHistoryHostResponse) GetAddress() string { - if m != nil { - return m.Address +func (x *DescribeHistoryHostResponse) GetAddress() string { + if x != nil { + return x.Address } return "" } type CloseShardRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + ShardId int32 `protobuf:"varint,1,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"` } -func (m *CloseShardRequest) Reset() { *m = CloseShardRequest{} } -func (*CloseShardRequest) ProtoMessage() {} -func (*CloseShardRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{54} -} -func (m *CloseShardRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CloseShardRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CloseShardRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *CloseShardRequest) Reset() { + *x = CloseShardRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[54] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *CloseShardRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CloseShardRequest.Merge(m, src) -} -func (m *CloseShardRequest) XXX_Size() int { - return m.Size() + +func (x *CloseShardRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CloseShardRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CloseShardRequest.DiscardUnknown(m) + +func (*CloseShardRequest) ProtoMessage() {} + +func (x *CloseShardRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[54] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CloseShardRequest proto.InternalMessageInfo +// Deprecated: Use CloseShardRequest.ProtoReflect.Descriptor instead. +func (*CloseShardRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{54} +} -func (m *CloseShardRequest) GetShardId() int32 { - if m != nil { - return m.ShardId +func (x *CloseShardRequest) GetShardId() int32 { + if x != nil { + return x.ShardId } return 0 } type CloseShardResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *CloseShardResponse) Reset() { + *x = CloseShardResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[55] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CloseShardResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CloseShardResponse) Reset() { *m = CloseShardResponse{} } func (*CloseShardResponse) ProtoMessage() {} -func (*CloseShardResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{55} -} -func (m *CloseShardResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CloseShardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CloseShardResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *CloseShardResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[55] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *CloseShardResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CloseShardResponse.Merge(m, src) -} -func (m *CloseShardResponse) XXX_Size() int { - return m.Size() + +// Deprecated: Use CloseShardResponse.ProtoReflect.Descriptor instead. +func (*CloseShardResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{55} } -func (m *CloseShardResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CloseShardResponse.DiscardUnknown(m) + +type RemoveTaskRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ShardId int32 `protobuf:"varint,1,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"` + TaskType v11.TaskType `protobuf:"varint,2,opt,name=task_type,json=taskType,proto3,enum=uber.cadence.shared.v1.TaskType" json:"task_type,omitempty"` + TaskId int64 `protobuf:"varint,3,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` + VisibilityTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=visibility_time,json=visibilityTime,proto3" json:"visibility_time,omitempty"` } -var xxx_messageInfo_CloseShardResponse proto.InternalMessageInfo +func (x *RemoveTaskRequest) Reset() { + *x = RemoveTaskRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[56] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} -type RemoveTaskRequest struct { - ShardId int32 `protobuf:"varint,1,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"` - TaskType v11.TaskType `protobuf:"varint,2,opt,name=task_type,json=taskType,proto3,enum=uber.cadence.shared.v1.TaskType" json:"task_type,omitempty"` - TaskId int64 `protobuf:"varint,3,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` - VisibilityTime *time.Time `protobuf:"bytes,4,opt,name=visibility_time,json=visibilityTime,proto3,stdtime" json:"visibility_time,omitempty"` +func (x *RemoveTaskRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RemoveTaskRequest) Reset() { *m = RemoveTaskRequest{} } func (*RemoveTaskRequest) ProtoMessage() {} -func (*RemoveTaskRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{56} -} -func (m *RemoveTaskRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RemoveTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RemoveTaskRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *RemoveTaskRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[56] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *RemoveTaskRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemoveTaskRequest.Merge(m, src) -} -func (m *RemoveTaskRequest) XXX_Size() int { - return m.Size() -} -func (m *RemoveTaskRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RemoveTaskRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_RemoveTaskRequest proto.InternalMessageInfo +// Deprecated: Use RemoveTaskRequest.ProtoReflect.Descriptor instead. +func (*RemoveTaskRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{56} +} -func (m *RemoveTaskRequest) GetShardId() int32 { - if m != nil { - return m.ShardId +func (x *RemoveTaskRequest) GetShardId() int32 { + if x != nil { + return x.ShardId } return 0 } -func (m *RemoveTaskRequest) GetTaskType() v11.TaskType { - if m != nil { - return m.TaskType +func (x *RemoveTaskRequest) GetTaskType() v11.TaskType { + if x != nil { + return x.TaskType } - return v11.TASK_TYPE_INVALID + return v11.TaskType_TASK_TYPE_INVALID } -func (m *RemoveTaskRequest) GetTaskId() int64 { - if m != nil { - return m.TaskId +func (x *RemoveTaskRequest) GetTaskId() int64 { + if x != nil { + return x.TaskId } return 0 } -func (m *RemoveTaskRequest) GetVisibilityTime() *time.Time { - if m != nil { - return m.VisibilityTime +func (x *RemoveTaskRequest) GetVisibilityTime() *timestamppb.Timestamp { + if x != nil { + return x.VisibilityTime } return nil } type RemoveTaskResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *RemoveTaskResponse) Reset() { *m = RemoveTaskResponse{} } -func (*RemoveTaskResponse) ProtoMessage() {} -func (*RemoveTaskResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{57} -} -func (m *RemoveTaskResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RemoveTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RemoveTaskResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RemoveTaskResponse) Reset() { + *x = RemoveTaskResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[57] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RemoveTaskResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemoveTaskResponse.Merge(m, src) -} -func (m *RemoveTaskResponse) XXX_Size() int { - return m.Size() + +func (x *RemoveTaskResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RemoveTaskResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RemoveTaskResponse.DiscardUnknown(m) + +func (*RemoveTaskResponse) ProtoMessage() {} + +func (x *RemoveTaskResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[57] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RemoveTaskResponse proto.InternalMessageInfo +// Deprecated: Use RemoveTaskResponse.ProtoReflect.Descriptor instead. +func (*RemoveTaskResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{57} +} type ResetQueueRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + ShardId int32 `protobuf:"varint,1,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"` ClusterName string `protobuf:"bytes,2,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"` TaskType v11.TaskType `protobuf:"varint,3,opt,name=task_type,json=taskType,proto3,enum=uber.cadence.shared.v1.TaskType" json:"task_type,omitempty"` } -func (m *ResetQueueRequest) Reset() { *m = ResetQueueRequest{} } -func (*ResetQueueRequest) ProtoMessage() {} -func (*ResetQueueRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{58} -} -func (m *ResetQueueRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResetQueueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ResetQueueRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ResetQueueRequest) Reset() { + *x = ResetQueueRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[58] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ResetQueueRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResetQueueRequest.Merge(m, src) -} -func (m *ResetQueueRequest) XXX_Size() int { - return m.Size() + +func (x *ResetQueueRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ResetQueueRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ResetQueueRequest.DiscardUnknown(m) + +func (*ResetQueueRequest) ProtoMessage() {} + +func (x *ResetQueueRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[58] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ResetQueueRequest proto.InternalMessageInfo +// Deprecated: Use ResetQueueRequest.ProtoReflect.Descriptor instead. +func (*ResetQueueRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{58} +} -func (m *ResetQueueRequest) GetShardId() int32 { - if m != nil { - return m.ShardId +func (x *ResetQueueRequest) GetShardId() int32 { + if x != nil { + return x.ShardId } return 0 } -func (m *ResetQueueRequest) GetClusterName() string { - if m != nil { - return m.ClusterName +func (x *ResetQueueRequest) GetClusterName() string { + if x != nil { + return x.ClusterName } return "" } -func (m *ResetQueueRequest) GetTaskType() v11.TaskType { - if m != nil { - return m.TaskType +func (x *ResetQueueRequest) GetTaskType() v11.TaskType { + if x != nil { + return x.TaskType } - return v11.TASK_TYPE_INVALID + return v11.TaskType_TASK_TYPE_INVALID } type ResetQueueResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ResetQueueResponse) Reset() { *m = ResetQueueResponse{} } -func (*ResetQueueResponse) ProtoMessage() {} -func (*ResetQueueResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{59} -} -func (m *ResetQueueResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResetQueueResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ResetQueueResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ResetQueueResponse) Reset() { + *x = ResetQueueResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[59] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ResetQueueResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResetQueueResponse.Merge(m, src) -} -func (m *ResetQueueResponse) XXX_Size() int { - return m.Size() + +func (x *ResetQueueResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ResetQueueResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ResetQueueResponse.DiscardUnknown(m) + +func (*ResetQueueResponse) ProtoMessage() {} + +func (x *ResetQueueResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[59] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ResetQueueResponse proto.InternalMessageInfo +// Deprecated: Use ResetQueueResponse.ProtoReflect.Descriptor instead. +func (*ResetQueueResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{59} +} type DescribeQueueRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + ShardId int32 `protobuf:"varint,1,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"` ClusterName string `protobuf:"bytes,2,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"` TaskType v11.TaskType `protobuf:"varint,3,opt,name=task_type,json=taskType,proto3,enum=uber.cadence.shared.v1.TaskType" json:"task_type,omitempty"` } -func (m *DescribeQueueRequest) Reset() { *m = DescribeQueueRequest{} } -func (*DescribeQueueRequest) ProtoMessage() {} -func (*DescribeQueueRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{60} -} -func (m *DescribeQueueRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DescribeQueueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DescribeQueueRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *DescribeQueueRequest) Reset() { + *x = DescribeQueueRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[60] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *DescribeQueueRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescribeQueueRequest.Merge(m, src) -} -func (m *DescribeQueueRequest) XXX_Size() int { - return m.Size() + +func (x *DescribeQueueRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DescribeQueueRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DescribeQueueRequest.DiscardUnknown(m) + +func (*DescribeQueueRequest) ProtoMessage() {} + +func (x *DescribeQueueRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[60] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DescribeQueueRequest proto.InternalMessageInfo +// Deprecated: Use DescribeQueueRequest.ProtoReflect.Descriptor instead. +func (*DescribeQueueRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{60} +} -func (m *DescribeQueueRequest) GetShardId() int32 { - if m != nil { - return m.ShardId +func (x *DescribeQueueRequest) GetShardId() int32 { + if x != nil { + return x.ShardId } return 0 } -func (m *DescribeQueueRequest) GetClusterName() string { - if m != nil { - return m.ClusterName +func (x *DescribeQueueRequest) GetClusterName() string { + if x != nil { + return x.ClusterName } return "" } -func (m *DescribeQueueRequest) GetTaskType() v11.TaskType { - if m != nil { - return m.TaskType +func (x *DescribeQueueRequest) GetTaskType() v11.TaskType { + if x != nil { + return x.TaskType } - return v11.TASK_TYPE_INVALID + return v11.TaskType_TASK_TYPE_INVALID } type DescribeQueueResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + ProcessingQueueStates []string `protobuf:"bytes,1,rep,name=processing_queue_states,json=processingQueueStates,proto3" json:"processing_queue_states,omitempty"` } -func (m *DescribeQueueResponse) Reset() { *m = DescribeQueueResponse{} } -func (*DescribeQueueResponse) ProtoMessage() {} -func (*DescribeQueueResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{61} -} -func (m *DescribeQueueResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DescribeQueueResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DescribeQueueResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *DescribeQueueResponse) Reset() { + *x = DescribeQueueResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[61] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *DescribeQueueResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescribeQueueResponse.Merge(m, src) -} -func (m *DescribeQueueResponse) XXX_Size() int { - return m.Size() + +func (x *DescribeQueueResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DescribeQueueResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DescribeQueueResponse.DiscardUnknown(m) + +func (*DescribeQueueResponse) ProtoMessage() {} + +func (x *DescribeQueueResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[61] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DescribeQueueResponse proto.InternalMessageInfo +// Deprecated: Use DescribeQueueResponse.ProtoReflect.Descriptor instead. +func (*DescribeQueueResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{61} +} -func (m *DescribeQueueResponse) GetProcessingQueueStates() []string { - if m != nil { - return m.ProcessingQueueStates +func (x *DescribeQueueResponse) GetProcessingQueueStates() []string { + if x != nil { + return x.ProcessingQueueStates } return nil } type GetReplicationMessagesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Tokens []*v11.ReplicationToken `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"` ClusterName string `protobuf:"bytes,2,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"` } -func (m *GetReplicationMessagesRequest) Reset() { *m = GetReplicationMessagesRequest{} } -func (*GetReplicationMessagesRequest) ProtoMessage() {} -func (*GetReplicationMessagesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{62} -} -func (m *GetReplicationMessagesRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetReplicationMessagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetReplicationMessagesRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *GetReplicationMessagesRequest) Reset() { + *x = GetReplicationMessagesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[62] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *GetReplicationMessagesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetReplicationMessagesRequest.Merge(m, src) -} -func (m *GetReplicationMessagesRequest) XXX_Size() int { - return m.Size() + +func (x *GetReplicationMessagesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetReplicationMessagesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetReplicationMessagesRequest.DiscardUnknown(m) + +func (*GetReplicationMessagesRequest) ProtoMessage() {} + +func (x *GetReplicationMessagesRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[62] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetReplicationMessagesRequest proto.InternalMessageInfo +// Deprecated: Use GetReplicationMessagesRequest.ProtoReflect.Descriptor instead. +func (*GetReplicationMessagesRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{62} +} -func (m *GetReplicationMessagesRequest) GetTokens() []*v11.ReplicationToken { - if m != nil { - return m.Tokens +func (x *GetReplicationMessagesRequest) GetTokens() []*v11.ReplicationToken { + if x != nil { + return x.Tokens } return nil } -func (m *GetReplicationMessagesRequest) GetClusterName() string { - if m != nil { - return m.ClusterName +func (x *GetReplicationMessagesRequest) GetClusterName() string { + if x != nil { + return x.ClusterName } return "" } type GetReplicationMessagesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + ShardMessages map[int32]*v11.ReplicationMessages `protobuf:"bytes,1,rep,name=shard_messages,json=shardMessages,proto3" json:"shard_messages,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func (m *GetReplicationMessagesResponse) Reset() { *m = GetReplicationMessagesResponse{} } -func (*GetReplicationMessagesResponse) ProtoMessage() {} -func (*GetReplicationMessagesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{63} -} -func (m *GetReplicationMessagesResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetReplicationMessagesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetReplicationMessagesResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *GetReplicationMessagesResponse) Reset() { + *x = GetReplicationMessagesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[63] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *GetReplicationMessagesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetReplicationMessagesResponse.Merge(m, src) -} -func (m *GetReplicationMessagesResponse) XXX_Size() int { - return m.Size() + +func (x *GetReplicationMessagesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetReplicationMessagesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetReplicationMessagesResponse.DiscardUnknown(m) + +func (*GetReplicationMessagesResponse) ProtoMessage() {} + +func (x *GetReplicationMessagesResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[63] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetReplicationMessagesResponse proto.InternalMessageInfo +// Deprecated: Use GetReplicationMessagesResponse.ProtoReflect.Descriptor instead. +func (*GetReplicationMessagesResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{63} +} -func (m *GetReplicationMessagesResponse) GetShardMessages() map[int32]*v11.ReplicationMessages { - if m != nil { - return m.ShardMessages +func (x *GetReplicationMessagesResponse) GetShardMessages() map[int32]*v11.ReplicationMessages { + if x != nil { + return x.ShardMessages } return nil } type GetDLQReplicationMessagesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + TaskInfos []*v11.ReplicationTaskInfo `protobuf:"bytes,1,rep,name=task_infos,json=taskInfos,proto3" json:"task_infos,omitempty"` } -func (m *GetDLQReplicationMessagesRequest) Reset() { *m = GetDLQReplicationMessagesRequest{} } -func (*GetDLQReplicationMessagesRequest) ProtoMessage() {} -func (*GetDLQReplicationMessagesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{64} -} -func (m *GetDLQReplicationMessagesRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetDLQReplicationMessagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetDLQReplicationMessagesRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *GetDLQReplicationMessagesRequest) Reset() { + *x = GetDLQReplicationMessagesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[64] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *GetDLQReplicationMessagesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDLQReplicationMessagesRequest.Merge(m, src) -} -func (m *GetDLQReplicationMessagesRequest) XXX_Size() int { - return m.Size() + +func (x *GetDLQReplicationMessagesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDLQReplicationMessagesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetDLQReplicationMessagesRequest.DiscardUnknown(m) + +func (*GetDLQReplicationMessagesRequest) ProtoMessage() {} + +func (x *GetDLQReplicationMessagesRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[64] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetDLQReplicationMessagesRequest proto.InternalMessageInfo +// Deprecated: Use GetDLQReplicationMessagesRequest.ProtoReflect.Descriptor instead. +func (*GetDLQReplicationMessagesRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{64} +} -func (m *GetDLQReplicationMessagesRequest) GetTaskInfos() []*v11.ReplicationTaskInfo { - if m != nil { - return m.TaskInfos +func (x *GetDLQReplicationMessagesRequest) GetTaskInfos() []*v11.ReplicationTaskInfo { + if x != nil { + return x.TaskInfos } return nil } type GetDLQReplicationMessagesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + ReplicationTasks []*v11.ReplicationTask `protobuf:"bytes,1,rep,name=replication_tasks,json=replicationTasks,proto3" json:"replication_tasks,omitempty"` } -func (m *GetDLQReplicationMessagesResponse) Reset() { *m = GetDLQReplicationMessagesResponse{} } -func (*GetDLQReplicationMessagesResponse) ProtoMessage() {} -func (*GetDLQReplicationMessagesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{65} -} -func (m *GetDLQReplicationMessagesResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetDLQReplicationMessagesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetDLQReplicationMessagesResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *GetDLQReplicationMessagesResponse) Reset() { + *x = GetDLQReplicationMessagesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[65] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *GetDLQReplicationMessagesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDLQReplicationMessagesResponse.Merge(m, src) -} -func (m *GetDLQReplicationMessagesResponse) XXX_Size() int { - return m.Size() + +func (x *GetDLQReplicationMessagesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetDLQReplicationMessagesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetDLQReplicationMessagesResponse.DiscardUnknown(m) + +func (*GetDLQReplicationMessagesResponse) ProtoMessage() {} + +func (x *GetDLQReplicationMessagesResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[65] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetDLQReplicationMessagesResponse proto.InternalMessageInfo +// Deprecated: Use GetDLQReplicationMessagesResponse.ProtoReflect.Descriptor instead. +func (*GetDLQReplicationMessagesResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{65} +} -func (m *GetDLQReplicationMessagesResponse) GetReplicationTasks() []*v11.ReplicationTask { - if m != nil { - return m.ReplicationTasks +func (x *GetDLQReplicationMessagesResponse) GetReplicationTasks() []*v11.ReplicationTask { + if x != nil { + return x.ReplicationTasks } return nil } type ReapplyEventsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` DomainId string `protobuf:"bytes,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` Events *v1.DataBlob `protobuf:"bytes,4,opt,name=events,proto3" json:"events,omitempty"` } -func (m *ReapplyEventsRequest) Reset() { *m = ReapplyEventsRequest{} } -func (*ReapplyEventsRequest) ProtoMessage() {} -func (*ReapplyEventsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{66} -} -func (m *ReapplyEventsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReapplyEventsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReapplyEventsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ReapplyEventsRequest) Reset() { + *x = ReapplyEventsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[66] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ReapplyEventsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReapplyEventsRequest.Merge(m, src) -} -func (m *ReapplyEventsRequest) XXX_Size() int { - return m.Size() + +func (x *ReapplyEventsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ReapplyEventsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ReapplyEventsRequest.DiscardUnknown(m) + +func (*ReapplyEventsRequest) ProtoMessage() {} + +func (x *ReapplyEventsRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[66] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ReapplyEventsRequest proto.InternalMessageInfo +// Deprecated: Use ReapplyEventsRequest.ProtoReflect.Descriptor instead. +func (*ReapplyEventsRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{66} +} -func (m *ReapplyEventsRequest) GetDomain() string { - if m != nil { - return m.Domain +func (x *ReapplyEventsRequest) GetDomain() string { + if x != nil { + return x.Domain } return "" } -func (m *ReapplyEventsRequest) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *ReapplyEventsRequest) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } -func (m *ReapplyEventsRequest) GetWorkflowExecution() *v1.WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *ReapplyEventsRequest) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *ReapplyEventsRequest) GetEvents() *v1.DataBlob { - if m != nil { - return m.Events +func (x *ReapplyEventsRequest) GetEvents() *v1.DataBlob { + if x != nil { + return x.Events } return nil } type ReapplyEventsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ReapplyEventsResponse) Reset() { *m = ReapplyEventsResponse{} } -func (*ReapplyEventsResponse) ProtoMessage() {} -func (*ReapplyEventsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{67} -} -func (m *ReapplyEventsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReapplyEventsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReapplyEventsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ReapplyEventsResponse) Reset() { + *x = ReapplyEventsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[67] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ReapplyEventsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReapplyEventsResponse.Merge(m, src) -} -func (m *ReapplyEventsResponse) XXX_Size() int { - return m.Size() + +func (x *ReapplyEventsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ReapplyEventsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ReapplyEventsResponse.DiscardUnknown(m) + +func (*ReapplyEventsResponse) ProtoMessage() {} + +func (x *ReapplyEventsResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[67] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ReapplyEventsResponse proto.InternalMessageInfo +// Deprecated: Use ReapplyEventsResponse.ProtoReflect.Descriptor instead. +func (*ReapplyEventsResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{67} +} type RefreshWorkflowTasksRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` DomainId string `protobuf:"bytes,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` } -func (m *RefreshWorkflowTasksRequest) Reset() { *m = RefreshWorkflowTasksRequest{} } -func (*RefreshWorkflowTasksRequest) ProtoMessage() {} -func (*RefreshWorkflowTasksRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{68} -} -func (m *RefreshWorkflowTasksRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RefreshWorkflowTasksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RefreshWorkflowTasksRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RefreshWorkflowTasksRequest) Reset() { + *x = RefreshWorkflowTasksRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[68] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RefreshWorkflowTasksRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RefreshWorkflowTasksRequest.Merge(m, src) -} -func (m *RefreshWorkflowTasksRequest) XXX_Size() int { - return m.Size() + +func (x *RefreshWorkflowTasksRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RefreshWorkflowTasksRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RefreshWorkflowTasksRequest.DiscardUnknown(m) + +func (*RefreshWorkflowTasksRequest) ProtoMessage() {} + +func (x *RefreshWorkflowTasksRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[68] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RefreshWorkflowTasksRequest proto.InternalMessageInfo +// Deprecated: Use RefreshWorkflowTasksRequest.ProtoReflect.Descriptor instead. +func (*RefreshWorkflowTasksRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{68} +} -func (m *RefreshWorkflowTasksRequest) GetDomain() string { - if m != nil { - return m.Domain +func (x *RefreshWorkflowTasksRequest) GetDomain() string { + if x != nil { + return x.Domain } return "" } -func (m *RefreshWorkflowTasksRequest) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *RefreshWorkflowTasksRequest) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } -func (m *RefreshWorkflowTasksRequest) GetWorkflowExecution() *v1.WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *RefreshWorkflowTasksRequest) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } type RefreshWorkflowTasksResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *RefreshWorkflowTasksResponse) Reset() { *m = RefreshWorkflowTasksResponse{} } -func (*RefreshWorkflowTasksResponse) ProtoMessage() {} -func (*RefreshWorkflowTasksResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{69} -} -func (m *RefreshWorkflowTasksResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RefreshWorkflowTasksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RefreshWorkflowTasksResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RefreshWorkflowTasksResponse) Reset() { + *x = RefreshWorkflowTasksResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[69] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RefreshWorkflowTasksResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RefreshWorkflowTasksResponse.Merge(m, src) -} -func (m *RefreshWorkflowTasksResponse) XXX_Size() int { - return m.Size() + +func (x *RefreshWorkflowTasksResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RefreshWorkflowTasksResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RefreshWorkflowTasksResponse.DiscardUnknown(m) + +func (*RefreshWorkflowTasksResponse) ProtoMessage() {} + +func (x *RefreshWorkflowTasksResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[69] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RefreshWorkflowTasksResponse proto.InternalMessageInfo +// Deprecated: Use RefreshWorkflowTasksResponse.ProtoReflect.Descriptor instead. +func (*RefreshWorkflowTasksResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{69} +} type ReadDLQMessagesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Type v11.DLQType `protobuf:"varint,1,opt,name=type,proto3,enum=uber.cadence.shared.v1.DLQType" json:"type,omitempty"` ShardId int32 `protobuf:"varint,2,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"` SourceCluster string `protobuf:"bytes,3,opt,name=source_cluster,json=sourceCluster,proto3" json:"source_cluster,omitempty"` @@ -4102,242 +4350,257 @@ type ReadDLQMessagesRequest struct { NextPageToken []byte `protobuf:"bytes,6,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } -func (m *ReadDLQMessagesRequest) Reset() { *m = ReadDLQMessagesRequest{} } -func (*ReadDLQMessagesRequest) ProtoMessage() {} -func (*ReadDLQMessagesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{70} -} -func (m *ReadDLQMessagesRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReadDLQMessagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReadDLQMessagesRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ReadDLQMessagesRequest) Reset() { + *x = ReadDLQMessagesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[70] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ReadDLQMessagesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReadDLQMessagesRequest.Merge(m, src) -} -func (m *ReadDLQMessagesRequest) XXX_Size() int { - return m.Size() + +func (x *ReadDLQMessagesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ReadDLQMessagesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ReadDLQMessagesRequest.DiscardUnknown(m) + +func (*ReadDLQMessagesRequest) ProtoMessage() {} + +func (x *ReadDLQMessagesRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[70] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ReadDLQMessagesRequest proto.InternalMessageInfo +// Deprecated: Use ReadDLQMessagesRequest.ProtoReflect.Descriptor instead. +func (*ReadDLQMessagesRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{70} +} -func (m *ReadDLQMessagesRequest) GetType() v11.DLQType { - if m != nil { - return m.Type +func (x *ReadDLQMessagesRequest) GetType() v11.DLQType { + if x != nil { + return x.Type } - return v11.DLQ_TYPE_INVALID + return v11.DLQType_DLQ_TYPE_INVALID } -func (m *ReadDLQMessagesRequest) GetShardId() int32 { - if m != nil { - return m.ShardId +func (x *ReadDLQMessagesRequest) GetShardId() int32 { + if x != nil { + return x.ShardId } return 0 } -func (m *ReadDLQMessagesRequest) GetSourceCluster() string { - if m != nil { - return m.SourceCluster +func (x *ReadDLQMessagesRequest) GetSourceCluster() string { + if x != nil { + return x.SourceCluster } return "" } -func (m *ReadDLQMessagesRequest) GetInclusiveEndMessageId() int64 { - if m != nil { - return m.InclusiveEndMessageId +func (x *ReadDLQMessagesRequest) GetInclusiveEndMessageId() int64 { + if x != nil { + return x.InclusiveEndMessageId } return 0 } -func (m *ReadDLQMessagesRequest) GetPageSize() int32 { - if m != nil { - return m.PageSize +func (x *ReadDLQMessagesRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize } return 0 } -func (m *ReadDLQMessagesRequest) GetNextPageToken() []byte { - if m != nil { - return m.NextPageToken +func (x *ReadDLQMessagesRequest) GetNextPageToken() []byte { + if x != nil { + return x.NextPageToken } return nil } type ReadDLQMessagesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Type v11.DLQType `protobuf:"varint,1,opt,name=type,proto3,enum=uber.cadence.shared.v1.DLQType" json:"type,omitempty"` ReplicationTasks []*v11.ReplicationTask `protobuf:"bytes,2,rep,name=replication_tasks,json=replicationTasks,proto3" json:"replication_tasks,omitempty"` NextPageToken []byte `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } -func (m *ReadDLQMessagesResponse) Reset() { *m = ReadDLQMessagesResponse{} } -func (*ReadDLQMessagesResponse) ProtoMessage() {} -func (*ReadDLQMessagesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{71} -} -func (m *ReadDLQMessagesResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReadDLQMessagesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReadDLQMessagesResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ReadDLQMessagesResponse) Reset() { + *x = ReadDLQMessagesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[71] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ReadDLQMessagesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReadDLQMessagesResponse.Merge(m, src) -} -func (m *ReadDLQMessagesResponse) XXX_Size() int { - return m.Size() + +func (x *ReadDLQMessagesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ReadDLQMessagesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ReadDLQMessagesResponse.DiscardUnknown(m) + +func (*ReadDLQMessagesResponse) ProtoMessage() {} + +func (x *ReadDLQMessagesResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[71] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ReadDLQMessagesResponse proto.InternalMessageInfo +// Deprecated: Use ReadDLQMessagesResponse.ProtoReflect.Descriptor instead. +func (*ReadDLQMessagesResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{71} +} -func (m *ReadDLQMessagesResponse) GetType() v11.DLQType { - if m != nil { - return m.Type +func (x *ReadDLQMessagesResponse) GetType() v11.DLQType { + if x != nil { + return x.Type } - return v11.DLQ_TYPE_INVALID + return v11.DLQType_DLQ_TYPE_INVALID } -func (m *ReadDLQMessagesResponse) GetReplicationTasks() []*v11.ReplicationTask { - if m != nil { - return m.ReplicationTasks +func (x *ReadDLQMessagesResponse) GetReplicationTasks() []*v11.ReplicationTask { + if x != nil { + return x.ReplicationTasks } return nil } -func (m *ReadDLQMessagesResponse) GetNextPageToken() []byte { - if m != nil { - return m.NextPageToken +func (x *ReadDLQMessagesResponse) GetNextPageToken() []byte { + if x != nil { + return x.NextPageToken } return nil } type PurgeDLQMessagesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Type v11.DLQType `protobuf:"varint,1,opt,name=type,proto3,enum=uber.cadence.shared.v1.DLQType" json:"type,omitempty"` ShardId int32 `protobuf:"varint,2,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"` SourceCluster string `protobuf:"bytes,3,opt,name=source_cluster,json=sourceCluster,proto3" json:"source_cluster,omitempty"` InclusiveEndMessageId int64 `protobuf:"varint,4,opt,name=inclusive_end_message_id,json=inclusiveEndMessageId,proto3" json:"inclusive_end_message_id,omitempty"` } -func (m *PurgeDLQMessagesRequest) Reset() { *m = PurgeDLQMessagesRequest{} } -func (*PurgeDLQMessagesRequest) ProtoMessage() {} -func (*PurgeDLQMessagesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{72} -} -func (m *PurgeDLQMessagesRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PurgeDLQMessagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PurgeDLQMessagesRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *PurgeDLQMessagesRequest) Reset() { + *x = PurgeDLQMessagesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[72] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *PurgeDLQMessagesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PurgeDLQMessagesRequest.Merge(m, src) -} -func (m *PurgeDLQMessagesRequest) XXX_Size() int { - return m.Size() + +func (x *PurgeDLQMessagesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PurgeDLQMessagesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PurgeDLQMessagesRequest.DiscardUnknown(m) + +func (*PurgeDLQMessagesRequest) ProtoMessage() {} + +func (x *PurgeDLQMessagesRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[72] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PurgeDLQMessagesRequest proto.InternalMessageInfo +// Deprecated: Use PurgeDLQMessagesRequest.ProtoReflect.Descriptor instead. +func (*PurgeDLQMessagesRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{72} +} -func (m *PurgeDLQMessagesRequest) GetType() v11.DLQType { - if m != nil { - return m.Type +func (x *PurgeDLQMessagesRequest) GetType() v11.DLQType { + if x != nil { + return x.Type } - return v11.DLQ_TYPE_INVALID + return v11.DLQType_DLQ_TYPE_INVALID } -func (m *PurgeDLQMessagesRequest) GetShardId() int32 { - if m != nil { - return m.ShardId +func (x *PurgeDLQMessagesRequest) GetShardId() int32 { + if x != nil { + return x.ShardId } return 0 } -func (m *PurgeDLQMessagesRequest) GetSourceCluster() string { - if m != nil { - return m.SourceCluster +func (x *PurgeDLQMessagesRequest) GetSourceCluster() string { + if x != nil { + return x.SourceCluster } return "" } -func (m *PurgeDLQMessagesRequest) GetInclusiveEndMessageId() int64 { - if m != nil { - return m.InclusiveEndMessageId +func (x *PurgeDLQMessagesRequest) GetInclusiveEndMessageId() int64 { + if x != nil { + return x.InclusiveEndMessageId } return 0 } type PurgeDLQMessagesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *PurgeDLQMessagesResponse) Reset() { *m = PurgeDLQMessagesResponse{} } -func (*PurgeDLQMessagesResponse) ProtoMessage() {} -func (*PurgeDLQMessagesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{73} -} -func (m *PurgeDLQMessagesResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PurgeDLQMessagesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PurgeDLQMessagesResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *PurgeDLQMessagesResponse) Reset() { + *x = PurgeDLQMessagesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[73] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *PurgeDLQMessagesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PurgeDLQMessagesResponse.Merge(m, src) -} -func (m *PurgeDLQMessagesResponse) XXX_Size() int { - return m.Size() + +func (x *PurgeDLQMessagesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PurgeDLQMessagesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PurgeDLQMessagesResponse.DiscardUnknown(m) + +func (*PurgeDLQMessagesResponse) ProtoMessage() {} + +func (x *PurgeDLQMessagesResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[73] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PurgeDLQMessagesResponse proto.InternalMessageInfo +// Deprecated: Use PurgeDLQMessagesResponse.ProtoReflect.Descriptor instead. +func (*PurgeDLQMessagesResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{73} +} type MergeDLQMessagesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Type v11.DLQType `protobuf:"varint,1,opt,name=type,proto3,enum=uber.cadence.shared.v1.DLQType" json:"type,omitempty"` ShardId int32 `protobuf:"varint,2,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"` SourceCluster string `protobuf:"bytes,3,opt,name=source_cluster,json=sourceCluster,proto3" json:"source_cluster,omitempty"` @@ -4346,23063 +4609,2850 @@ type MergeDLQMessagesRequest struct { NextPageToken []byte `protobuf:"bytes,6,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } -func (m *MergeDLQMessagesRequest) Reset() { *m = MergeDLQMessagesRequest{} } -func (*MergeDLQMessagesRequest) ProtoMessage() {} -func (*MergeDLQMessagesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{74} -} -func (m *MergeDLQMessagesRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MergeDLQMessagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MergeDLQMessagesRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *MergeDLQMessagesRequest) Reset() { + *x = MergeDLQMessagesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[74] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *MergeDLQMessagesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_MergeDLQMessagesRequest.Merge(m, src) -} -func (m *MergeDLQMessagesRequest) XXX_Size() int { - return m.Size() + +func (x *MergeDLQMessagesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MergeDLQMessagesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_MergeDLQMessagesRequest.DiscardUnknown(m) + +func (*MergeDLQMessagesRequest) ProtoMessage() {} + +func (x *MergeDLQMessagesRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[74] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_MergeDLQMessagesRequest proto.InternalMessageInfo +// Deprecated: Use MergeDLQMessagesRequest.ProtoReflect.Descriptor instead. +func (*MergeDLQMessagesRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{74} +} -func (m *MergeDLQMessagesRequest) GetType() v11.DLQType { - if m != nil { - return m.Type +func (x *MergeDLQMessagesRequest) GetType() v11.DLQType { + if x != nil { + return x.Type } - return v11.DLQ_TYPE_INVALID + return v11.DLQType_DLQ_TYPE_INVALID } -func (m *MergeDLQMessagesRequest) GetShardId() int32 { - if m != nil { - return m.ShardId +func (x *MergeDLQMessagesRequest) GetShardId() int32 { + if x != nil { + return x.ShardId } return 0 } -func (m *MergeDLQMessagesRequest) GetSourceCluster() string { - if m != nil { - return m.SourceCluster +func (x *MergeDLQMessagesRequest) GetSourceCluster() string { + if x != nil { + return x.SourceCluster } return "" } -func (m *MergeDLQMessagesRequest) GetInclusiveEndMessageId() int64 { - if m != nil { - return m.InclusiveEndMessageId +func (x *MergeDLQMessagesRequest) GetInclusiveEndMessageId() int64 { + if x != nil { + return x.InclusiveEndMessageId } return 0 } -func (m *MergeDLQMessagesRequest) GetPageSize() int32 { - if m != nil { - return m.PageSize +func (x *MergeDLQMessagesRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize } return 0 } -func (m *MergeDLQMessagesRequest) GetNextPageToken() []byte { - if m != nil { - return m.NextPageToken +func (x *MergeDLQMessagesRequest) GetNextPageToken() []byte { + if x != nil { + return x.NextPageToken } return nil } type MergeDLQMessagesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + NextPageToken []byte `protobuf:"bytes,1,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } -func (m *MergeDLQMessagesResponse) Reset() { *m = MergeDLQMessagesResponse{} } -func (*MergeDLQMessagesResponse) ProtoMessage() {} -func (*MergeDLQMessagesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{75} -} -func (m *MergeDLQMessagesResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MergeDLQMessagesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MergeDLQMessagesResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *MergeDLQMessagesResponse) Reset() { + *x = MergeDLQMessagesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[75] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *MergeDLQMessagesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MergeDLQMessagesResponse.Merge(m, src) -} -func (m *MergeDLQMessagesResponse) XXX_Size() int { - return m.Size() + +func (x *MergeDLQMessagesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MergeDLQMessagesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MergeDLQMessagesResponse.DiscardUnknown(m) + +func (*MergeDLQMessagesResponse) ProtoMessage() {} + +func (x *MergeDLQMessagesResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[75] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_MergeDLQMessagesResponse proto.InternalMessageInfo +// Deprecated: Use MergeDLQMessagesResponse.ProtoReflect.Descriptor instead. +func (*MergeDLQMessagesResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{75} +} -func (m *MergeDLQMessagesResponse) GetNextPageToken() []byte { - if m != nil { - return m.NextPageToken +func (x *MergeDLQMessagesResponse) GetNextPageToken() []byte { + if x != nil { + return x.NextPageToken } return nil } type NotifyFailoverMarkersRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + FailoverMarkerTokens []*v11.FailoverMarkerToken `protobuf:"bytes,1,rep,name=failover_marker_tokens,json=failoverMarkerTokens,proto3" json:"failover_marker_tokens,omitempty"` } -func (m *NotifyFailoverMarkersRequest) Reset() { *m = NotifyFailoverMarkersRequest{} } -func (*NotifyFailoverMarkersRequest) ProtoMessage() {} -func (*NotifyFailoverMarkersRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{76} -} -func (m *NotifyFailoverMarkersRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NotifyFailoverMarkersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_NotifyFailoverMarkersRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *NotifyFailoverMarkersRequest) Reset() { + *x = NotifyFailoverMarkersRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[76] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *NotifyFailoverMarkersRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_NotifyFailoverMarkersRequest.Merge(m, src) -} -func (m *NotifyFailoverMarkersRequest) XXX_Size() int { - return m.Size() + +func (x *NotifyFailoverMarkersRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *NotifyFailoverMarkersRequest) XXX_DiscardUnknown() { - xxx_messageInfo_NotifyFailoverMarkersRequest.DiscardUnknown(m) + +func (*NotifyFailoverMarkersRequest) ProtoMessage() {} + +func (x *NotifyFailoverMarkersRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[76] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_NotifyFailoverMarkersRequest proto.InternalMessageInfo +// Deprecated: Use NotifyFailoverMarkersRequest.ProtoReflect.Descriptor instead. +func (*NotifyFailoverMarkersRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{76} +} -func (m *NotifyFailoverMarkersRequest) GetFailoverMarkerTokens() []*v11.FailoverMarkerToken { - if m != nil { - return m.FailoverMarkerTokens +func (x *NotifyFailoverMarkersRequest) GetFailoverMarkerTokens() []*v11.FailoverMarkerToken { + if x != nil { + return x.FailoverMarkerTokens } return nil } type NotifyFailoverMarkersResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *NotifyFailoverMarkersResponse) Reset() { *m = NotifyFailoverMarkersResponse{} } -func (*NotifyFailoverMarkersResponse) ProtoMessage() {} -func (*NotifyFailoverMarkersResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fee8ff76963a38ed, []int{77} -} -func (m *NotifyFailoverMarkersResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NotifyFailoverMarkersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_NotifyFailoverMarkersResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *NotifyFailoverMarkersResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_NotifyFailoverMarkersResponse.Merge(m, src) -} -func (m *NotifyFailoverMarkersResponse) XXX_Size() int { - return m.Size() -} -func (m *NotifyFailoverMarkersResponse) XXX_DiscardUnknown() { - xxx_messageInfo_NotifyFailoverMarkersResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_NotifyFailoverMarkersResponse proto.InternalMessageInfo - -func init() { - proto.RegisterType((*StartWorkflowExecutionRequest)(nil), "uber.cadence.history.v1.StartWorkflowExecutionRequest") - proto.RegisterType((*StartWorkflowExecutionResponse)(nil), "uber.cadence.history.v1.StartWorkflowExecutionResponse") - proto.RegisterType((*SignalWorkflowExecutionRequest)(nil), "uber.cadence.history.v1.SignalWorkflowExecutionRequest") - proto.RegisterType((*SignalWorkflowExecutionResponse)(nil), "uber.cadence.history.v1.SignalWorkflowExecutionResponse") - proto.RegisterType((*SignalWithStartWorkflowExecutionRequest)(nil), "uber.cadence.history.v1.SignalWithStartWorkflowExecutionRequest") - proto.RegisterType((*SignalWithStartWorkflowExecutionResponse)(nil), "uber.cadence.history.v1.SignalWithStartWorkflowExecutionResponse") - proto.RegisterType((*ResetWorkflowExecutionRequest)(nil), "uber.cadence.history.v1.ResetWorkflowExecutionRequest") - proto.RegisterType((*ResetWorkflowExecutionResponse)(nil), "uber.cadence.history.v1.ResetWorkflowExecutionResponse") - proto.RegisterType((*TerminateWorkflowExecutionRequest)(nil), "uber.cadence.history.v1.TerminateWorkflowExecutionRequest") - proto.RegisterType((*TerminateWorkflowExecutionResponse)(nil), "uber.cadence.history.v1.TerminateWorkflowExecutionResponse") - proto.RegisterType((*DescribeWorkflowExecutionRequest)(nil), "uber.cadence.history.v1.DescribeWorkflowExecutionRequest") - proto.RegisterType((*DescribeWorkflowExecutionResponse)(nil), "uber.cadence.history.v1.DescribeWorkflowExecutionResponse") - proto.RegisterType((*QueryWorkflowRequest)(nil), "uber.cadence.history.v1.QueryWorkflowRequest") - proto.RegisterType((*QueryWorkflowResponse)(nil), "uber.cadence.history.v1.QueryWorkflowResponse") - proto.RegisterType((*ResetStickyTaskListRequest)(nil), "uber.cadence.history.v1.ResetStickyTaskListRequest") - proto.RegisterType((*ResetStickyTaskListResponse)(nil), "uber.cadence.history.v1.ResetStickyTaskListResponse") - proto.RegisterType((*GetMutableStateRequest)(nil), "uber.cadence.history.v1.GetMutableStateRequest") - proto.RegisterType((*GetMutableStateResponse)(nil), "uber.cadence.history.v1.GetMutableStateResponse") - proto.RegisterType((*PollMutableStateRequest)(nil), "uber.cadence.history.v1.PollMutableStateRequest") - proto.RegisterType((*PollMutableStateResponse)(nil), "uber.cadence.history.v1.PollMutableStateResponse") - proto.RegisterType((*RecordDecisionTaskStartedRequest)(nil), "uber.cadence.history.v1.RecordDecisionTaskStartedRequest") - proto.RegisterType((*RecordDecisionTaskStartedResponse)(nil), "uber.cadence.history.v1.RecordDecisionTaskStartedResponse") - proto.RegisterMapType((map[string]*v1.WorkflowQuery)(nil), "uber.cadence.history.v1.RecordDecisionTaskStartedResponse.QueriesEntry") - proto.RegisterType((*RecordActivityTaskStartedRequest)(nil), "uber.cadence.history.v1.RecordActivityTaskStartedRequest") - proto.RegisterType((*RecordActivityTaskStartedResponse)(nil), "uber.cadence.history.v1.RecordActivityTaskStartedResponse") - proto.RegisterType((*RespondDecisionTaskCompletedRequest)(nil), "uber.cadence.history.v1.RespondDecisionTaskCompletedRequest") - proto.RegisterType((*RespondDecisionTaskCompletedResponse)(nil), "uber.cadence.history.v1.RespondDecisionTaskCompletedResponse") - proto.RegisterMapType((map[string]*v1.ActivityLocalDispatchInfo)(nil), "uber.cadence.history.v1.RespondDecisionTaskCompletedResponse.ActivitiesToDispatchLocallyEntry") - proto.RegisterType((*RespondDecisionTaskFailedRequest)(nil), "uber.cadence.history.v1.RespondDecisionTaskFailedRequest") - proto.RegisterType((*RespondDecisionTaskFailedResponse)(nil), "uber.cadence.history.v1.RespondDecisionTaskFailedResponse") - proto.RegisterType((*RecordActivityTaskHeartbeatRequest)(nil), "uber.cadence.history.v1.RecordActivityTaskHeartbeatRequest") - proto.RegisterType((*RecordActivityTaskHeartbeatResponse)(nil), "uber.cadence.history.v1.RecordActivityTaskHeartbeatResponse") - proto.RegisterType((*RespondActivityTaskCompletedRequest)(nil), "uber.cadence.history.v1.RespondActivityTaskCompletedRequest") - proto.RegisterType((*RespondActivityTaskCompletedResponse)(nil), "uber.cadence.history.v1.RespondActivityTaskCompletedResponse") - proto.RegisterType((*RespondActivityTaskFailedRequest)(nil), "uber.cadence.history.v1.RespondActivityTaskFailedRequest") - proto.RegisterType((*RespondActivityTaskFailedResponse)(nil), "uber.cadence.history.v1.RespondActivityTaskFailedResponse") - proto.RegisterType((*RespondActivityTaskCanceledRequest)(nil), "uber.cadence.history.v1.RespondActivityTaskCanceledRequest") - proto.RegisterType((*RespondActivityTaskCanceledResponse)(nil), "uber.cadence.history.v1.RespondActivityTaskCanceledResponse") - proto.RegisterType((*RemoveSignalMutableStateRequest)(nil), "uber.cadence.history.v1.RemoveSignalMutableStateRequest") - proto.RegisterType((*RemoveSignalMutableStateResponse)(nil), "uber.cadence.history.v1.RemoveSignalMutableStateResponse") - proto.RegisterType((*RequestCancelWorkflowExecutionRequest)(nil), "uber.cadence.history.v1.RequestCancelWorkflowExecutionRequest") - proto.RegisterType((*RequestCancelWorkflowExecutionResponse)(nil), "uber.cadence.history.v1.RequestCancelWorkflowExecutionResponse") - proto.RegisterType((*ScheduleDecisionTaskRequest)(nil), "uber.cadence.history.v1.ScheduleDecisionTaskRequest") - proto.RegisterType((*ScheduleDecisionTaskResponse)(nil), "uber.cadence.history.v1.ScheduleDecisionTaskResponse") - proto.RegisterType((*RecordChildExecutionCompletedRequest)(nil), "uber.cadence.history.v1.RecordChildExecutionCompletedRequest") - proto.RegisterType((*RecordChildExecutionCompletedResponse)(nil), "uber.cadence.history.v1.RecordChildExecutionCompletedResponse") - proto.RegisterType((*ReplicateEventsV2Request)(nil), "uber.cadence.history.v1.ReplicateEventsV2Request") - proto.RegisterType((*ReplicateEventsV2Response)(nil), "uber.cadence.history.v1.ReplicateEventsV2Response") - proto.RegisterType((*SyncShardStatusRequest)(nil), "uber.cadence.history.v1.SyncShardStatusRequest") - proto.RegisterType((*SyncShardStatusResponse)(nil), "uber.cadence.history.v1.SyncShardStatusResponse") - proto.RegisterType((*SyncActivityRequest)(nil), "uber.cadence.history.v1.SyncActivityRequest") - proto.RegisterType((*SyncActivityResponse)(nil), "uber.cadence.history.v1.SyncActivityResponse") - proto.RegisterType((*DescribeMutableStateRequest)(nil), "uber.cadence.history.v1.DescribeMutableStateRequest") - proto.RegisterType((*DescribeMutableStateResponse)(nil), "uber.cadence.history.v1.DescribeMutableStateResponse") - proto.RegisterType((*DescribeHistoryHostRequest)(nil), "uber.cadence.history.v1.DescribeHistoryHostRequest") - proto.RegisterType((*DescribeHistoryHostResponse)(nil), "uber.cadence.history.v1.DescribeHistoryHostResponse") - proto.RegisterType((*CloseShardRequest)(nil), "uber.cadence.history.v1.CloseShardRequest") - proto.RegisterType((*CloseShardResponse)(nil), "uber.cadence.history.v1.CloseShardResponse") - proto.RegisterType((*RemoveTaskRequest)(nil), "uber.cadence.history.v1.RemoveTaskRequest") - proto.RegisterType((*RemoveTaskResponse)(nil), "uber.cadence.history.v1.RemoveTaskResponse") - proto.RegisterType((*ResetQueueRequest)(nil), "uber.cadence.history.v1.ResetQueueRequest") - proto.RegisterType((*ResetQueueResponse)(nil), "uber.cadence.history.v1.ResetQueueResponse") - proto.RegisterType((*DescribeQueueRequest)(nil), "uber.cadence.history.v1.DescribeQueueRequest") - proto.RegisterType((*DescribeQueueResponse)(nil), "uber.cadence.history.v1.DescribeQueueResponse") - proto.RegisterType((*GetReplicationMessagesRequest)(nil), "uber.cadence.history.v1.GetReplicationMessagesRequest") - proto.RegisterType((*GetReplicationMessagesResponse)(nil), "uber.cadence.history.v1.GetReplicationMessagesResponse") - proto.RegisterMapType((map[int32]*v11.ReplicationMessages)(nil), "uber.cadence.history.v1.GetReplicationMessagesResponse.ShardMessagesEntry") - proto.RegisterType((*GetDLQReplicationMessagesRequest)(nil), "uber.cadence.history.v1.GetDLQReplicationMessagesRequest") - proto.RegisterType((*GetDLQReplicationMessagesResponse)(nil), "uber.cadence.history.v1.GetDLQReplicationMessagesResponse") - proto.RegisterType((*ReapplyEventsRequest)(nil), "uber.cadence.history.v1.ReapplyEventsRequest") - proto.RegisterType((*ReapplyEventsResponse)(nil), "uber.cadence.history.v1.ReapplyEventsResponse") - proto.RegisterType((*RefreshWorkflowTasksRequest)(nil), "uber.cadence.history.v1.RefreshWorkflowTasksRequest") - proto.RegisterType((*RefreshWorkflowTasksResponse)(nil), "uber.cadence.history.v1.RefreshWorkflowTasksResponse") - proto.RegisterType((*ReadDLQMessagesRequest)(nil), "uber.cadence.history.v1.ReadDLQMessagesRequest") - proto.RegisterType((*ReadDLQMessagesResponse)(nil), "uber.cadence.history.v1.ReadDLQMessagesResponse") - proto.RegisterType((*PurgeDLQMessagesRequest)(nil), "uber.cadence.history.v1.PurgeDLQMessagesRequest") - proto.RegisterType((*PurgeDLQMessagesResponse)(nil), "uber.cadence.history.v1.PurgeDLQMessagesResponse") - proto.RegisterType((*MergeDLQMessagesRequest)(nil), "uber.cadence.history.v1.MergeDLQMessagesRequest") - proto.RegisterType((*MergeDLQMessagesResponse)(nil), "uber.cadence.history.v1.MergeDLQMessagesResponse") - proto.RegisterType((*NotifyFailoverMarkersRequest)(nil), "uber.cadence.history.v1.NotifyFailoverMarkersRequest") - proto.RegisterType((*NotifyFailoverMarkersResponse)(nil), "uber.cadence.history.v1.NotifyFailoverMarkersResponse") -} - -func init() { - proto.RegisterFile("github.com/uber/cadence/.gen/proto/history/v1/service.proto", fileDescriptor_fee8ff76963a38ed) -} - -var fileDescriptor_fee8ff76963a38ed = []byte{ - // 4421 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x3c, 0x4b, 0x6c, 0x1c, 0x47, - 0x76, 0x6a, 0x8e, 0xf8, 0x7b, 0x1c, 0x0e, 0xc9, 0x12, 0x3f, 0xc3, 0xa1, 0x34, 0x22, 0x7b, 0x2d, - 0x89, 0x2b, 0xaf, 0x47, 0x96, 0x64, 0x4b, 0xb2, 0xd6, 0x5e, 0xaf, 0x44, 0x4a, 0xf2, 0x18, 0x94, - 0x45, 0x35, 0x19, 0x1b, 0xc9, 0x41, 0x8d, 0xe6, 0x74, 0x0d, 0xd9, 0x61, 0x4f, 0xf7, 0xa8, 0xbb, - 0x87, 0xd4, 0xf8, 0x10, 0x6c, 0x92, 0x45, 0x80, 0x0d, 0x92, 0x8d, 0xb2, 0xf9, 0x60, 0x81, 0x00, - 0x0b, 0x04, 0xbb, 0x40, 0x92, 0x63, 0x90, 0x00, 0x39, 0xe5, 0x94, 0x4b, 0x02, 0x04, 0x81, 0x73, - 0xdb, 0x20, 0x87, 0xc4, 0x72, 0x0e, 0x41, 0x4e, 0x06, 0x92, 0x6b, 0x16, 0x41, 0x7d, 0xfa, 0x37, - 0xdd, 0x5d, 0xdd, 0x24, 0xb3, 0x90, 0x9d, 0xf8, 0xc6, 0xa9, 0x7a, 0xef, 0xd5, 0xab, 0x57, 0xef, - 0xbd, 0xaa, 0xf7, 0x69, 0xc2, 0x85, 0xde, 0x0e, 0x76, 0xae, 0xb4, 0x34, 0x1d, 0x5b, 0x2d, 0x7c, - 0x65, 0xcf, 0x70, 0x3d, 0xdb, 0xe9, 0x5f, 0x39, 0xb8, 0x7a, 0xc5, 0xc5, 0xce, 0x81, 0xd1, 0xc2, - 0x8d, 0xae, 0x63, 0x7b, 0x36, 0x5a, 0x20, 0x60, 0x0d, 0x0e, 0xd6, 0xe0, 0x60, 0x8d, 0x83, 0xab, - 0xb5, 0xfa, 0xae, 0x6d, 0xef, 0x9a, 0xf8, 0x0a, 0x05, 0xdb, 0xe9, 0xb5, 0xaf, 0xe8, 0x3d, 0x47, - 0xf3, 0x0c, 0xdb, 0x62, 0x88, 0xb5, 0xf3, 0x83, 0xf3, 0x9e, 0xd1, 0xc1, 0xae, 0xa7, 0x75, 0xba, - 0x1c, 0xe0, 0xac, 0x8e, 0xbb, 0xd8, 0x22, 0x74, 0x0d, 0xec, 0x5e, 0xd9, 0xb5, 0x77, 0x6d, 0x3a, - 0xce, 0x67, 0x97, 0x63, 0xec, 0x69, 0x5d, 0x83, 0xb0, 0xd6, 0xb2, 0x3b, 0x9d, 0x60, 0x81, 0x95, - 0x34, 0x08, 0x9f, 0x41, 0xce, 0x43, 0x1a, 0xc8, 0xd3, 0x1e, 0x0e, 0x00, 0xe4, 0x34, 0x00, 0x4f, - 0x73, 0xf7, 0x4d, 0xc3, 0xf5, 0x44, 0x30, 0x87, 0xb6, 0xb3, 0xdf, 0x36, 0xed, 0x43, 0x0e, 0x73, - 0x39, 0x0d, 0x86, 0x0b, 0x52, 0x1d, 0x80, 0x5d, 0xcd, 0x83, 0xc5, 0x0e, 0x87, 0x7c, 0x25, 0x06, - 0xe9, 0xee, 0x69, 0x0e, 0xd6, 0xa9, 0x18, 0xcc, 0x9e, 0xeb, 0xe5, 0x42, 0xc5, 0x45, 0x21, 0x67, - 0x40, 0x3d, 0xed, 0xe1, 0x1e, 0x4e, 0xe5, 0x2c, 0x84, 0x71, 0x70, 0xd7, 0x34, 0x5a, 0xd1, 0xc3, - 0xbd, 0x90, 0x01, 0x19, 0xdf, 0xaa, 0xfc, 0x57, 0xc3, 0x70, 0x6e, 0xcb, 0xd3, 0x1c, 0xef, 0x23, - 0x3e, 0x7e, 0xef, 0x19, 0x6e, 0xf5, 0x08, 0x1d, 0x05, 0x3f, 0xed, 0x61, 0xd7, 0x43, 0x1b, 0x30, - 0xea, 0xb0, 0x3f, 0xab, 0xd2, 0xb2, 0xb4, 0x3a, 0x71, 0xed, 0x5a, 0x23, 0xa6, 0x70, 0x5a, 0xd7, - 0x68, 0x1c, 0x5c, 0x6d, 0x08, 0x89, 0x28, 0x3e, 0x09, 0xb4, 0x04, 0xe3, 0xba, 0xdd, 0xd1, 0x0c, - 0x4b, 0x35, 0xf4, 0xea, 0xd0, 0xb2, 0xb4, 0x3a, 0xae, 0x8c, 0xb1, 0x81, 0xa6, 0x8e, 0x54, 0x98, - 0xeb, 0x6a, 0x0e, 0xb6, 0x3c, 0x15, 0xfb, 0x04, 0x54, 0xc3, 0x6a, 0xdb, 0xd5, 0x12, 0x5d, 0xf8, - 0xd5, 0xf8, 0xc2, 0x6c, 0x4f, 0x64, 0xed, 0x4d, 0x8a, 0x14, 0x2c, 0xda, 0xb4, 0xda, 0xb6, 0x72, - 0xa6, 0x9b, 0x1c, 0x44, 0x55, 0x18, 0xd5, 0x3c, 0x0f, 0x77, 0xba, 0x5e, 0xf5, 0xf4, 0xb2, 0xb4, - 0x3a, 0xac, 0xf8, 0x3f, 0x51, 0x13, 0xa6, 0xf0, 0xb3, 0xae, 0xc1, 0xec, 0x43, 0x25, 0x86, 0x50, - 0x1d, 0xa6, 0x8b, 0xd6, 0x1a, 0xcc, 0x4a, 0x1a, 0xbe, 0x95, 0x34, 0xb6, 0x7d, 0x2b, 0xb9, 0x7b, - 0xfa, 0xf9, 0xbf, 0x9c, 0x97, 0x94, 0x4a, 0x88, 0x48, 0xa6, 0x50, 0x1b, 0x16, 0x5b, 0xb6, 0xe5, - 0x19, 0x56, 0x0f, 0xab, 0x9a, 0xab, 0x5a, 0xf8, 0x50, 0x35, 0x2c, 0xc3, 0x33, 0x34, 0xcf, 0x76, - 0xaa, 0x23, 0xcb, 0xd2, 0x6a, 0x65, 0x70, 0x27, 0x5c, 0x84, 0x6b, 0x1c, 0xeb, 0x8e, 0xfb, 0x01, - 0x3e, 0x6c, 0xfa, 0x28, 0xca, 0x7c, 0x2b, 0x75, 0x1c, 0x35, 0x61, 0xc6, 0x9f, 0xd1, 0xd5, 0xb6, - 0x66, 0x98, 0x3d, 0x07, 0x57, 0x47, 0x29, 0xd3, 0x67, 0x53, 0xe9, 0xdf, 0x67, 0x30, 0xca, 0x74, - 0x80, 0xc6, 0x47, 0x90, 0x02, 0xf3, 0xa6, 0xe6, 0x7a, 0x6a, 0xcb, 0xee, 0x74, 0x4d, 0x4c, 0x45, - 0xe0, 0x60, 0xb7, 0x67, 0x7a, 0xd5, 0x31, 0x01, 0xbd, 0x4d, 0xad, 0x6f, 0xda, 0x9a, 0xae, 0xcc, - 0x12, 0xdc, 0xb5, 0x00, 0x55, 0xa1, 0x98, 0xe8, 0x09, 0x2c, 0xb5, 0x0d, 0xc7, 0xf5, 0x54, 0x1d, - 0xb7, 0x0c, 0x97, 0x4a, 0x55, 0x73, 0xf7, 0xd5, 0x1d, 0xad, 0xb5, 0x6f, 0xb7, 0xdb, 0xd5, 0x71, - 0x4a, 0x78, 0x31, 0x21, 0xdd, 0x75, 0xee, 0xa3, 0xee, 0x9e, 0xfe, 0x21, 0x11, 0x6e, 0x95, 0xd2, - 0x58, 0xe7, 0x24, 0xb6, 0x35, 0x77, 0xff, 0x2e, 0x23, 0x20, 0xdf, 0x84, 0x7a, 0x96, 0xce, 0xb9, - 0x5d, 0xdb, 0x72, 0x31, 0x9a, 0x83, 0x11, 0xa7, 0x47, 0x15, 0x4d, 0xa2, 0x8a, 0x36, 0xec, 0xf4, - 0xac, 0xa6, 0x2e, 0xff, 0x64, 0x08, 0xea, 0x5b, 0xc6, 0xae, 0xa5, 0x99, 0x99, 0x3a, 0xff, 0x70, - 0x50, 0xe7, 0xaf, 0xa7, 0xeb, 0xbc, 0x90, 0x4a, 0x41, 0xa5, 0x6f, 0xc3, 0x12, 0x7e, 0xe6, 0x61, - 0xc7, 0xd2, 0xcc, 0xc0, 0x0f, 0x85, 0xfa, 0xcf, 0x55, 0xff, 0x62, 0xea, 0xfa, 0xc9, 0x95, 0x17, - 0x7d, 0x52, 0x89, 0x29, 0xd4, 0x80, 0x33, 0xad, 0x3d, 0xc3, 0xd4, 0xc3, 0x45, 0x6c, 0xcb, 0xec, - 0x53, 0x3b, 0x18, 0x53, 0x66, 0xe8, 0x94, 0x8f, 0xf4, 0xc8, 0x32, 0xfb, 0xf2, 0x0a, 0x9c, 0xcf, - 0xdc, 0x1f, 0x13, 0xb0, 0xfc, 0x23, 0x09, 0x2e, 0x71, 0x18, 0xc3, 0xdb, 0x13, 0xbb, 0x91, 0x0f, - 0x07, 0x45, 0xfa, 0xb6, 0x48, 0xa4, 0x79, 0xe4, 0x8a, 0xc9, 0x56, 0xbe, 0x03, 0xab, 0xf9, 0x04, - 0xc5, 0xda, 0xf2, 0x9b, 0x12, 0x9c, 0x53, 0xb0, 0x8b, 0x4f, 0xec, 0x20, 0x85, 0x44, 0x0a, 0xee, - 0xe7, 0x26, 0xd4, 0xb3, 0xc8, 0x88, 0x77, 0xf1, 0x03, 0x09, 0x56, 0xb6, 0xb1, 0xd3, 0x31, 0x2c, - 0xcd, 0xc3, 0x99, 0x3b, 0xd9, 0x1c, 0xdc, 0xc9, 0x8d, 0xd4, 0x9d, 0xe4, 0x12, 0x2a, 0xb8, 0x9b, - 0x57, 0x40, 0x16, 0x91, 0xe2, 0x4a, 0xf6, 0x5c, 0x82, 0xe5, 0x75, 0xec, 0xb6, 0x1c, 0x63, 0x27, - 0x9b, 0xf3, 0x47, 0x83, 0x9c, 0xbf, 0x99, 0xca, 0x79, 0x1e, 0x9d, 0x82, 0x8c, 0xff, 0xac, 0x04, - 0x2b, 0x02, 0x52, 0xfc, 0x28, 0x4c, 0x58, 0x08, 0xaf, 0xb1, 0x96, 0x6d, 0xb5, 0x8d, 0x5d, 0xee, - 0xdb, 0x84, 0x4e, 0x25, 0x41, 0x70, 0x2d, 0x8a, 0xaa, 0xcc, 0xe3, 0xd4, 0x71, 0xb4, 0x03, 0x0b, - 0x49, 0xef, 0xc1, 0x6e, 0xcf, 0x21, 0xba, 0xda, 0xe5, 0x62, 0xab, 0xd1, 0xcb, 0x73, 0xee, 0x30, - 0x6d, 0x18, 0x7d, 0x04, 0x88, 0xbc, 0x07, 0x0d, 0x6b, 0x57, 0xd5, 0x5a, 0x9e, 0x71, 0x60, 0x78, - 0x06, 0x76, 0xab, 0xa5, 0xe5, 0xd2, 0xea, 0xc4, 0xb5, 0xd5, 0xf4, 0x2b, 0x82, 0x81, 0xdf, 0x61, - 0xd0, 0x7d, 0x4a, 0x7c, 0xa6, 0x1b, 0x1b, 0x34, 0xb0, 0x8b, 0x7e, 0x11, 0xa6, 0x7d, 0xc2, 0xd4, - 0x11, 0x39, 0xd8, 0xaa, 0x9e, 0xa6, 0x64, 0x1b, 0x22, 0xb2, 0x6b, 0x04, 0x36, 0xce, 0xf9, 0x54, - 0x37, 0x32, 0xe5, 0x60, 0x0b, 0x6d, 0x85, 0xa4, 0xfd, 0x8b, 0x88, 0xdf, 0xec, 0x42, 0x8e, 0xfd, - 0x1b, 0x27, 0x46, 0xd4, 0x1f, 0x94, 0x9f, 0xc1, 0xec, 0x63, 0xf2, 0x46, 0xf5, 0xa5, 0xe7, 0xab, - 0xe1, 0xda, 0xa0, 0x1a, 0x7e, 0x3d, 0x75, 0x8d, 0x34, 0xdc, 0x82, 0xaa, 0xf7, 0x63, 0x09, 0xe6, - 0x06, 0xd0, 0xb9, 0xba, 0xbd, 0x0b, 0x65, 0xfa, 0x6e, 0xf6, 0x6f, 0x6e, 0xa9, 0xc0, 0xcd, 0x3d, - 0x41, 0x31, 0xf8, 0x85, 0xdd, 0x84, 0x8a, 0x4f, 0xe0, 0x97, 0x71, 0xcb, 0xc3, 0x3a, 0x57, 0x1c, - 0x39, 0x7b, 0x0f, 0x0a, 0x87, 0x54, 0x26, 0x9f, 0x46, 0x7f, 0xca, 0xdf, 0x95, 0xa0, 0x46, 0x1d, - 0xd5, 0x96, 0x67, 0xb4, 0xf6, 0xfb, 0xe4, 0xda, 0xde, 0x30, 0x5c, 0xcf, 0x17, 0x53, 0x73, 0x50, - 0x4c, 0x57, 0xb2, 0x3d, 0x66, 0x2a, 0x85, 0x82, 0xc2, 0x3a, 0x07, 0x4b, 0xa9, 0x34, 0xb8, 0x67, - 0xf9, 0x4f, 0x09, 0xe6, 0x1f, 0x60, 0xef, 0x61, 0xcf, 0xd3, 0x76, 0x4c, 0xbc, 0xe5, 0x69, 0x1e, - 0x56, 0xd2, 0xc8, 0x4a, 0x03, 0x37, 0xf6, 0x2f, 0x00, 0x4a, 0xb9, 0xa8, 0x87, 0x8e, 0x74, 0x51, - 0xcf, 0x24, 0x2c, 0x0c, 0x5d, 0x87, 0x79, 0xfc, 0xac, 0x4b, 0x05, 0xa8, 0x5a, 0xf8, 0x99, 0xa7, - 0xe2, 0x03, 0xf2, 0x14, 0x36, 0x74, 0xfa, 0x06, 0x28, 0x29, 0x67, 0xfc, 0xd9, 0x0f, 0xf0, 0x33, - 0xef, 0x1e, 0x99, 0x6b, 0xea, 0xe8, 0x75, 0x98, 0x6d, 0xf5, 0x1c, 0xfa, 0x66, 0xde, 0x71, 0x34, - 0xab, 0xb5, 0xa7, 0x7a, 0xf6, 0x3e, 0xb5, 0x1e, 0x69, 0xb5, 0xac, 0x20, 0x3e, 0x77, 0x97, 0x4e, - 0x6d, 0x93, 0x19, 0xf9, 0xbf, 0xc7, 0x60, 0x21, 0xb1, 0x6b, 0xae, 0x43, 0xe9, 0x3b, 0x93, 0x4e, - 0xba, 0xb3, 0xfb, 0x30, 0x19, 0x90, 0xf5, 0xfa, 0x5d, 0xcc, 0x65, 0xb5, 0x22, 0xa4, 0xb8, 0xdd, - 0xef, 0x62, 0xa5, 0x7c, 0x18, 0xf9, 0x85, 0x64, 0x98, 0x4c, 0x13, 0xcc, 0x84, 0x15, 0x11, 0xc8, - 0x5b, 0xb0, 0xd8, 0x75, 0xf0, 0x81, 0x61, 0xf7, 0x5c, 0xd5, 0x25, 0x37, 0x3e, 0xd6, 0x43, 0xf8, - 0xd3, 0x14, 0x7e, 0xde, 0x07, 0xd8, 0x62, 0xf3, 0x3e, 0xea, 0x6b, 0x70, 0x86, 0xbe, 0x82, 0xd9, - 0xb3, 0x35, 0x40, 0x1a, 0xa6, 0x48, 0xd3, 0x64, 0xea, 0x3e, 0x99, 0xf1, 0xc1, 0x6f, 0xc3, 0x38, - 0x7d, 0xd1, 0x92, 0x40, 0x94, 0xbe, 0xeb, 0x27, 0xae, 0x9d, 0x4b, 0xbf, 0x2f, 0x7d, 0xc5, 0x1b, - 0xf3, 0xf8, 0x5f, 0xe8, 0x01, 0x4c, 0xbb, 0x54, 0x29, 0xd5, 0x90, 0xc4, 0x68, 0x11, 0x12, 0x15, - 0x37, 0xa6, 0xcb, 0xe8, 0x0d, 0x98, 0x6f, 0x99, 0x06, 0xe1, 0xd4, 0x34, 0x76, 0x1c, 0xcd, 0xe9, - 0xab, 0x07, 0xd8, 0xa1, 0x4e, 0x6e, 0x8c, 0x6a, 0xed, 0x2c, 0x9b, 0xdd, 0x60, 0x93, 0x1f, 0xb2, - 0xb9, 0x08, 0x56, 0x1b, 0x6b, 0x5e, 0xcf, 0xc1, 0x01, 0xd6, 0x78, 0x14, 0xeb, 0x3e, 0x9b, 0xf4, - 0xb1, 0xce, 0xc3, 0x04, 0xc7, 0x32, 0x3a, 0x5d, 0xb3, 0x0a, 0x14, 0x14, 0xd8, 0x50, 0xb3, 0xd3, - 0x35, 0x51, 0x1f, 0x2e, 0x0f, 0xee, 0x4a, 0x75, 0x5b, 0x7b, 0x58, 0xef, 0x99, 0x58, 0xf5, 0x6c, - 0x76, 0x1e, 0x34, 0xb8, 0xb2, 0x7b, 0x5e, 0x75, 0xa2, 0x58, 0x04, 0xf0, 0x4a, 0x7c, 0xc7, 0x5b, - 0x9c, 0xde, 0xb6, 0x4d, 0x4f, 0x6f, 0x9b, 0x11, 0x23, 0xaf, 0x5b, 0x76, 0x60, 0x24, 0xa2, 0x0e, - 0xb7, 0x53, 0xa6, 0x51, 0xde, 0x0c, 0x9d, 0xda, 0x22, 0x33, 0xfe, 0x5e, 0xb2, 0xec, 0x66, 0x32, - 0xcb, 0x6e, 0xd0, 0x06, 0x54, 0x02, 0x25, 0x76, 0x89, 0xd5, 0x54, 0x2b, 0x34, 0x96, 0xbb, 0x90, - 0x15, 0x95, 0xfa, 0x8a, 0xcc, 0x4c, 0x2c, 0xb0, 0x00, 0xfa, 0x13, 0xb5, 0x60, 0x36, 0xa0, 0xd6, - 0x32, 0x6d, 0x17, 0x73, 0x9a, 0x53, 0x94, 0xe6, 0xd5, 0x82, 0x2f, 0x03, 0x82, 0x48, 0xe8, 0xf5, - 0x5c, 0x25, 0x30, 0xdc, 0x60, 0x90, 0x98, 0xf3, 0x0c, 0x17, 0x84, 0xca, 0x52, 0x0d, 0xe4, 0xba, - 0x9e, 0x4e, 0xbb, 0xfc, 0x42, 0xae, 0xb9, 0x80, 0xde, 0xf3, 0xe1, 0x95, 0xe9, 0x83, 0x81, 0x11, - 0xf4, 0x36, 0x2c, 0x19, 0xc4, 0xb8, 0x06, 0x4e, 0x1a, 0x5b, 0xc4, 0xa1, 0xe8, 0xd5, 0x19, 0x1a, - 0x51, 0x2c, 0x18, 0x6e, 0xdc, 0xed, 0xde, 0x63, 0xd3, 0xf2, 0x7f, 0x49, 0xb0, 0xb0, 0x69, 0x9b, - 0xe6, 0xff, 0x33, 0xb7, 0xfb, 0x7c, 0x0c, 0xaa, 0xc9, 0x6d, 0x7f, 0xe5, 0x77, 0xbf, 0xf2, 0xbb, - 0x5f, 0x6a, 0xbf, 0x9b, 0x65, 0x08, 0xe5, 0x4c, 0x3f, 0x9a, 0xea, 0x94, 0x26, 0x4f, 0xec, 0x94, - 0xbe, 0x7c, 0xee, 0x59, 0xfe, 0x9b, 0x21, 0x58, 0x56, 0x70, 0xcb, 0x76, 0xf4, 0x68, 0x7e, 0x8b, - 0x1b, 0xc7, 0xcb, 0x74, 0x89, 0xe7, 0x61, 0x22, 0x50, 0x9f, 0xc0, 0xda, 0xc1, 0x1f, 0x6a, 0xea, - 0x68, 0x01, 0x46, 0xa9, 0xa6, 0x05, 0xa6, 0x3d, 0x42, 0x7e, 0x36, 0x75, 0x74, 0x0e, 0x80, 0xbf, - 0xcc, 0x7d, 0x0b, 0x1e, 0x57, 0xc6, 0xf9, 0x48, 0x53, 0x47, 0x0a, 0x94, 0xbb, 0xb6, 0x69, 0xaa, - 0xfe, 0xeb, 0x7f, 0x44, 0xf0, 0xfa, 0x27, 0xce, 0xf2, 0xbe, 0xed, 0x44, 0x45, 0xe3, 0xbf, 0xfe, - 0x27, 0x08, 0x11, 0xfe, 0x43, 0xfe, 0x87, 0x51, 0x58, 0x11, 0x48, 0x91, 0x7b, 0xd8, 0x84, 0x2b, - 0x94, 0x8e, 0xe7, 0x0a, 0x85, 0x6e, 0x6e, 0x48, 0xe8, 0xe6, 0xbe, 0x01, 0xc8, 0x17, 0xa1, 0x3e, - 0xe8, 0x4a, 0xa7, 0x83, 0x19, 0x1f, 0x7a, 0x95, 0x78, 0xaa, 0x54, 0x37, 0x5a, 0x71, 0xe3, 0x74, - 0x13, 0xde, 0x79, 0x38, 0xe9, 0x9d, 0x23, 0x89, 0xef, 0x91, 0x78, 0xe2, 0xfb, 0x16, 0x54, 0xb9, - 0xef, 0x08, 0xb3, 0x06, 0xfe, 0x4d, 0x3e, 0x4a, 0x6f, 0xf2, 0x79, 0x36, 0x1f, 0xa8, 0x07, 0xbf, - 0xc8, 0x91, 0x02, 0x93, 0x41, 0x6a, 0x97, 0xe6, 0x19, 0x58, 0xae, 0xf8, 0xb5, 0x2c, 0x83, 0xdb, - 0x76, 0x34, 0xcb, 0x25, 0x3e, 0x2b, 0x16, 0x5b, 0x97, 0xf5, 0xc8, 0x2f, 0xf4, 0x04, 0xce, 0xa6, - 0x64, 0x31, 0x42, 0x5f, 0x3d, 0x5e, 0xc4, 0x57, 0x2f, 0x26, 0x34, 0x3a, 0x70, 0xdb, 0x19, 0xcf, - 0x44, 0xc8, 0x7a, 0x26, 0xae, 0x40, 0x39, 0xe6, 0xd6, 0x26, 0xa8, 0x5b, 0x9b, 0xd8, 0x89, 0xf8, - 0xb3, 0x07, 0x50, 0x09, 0x8f, 0x95, 0x16, 0x0e, 0xca, 0x05, 0x0b, 0x07, 0x93, 0x01, 0x1e, 0xad, - 0x1b, 0xac, 0x41, 0xd9, 0x3f, 0x71, 0x4a, 0x66, 0xb2, 0x20, 0x99, 0x09, 0x8e, 0x45, 0x89, 0x68, - 0x30, 0x4a, 0x42, 0x71, 0xe2, 0x53, 0x2b, 0x34, 0x81, 0xf2, 0xa0, 0x91, 0x51, 0x1e, 0x6c, 0xe4, - 0x1a, 0x0d, 0x8d, 0xf1, 0x0d, 0xec, 0xde, 0xb3, 0x3c, 0xa7, 0xaf, 0xf8, 0x74, 0x6b, 0x4f, 0xa0, - 0x1c, 0x9d, 0x40, 0xd3, 0x50, 0xda, 0xc7, 0x7d, 0xee, 0x9b, 0xc8, 0x9f, 0xe8, 0x16, 0x0c, 0x1f, - 0x68, 0x66, 0x0f, 0x0b, 0x13, 0x08, 0xbe, 0x91, 0xb1, 0x44, 0x02, 0x43, 0xb8, 0x3d, 0x74, 0x4b, - 0x8a, 0xb8, 0x45, 0x3f, 0x6d, 0xf4, 0x95, 0x5b, 0x4c, 0xb8, 0xc5, 0xa8, 0x68, 0x52, 0xdd, 0xe2, - 0xe7, 0x25, 0xdf, 0x2d, 0xa6, 0x4a, 0x91, 0xbb, 0xc5, 0xf7, 0x61, 0x6a, 0xc0, 0x27, 0x09, 0x1d, - 0x23, 0xbb, 0x6e, 0xfb, 0xd4, 0xab, 0x28, 0x95, 0xb8, 0xcf, 0x4a, 0xe8, 0xef, 0xd0, 0x71, 0xf4, - 0x37, 0xe2, 0xa8, 0x4a, 0x71, 0x47, 0xa5, 0x43, 0x3d, 0x6e, 0x67, 0xaa, 0xdd, 0x56, 0xbd, 0x3d, - 0xc3, 0x55, 0xa3, 0x25, 0xbd, 0x22, 0x0b, 0xd6, 0x62, 0x76, 0xf7, 0xa8, 0xbd, 0xbd, 0x67, 0xb8, - 0x77, 0x82, 0x3a, 0xe0, 0xcc, 0x1e, 0xd6, 0x1c, 0x6f, 0x07, 0x6b, 0x9e, 0xaa, 0x63, 0x4f, 0x33, - 0x4c, 0x97, 0xe7, 0x0b, 0xc5, 0xa9, 0xb4, 0xe9, 0x00, 0x6d, 0x9d, 0x61, 0x25, 0xaf, 0x9c, 0x91, - 0xe3, 0x5d, 0x39, 0x97, 0x60, 0x2a, 0xa0, 0xc3, 0x54, 0x9c, 0x3a, 0xe6, 0x71, 0x25, 0x78, 0xf0, - 0xac, 0xd3, 0x51, 0xf9, 0x0f, 0x25, 0xf8, 0x1a, 0x3b, 0xd9, 0x98, 0x55, 0xf3, 0xca, 0x5c, 0x68, - 0x3b, 0xca, 0x60, 0xfa, 0xed, 0x56, 0x56, 0xfa, 0x2d, 0x8f, 0x54, 0xc1, 0x3c, 0xdc, 0x5f, 0x94, - 0xe0, 0x15, 0x31, 0x35, 0xae, 0x8e, 0x38, 0xbc, 0xf4, 0x1c, 0x3e, 0xc6, 0x59, 0xbc, 0x7d, 0x7c, - 0x37, 0xa6, 0x4c, 0xb9, 0x03, 0x5a, 0xff, 0x63, 0x09, 0xea, 0x61, 0x02, 0x9b, 0xbc, 0x90, 0x75, - 0xc3, 0xed, 0x6a, 0x5e, 0x6b, 0x4f, 0x35, 0xed, 0x96, 0x66, 0x9a, 0xfd, 0xea, 0x10, 0x75, 0x9e, - 0x4f, 0x04, 0xab, 0xe6, 0x6f, 0xa7, 0x11, 0x66, 0xb8, 0xb7, 0xed, 0x75, 0xbe, 0xc2, 0x06, 0x5b, - 0x80, 0xf9, 0xd4, 0x25, 0x2d, 0x1b, 0xa2, 0xf6, 0x2b, 0xb0, 0x9c, 0x47, 0x20, 0xc5, 0xf7, 0xae, - 0xc7, 0x7d, 0x6f, 0x7a, 0xfe, 0xdc, 0x77, 0x09, 0x94, 0x96, 0x4f, 0x98, 0x5e, 0xc7, 0x11, 0x3f, - 0xfc, 0x5c, 0x22, 0x7e, 0x38, 0xb1, 0xcd, 0xfb, 0x9a, 0x61, 0x86, 0xba, 0x54, 0xb0, 0xf0, 0x92, - 0x47, 0xa7, 0xa0, 0x22, 0x7d, 0x8d, 0xf8, 0xb4, 0x4c, 0x4a, 0x3c, 0xad, 0xfb, 0xfb, 0x12, 0xc8, - 0x49, 0xcf, 0xf7, 0x9e, 0x6f, 0x9e, 0x3e, 0xe7, 0x8f, 0x07, 0x39, 0xbf, 0x99, 0xc1, 0x79, 0x1e, - 0xa5, 0x82, 0xbc, 0x6f, 0x12, 0xe3, 0x14, 0xd0, 0xe2, 0xba, 0xf9, 0x75, 0x98, 0x6e, 0x69, 0x56, - 0x0b, 0x07, 0xb7, 0x01, 0x66, 0xf7, 0xdb, 0x98, 0x32, 0xc5, 0xc6, 0x15, 0x7f, 0x38, 0x6a, 0xef, - 0x51, 0x9a, 0x27, 0xb4, 0x77, 0x11, 0xa9, 0x82, 0x5b, 0xbd, 0x18, 0x98, 0x7b, 0x06, 0xb1, 0x48, - 0x69, 0x2f, 0x05, 0xf0, 0x24, 0x1a, 0x96, 0x49, 0xe7, 0xc8, 0x1a, 0x96, 0x46, 0x29, 0xa6, 0x61, - 0xc9, 0x0d, 0xd2, 0xf3, 0x09, 0x39, 0x2f, 0xac, 0x61, 0x79, 0x94, 0x0a, 0xf2, 0x7e, 0x21, 0x5d, - 0x1d, 0x02, 0x5a, 0x9c, 0xfb, 0xbf, 0x94, 0xe0, 0xbc, 0x82, 0x3b, 0xf6, 0x01, 0x66, 0xb5, 0xf1, - 0x2f, 0x4a, 0x22, 0x2e, 0xfe, 0x48, 0x2a, 0x0d, 0x3c, 0x92, 0x64, 0x99, 0xe8, 0x4a, 0x16, 0xd7, - 0x7c, 0x6b, 0x3f, 0x1b, 0x82, 0x0b, 0x7c, 0x0b, 0x6c, 0xdb, 0x99, 0x05, 0x63, 0xe1, 0x06, 0x35, - 0xa8, 0xc4, 0x6d, 0x90, 0x6f, 0xee, 0x76, 0xc6, 0xf9, 0x15, 0x58, 0x50, 0x99, 0x8c, 0x59, 0x2f, - 0x7a, 0x27, 0xd2, 0xf5, 0xc1, 0xbb, 0x83, 0x92, 0x51, 0x61, 0xd5, 0x07, 0x69, 0xfa, 0x10, 0x7e, - 0x3c, 0x97, 0xd3, 0x34, 0x72, 0xfa, 0xe7, 0xdc, 0x34, 0x32, 0x9c, 0xd5, 0x34, 0xb2, 0x0a, 0x17, - 0xf3, 0xc4, 0xc1, 0x8f, 0xea, 0xaf, 0x25, 0x58, 0xf2, 0x73, 0x4a, 0x29, 0x31, 0xfe, 0x4b, 0xd1, - 0xc0, 0xcb, 0x30, 0x63, 0xb8, 0x6a, 0xbc, 0x6b, 0x89, 0x1e, 0xc5, 0x98, 0x32, 0x65, 0xb8, 0xf7, - 0xa3, 0x9d, 0x48, 0x72, 0x1d, 0xce, 0xa6, 0xb3, 0xcf, 0xf7, 0xf7, 0x6f, 0x43, 0xc4, 0x09, 0x12, - 0x7f, 0x1f, 0xaf, 0x52, 0x27, 0xbc, 0xf3, 0xcb, 0xd8, 0xe8, 0x0a, 0x94, 0x43, 0xa5, 0x0b, 0xf3, - 0xb9, 0xc1, 0x58, 0x53, 0x47, 0x1f, 0xc1, 0x99, 0x96, 0xcf, 0xea, 0xb1, 0x35, 0x0b, 0x05, 0x24, - 0xc2, 0xb5, 0x37, 0x60, 0x3a, 0xd2, 0x66, 0xc6, 0x62, 0x8e, 0xe1, 0xa2, 0x31, 0xc7, 0x54, 0x88, - 0x4a, 0x07, 0xe4, 0x4b, 0xc4, 0xe0, 0x85, 0x52, 0xe6, 0xe7, 0xf1, 0x1f, 0x43, 0x50, 0x55, 0x78, - 0x97, 0x24, 0xa6, 0xb8, 0xee, 0x87, 0xd7, 0x5e, 0xe6, 0x19, 0x3c, 0x81, 0xb9, 0x78, 0x1e, 0xb4, - 0xaf, 0x1a, 0x1e, 0xee, 0xf8, 0xfd, 0x14, 0x97, 0x0b, 0xe5, 0x42, 0xfb, 0x4d, 0x0f, 0x77, 0x94, - 0x33, 0x07, 0x89, 0x31, 0x17, 0xbd, 0x09, 0x23, 0x54, 0xb8, 0x2e, 0x3f, 0xb3, 0xf4, 0xa4, 0xc9, - 0xba, 0xe6, 0x69, 0x77, 0x4d, 0x7b, 0x47, 0xe1, 0xc0, 0x68, 0x0d, 0x2a, 0x16, 0x3e, 0x54, 0x9d, - 0x1e, 0x3f, 0x1b, 0x3f, 0xfa, 0xc9, 0x41, 0x2f, 0x5b, 0xf8, 0x50, 0xe9, 0xb1, 0x43, 0x71, 0xe5, - 0x25, 0x58, 0x4c, 0x91, 0x75, 0x78, 0xeb, 0xcf, 0x6f, 0xf5, 0xad, 0xd6, 0xd6, 0x9e, 0xe6, 0xe8, - 0x3c, 0x3d, 0xca, 0xcf, 0xe1, 0x02, 0x54, 0x5c, 0xbb, 0xe7, 0xb4, 0xb0, 0xca, 0x1b, 0x68, 0xf9, - 0x61, 0x4c, 0xb2, 0xd1, 0x35, 0x36, 0x88, 0x16, 0x61, 0x8c, 0xc8, 0x43, 0xf7, 0x2f, 0xc1, 0x61, - 0x65, 0x94, 0xfe, 0x6e, 0xea, 0xe8, 0x0d, 0x38, 0x4d, 0x83, 0xcf, 0x52, 0xc1, 0x58, 0x90, 0x42, - 0xcb, 0x8b, 0xb0, 0x90, 0xe0, 0x88, 0x73, 0xfb, 0xcf, 0xc3, 0x70, 0x86, 0xcc, 0xf9, 0x57, 0xea, - 0xcb, 0x54, 0x99, 0x2a, 0x8c, 0xfa, 0x19, 0x2b, 0x66, 0xb1, 0xfe, 0x4f, 0x62, 0xd0, 0x61, 0x70, - 0x1c, 0xa4, 0x1f, 0x82, 0x74, 0x05, 0x91, 0x4c, 0x32, 0x4f, 0x35, 0x7c, 0xbc, 0x3c, 0xd5, 0x39, - 0x00, 0x3f, 0x48, 0x33, 0x74, 0x1a, 0xd4, 0x96, 0x94, 0x71, 0x3e, 0xd2, 0xd4, 0x13, 0x69, 0x80, - 0xd1, 0xe3, 0xa4, 0x01, 0x36, 0x79, 0x49, 0x28, 0x8c, 0xc5, 0x29, 0xad, 0xb1, 0x82, 0xb4, 0x66, - 0x08, 0x72, 0xf0, 0xb6, 0xa6, 0x14, 0x6f, 0xc0, 0xa8, 0x1f, 0xce, 0x8f, 0x17, 0x08, 0xe7, 0x7d, - 0xe0, 0x68, 0x42, 0x02, 0xe2, 0x09, 0x89, 0x77, 0xa1, 0xcc, 0xca, 0x56, 0xbc, 0xf5, 0x76, 0xa2, - 0x40, 0xeb, 0xed, 0x04, 0xad, 0x66, 0xf1, 0xae, 0xdb, 0xd7, 0x81, 0x76, 0xce, 0xf2, 0x8e, 0x72, - 0xd5, 0xd0, 0xb1, 0xe5, 0x19, 0x5e, 0x9f, 0xe6, 0x0f, 0xc7, 0x15, 0x44, 0xe6, 0x3e, 0xa2, 0x53, - 0x4d, 0x3e, 0x83, 0x1e, 0xc1, 0xd4, 0x80, 0xcf, 0xe0, 0x59, 0xc2, 0x8b, 0xc5, 0xbc, 0x85, 0x52, - 0x89, 0x7b, 0x0a, 0x79, 0x1e, 0x66, 0xe3, 0xca, 0xcd, 0xb5, 0xfe, 0x77, 0x25, 0x58, 0xf2, 0x3b, - 0xdc, 0xbe, 0x20, 0xef, 0x43, 0xf9, 0xfb, 0x12, 0x9c, 0x4d, 0xe7, 0x89, 0x87, 0x4e, 0xd7, 0x61, - 0xbe, 0xc3, 0xc6, 0x59, 0xb5, 0x46, 0x35, 0x2c, 0xb5, 0xa5, 0xb5, 0xf6, 0x30, 0xe7, 0xf0, 0x4c, - 0x27, 0x82, 0xd5, 0xb4, 0xd6, 0xc8, 0x14, 0x7a, 0x0b, 0x16, 0x13, 0x48, 0xba, 0xe6, 0x69, 0x3b, - 0x9a, 0x8b, 0xf9, 0x0b, 0x7b, 0x3e, 0x8e, 0xb7, 0xce, 0x67, 0xe5, 0x3f, 0x97, 0xa0, 0xe6, 0x33, - 0xc4, 0x05, 0xfa, 0x9e, 0x1d, 0x76, 0x39, 0xad, 0x40, 0x79, 0xcf, 0x76, 0x3d, 0x55, 0xd3, 0x75, - 0x07, 0xbb, 0x2e, 0x67, 0x62, 0x82, 0x8c, 0xdd, 0x61, 0x43, 0x22, 0x47, 0x96, 0x2e, 0xc4, 0xd2, - 0x49, 0x85, 0xf8, 0x6b, 0x43, 0xe1, 0xc1, 0xc6, 0x78, 0xe6, 0x32, 0x5c, 0x85, 0x69, 0xab, 0xd7, - 0xd9, 0xc1, 0x8e, 0x6a, 0xb7, 0x55, 0xca, 0x0b, 0x63, 0x7c, 0x58, 0xa9, 0xb0, 0xf1, 0x47, 0x6d, - 0xea, 0x25, 0x5d, 0xa2, 0x02, 0x3e, 0xef, 0x2e, 0x4d, 0x97, 0x0c, 0x2b, 0x63, 0x9c, 0x79, 0x17, - 0xbd, 0x0f, 0x65, 0xae, 0x1f, 0xec, 0x00, 0x18, 0xdf, 0x97, 0xb2, 0xb4, 0x94, 0x25, 0xb0, 0xe8, - 0x81, 0xd0, 0x2c, 0xc4, 0x84, 0x1e, 0x0e, 0xa0, 0x1b, 0xb0, 0xc0, 0x16, 0x6a, 0xd9, 0x96, 0xe7, - 0xd8, 0xa6, 0x89, 0x1d, 0x7a, 0x54, 0x3d, 0x76, 0xb3, 0x8d, 0x2b, 0x73, 0x74, 0x7a, 0x2d, 0x98, - 0x65, 0x1e, 0x9c, 0x5a, 0x2e, 0x17, 0x3d, 0xcb, 0xb8, 0xfa, 0x3f, 0xe5, 0x06, 0xcc, 0xb0, 0x32, - 0x1c, 0xc1, 0xf3, 0x8f, 0x2b, 0x7a, 0x16, 0x52, 0xec, 0x2c, 0xe4, 0x59, 0x40, 0x51, 0x78, 0x6e, - 0x23, 0xff, 0x28, 0xc1, 0x0c, 0x8b, 0x48, 0xa2, 0xef, 0xd6, 0x6c, 0x32, 0xe8, 0x1d, 0x5e, 0xb8, - 0x0e, 0x4a, 0xf1, 0x95, 0x6b, 0xcb, 0x99, 0xc5, 0x12, 0xcd, 0xdd, 0xa7, 0xb9, 0x40, 0x5a, 0xbb, - 0xa6, 0x79, 0xc0, 0x48, 0x76, 0xb9, 0x14, 0xcb, 0x2e, 0x37, 0x61, 0xea, 0xc0, 0x70, 0x8d, 0x1d, - 0xc3, 0x34, 0xbc, 0x3e, 0x73, 0x94, 0x45, 0x53, 0xa1, 0x95, 0x10, 0x91, 0x4c, 0x91, 0x9d, 0x46, - 0xb7, 0x14, 0xde, 0xd8, 0x33, 0xb4, 0x91, 0xee, 0x71, 0x0f, 0xf7, 0x70, 0x81, 0x9d, 0xae, 0x40, - 0x99, 0x5f, 0xe0, 0xaa, 0xa5, 0x75, 0x7c, 0x3b, 0x9a, 0xe0, 0x63, 0x1f, 0x68, 0x1d, 0x1c, 0x17, - 0x46, 0xe9, 0xa8, 0xc2, 0x60, 0x8c, 0x86, 0x1c, 0x71, 0x46, 0x7f, 0x4f, 0x82, 0x59, 0x5f, 0xbb, - 0xbf, 0x38, 0xbc, 0x3e, 0x82, 0xb9, 0x01, 0xa6, 0xb8, 0xb1, 0xdd, 0x80, 0x85, 0xae, 0x63, 0xb7, - 0xb0, 0xeb, 0x1a, 0xd6, 0xae, 0x4a, 0xbf, 0xf3, 0x61, 0x4e, 0x88, 0xd8, 0x5c, 0x89, 0x68, 0x76, - 0x38, 0x4d, 0x31, 0xa9, 0x07, 0x72, 0xe5, 0xef, 0x4a, 0x70, 0xee, 0x01, 0xf6, 0x94, 0xf0, 0xa3, - 0x9f, 0x87, 0xd8, 0x75, 0xb5, 0x5d, 0x1c, 0x3c, 0xa4, 0xbe, 0x0d, 0x23, 0xb4, 0x60, 0xc5, 0x08, - 0x09, 0x2a, 0xeb, 0x11, 0x1a, 0xb4, 0x9c, 0xa5, 0x70, 0xbc, 0x02, 0x62, 0x21, 0xbe, 0xa4, 0x9e, - 0xc5, 0x06, 0xdf, 0xe1, 0x53, 0xa8, 0x30, 0xb9, 0x77, 0xf8, 0x0c, 0xe7, 0xe7, 0xfd, 0xcc, 0xc4, - 0xaa, 0x98, 0x60, 0x83, 0x9a, 0xa0, 0x3f, 0xca, 0x92, 0xa8, 0x93, 0x6e, 0x74, 0xac, 0xd6, 0x01, - 0x94, 0x04, 0x8a, 0x26, 0x4a, 0x87, 0x59, 0xa2, 0xf4, 0x4e, 0x3c, 0x51, 0xfa, 0x6a, 0x01, 0x09, - 0x05, 0xdc, 0x44, 0xb2, 0xa4, 0x16, 0x2c, 0x3f, 0xc0, 0xde, 0xfa, 0xc6, 0x63, 0xc1, 0x69, 0xbc, - 0x0f, 0xc0, 0x2c, 0xd7, 0x6a, 0xdb, 0xbe, 0x04, 0x8a, 0xac, 0x47, 0x74, 0x89, 0xfa, 0x43, 0xaa, - 0x7e, 0xe4, 0x2f, 0x57, 0xee, 0xc3, 0x8a, 0x60, 0x3d, 0x2e, 0xf6, 0x6d, 0x98, 0x89, 0x7c, 0x11, - 0x46, 0xeb, 0xa7, 0xfe, 0xba, 0x97, 0x0a, 0xae, 0xab, 0x4c, 0x3b, 0xf1, 0x01, 0x57, 0xfe, 0x27, - 0x09, 0x66, 0x15, 0xac, 0x75, 0xbb, 0x26, 0x8b, 0xc6, 0x82, 0xfd, 0xcd, 0xc3, 0x08, 0x2f, 0x4c, - 0xb0, 0x3b, 0x8e, 0xff, 0x12, 0x7f, 0xf7, 0xf2, 0xf3, 0xb9, 0xe0, 0x8e, 0x19, 0xf6, 0xc8, 0x0b, - 0x30, 0x37, 0xb0, 0x35, 0xee, 0x52, 0xfe, 0x4c, 0x82, 0x25, 0x05, 0xb7, 0x1d, 0xec, 0xee, 0x05, - 0x35, 0x1a, 0x22, 0x8d, 0x2f, 0xe0, 0xde, 0xe5, 0x3a, 0x9c, 0x4d, 0x67, 0x95, 0xef, 0xe5, 0xb7, - 0x87, 0x60, 0x5e, 0xc1, 0x9a, 0xbe, 0xbe, 0xf1, 0x78, 0x50, 0x45, 0xaf, 0xc3, 0xe9, 0xa0, 0x2d, - 0xa2, 0x72, 0xed, 0x7c, 0xe6, 0x45, 0xbd, 0xf1, 0x98, 0x3a, 0x37, 0x0a, 0x2c, 0x7a, 0xbe, 0x24, - 0x23, 0xb9, 0x52, 0x5a, 0x24, 0x77, 0x13, 0xaa, 0x86, 0x45, 0x20, 0x8c, 0x03, 0xac, 0x62, 0x2b, - 0xf0, 0x13, 0x61, 0x0c, 0x33, 0x17, 0xcc, 0xdf, 0xb3, 0x7c, 0x9b, 0x6e, 0xea, 0x44, 0xbc, 0x5d, - 0x02, 0xe7, 0x1a, 0x1f, 0xb3, 0x40, 0x66, 0x58, 0x19, 0x23, 0x03, 0x5b, 0xc6, 0xc7, 0x18, 0x5d, - 0x84, 0x29, 0xda, 0x11, 0x41, 0x21, 0x58, 0xe1, 0x7e, 0x84, 0x16, 0xee, 0x69, 0xa3, 0xc4, 0xa6, - 0xb6, 0x8b, 0x59, 0x4f, 0xde, 0xdf, 0x4b, 0xb0, 0x90, 0x90, 0x47, 0xf0, 0x98, 0x3c, 0x86, 0x40, - 0x52, 0xed, 0x6e, 0xe8, 0x84, 0x76, 0x97, 0xb6, 0x9d, 0x52, 0xda, 0x76, 0xfe, 0x4e, 0x82, 0x85, - 0xcd, 0x9e, 0xb3, 0x8b, 0xbf, 0xfc, 0xe7, 0x2b, 0xd7, 0xa0, 0x9a, 0xdc, 0x0a, 0x57, 0xe3, 0xef, - 0x0f, 0xc1, 0xc2, 0x43, 0xfc, 0x7f, 0x62, 0x9f, 0xff, 0x3b, 0x7a, 0x7c, 0x17, 0xaa, 0x49, 0x79, - 0x70, 0x3d, 0x4e, 0xa1, 0x21, 0xa5, 0xd1, 0xf8, 0x55, 0x09, 0xce, 0x7e, 0x60, 0x7b, 0x46, 0xbb, - 0x4f, 0xc2, 0x53, 0xfb, 0x00, 0x3b, 0x0f, 0x35, 0x12, 0x7b, 0x06, 0x92, 0xd5, 0x60, 0xbe, 0xcd, - 0x67, 0xd4, 0x0e, 0x9d, 0x52, 0x63, 0x4f, 0x8c, 0xcc, 0x0b, 0x2d, 0x4e, 0x8f, 0xbd, 0x32, 0x66, - 0xdb, 0xc9, 0x41, 0x57, 0x3e, 0x0f, 0xe7, 0x32, 0x58, 0x60, 0x9b, 0xb9, 0xf6, 0x93, 0xaf, 0x03, - 0xf0, 0xa8, 0xe5, 0xce, 0x66, 0x13, 0x7d, 0x4f, 0x82, 0xf9, 0xf4, 0xaf, 0xfa, 0xd0, 0x8d, 0xcc, - 0x07, 0x86, 0xf0, 0xbb, 0xc2, 0xda, 0xcd, 0x23, 0xe3, 0x71, 0x39, 0xff, 0x96, 0x04, 0x0b, 0x19, - 0xdf, 0x4b, 0x22, 0x01, 0x51, 0xe1, 0x17, 0xa4, 0xb5, 0x5b, 0x47, 0x47, 0xe4, 0xec, 0xfc, 0x89, - 0x04, 0xcb, 0x79, 0x9f, 0x3e, 0xa2, 0x6f, 0xe7, 0x91, 0xcf, 0xfb, 0x0c, 0xb3, 0x76, 0xe7, 0x04, - 0x14, 0x38, 0xa7, 0xe4, 0x10, 0xd3, 0x3f, 0x6a, 0x14, 0x1c, 0xa2, 0xf0, 0x63, 0x4a, 0xc1, 0x21, - 0xe6, 0x7c, 0x3d, 0xf9, 0x07, 0x12, 0xd4, 0xb2, 0x3f, 0x49, 0x44, 0xd9, 0x4d, 0x08, 0xb9, 0x9f, - 0x44, 0xd6, 0xbe, 0x79, 0x2c, 0x5c, 0xce, 0xd7, 0x0f, 0x24, 0x58, 0xcc, 0xfc, 0xe0, 0x10, 0xbd, - 0x95, 0x49, 0x3a, 0xef, 0x7b, 0xc7, 0xda, 0xed, 0xe3, 0xa0, 0x72, 0xa6, 0x2c, 0x98, 0x8c, 0x7d, - 0x89, 0x86, 0x5e, 0xcb, 0x24, 0x96, 0xf6, 0xc1, 0x5b, 0xad, 0x51, 0x14, 0x9c, 0xaf, 0xf7, 0x1d, - 0x09, 0xce, 0xa4, 0x7c, 0xce, 0x85, 0xae, 0x8b, 0x4f, 0x3b, 0xf5, 0x03, 0xb2, 0xda, 0x1b, 0x47, - 0x43, 0xe2, 0x2c, 0x78, 0x30, 0x35, 0xf0, 0xe9, 0x14, 0xba, 0x22, 0x8a, 0x64, 0x52, 0x52, 0x67, - 0xb5, 0xd7, 0x8b, 0x23, 0xf0, 0x55, 0x0f, 0x61, 0x7a, 0xf0, 0xcb, 0x01, 0x94, 0x4d, 0x25, 0xe3, - 0xdb, 0x8a, 0xda, 0xd5, 0x23, 0x60, 0x44, 0xd4, 0x2e, 0xb3, 0xbd, 0x46, 0xa0, 0x76, 0x79, 0x4d, - 0xcd, 0xb5, 0x13, 0x74, 0xf3, 0xa0, 0x3f, 0x92, 0xc8, 0x2b, 0x37, 0xbb, 0xfb, 0x06, 0xbd, 0x7d, - 0xcc, 0xa6, 0x1d, 0xc6, 0xda, 0x3b, 0x27, 0x6a, 0xf9, 0xe1, 0x22, 0xcb, 0x68, 0x51, 0x11, 0x8a, - 0x4c, 0xdc, 0x20, 0x23, 0x14, 0x59, 0x4e, 0x47, 0x4c, 0xe4, 0x1c, 0x53, 0x7a, 0x01, 0x73, 0xcf, - 0x31, 0xbb, 0x0b, 0x33, 0xf7, 0x1c, 0x45, 0xad, 0x87, 0x91, 0x73, 0x4c, 0xed, 0x12, 0xc9, 0x3f, - 0x47, 0x51, 0xa7, 0x4a, 0xfe, 0x39, 0x0a, 0x5b, 0x53, 0xa2, 0xe7, 0x98, 0x6c, 0x04, 0xc9, 0x3f, - 0xc7, 0xcc, 0x36, 0x94, 0xfc, 0x73, 0xcc, 0xee, 0x3b, 0x41, 0x3f, 0xa4, 0xb1, 0x68, 0x66, 0x87, - 0x07, 0xfa, 0xe6, 0x91, 0xf6, 0x1c, 0xef, 0x31, 0xa9, 0xbd, 0x7d, 0x3c, 0xe4, 0x18, 0x6b, 0x99, - 0xed, 0x4d, 0x42, 0xd6, 0xf2, 0x1a, 0xac, 0x84, 0xac, 0xe5, 0x77, 0x54, 0xfd, 0xb1, 0x04, 0x75, - 0x71, 0x53, 0x02, 0xfa, 0x96, 0x60, 0x81, 0x02, 0xcd, 0x1d, 0xb5, 0x77, 0x8f, 0x8d, 0xcf, 0x79, - 0xfc, 0x1d, 0x09, 0xaa, 0x59, 0xdd, 0x2d, 0xe8, 0x96, 0x80, 0xba, 0xb0, 0x8d, 0xa7, 0xf6, 0xd6, - 0x31, 0x30, 0x39, 0x47, 0xbf, 0x2e, 0xc1, 0x6c, 0x5a, 0x83, 0x03, 0xca, 0xbe, 0x39, 0x05, 0xed, - 0x1c, 0xb5, 0x37, 0x8f, 0x88, 0xc5, 0xb9, 0xf8, 0x11, 0xfd, 0xef, 0x1b, 0x82, 0xfa, 0x3e, 0x7a, - 0x27, 0x47, 0x37, 0xc4, 0xdd, 0x17, 0xb5, 0x6f, 0x1d, 0x17, 0x9d, 0x33, 0xf8, 0x31, 0xcc, 0x24, - 0x2a, 0xdd, 0xe8, 0xaa, 0x80, 0x68, 0x7a, 0x07, 0x42, 0xed, 0xda, 0x51, 0x50, 0xc2, 0xd7, 0xc8, - 0x40, 0xd5, 0x5a, 0xf0, 0x1a, 0x49, 0xaf, 0xb8, 0x0b, 0x5e, 0x23, 0x19, 0x05, 0x71, 0xb4, 0x0f, - 0xe5, 0x68, 0xc9, 0x10, 0x7d, 0x43, 0x48, 0x61, 0xa0, 0x6c, 0x5e, 0x7b, 0xad, 0x20, 0x74, 0x44, - 0x0b, 0xd3, 0x6a, 0x7e, 0x02, 0x2d, 0x14, 0x94, 0x2d, 0x05, 0x5a, 0x28, 0x2c, 0x2c, 0x92, 0x97, - 0x67, 0x4a, 0xd1, 0x4c, 0xf0, 0xf2, 0xcc, 0x2e, 0x0b, 0xd6, 0xde, 0x38, 0x1a, 0x52, 0xd0, 0x19, - 0x0d, 0x61, 0x09, 0x0a, 0x5d, 0xce, 0xa4, 0x91, 0xa8, 0x6b, 0xd5, 0x5e, 0x2d, 0x04, 0x1b, 0x2e, - 0x13, 0xd6, 0x7f, 0x04, 0xcb, 0x24, 0xea, 0x5e, 0x82, 0x65, 0x92, 0x05, 0x25, 0xb6, 0x8c, 0x5f, - 0xbd, 0x11, 0x2e, 0x33, 0x50, 0x74, 0x12, 0x2e, 0x33, 0x58, 0x0e, 0x22, 0x11, 0x4a, 0xac, 0xf0, - 0x22, 0x88, 0x50, 0xd2, 0xaa, 0x46, 0x82, 0x08, 0x25, 0xbd, 0x9e, 0xf3, 0x3d, 0xf6, 0x0f, 0x25, - 0x52, 0x32, 0xf3, 0x82, 0x50, 0x56, 0x58, 0xc8, 0x11, 0x84, 0xb2, 0x39, 0x95, 0x17, 0xf2, 0x80, - 0xc9, 0x2c, 0x14, 0x08, 0x1e, 0x30, 0x79, 0xc5, 0x0c, 0xc1, 0x03, 0x26, 0xbf, 0x2e, 0x61, 0xc1, - 0x64, 0x2c, 0xcb, 0x2e, 0x38, 0x90, 0xb4, 0x42, 0x83, 0xe0, 0x40, 0x52, 0x93, 0xf7, 0xd4, 0x7d, - 0xa4, 0x65, 0xc4, 0x91, 0x28, 0xfc, 0xcb, 0xcc, 0xf5, 0x0b, 0xdc, 0x87, 0x28, 0xed, 0x4e, 0xfc, - 0xf4, 0x40, 0x96, 0x59, 0xe0, 0xa7, 0xd3, 0xf3, 0xf3, 0x02, 0x3f, 0x9d, 0x95, 0xc0, 0x26, 0x51, - 0xe3, 0x40, 0x06, 0x55, 0x14, 0x35, 0xa6, 0xe7, 0x8d, 0x45, 0x51, 0x63, 0x46, 0x7a, 0x96, 0x2c, - 0x3c, 0x98, 0x8d, 0x14, 0x2c, 0x9c, 0x91, 0xc8, 0x15, 0x2c, 0x9c, 0x99, 0xea, 0xfc, 0x0d, 0x09, - 0xe6, 0x52, 0xf3, 0x87, 0x28, 0xfb, 0xe0, 0x44, 0x29, 0xcf, 0xda, 0x8d, 0xa3, 0xa2, 0x31, 0x46, - 0xee, 0xbe, 0xfb, 0xc9, 0xa7, 0xf5, 0x53, 0x3f, 0xfd, 0xb4, 0x7e, 0xea, 0xf3, 0x4f, 0xeb, 0xd2, - 0x77, 0x5e, 0xd4, 0xa5, 0x3f, 0x7d, 0x51, 0x97, 0xfe, 0xf6, 0x45, 0x5d, 0xfa, 0xe4, 0x45, 0x5d, - 0xfa, 0xd7, 0x17, 0x75, 0xe9, 0xdf, 0x5f, 0xd4, 0x4f, 0x7d, 0xfe, 0xa2, 0x2e, 0x3d, 0xff, 0xac, - 0x7e, 0xea, 0x93, 0xcf, 0xea, 0xa7, 0x7e, 0xfa, 0x59, 0xfd, 0xd4, 0x2f, 0x8d, 0x73, 0xfa, 0x07, - 0x57, 0x77, 0x46, 0x68, 0xc1, 0xfe, 0xfa, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x95, 0xa6, 0xdb, - 0x58, 0x02, 0x54, 0x00, 0x00, -} - -func (this *StartWorkflowExecutionRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*StartWorkflowExecutionRequest) - if !ok { - that2, ok := that.(StartWorkflowExecutionRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.Request.Equal(that1.Request) { - return false - } - if this.DomainId != that1.DomainId { - return false - } - if !this.ParentExecutionInfo.Equal(that1.ParentExecutionInfo) { - return false - } - if this.Attempt != that1.Attempt { - return false +func (x *NotifyFailoverMarkersResponse) Reset() { + *x = NotifyFailoverMarkersResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[77] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if that1.ExpirationTime == nil { - if this.ExpirationTime != nil { - return false - } - } else if !this.ExpirationTime.Equal(*that1.ExpirationTime) { - return false - } - if this.ContinueAsNewInitiator != that1.ContinueAsNewInitiator { - return false - } - if !this.ContinuedFailure.Equal(that1.ContinuedFailure) { - return false - } - if !this.LastCompletionResult.Equal(that1.LastCompletionResult) { - return false - } - if this.FirstDecisionTaskBackoff != nil && that1.FirstDecisionTaskBackoff != nil { - if *this.FirstDecisionTaskBackoff != *that1.FirstDecisionTaskBackoff { - return false - } - } else if this.FirstDecisionTaskBackoff != nil { - return false - } else if that1.FirstDecisionTaskBackoff != nil { - return false - } - return true } -func (this *StartWorkflowExecutionResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*StartWorkflowExecutionResponse) - if !ok { - that2, ok := that.(StartWorkflowExecutionResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.RunId != that1.RunId { - return false - } - return true +func (x *NotifyFailoverMarkersResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (this *SignalWorkflowExecutionRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*SignalWorkflowExecutionRequest) - if !ok { - that2, ok := that.(SignalWorkflowExecutionRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.Request.Equal(that1.Request) { - return false - } - if this.DomainId != that1.DomainId { - return false - } - if !this.ExternalWorkflowExecution.Equal(that1.ExternalWorkflowExecution) { - return false - } - if this.ChildWorkflowOnly != that1.ChildWorkflowOnly { - return false - } - return true -} -func (this *SignalWorkflowExecutionResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } +func (*NotifyFailoverMarkersResponse) ProtoMessage() {} - that1, ok := that.(*SignalWorkflowExecutionResponse) - if !ok { - that2, ok := that.(SignalWorkflowExecutionResponse) - if ok { - that1 = &that2 - } else { - return false +func (x *NotifyFailoverMarkersResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_history_v1_service_proto_msgTypes[77] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true + return mi.MessageOf(x) } -func (this *SignalWithStartWorkflowExecutionRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*SignalWithStartWorkflowExecutionRequest) - if !ok { - that2, ok := that.(SignalWithStartWorkflowExecutionRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.Request.Equal(that1.Request) { - return false - } - if this.DomainId != that1.DomainId { - return false - } - return true -} -func (this *SignalWithStartWorkflowExecutionResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*SignalWithStartWorkflowExecutionResponse) - if !ok { - that2, ok := that.(SignalWithStartWorkflowExecutionResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.RunId != that1.RunId { - return false - } - return true -} -func (this *ResetWorkflowExecutionRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ResetWorkflowExecutionRequest) - if !ok { - that2, ok := that.(ResetWorkflowExecutionRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.Request.Equal(that1.Request) { - return false - } - if this.DomainId != that1.DomainId { - return false - } - return true -} -func (this *ResetWorkflowExecutionResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ResetWorkflowExecutionResponse) - if !ok { - that2, ok := that.(ResetWorkflowExecutionResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.RunId != that1.RunId { - return false - } - return true -} -func (this *TerminateWorkflowExecutionRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*TerminateWorkflowExecutionRequest) - if !ok { - that2, ok := that.(TerminateWorkflowExecutionRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.Request.Equal(that1.Request) { - return false - } - if this.DomainId != that1.DomainId { - return false - } - return true -} -func (this *TerminateWorkflowExecutionResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*TerminateWorkflowExecutionResponse) - if !ok { - that2, ok := that.(TerminateWorkflowExecutionResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *DescribeWorkflowExecutionRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*DescribeWorkflowExecutionRequest) - if !ok { - that2, ok := that.(DescribeWorkflowExecutionRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.Request.Equal(that1.Request) { - return false - } - if this.DomainId != that1.DomainId { - return false - } - return true -} -func (this *DescribeWorkflowExecutionResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*DescribeWorkflowExecutionResponse) - if !ok { - that2, ok := that.(DescribeWorkflowExecutionResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.ExecutionConfiguration.Equal(that1.ExecutionConfiguration) { - return false - } - if !this.WorkflowExecutionInfo.Equal(that1.WorkflowExecutionInfo) { - return false - } - if len(this.PendingActivities) != len(that1.PendingActivities) { - return false - } - for i := range this.PendingActivities { - if !this.PendingActivities[i].Equal(that1.PendingActivities[i]) { - return false - } - } - if len(this.PendingChildren) != len(that1.PendingChildren) { - return false - } - for i := range this.PendingChildren { - if !this.PendingChildren[i].Equal(that1.PendingChildren[i]) { - return false - } - } - if !this.PendingDecision.Equal(that1.PendingDecision) { - return false - } - return true -} -func (this *QueryWorkflowRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*QueryWorkflowRequest) - if !ok { - that2, ok := that.(QueryWorkflowRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.Request.Equal(that1.Request) { - return false - } - if this.DomainId != that1.DomainId { - return false - } - return true -} -func (this *QueryWorkflowResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*QueryWorkflowResponse) - if !ok { - that2, ok := that.(QueryWorkflowResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.QueryResult.Equal(that1.QueryResult) { - return false - } - if !this.QueryRejected.Equal(that1.QueryRejected) { - return false - } - return true -} -func (this *ResetStickyTaskListRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ResetStickyTaskListRequest) - if !ok { - that2, ok := that.(ResetStickyTaskListRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.Request.Equal(that1.Request) { - return false - } - if this.DomainId != that1.DomainId { - return false - } - return true -} -func (this *ResetStickyTaskListResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ResetStickyTaskListResponse) - if !ok { - that2, ok := that.(ResetStickyTaskListResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *GetMutableStateRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*GetMutableStateRequest) - if !ok { - that2, ok := that.(GetMutableStateRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.DomainId != that1.DomainId { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if this.ExpectedNextEventId != that1.ExpectedNextEventId { - return false - } - if !bytes.Equal(this.CurrentBranchToken, that1.CurrentBranchToken) { - return false - } - return true -} -func (this *GetMutableStateResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*GetMutableStateResponse) - if !ok { - that2, ok := that.(GetMutableStateResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if !this.WorkflowType.Equal(that1.WorkflowType) { - return false - } - if this.NextEventId != that1.NextEventId { - return false - } - if this.PreviousStartedEventId != that1.PreviousStartedEventId { - return false - } - if this.LastFirstEventId != that1.LastFirstEventId { - return false - } - if !this.TaskList.Equal(that1.TaskList) { - return false - } - if !this.StickyTaskList.Equal(that1.StickyTaskList) { - return false - } - if this.ClientLibraryVersion != that1.ClientLibraryVersion { - return false - } - if this.ClientFeatureVersion != that1.ClientFeatureVersion { - return false - } - if this.ClientImpl != that1.ClientImpl { - return false - } - if this.StickyTaskListScheduleToStartTimeout != nil && that1.StickyTaskListScheduleToStartTimeout != nil { - if *this.StickyTaskListScheduleToStartTimeout != *that1.StickyTaskListScheduleToStartTimeout { - return false - } - } else if this.StickyTaskListScheduleToStartTimeout != nil { - return false - } else if that1.StickyTaskListScheduleToStartTimeout != nil { - return false - } - if this.EventStoreVersion != that1.EventStoreVersion { - return false - } - if !bytes.Equal(this.CurrentBranchToken, that1.CurrentBranchToken) { - return false - } - if this.WorkflowState != that1.WorkflowState { - return false - } - if this.WorkflowCloseState != that1.WorkflowCloseState { - return false - } - if !this.VersionHistories.Equal(that1.VersionHistories) { - return false - } - if this.IsStickyTaskListEnabled != that1.IsStickyTaskListEnabled { - return false - } - return true -} -func (this *PollMutableStateRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*PollMutableStateRequest) - if !ok { - that2, ok := that.(PollMutableStateRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.DomainId != that1.DomainId { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if this.ExpectedNextEventId != that1.ExpectedNextEventId { - return false - } - if !bytes.Equal(this.CurrentBranchToken, that1.CurrentBranchToken) { - return false - } - return true -} -func (this *PollMutableStateResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*PollMutableStateResponse) - if !ok { - that2, ok := that.(PollMutableStateResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if !this.WorkflowType.Equal(that1.WorkflowType) { - return false - } - if this.NextEventId != that1.NextEventId { - return false - } - if this.PreviousStartedEventId != that1.PreviousStartedEventId { - return false - } - if this.LastFirstEventId != that1.LastFirstEventId { - return false - } - if !this.TaskList.Equal(that1.TaskList) { - return false - } - if !this.StickyTaskList.Equal(that1.StickyTaskList) { - return false - } - if this.ClientLibraryVersion != that1.ClientLibraryVersion { - return false - } - if this.ClientFeatureVersion != that1.ClientFeatureVersion { - return false - } - if this.ClientImpl != that1.ClientImpl { - return false - } - if this.StickyTaskListScheduleToStartTimeout != nil && that1.StickyTaskListScheduleToStartTimeout != nil { - if *this.StickyTaskListScheduleToStartTimeout != *that1.StickyTaskListScheduleToStartTimeout { - return false - } - } else if this.StickyTaskListScheduleToStartTimeout != nil { - return false - } else if that1.StickyTaskListScheduleToStartTimeout != nil { - return false - } - if !bytes.Equal(this.CurrentBranchToken, that1.CurrentBranchToken) { - return false - } - if !this.VersionHistories.Equal(that1.VersionHistories) { - return false - } - if this.WorkflowState != that1.WorkflowState { - return false - } - if this.WorkflowCloseState != that1.WorkflowCloseState { - return false - } - return true -} -func (this *RecordDecisionTaskStartedRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RecordDecisionTaskStartedRequest) - if !ok { - that2, ok := that.(RecordDecisionTaskStartedRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.DomainId != that1.DomainId { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if this.ScheduleId != that1.ScheduleId { - return false - } - if this.TaskId != that1.TaskId { - return false - } - if this.RequestId != that1.RequestId { - return false - } - if !this.PollRequest.Equal(that1.PollRequest) { - return false - } - return true -} -func (this *RecordDecisionTaskStartedResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RecordDecisionTaskStartedResponse) - if !ok { - that2, ok := that.(RecordDecisionTaskStartedResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.WorkflowType.Equal(that1.WorkflowType) { - return false - } - if this.PreviousStartedEventId != that1.PreviousStartedEventId { - return false - } - if this.ScheduledEventId != that1.ScheduledEventId { - return false - } - if this.StartedEventId != that1.StartedEventId { - return false - } - if this.NextEventId != that1.NextEventId { - return false - } - if this.Attempt != that1.Attempt { - return false - } - if this.StickyExecutionEnabled != that1.StickyExecutionEnabled { - return false - } - if !this.DecisionInfo.Equal(that1.DecisionInfo) { - return false - } - if !this.WorkflowExecutionTaskList.Equal(that1.WorkflowExecutionTaskList) { - return false - } - if this.EventStoreVersion != that1.EventStoreVersion { - return false - } - if !bytes.Equal(this.BranchToken, that1.BranchToken) { - return false - } - if that1.ScheduledTime == nil { - if this.ScheduledTime != nil { - return false - } - } else if !this.ScheduledTime.Equal(*that1.ScheduledTime) { - return false - } - if that1.StartedTime == nil { - if this.StartedTime != nil { - return false - } - } else if !this.StartedTime.Equal(*that1.StartedTime) { - return false - } - if len(this.Queries) != len(that1.Queries) { - return false - } - for i := range this.Queries { - if !this.Queries[i].Equal(that1.Queries[i]) { - return false - } - } - return true -} -func (this *RecordActivityTaskStartedRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RecordActivityTaskStartedRequest) - if !ok { - that2, ok := that.(RecordActivityTaskStartedRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.DomainId != that1.DomainId { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if this.ScheduleId != that1.ScheduleId { - return false - } - if this.TaskId != that1.TaskId { - return false - } - if this.RequestId != that1.RequestId { - return false - } - if !this.PollRequest.Equal(that1.PollRequest) { - return false - } - return true -} -func (this *RecordActivityTaskStartedResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RecordActivityTaskStartedResponse) - if !ok { - that2, ok := that.(RecordActivityTaskStartedResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.ScheduledEvent.Equal(that1.ScheduledEvent) { - return false - } - if that1.StartedTime == nil { - if this.StartedTime != nil { - return false - } - } else if !this.StartedTime.Equal(*that1.StartedTime) { - return false - } - if this.Attempt != that1.Attempt { - return false - } - if that1.ScheduledTimeOfThisAttempt == nil { - if this.ScheduledTimeOfThisAttempt != nil { - return false - } - } else if !this.ScheduledTimeOfThisAttempt.Equal(*that1.ScheduledTimeOfThisAttempt) { - return false - } - if !this.HeartbeatDetails.Equal(that1.HeartbeatDetails) { - return false - } - if !this.WorkflowType.Equal(that1.WorkflowType) { - return false - } - if this.WorkflowDomain != that1.WorkflowDomain { - return false - } - return true -} -func (this *RespondDecisionTaskCompletedRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RespondDecisionTaskCompletedRequest) - if !ok { - that2, ok := that.(RespondDecisionTaskCompletedRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.Request.Equal(that1.Request) { - return false - } - if this.DomainId != that1.DomainId { - return false - } - return true -} -func (this *RespondDecisionTaskCompletedResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RespondDecisionTaskCompletedResponse) - if !ok { - that2, ok := that.(RespondDecisionTaskCompletedResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.StartedResponse.Equal(that1.StartedResponse) { - return false - } - if len(this.ActivitiesToDispatchLocally) != len(that1.ActivitiesToDispatchLocally) { - return false - } - for i := range this.ActivitiesToDispatchLocally { - if !this.ActivitiesToDispatchLocally[i].Equal(that1.ActivitiesToDispatchLocally[i]) { - return false - } - } - return true -} -func (this *RespondDecisionTaskFailedRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RespondDecisionTaskFailedRequest) - if !ok { - that2, ok := that.(RespondDecisionTaskFailedRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.Request.Equal(that1.Request) { - return false - } - if this.DomainId != that1.DomainId { - return false - } - return true -} -func (this *RespondDecisionTaskFailedResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RespondDecisionTaskFailedResponse) - if !ok { - that2, ok := that.(RespondDecisionTaskFailedResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *RecordActivityTaskHeartbeatRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RecordActivityTaskHeartbeatRequest) - if !ok { - that2, ok := that.(RecordActivityTaskHeartbeatRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.Request.Equal(that1.Request) { - return false - } - if this.DomainId != that1.DomainId { - return false - } - return true -} -func (this *RecordActivityTaskHeartbeatResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RecordActivityTaskHeartbeatResponse) - if !ok { - that2, ok := that.(RecordActivityTaskHeartbeatResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.CancelRequested != that1.CancelRequested { - return false - } - return true -} -func (this *RespondActivityTaskCompletedRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RespondActivityTaskCompletedRequest) - if !ok { - that2, ok := that.(RespondActivityTaskCompletedRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.Request.Equal(that1.Request) { - return false - } - if this.DomainId != that1.DomainId { - return false - } - return true -} -func (this *RespondActivityTaskCompletedResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RespondActivityTaskCompletedResponse) - if !ok { - that2, ok := that.(RespondActivityTaskCompletedResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *RespondActivityTaskFailedRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RespondActivityTaskFailedRequest) - if !ok { - that2, ok := that.(RespondActivityTaskFailedRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.Request.Equal(that1.Request) { - return false - } - if this.DomainId != that1.DomainId { - return false - } - return true -} -func (this *RespondActivityTaskFailedResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RespondActivityTaskFailedResponse) - if !ok { - that2, ok := that.(RespondActivityTaskFailedResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *RespondActivityTaskCanceledRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RespondActivityTaskCanceledRequest) - if !ok { - that2, ok := that.(RespondActivityTaskCanceledRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.Request.Equal(that1.Request) { - return false - } - if this.DomainId != that1.DomainId { - return false - } - return true -} -func (this *RespondActivityTaskCanceledResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RespondActivityTaskCanceledResponse) - if !ok { - that2, ok := that.(RespondActivityTaskCanceledResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *RemoveSignalMutableStateRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RemoveSignalMutableStateRequest) - if !ok { - that2, ok := that.(RemoveSignalMutableStateRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.DomainId != that1.DomainId { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if this.RequestId != that1.RequestId { - return false - } - return true -} -func (this *RemoveSignalMutableStateResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RemoveSignalMutableStateResponse) - if !ok { - that2, ok := that.(RemoveSignalMutableStateResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *RequestCancelWorkflowExecutionRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RequestCancelWorkflowExecutionRequest) - if !ok { - that2, ok := that.(RequestCancelWorkflowExecutionRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.DomainId != that1.DomainId { - return false - } - if !this.CancelRequest.Equal(that1.CancelRequest) { - return false - } - if this.ExternalInitiatedEventId != that1.ExternalInitiatedEventId { - return false - } - if !this.ExternalWorkflowExecution.Equal(that1.ExternalWorkflowExecution) { - return false - } - if this.ChildWorkflowOnly != that1.ChildWorkflowOnly { - return false - } - return true -} -func (this *RequestCancelWorkflowExecutionResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RequestCancelWorkflowExecutionResponse) - if !ok { - that2, ok := that.(RequestCancelWorkflowExecutionResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *ScheduleDecisionTaskRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ScheduleDecisionTaskRequest) - if !ok { - that2, ok := that.(ScheduleDecisionTaskRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.DomainId != that1.DomainId { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if this.IsFirstDecision != that1.IsFirstDecision { - return false - } - return true -} -func (this *ScheduleDecisionTaskResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ScheduleDecisionTaskResponse) - if !ok { - that2, ok := that.(ScheduleDecisionTaskResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *RecordChildExecutionCompletedRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RecordChildExecutionCompletedRequest) - if !ok { - that2, ok := that.(RecordChildExecutionCompletedRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.DomainId != that1.DomainId { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if this.InitiatedId != that1.InitiatedId { - return false - } - if !this.CompletedExecution.Equal(that1.CompletedExecution) { - return false - } - if !this.CompletionEvent.Equal(that1.CompletionEvent) { - return false - } - return true -} -func (this *RecordChildExecutionCompletedResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RecordChildExecutionCompletedResponse) - if !ok { - that2, ok := that.(RecordChildExecutionCompletedResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *ReplicateEventsV2Request) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ReplicateEventsV2Request) - if !ok { - that2, ok := that.(ReplicateEventsV2Request) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.DomainId != that1.DomainId { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if len(this.VersionHistoryItems) != len(that1.VersionHistoryItems) { - return false - } - for i := range this.VersionHistoryItems { - if !this.VersionHistoryItems[i].Equal(that1.VersionHistoryItems[i]) { - return false - } - } - if !this.Events.Equal(that1.Events) { - return false - } - if !this.NewRunEvents.Equal(that1.NewRunEvents) { - return false - } - return true -} -func (this *ReplicateEventsV2Response) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ReplicateEventsV2Response) - if !ok { - that2, ok := that.(ReplicateEventsV2Response) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *SyncShardStatusRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*SyncShardStatusRequest) - if !ok { - that2, ok := that.(SyncShardStatusRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.SourceCluster != that1.SourceCluster { - return false - } - if this.ShardId != that1.ShardId { - return false - } - if that1.Time == nil { - if this.Time != nil { - return false - } - } else if !this.Time.Equal(*that1.Time) { - return false - } - return true -} -func (this *SyncShardStatusResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*SyncShardStatusResponse) - if !ok { - that2, ok := that.(SyncShardStatusResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *SyncActivityRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*SyncActivityRequest) - if !ok { - that2, ok := that.(SyncActivityRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.DomainId != that1.DomainId { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if this.Version != that1.Version { - return false - } - if this.ScheduledId != that1.ScheduledId { - return false - } - if that1.ScheduledTime == nil { - if this.ScheduledTime != nil { - return false - } - } else if !this.ScheduledTime.Equal(*that1.ScheduledTime) { - return false - } - if this.StartedId != that1.StartedId { - return false - } - if that1.StartedTime == nil { - if this.StartedTime != nil { - return false - } - } else if !this.StartedTime.Equal(*that1.StartedTime) { - return false - } - if that1.LastHeartbeatTime == nil { - if this.LastHeartbeatTime != nil { - return false - } - } else if !this.LastHeartbeatTime.Equal(*that1.LastHeartbeatTime) { - return false - } - if !this.Details.Equal(that1.Details) { - return false - } - if this.Attempt != that1.Attempt { - return false - } - if !this.LastFailure.Equal(that1.LastFailure) { - return false - } - if this.LastWorkerIdentity != that1.LastWorkerIdentity { - return false - } - if !this.VersionHistory.Equal(that1.VersionHistory) { - return false - } - return true -} -func (this *SyncActivityResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*SyncActivityResponse) - if !ok { - that2, ok := that.(SyncActivityResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *DescribeMutableStateRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*DescribeMutableStateRequest) - if !ok { - that2, ok := that.(DescribeMutableStateRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.DomainId != that1.DomainId { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - return true -} -func (this *DescribeMutableStateResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*DescribeMutableStateResponse) - if !ok { - that2, ok := that.(DescribeMutableStateResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.MutableStateInCache != that1.MutableStateInCache { - return false - } - if this.MutableStateInDatabase != that1.MutableStateInDatabase { - return false - } - return true -} -func (this *DescribeHistoryHostRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*DescribeHistoryHostRequest) - if !ok { - that2, ok := that.(DescribeHistoryHostRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.HostAddress != that1.HostAddress { - return false - } - if this.ShardId != that1.ShardId { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - return true -} -func (this *DescribeHistoryHostResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*DescribeHistoryHostResponse) - if !ok { - that2, ok := that.(DescribeHistoryHostResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.NumberOfShards != that1.NumberOfShards { - return false - } - if len(this.ShardIds) != len(that1.ShardIds) { - return false - } - for i := range this.ShardIds { - if this.ShardIds[i] != that1.ShardIds[i] { - return false - } - } - if !this.DomainCache.Equal(that1.DomainCache) { - return false - } - if this.ShardControllerStatus != that1.ShardControllerStatus { - return false - } - if this.Address != that1.Address { - return false - } - return true -} -func (this *CloseShardRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*CloseShardRequest) - if !ok { - that2, ok := that.(CloseShardRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.ShardId != that1.ShardId { - return false - } - return true -} -func (this *CloseShardResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*CloseShardResponse) - if !ok { - that2, ok := that.(CloseShardResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *RemoveTaskRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RemoveTaskRequest) - if !ok { - that2, ok := that.(RemoveTaskRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.ShardId != that1.ShardId { - return false - } - if this.TaskType != that1.TaskType { - return false - } - if this.TaskId != that1.TaskId { - return false - } - if that1.VisibilityTime == nil { - if this.VisibilityTime != nil { - return false - } - } else if !this.VisibilityTime.Equal(*that1.VisibilityTime) { - return false - } - return true -} -func (this *RemoveTaskResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RemoveTaskResponse) - if !ok { - that2, ok := that.(RemoveTaskResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *ResetQueueRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ResetQueueRequest) - if !ok { - that2, ok := that.(ResetQueueRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.ShardId != that1.ShardId { - return false - } - if this.ClusterName != that1.ClusterName { - return false - } - if this.TaskType != that1.TaskType { - return false - } - return true -} -func (this *ResetQueueResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ResetQueueResponse) - if !ok { - that2, ok := that.(ResetQueueResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *DescribeQueueRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*DescribeQueueRequest) - if !ok { - that2, ok := that.(DescribeQueueRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.ShardId != that1.ShardId { - return false - } - if this.ClusterName != that1.ClusterName { - return false - } - if this.TaskType != that1.TaskType { - return false - } - return true -} -func (this *DescribeQueueResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*DescribeQueueResponse) - if !ok { - that2, ok := that.(DescribeQueueResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if len(this.ProcessingQueueStates) != len(that1.ProcessingQueueStates) { - return false - } - for i := range this.ProcessingQueueStates { - if this.ProcessingQueueStates[i] != that1.ProcessingQueueStates[i] { - return false - } - } - return true -} -func (this *GetReplicationMessagesRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*GetReplicationMessagesRequest) - if !ok { - that2, ok := that.(GetReplicationMessagesRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if len(this.Tokens) != len(that1.Tokens) { - return false - } - for i := range this.Tokens { - if !this.Tokens[i].Equal(that1.Tokens[i]) { - return false - } - } - if this.ClusterName != that1.ClusterName { - return false - } - return true -} -func (this *GetReplicationMessagesResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*GetReplicationMessagesResponse) - if !ok { - that2, ok := that.(GetReplicationMessagesResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if len(this.ShardMessages) != len(that1.ShardMessages) { - return false - } - for i := range this.ShardMessages { - if !this.ShardMessages[i].Equal(that1.ShardMessages[i]) { - return false - } - } - return true -} -func (this *GetDLQReplicationMessagesRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*GetDLQReplicationMessagesRequest) - if !ok { - that2, ok := that.(GetDLQReplicationMessagesRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if len(this.TaskInfos) != len(that1.TaskInfos) { - return false - } - for i := range this.TaskInfos { - if !this.TaskInfos[i].Equal(that1.TaskInfos[i]) { - return false - } - } - return true -} -func (this *GetDLQReplicationMessagesResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*GetDLQReplicationMessagesResponse) - if !ok { - that2, ok := that.(GetDLQReplicationMessagesResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if len(this.ReplicationTasks) != len(that1.ReplicationTasks) { - return false - } - for i := range this.ReplicationTasks { - if !this.ReplicationTasks[i].Equal(that1.ReplicationTasks[i]) { - return false - } - } - return true -} -func (this *ReapplyEventsRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ReapplyEventsRequest) - if !ok { - that2, ok := that.(ReapplyEventsRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if this.DomainId != that1.DomainId { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if !this.Events.Equal(that1.Events) { - return false - } - return true -} -func (this *ReapplyEventsResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ReapplyEventsResponse) - if !ok { - that2, ok := that.(ReapplyEventsResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *RefreshWorkflowTasksRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RefreshWorkflowTasksRequest) - if !ok { - that2, ok := that.(RefreshWorkflowTasksRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if this.DomainId != that1.DomainId { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - return true -} -func (this *RefreshWorkflowTasksResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RefreshWorkflowTasksResponse) - if !ok { - that2, ok := that.(RefreshWorkflowTasksResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *ReadDLQMessagesRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ReadDLQMessagesRequest) - if !ok { - that2, ok := that.(ReadDLQMessagesRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Type != that1.Type { - return false - } - if this.ShardId != that1.ShardId { - return false - } - if this.SourceCluster != that1.SourceCluster { - return false - } - if this.InclusiveEndMessageId != that1.InclusiveEndMessageId { - return false - } - if this.PageSize != that1.PageSize { - return false - } - if !bytes.Equal(this.NextPageToken, that1.NextPageToken) { - return false - } - return true -} -func (this *ReadDLQMessagesResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ReadDLQMessagesResponse) - if !ok { - that2, ok := that.(ReadDLQMessagesResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Type != that1.Type { - return false - } - if len(this.ReplicationTasks) != len(that1.ReplicationTasks) { - return false - } - for i := range this.ReplicationTasks { - if !this.ReplicationTasks[i].Equal(that1.ReplicationTasks[i]) { - return false - } - } - if !bytes.Equal(this.NextPageToken, that1.NextPageToken) { - return false - } - return true -} -func (this *PurgeDLQMessagesRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*PurgeDLQMessagesRequest) - if !ok { - that2, ok := that.(PurgeDLQMessagesRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Type != that1.Type { - return false - } - if this.ShardId != that1.ShardId { - return false - } - if this.SourceCluster != that1.SourceCluster { - return false - } - if this.InclusiveEndMessageId != that1.InclusiveEndMessageId { - return false - } - return true -} -func (this *PurgeDLQMessagesResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*PurgeDLQMessagesResponse) - if !ok { - that2, ok := that.(PurgeDLQMessagesResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *MergeDLQMessagesRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*MergeDLQMessagesRequest) - if !ok { - that2, ok := that.(MergeDLQMessagesRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Type != that1.Type { - return false - } - if this.ShardId != that1.ShardId { - return false - } - if this.SourceCluster != that1.SourceCluster { - return false - } - if this.InclusiveEndMessageId != that1.InclusiveEndMessageId { - return false - } - if this.PageSize != that1.PageSize { - return false - } - if !bytes.Equal(this.NextPageToken, that1.NextPageToken) { - return false - } - return true -} -func (this *MergeDLQMessagesResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*MergeDLQMessagesResponse) - if !ok { - that2, ok := that.(MergeDLQMessagesResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !bytes.Equal(this.NextPageToken, that1.NextPageToken) { - return false - } - return true -} -func (this *NotifyFailoverMarkersRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*NotifyFailoverMarkersRequest) - if !ok { - that2, ok := that.(NotifyFailoverMarkersRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if len(this.FailoverMarkerTokens) != len(that1.FailoverMarkerTokens) { - return false - } - for i := range this.FailoverMarkerTokens { - if !this.FailoverMarkerTokens[i].Equal(that1.FailoverMarkerTokens[i]) { - return false - } - } - return true -} -func (this *NotifyFailoverMarkersResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*NotifyFailoverMarkersResponse) - if !ok { - that2, ok := that.(NotifyFailoverMarkersResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *StartWorkflowExecutionRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 13) - s = append(s, "&historyv1.StartWorkflowExecutionRequest{") - if this.Request != nil { - s = append(s, "Request: "+fmt.Sprintf("%#v", this.Request)+",\n") - } - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - if this.ParentExecutionInfo != nil { - s = append(s, "ParentExecutionInfo: "+fmt.Sprintf("%#v", this.ParentExecutionInfo)+",\n") - } - s = append(s, "Attempt: "+fmt.Sprintf("%#v", this.Attempt)+",\n") - s = append(s, "ExpirationTime: "+fmt.Sprintf("%#v", this.ExpirationTime)+",\n") - s = append(s, "ContinueAsNewInitiator: "+fmt.Sprintf("%#v", this.ContinueAsNewInitiator)+",\n") - if this.ContinuedFailure != nil { - s = append(s, "ContinuedFailure: "+fmt.Sprintf("%#v", this.ContinuedFailure)+",\n") - } - if this.LastCompletionResult != nil { - s = append(s, "LastCompletionResult: "+fmt.Sprintf("%#v", this.LastCompletionResult)+",\n") - } - s = append(s, "FirstDecisionTaskBackoff: "+fmt.Sprintf("%#v", this.FirstDecisionTaskBackoff)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *StartWorkflowExecutionResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&historyv1.StartWorkflowExecutionResponse{") - s = append(s, "RunId: "+fmt.Sprintf("%#v", this.RunId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *SignalWorkflowExecutionRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 8) - s = append(s, "&historyv1.SignalWorkflowExecutionRequest{") - if this.Request != nil { - s = append(s, "Request: "+fmt.Sprintf("%#v", this.Request)+",\n") - } - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - if this.ExternalWorkflowExecution != nil { - s = append(s, "ExternalWorkflowExecution: "+fmt.Sprintf("%#v", this.ExternalWorkflowExecution)+",\n") - } - s = append(s, "ChildWorkflowOnly: "+fmt.Sprintf("%#v", this.ChildWorkflowOnly)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *SignalWorkflowExecutionResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&historyv1.SignalWorkflowExecutionResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *SignalWithStartWorkflowExecutionRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&historyv1.SignalWithStartWorkflowExecutionRequest{") - if this.Request != nil { - s = append(s, "Request: "+fmt.Sprintf("%#v", this.Request)+",\n") - } - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *SignalWithStartWorkflowExecutionResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&historyv1.SignalWithStartWorkflowExecutionResponse{") - s = append(s, "RunId: "+fmt.Sprintf("%#v", this.RunId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ResetWorkflowExecutionRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&historyv1.ResetWorkflowExecutionRequest{") - if this.Request != nil { - s = append(s, "Request: "+fmt.Sprintf("%#v", this.Request)+",\n") - } - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ResetWorkflowExecutionResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&historyv1.ResetWorkflowExecutionResponse{") - s = append(s, "RunId: "+fmt.Sprintf("%#v", this.RunId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *TerminateWorkflowExecutionRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&historyv1.TerminateWorkflowExecutionRequest{") - if this.Request != nil { - s = append(s, "Request: "+fmt.Sprintf("%#v", this.Request)+",\n") - } - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *TerminateWorkflowExecutionResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&historyv1.TerminateWorkflowExecutionResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DescribeWorkflowExecutionRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&historyv1.DescribeWorkflowExecutionRequest{") - if this.Request != nil { - s = append(s, "Request: "+fmt.Sprintf("%#v", this.Request)+",\n") - } - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DescribeWorkflowExecutionResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 9) - s = append(s, "&historyv1.DescribeWorkflowExecutionResponse{") - if this.ExecutionConfiguration != nil { - s = append(s, "ExecutionConfiguration: "+fmt.Sprintf("%#v", this.ExecutionConfiguration)+",\n") - } - if this.WorkflowExecutionInfo != nil { - s = append(s, "WorkflowExecutionInfo: "+fmt.Sprintf("%#v", this.WorkflowExecutionInfo)+",\n") - } - if this.PendingActivities != nil { - s = append(s, "PendingActivities: "+fmt.Sprintf("%#v", this.PendingActivities)+",\n") - } - if this.PendingChildren != nil { - s = append(s, "PendingChildren: "+fmt.Sprintf("%#v", this.PendingChildren)+",\n") - } - if this.PendingDecision != nil { - s = append(s, "PendingDecision: "+fmt.Sprintf("%#v", this.PendingDecision)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *QueryWorkflowRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&historyv1.QueryWorkflowRequest{") - if this.Request != nil { - s = append(s, "Request: "+fmt.Sprintf("%#v", this.Request)+",\n") - } - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *QueryWorkflowResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&historyv1.QueryWorkflowResponse{") - if this.QueryResult != nil { - s = append(s, "QueryResult: "+fmt.Sprintf("%#v", this.QueryResult)+",\n") - } - if this.QueryRejected != nil { - s = append(s, "QueryRejected: "+fmt.Sprintf("%#v", this.QueryRejected)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ResetStickyTaskListRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&historyv1.ResetStickyTaskListRequest{") - if this.Request != nil { - s = append(s, "Request: "+fmt.Sprintf("%#v", this.Request)+",\n") - } - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ResetStickyTaskListResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&historyv1.ResetStickyTaskListResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetMutableStateRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 8) - s = append(s, "&historyv1.GetMutableStateRequest{") - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "ExpectedNextEventId: "+fmt.Sprintf("%#v", this.ExpectedNextEventId)+",\n") - s = append(s, "CurrentBranchToken: "+fmt.Sprintf("%#v", this.CurrentBranchToken)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetMutableStateResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 21) - s = append(s, "&historyv1.GetMutableStateResponse{") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - if this.WorkflowType != nil { - s = append(s, "WorkflowType: "+fmt.Sprintf("%#v", this.WorkflowType)+",\n") - } - s = append(s, "NextEventId: "+fmt.Sprintf("%#v", this.NextEventId)+",\n") - s = append(s, "PreviousStartedEventId: "+fmt.Sprintf("%#v", this.PreviousStartedEventId)+",\n") - s = append(s, "LastFirstEventId: "+fmt.Sprintf("%#v", this.LastFirstEventId)+",\n") - if this.TaskList != nil { - s = append(s, "TaskList: "+fmt.Sprintf("%#v", this.TaskList)+",\n") - } - if this.StickyTaskList != nil { - s = append(s, "StickyTaskList: "+fmt.Sprintf("%#v", this.StickyTaskList)+",\n") - } - s = append(s, "ClientLibraryVersion: "+fmt.Sprintf("%#v", this.ClientLibraryVersion)+",\n") - s = append(s, "ClientFeatureVersion: "+fmt.Sprintf("%#v", this.ClientFeatureVersion)+",\n") - s = append(s, "ClientImpl: "+fmt.Sprintf("%#v", this.ClientImpl)+",\n") - s = append(s, "StickyTaskListScheduleToStartTimeout: "+fmt.Sprintf("%#v", this.StickyTaskListScheduleToStartTimeout)+",\n") - s = append(s, "EventStoreVersion: "+fmt.Sprintf("%#v", this.EventStoreVersion)+",\n") - s = append(s, "CurrentBranchToken: "+fmt.Sprintf("%#v", this.CurrentBranchToken)+",\n") - s = append(s, "WorkflowState: "+fmt.Sprintf("%#v", this.WorkflowState)+",\n") - s = append(s, "WorkflowCloseState: "+fmt.Sprintf("%#v", this.WorkflowCloseState)+",\n") - if this.VersionHistories != nil { - s = append(s, "VersionHistories: "+fmt.Sprintf("%#v", this.VersionHistories)+",\n") - } - s = append(s, "IsStickyTaskListEnabled: "+fmt.Sprintf("%#v", this.IsStickyTaskListEnabled)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *PollMutableStateRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 8) - s = append(s, "&historyv1.PollMutableStateRequest{") - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "ExpectedNextEventId: "+fmt.Sprintf("%#v", this.ExpectedNextEventId)+",\n") - s = append(s, "CurrentBranchToken: "+fmt.Sprintf("%#v", this.CurrentBranchToken)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *PollMutableStateResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 19) - s = append(s, "&historyv1.PollMutableStateResponse{") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - if this.WorkflowType != nil { - s = append(s, "WorkflowType: "+fmt.Sprintf("%#v", this.WorkflowType)+",\n") - } - s = append(s, "NextEventId: "+fmt.Sprintf("%#v", this.NextEventId)+",\n") - s = append(s, "PreviousStartedEventId: "+fmt.Sprintf("%#v", this.PreviousStartedEventId)+",\n") - s = append(s, "LastFirstEventId: "+fmt.Sprintf("%#v", this.LastFirstEventId)+",\n") - if this.TaskList != nil { - s = append(s, "TaskList: "+fmt.Sprintf("%#v", this.TaskList)+",\n") - } - if this.StickyTaskList != nil { - s = append(s, "StickyTaskList: "+fmt.Sprintf("%#v", this.StickyTaskList)+",\n") - } - s = append(s, "ClientLibraryVersion: "+fmt.Sprintf("%#v", this.ClientLibraryVersion)+",\n") - s = append(s, "ClientFeatureVersion: "+fmt.Sprintf("%#v", this.ClientFeatureVersion)+",\n") - s = append(s, "ClientImpl: "+fmt.Sprintf("%#v", this.ClientImpl)+",\n") - s = append(s, "StickyTaskListScheduleToStartTimeout: "+fmt.Sprintf("%#v", this.StickyTaskListScheduleToStartTimeout)+",\n") - s = append(s, "CurrentBranchToken: "+fmt.Sprintf("%#v", this.CurrentBranchToken)+",\n") - if this.VersionHistories != nil { - s = append(s, "VersionHistories: "+fmt.Sprintf("%#v", this.VersionHistories)+",\n") - } - s = append(s, "WorkflowState: "+fmt.Sprintf("%#v", this.WorkflowState)+",\n") - s = append(s, "WorkflowCloseState: "+fmt.Sprintf("%#v", this.WorkflowCloseState)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RecordDecisionTaskStartedRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 10) - s = append(s, "&historyv1.RecordDecisionTaskStartedRequest{") - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "ScheduleId: "+fmt.Sprintf("%#v", this.ScheduleId)+",\n") - s = append(s, "TaskId: "+fmt.Sprintf("%#v", this.TaskId)+",\n") - s = append(s, "RequestId: "+fmt.Sprintf("%#v", this.RequestId)+",\n") - if this.PollRequest != nil { - s = append(s, "PollRequest: "+fmt.Sprintf("%#v", this.PollRequest)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RecordDecisionTaskStartedResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 18) - s = append(s, "&historyv1.RecordDecisionTaskStartedResponse{") - if this.WorkflowType != nil { - s = append(s, "WorkflowType: "+fmt.Sprintf("%#v", this.WorkflowType)+",\n") - } - s = append(s, "PreviousStartedEventId: "+fmt.Sprintf("%#v", this.PreviousStartedEventId)+",\n") - s = append(s, "ScheduledEventId: "+fmt.Sprintf("%#v", this.ScheduledEventId)+",\n") - s = append(s, "StartedEventId: "+fmt.Sprintf("%#v", this.StartedEventId)+",\n") - s = append(s, "NextEventId: "+fmt.Sprintf("%#v", this.NextEventId)+",\n") - s = append(s, "Attempt: "+fmt.Sprintf("%#v", this.Attempt)+",\n") - s = append(s, "StickyExecutionEnabled: "+fmt.Sprintf("%#v", this.StickyExecutionEnabled)+",\n") - if this.DecisionInfo != nil { - s = append(s, "DecisionInfo: "+fmt.Sprintf("%#v", this.DecisionInfo)+",\n") - } - if this.WorkflowExecutionTaskList != nil { - s = append(s, "WorkflowExecutionTaskList: "+fmt.Sprintf("%#v", this.WorkflowExecutionTaskList)+",\n") - } - s = append(s, "EventStoreVersion: "+fmt.Sprintf("%#v", this.EventStoreVersion)+",\n") - s = append(s, "BranchToken: "+fmt.Sprintf("%#v", this.BranchToken)+",\n") - s = append(s, "ScheduledTime: "+fmt.Sprintf("%#v", this.ScheduledTime)+",\n") - s = append(s, "StartedTime: "+fmt.Sprintf("%#v", this.StartedTime)+",\n") - keysForQueries := make([]string, 0, len(this.Queries)) - for k, _ := range this.Queries { - keysForQueries = append(keysForQueries, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForQueries) - mapStringForQueries := "map[string]*v1.WorkflowQuery{" - for _, k := range keysForQueries { - mapStringForQueries += fmt.Sprintf("%#v: %#v,", k, this.Queries[k]) - } - mapStringForQueries += "}" - if this.Queries != nil { - s = append(s, "Queries: "+mapStringForQueries+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RecordActivityTaskStartedRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 10) - s = append(s, "&historyv1.RecordActivityTaskStartedRequest{") - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "ScheduleId: "+fmt.Sprintf("%#v", this.ScheduleId)+",\n") - s = append(s, "TaskId: "+fmt.Sprintf("%#v", this.TaskId)+",\n") - s = append(s, "RequestId: "+fmt.Sprintf("%#v", this.RequestId)+",\n") - if this.PollRequest != nil { - s = append(s, "PollRequest: "+fmt.Sprintf("%#v", this.PollRequest)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RecordActivityTaskStartedResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 11) - s = append(s, "&historyv1.RecordActivityTaskStartedResponse{") - if this.ScheduledEvent != nil { - s = append(s, "ScheduledEvent: "+fmt.Sprintf("%#v", this.ScheduledEvent)+",\n") - } - s = append(s, "StartedTime: "+fmt.Sprintf("%#v", this.StartedTime)+",\n") - s = append(s, "Attempt: "+fmt.Sprintf("%#v", this.Attempt)+",\n") - s = append(s, "ScheduledTimeOfThisAttempt: "+fmt.Sprintf("%#v", this.ScheduledTimeOfThisAttempt)+",\n") - if this.HeartbeatDetails != nil { - s = append(s, "HeartbeatDetails: "+fmt.Sprintf("%#v", this.HeartbeatDetails)+",\n") - } - if this.WorkflowType != nil { - s = append(s, "WorkflowType: "+fmt.Sprintf("%#v", this.WorkflowType)+",\n") - } - s = append(s, "WorkflowDomain: "+fmt.Sprintf("%#v", this.WorkflowDomain)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RespondDecisionTaskCompletedRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&historyv1.RespondDecisionTaskCompletedRequest{") - if this.Request != nil { - s = append(s, "Request: "+fmt.Sprintf("%#v", this.Request)+",\n") - } - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RespondDecisionTaskCompletedResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&historyv1.RespondDecisionTaskCompletedResponse{") - if this.StartedResponse != nil { - s = append(s, "StartedResponse: "+fmt.Sprintf("%#v", this.StartedResponse)+",\n") - } - keysForActivitiesToDispatchLocally := make([]string, 0, len(this.ActivitiesToDispatchLocally)) - for k, _ := range this.ActivitiesToDispatchLocally { - keysForActivitiesToDispatchLocally = append(keysForActivitiesToDispatchLocally, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForActivitiesToDispatchLocally) - mapStringForActivitiesToDispatchLocally := "map[string]*v1.ActivityLocalDispatchInfo{" - for _, k := range keysForActivitiesToDispatchLocally { - mapStringForActivitiesToDispatchLocally += fmt.Sprintf("%#v: %#v,", k, this.ActivitiesToDispatchLocally[k]) - } - mapStringForActivitiesToDispatchLocally += "}" - if this.ActivitiesToDispatchLocally != nil { - s = append(s, "ActivitiesToDispatchLocally: "+mapStringForActivitiesToDispatchLocally+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RespondDecisionTaskFailedRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&historyv1.RespondDecisionTaskFailedRequest{") - if this.Request != nil { - s = append(s, "Request: "+fmt.Sprintf("%#v", this.Request)+",\n") - } - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RespondDecisionTaskFailedResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&historyv1.RespondDecisionTaskFailedResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RecordActivityTaskHeartbeatRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&historyv1.RecordActivityTaskHeartbeatRequest{") - if this.Request != nil { - s = append(s, "Request: "+fmt.Sprintf("%#v", this.Request)+",\n") - } - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RecordActivityTaskHeartbeatResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&historyv1.RecordActivityTaskHeartbeatResponse{") - s = append(s, "CancelRequested: "+fmt.Sprintf("%#v", this.CancelRequested)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RespondActivityTaskCompletedRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&historyv1.RespondActivityTaskCompletedRequest{") - if this.Request != nil { - s = append(s, "Request: "+fmt.Sprintf("%#v", this.Request)+",\n") - } - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RespondActivityTaskCompletedResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&historyv1.RespondActivityTaskCompletedResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RespondActivityTaskFailedRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&historyv1.RespondActivityTaskFailedRequest{") - if this.Request != nil { - s = append(s, "Request: "+fmt.Sprintf("%#v", this.Request)+",\n") - } - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RespondActivityTaskFailedResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&historyv1.RespondActivityTaskFailedResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RespondActivityTaskCanceledRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&historyv1.RespondActivityTaskCanceledRequest{") - if this.Request != nil { - s = append(s, "Request: "+fmt.Sprintf("%#v", this.Request)+",\n") - } - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RespondActivityTaskCanceledResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&historyv1.RespondActivityTaskCanceledResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RemoveSignalMutableStateRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&historyv1.RemoveSignalMutableStateRequest{") - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "RequestId: "+fmt.Sprintf("%#v", this.RequestId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RemoveSignalMutableStateResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&historyv1.RemoveSignalMutableStateResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RequestCancelWorkflowExecutionRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 9) - s = append(s, "&historyv1.RequestCancelWorkflowExecutionRequest{") - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - if this.CancelRequest != nil { - s = append(s, "CancelRequest: "+fmt.Sprintf("%#v", this.CancelRequest)+",\n") - } - s = append(s, "ExternalInitiatedEventId: "+fmt.Sprintf("%#v", this.ExternalInitiatedEventId)+",\n") - if this.ExternalWorkflowExecution != nil { - s = append(s, "ExternalWorkflowExecution: "+fmt.Sprintf("%#v", this.ExternalWorkflowExecution)+",\n") - } - s = append(s, "ChildWorkflowOnly: "+fmt.Sprintf("%#v", this.ChildWorkflowOnly)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RequestCancelWorkflowExecutionResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&historyv1.RequestCancelWorkflowExecutionResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ScheduleDecisionTaskRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&historyv1.ScheduleDecisionTaskRequest{") - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "IsFirstDecision: "+fmt.Sprintf("%#v", this.IsFirstDecision)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ScheduleDecisionTaskResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&historyv1.ScheduleDecisionTaskResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RecordChildExecutionCompletedRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 9) - s = append(s, "&historyv1.RecordChildExecutionCompletedRequest{") - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "InitiatedId: "+fmt.Sprintf("%#v", this.InitiatedId)+",\n") - if this.CompletedExecution != nil { - s = append(s, "CompletedExecution: "+fmt.Sprintf("%#v", this.CompletedExecution)+",\n") - } - if this.CompletionEvent != nil { - s = append(s, "CompletionEvent: "+fmt.Sprintf("%#v", this.CompletionEvent)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RecordChildExecutionCompletedResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&historyv1.RecordChildExecutionCompletedResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ReplicateEventsV2Request) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 9) - s = append(s, "&historyv1.ReplicateEventsV2Request{") - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - if this.VersionHistoryItems != nil { - s = append(s, "VersionHistoryItems: "+fmt.Sprintf("%#v", this.VersionHistoryItems)+",\n") - } - if this.Events != nil { - s = append(s, "Events: "+fmt.Sprintf("%#v", this.Events)+",\n") - } - if this.NewRunEvents != nil { - s = append(s, "NewRunEvents: "+fmt.Sprintf("%#v", this.NewRunEvents)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ReplicateEventsV2Response) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&historyv1.ReplicateEventsV2Response{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *SyncShardStatusRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&historyv1.SyncShardStatusRequest{") - s = append(s, "SourceCluster: "+fmt.Sprintf("%#v", this.SourceCluster)+",\n") - s = append(s, "ShardId: "+fmt.Sprintf("%#v", this.ShardId)+",\n") - s = append(s, "Time: "+fmt.Sprintf("%#v", this.Time)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *SyncShardStatusResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&historyv1.SyncShardStatusResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *SyncActivityRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 17) - s = append(s, "&historyv1.SyncActivityRequest{") - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "Version: "+fmt.Sprintf("%#v", this.Version)+",\n") - s = append(s, "ScheduledId: "+fmt.Sprintf("%#v", this.ScheduledId)+",\n") - s = append(s, "ScheduledTime: "+fmt.Sprintf("%#v", this.ScheduledTime)+",\n") - s = append(s, "StartedId: "+fmt.Sprintf("%#v", this.StartedId)+",\n") - s = append(s, "StartedTime: "+fmt.Sprintf("%#v", this.StartedTime)+",\n") - s = append(s, "LastHeartbeatTime: "+fmt.Sprintf("%#v", this.LastHeartbeatTime)+",\n") - if this.Details != nil { - s = append(s, "Details: "+fmt.Sprintf("%#v", this.Details)+",\n") - } - s = append(s, "Attempt: "+fmt.Sprintf("%#v", this.Attempt)+",\n") - if this.LastFailure != nil { - s = append(s, "LastFailure: "+fmt.Sprintf("%#v", this.LastFailure)+",\n") - } - s = append(s, "LastWorkerIdentity: "+fmt.Sprintf("%#v", this.LastWorkerIdentity)+",\n") - if this.VersionHistory != nil { - s = append(s, "VersionHistory: "+fmt.Sprintf("%#v", this.VersionHistory)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *SyncActivityResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&historyv1.SyncActivityResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DescribeMutableStateRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&historyv1.DescribeMutableStateRequest{") - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DescribeMutableStateResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&historyv1.DescribeMutableStateResponse{") - s = append(s, "MutableStateInCache: "+fmt.Sprintf("%#v", this.MutableStateInCache)+",\n") - s = append(s, "MutableStateInDatabase: "+fmt.Sprintf("%#v", this.MutableStateInDatabase)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DescribeHistoryHostRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&historyv1.DescribeHistoryHostRequest{") - s = append(s, "HostAddress: "+fmt.Sprintf("%#v", this.HostAddress)+",\n") - s = append(s, "ShardId: "+fmt.Sprintf("%#v", this.ShardId)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DescribeHistoryHostResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 9) - s = append(s, "&historyv1.DescribeHistoryHostResponse{") - s = append(s, "NumberOfShards: "+fmt.Sprintf("%#v", this.NumberOfShards)+",\n") - s = append(s, "ShardIds: "+fmt.Sprintf("%#v", this.ShardIds)+",\n") - if this.DomainCache != nil { - s = append(s, "DomainCache: "+fmt.Sprintf("%#v", this.DomainCache)+",\n") - } - s = append(s, "ShardControllerStatus: "+fmt.Sprintf("%#v", this.ShardControllerStatus)+",\n") - s = append(s, "Address: "+fmt.Sprintf("%#v", this.Address)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *CloseShardRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&historyv1.CloseShardRequest{") - s = append(s, "ShardId: "+fmt.Sprintf("%#v", this.ShardId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *CloseShardResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&historyv1.CloseShardResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RemoveTaskRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 8) - s = append(s, "&historyv1.RemoveTaskRequest{") - s = append(s, "ShardId: "+fmt.Sprintf("%#v", this.ShardId)+",\n") - s = append(s, "TaskType: "+fmt.Sprintf("%#v", this.TaskType)+",\n") - s = append(s, "TaskId: "+fmt.Sprintf("%#v", this.TaskId)+",\n") - s = append(s, "VisibilityTime: "+fmt.Sprintf("%#v", this.VisibilityTime)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RemoveTaskResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&historyv1.RemoveTaskResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ResetQueueRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&historyv1.ResetQueueRequest{") - s = append(s, "ShardId: "+fmt.Sprintf("%#v", this.ShardId)+",\n") - s = append(s, "ClusterName: "+fmt.Sprintf("%#v", this.ClusterName)+",\n") - s = append(s, "TaskType: "+fmt.Sprintf("%#v", this.TaskType)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ResetQueueResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&historyv1.ResetQueueResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DescribeQueueRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&historyv1.DescribeQueueRequest{") - s = append(s, "ShardId: "+fmt.Sprintf("%#v", this.ShardId)+",\n") - s = append(s, "ClusterName: "+fmt.Sprintf("%#v", this.ClusterName)+",\n") - s = append(s, "TaskType: "+fmt.Sprintf("%#v", this.TaskType)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DescribeQueueResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&historyv1.DescribeQueueResponse{") - s = append(s, "ProcessingQueueStates: "+fmt.Sprintf("%#v", this.ProcessingQueueStates)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetReplicationMessagesRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&historyv1.GetReplicationMessagesRequest{") - if this.Tokens != nil { - s = append(s, "Tokens: "+fmt.Sprintf("%#v", this.Tokens)+",\n") - } - s = append(s, "ClusterName: "+fmt.Sprintf("%#v", this.ClusterName)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetReplicationMessagesResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&historyv1.GetReplicationMessagesResponse{") - keysForShardMessages := make([]int32, 0, len(this.ShardMessages)) - for k, _ := range this.ShardMessages { - keysForShardMessages = append(keysForShardMessages, k) - } - github_com_gogo_protobuf_sortkeys.Int32s(keysForShardMessages) - mapStringForShardMessages := "map[int32]*v11.ReplicationMessages{" - for _, k := range keysForShardMessages { - mapStringForShardMessages += fmt.Sprintf("%#v: %#v,", k, this.ShardMessages[k]) - } - mapStringForShardMessages += "}" - if this.ShardMessages != nil { - s = append(s, "ShardMessages: "+mapStringForShardMessages+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetDLQReplicationMessagesRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&historyv1.GetDLQReplicationMessagesRequest{") - if this.TaskInfos != nil { - s = append(s, "TaskInfos: "+fmt.Sprintf("%#v", this.TaskInfos)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetDLQReplicationMessagesResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&historyv1.GetDLQReplicationMessagesResponse{") - if this.ReplicationTasks != nil { - s = append(s, "ReplicationTasks: "+fmt.Sprintf("%#v", this.ReplicationTasks)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ReapplyEventsRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 8) - s = append(s, "&historyv1.ReapplyEventsRequest{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - if this.Events != nil { - s = append(s, "Events: "+fmt.Sprintf("%#v", this.Events)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ReapplyEventsResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&historyv1.ReapplyEventsResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RefreshWorkflowTasksRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&historyv1.RefreshWorkflowTasksRequest{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RefreshWorkflowTasksResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&historyv1.RefreshWorkflowTasksResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ReadDLQMessagesRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 10) - s = append(s, "&historyv1.ReadDLQMessagesRequest{") - s = append(s, "Type: "+fmt.Sprintf("%#v", this.Type)+",\n") - s = append(s, "ShardId: "+fmt.Sprintf("%#v", this.ShardId)+",\n") - s = append(s, "SourceCluster: "+fmt.Sprintf("%#v", this.SourceCluster)+",\n") - s = append(s, "InclusiveEndMessageId: "+fmt.Sprintf("%#v", this.InclusiveEndMessageId)+",\n") - s = append(s, "PageSize: "+fmt.Sprintf("%#v", this.PageSize)+",\n") - s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ReadDLQMessagesResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&historyv1.ReadDLQMessagesResponse{") - s = append(s, "Type: "+fmt.Sprintf("%#v", this.Type)+",\n") - if this.ReplicationTasks != nil { - s = append(s, "ReplicationTasks: "+fmt.Sprintf("%#v", this.ReplicationTasks)+",\n") - } - s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *PurgeDLQMessagesRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 8) - s = append(s, "&historyv1.PurgeDLQMessagesRequest{") - s = append(s, "Type: "+fmt.Sprintf("%#v", this.Type)+",\n") - s = append(s, "ShardId: "+fmt.Sprintf("%#v", this.ShardId)+",\n") - s = append(s, "SourceCluster: "+fmt.Sprintf("%#v", this.SourceCluster)+",\n") - s = append(s, "InclusiveEndMessageId: "+fmt.Sprintf("%#v", this.InclusiveEndMessageId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *PurgeDLQMessagesResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&historyv1.PurgeDLQMessagesResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *MergeDLQMessagesRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 10) - s = append(s, "&historyv1.MergeDLQMessagesRequest{") - s = append(s, "Type: "+fmt.Sprintf("%#v", this.Type)+",\n") - s = append(s, "ShardId: "+fmt.Sprintf("%#v", this.ShardId)+",\n") - s = append(s, "SourceCluster: "+fmt.Sprintf("%#v", this.SourceCluster)+",\n") - s = append(s, "InclusiveEndMessageId: "+fmt.Sprintf("%#v", this.InclusiveEndMessageId)+",\n") - s = append(s, "PageSize: "+fmt.Sprintf("%#v", this.PageSize)+",\n") - s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *MergeDLQMessagesResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&historyv1.MergeDLQMessagesResponse{") - s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *NotifyFailoverMarkersRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&historyv1.NotifyFailoverMarkersRequest{") - if this.FailoverMarkerTokens != nil { - s = append(s, "FailoverMarkerTokens: "+fmt.Sprintf("%#v", this.FailoverMarkerTokens)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *NotifyFailoverMarkersResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&historyv1.NotifyFailoverMarkersResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func valueToGoStringService(v interface{}, typ string) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// 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 - -// HistoryAPIClient is the client API for HistoryAPI service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type HistoryAPIClient interface { - // StartWorkflowExecution starts a new long running workflow instance. It will create the instance with - // 'WorkflowExecutionStarted' event in history and also schedule the first DecisionTask for the worker to make the - // first decision for this instance. It will return 'WorkflowExecutionAlreadyStartedError', if an instance already - // exists with same workflowId. - StartWorkflowExecution(ctx context.Context, in *StartWorkflowExecutionRequest, opts ...grpc.CallOption) (*StartWorkflowExecutionResponse, error) - // SignalWorkflowExecution is used to send a signal event to running workflow execution. This results in - // WorkflowExecutionSignaled event recorded in the history and a decision task being created for the execution. - SignalWorkflowExecution(ctx context.Context, in *SignalWorkflowExecutionRequest, opts ...grpc.CallOption) (*SignalWorkflowExecutionResponse, error) - // SignalWithStartWorkflowExecution is used to ensure sending a signal event to a workflow execution. - // If workflow is running, this results in WorkflowExecutionSignaled event recorded in the history - // and a decision task being created for the execution. - // If workflow is not running or not found, it will first try start workflow with given WorkflowIDReusePolicy, - // and record WorkflowExecutionStarted and WorkflowExecutionSignaled event in case of success. - // It will return `WorkflowExecutionAlreadyStartedError` if start workflow failed with given policy. - SignalWithStartWorkflowExecution(ctx context.Context, in *SignalWithStartWorkflowExecutionRequest, opts ...grpc.CallOption) (*SignalWithStartWorkflowExecutionResponse, error) - // ResetWorkflowExecution reset an existing workflow execution by a firstEventID of a existing event batch - // in the history and immediately terminating the current execution instance. - // After reset, the history will grow from nextFirstEventID. - ResetWorkflowExecution(ctx context.Context, in *ResetWorkflowExecutionRequest, opts ...grpc.CallOption) (*ResetWorkflowExecutionResponse, error) - // TerminateWorkflowExecution terminates an existing workflow execution by recording WorkflowExecutionTerminated event - // in the history and immediately terminating the execution instance. - TerminateWorkflowExecution(ctx context.Context, in *TerminateWorkflowExecutionRequest, opts ...grpc.CallOption) (*TerminateWorkflowExecutionResponse, error) - // DescribeWorkflowExecution returns information about the specified workflow execution. - DescribeWorkflowExecution(ctx context.Context, in *DescribeWorkflowExecutionRequest, opts ...grpc.CallOption) (*DescribeWorkflowExecutionResponse, error) - // QueryWorkflow returns query result for a specified workflow execution. - QueryWorkflow(ctx context.Context, in *QueryWorkflowRequest, opts ...grpc.CallOption) (*QueryWorkflowResponse, error) - // Reset the sticky tasklist related information in mutable state of a given workflow. - // Things cleared are: - // 1. StickyTaskList - // 2. StickyScheduleToStartTimeout - // 3. ClientLibraryVersion - // 4. ClientFeatureVersion - // 5. ClientImpl - ResetStickyTaskList(ctx context.Context, in *ResetStickyTaskListRequest, opts ...grpc.CallOption) (*ResetStickyTaskListResponse, error) - // Returns the information from mutable state of workflow execution. - // It fails with 'EntityNotExistError' if specified workflow execution in unknown to the service. - // It returns CurrentBranchChangedError if the workflow version branch has changed. - GetMutableState(ctx context.Context, in *GetMutableStateRequest, opts ...grpc.CallOption) (*GetMutableStateResponse, error) - // Returns the information from mutable state of workflow execution. - // It fails with 'EntityNotExistError' if specified workflow execution in unknown to the service. - // It returns CurrentBranchChangedError if the workflow version branch has changed. - PollMutableState(ctx context.Context, in *PollMutableStateRequest, opts ...grpc.CallOption) (*PollMutableStateResponse, error) - // RecordDecisionTaskStarted is called by the MatchingService before it hands a decision task to the application worker in response to - // a PollForDecisionTask call. It records in the history the event that the decision task has started. It will return 'EventAlreadyStartedError', - // if the workflow's execution history already includes a record of the event starting. - RecordDecisionTaskStarted(ctx context.Context, in *RecordDecisionTaskStartedRequest, opts ...grpc.CallOption) (*RecordDecisionTaskStartedResponse, error) - // RespondDecisionTaskCompleted is called by application worker to complete a DecisionTask handed as a result of - // 'PollForDecisionTask' API call. Completing a DecisionTask will result in new events for the workflow execution and - // potentially new ActivityTask being created for corresponding decisions. It will also create a DecisionTaskCompleted - // event in the history for that session. Use the 'taskToken' provided as response of PollForDecisionTask API call - // for completing the DecisionTask. - RespondDecisionTaskCompleted(ctx context.Context, in *RespondDecisionTaskCompletedRequest, opts ...grpc.CallOption) (*RespondDecisionTaskCompletedResponse, error) - // RespondDecisionTaskFailed is called by application worker to indicate failure. This results in - // DecisionTaskFailedEvent written to the history and a new DecisionTask created. This API can be used by client to - // either clear sticky tasklist or report ny panics during DecisionTask processing. - RespondDecisionTaskFailed(ctx context.Context, in *RespondDecisionTaskFailedRequest, opts ...grpc.CallOption) (*RespondDecisionTaskFailedResponse, error) - // RecordActivityTaskStarted is called by the MatchingService before it hands a decision task to the application worker in response to - // a PollForActivityTask call. It records in the history the event that the decision task has started. It will return 'EventAlreadyStartedError', - // if the workflow's execution history already includes a record of the event starting. - RecordActivityTaskStarted(ctx context.Context, in *RecordActivityTaskStartedRequest, opts ...grpc.CallOption) (*RecordActivityTaskStartedResponse, error) - // RespondActivityTaskCompleted is called by application worker when it is done processing an ActivityTask. It will - // result in a new 'ActivityTaskCompleted' event being written to the workflow history and a new DecisionTask - // created for the workflow so new decisions could be made. Use the 'taskToken' provided as response of - // PollForActivityTask API call for completion. It fails with 'EntityNotExistsError' if the taskToken is not valid - // anymore due to activity timeout. - RespondActivityTaskCompleted(ctx context.Context, in *RespondActivityTaskCompletedRequest, opts ...grpc.CallOption) (*RespondActivityTaskCompletedResponse, error) - // RespondActivityTaskFailed is called by application worker when it is done processing an ActivityTask. It will - // result in a new 'ActivityTaskFailed' event being written to the workflow history and a new DecisionTask - // created for the workflow instance so new decisions could be made. Use the 'taskToken' provided as response of - // PollForActivityTask API call for completion. It fails with 'EntityNotExistsError' if the taskToken is not valid - // anymore due to activity timeout. - RespondActivityTaskFailed(ctx context.Context, in *RespondActivityTaskFailedRequest, opts ...grpc.CallOption) (*RespondActivityTaskFailedResponse, error) - // RespondActivityTaskCanceled is called by application worker when it is successfully canceled an ActivityTask. It will - // result in a new 'ActivityTaskCanceled' event being written to the workflow history and a new DecisionTask - // created for the workflow instance so new decisions could be made. Use the 'taskToken' provided as response of - // PollForActivityTask API call for completion. It fails with 'EntityNotExistsError' if the taskToken is not valid - // anymore due to activity timeout. - RespondActivityTaskCanceled(ctx context.Context, in *RespondActivityTaskCanceledRequest, opts ...grpc.CallOption) (*RespondActivityTaskCanceledResponse, error) - // RecordActivityTaskHeartbeat is called by application worker while it is processing an ActivityTask. If worker fails - // to heartbeat within 'heartbeatTimeoutSeconds' interval for the ActivityTask, then it will be marked as timed out and - // 'ActivityTaskTimedOut' event will be written to the workflow history. Calling 'RecordActivityTaskHeartbeat' will - // fail with 'EntityNotExistsError' in such situations. Use the 'taskToken' provided as response of - // PollForActivityTask API call for heart beating. - RecordActivityTaskHeartbeat(ctx context.Context, in *RecordActivityTaskHeartbeatRequest, opts ...grpc.CallOption) (*RecordActivityTaskHeartbeatResponse, error) - // RequestCancelWorkflowExecution is called by application worker when it wants to request cancellation of a workflow instance. - // It will result in a new 'WorkflowExecutionCancelRequested' event being written to the workflow history and a new DecisionTask - // created for the workflow instance so new decisions could be made. It fails with 'EntityNotExistsError' if the workflow is not valid - // anymore due to completion or doesn't exist. - RequestCancelWorkflowExecution(ctx context.Context, in *RequestCancelWorkflowExecutionRequest, opts ...grpc.CallOption) (*RequestCancelWorkflowExecutionResponse, error) - // RemoveSignalMutableState is used to remove a signal request ID that was previously recorded. This is currently - // used to clean execution info when signal decision finished. - RemoveSignalMutableState(ctx context.Context, in *RemoveSignalMutableStateRequest, opts ...grpc.CallOption) (*RemoveSignalMutableStateResponse, error) - // ScheduleDecisionTask is used for creating a decision task for already started workflow execution. This is mainly - // used by transfer queue processor during the processing of StartChildWorkflowExecution task, where it first starts - // child execution without creating the decision task and then calls this API after updating the mutable state of - // parent execution. - ScheduleDecisionTask(ctx context.Context, in *ScheduleDecisionTaskRequest, opts ...grpc.CallOption) (*ScheduleDecisionTaskResponse, error) - // RecordChildExecutionCompleted is used for reporting the completion of child workflow execution to parent. - // This is mainly called by transfer queue processor during the processing of DeleteExecution task. - RecordChildExecutionCompleted(ctx context.Context, in *RecordChildExecutionCompletedRequest, opts ...grpc.CallOption) (*RecordChildExecutionCompletedResponse, error) - ReplicateEventsV2(ctx context.Context, in *ReplicateEventsV2Request, opts ...grpc.CallOption) (*ReplicateEventsV2Response, error) - // SyncShardStatus sync the status between shards. - SyncShardStatus(ctx context.Context, in *SyncShardStatusRequest, opts ...grpc.CallOption) (*SyncShardStatusResponse, error) - // SyncActivity sync the activity status. - SyncActivity(ctx context.Context, in *SyncActivityRequest, opts ...grpc.CallOption) (*SyncActivityResponse, error) - // DescribeMutableState returns information about the internal states of workflow mutable state. - DescribeMutableState(ctx context.Context, in *DescribeMutableStateRequest, opts ...grpc.CallOption) (*DescribeMutableStateResponse, error) - // DescribeHistoryHost returns information about the internal states of a history host. - DescribeHistoryHost(ctx context.Context, in *DescribeHistoryHostRequest, opts ...grpc.CallOption) (*DescribeHistoryHostResponse, error) - // CloseShard close the shard. - CloseShard(ctx context.Context, in *CloseShardRequest, opts ...grpc.CallOption) (*CloseShardResponse, error) - // RemoveTask remove task based on type, task_id, shard_id. - RemoveTask(ctx context.Context, in *RemoveTaskRequest, opts ...grpc.CallOption) (*RemoveTaskResponse, error) - // ResetQueue reset processing queue state based on cluster name and type. - ResetQueue(ctx context.Context, in *ResetQueueRequest, opts ...grpc.CallOption) (*ResetQueueResponse, error) - // DescribeQueue return queue states based on cluster name and type. - DescribeQueue(ctx context.Context, in *DescribeQueueRequest, opts ...grpc.CallOption) (*DescribeQueueResponse, error) - // GetReplicationMessages return replication messages based on the read level. - GetReplicationMessages(ctx context.Context, in *GetReplicationMessagesRequest, opts ...grpc.CallOption) (*GetReplicationMessagesResponse, error) - // GetDLQReplicationMessages return replication messages based on DLQ info. - GetDLQReplicationMessages(ctx context.Context, in *GetDLQReplicationMessagesRequest, opts ...grpc.CallOption) (*GetDLQReplicationMessagesResponse, error) - // ReapplyEvents applies stale events to the current workflow and current run. - ReapplyEvents(ctx context.Context, in *ReapplyEventsRequest, opts ...grpc.CallOption) (*ReapplyEventsResponse, error) - // RefreshWorkflowTasks refreshes all tasks of a workflow. - RefreshWorkflowTasks(ctx context.Context, in *RefreshWorkflowTasksRequest, opts ...grpc.CallOption) (*RefreshWorkflowTasksResponse, error) - // ReadDLQMessages returns messages from DLQ. - ReadDLQMessages(ctx context.Context, in *ReadDLQMessagesRequest, opts ...grpc.CallOption) (*ReadDLQMessagesResponse, error) - // PurgeDLQMessages purges messages from DLQ. - PurgeDLQMessages(ctx context.Context, in *PurgeDLQMessagesRequest, opts ...grpc.CallOption) (*PurgeDLQMessagesResponse, error) - // MergeDLQMessages merges messages from DLQ. - MergeDLQMessages(ctx context.Context, in *MergeDLQMessagesRequest, opts ...grpc.CallOption) (*MergeDLQMessagesResponse, error) - // NotifyFailoverMarkers sends failover marker to the failover coordinator. - NotifyFailoverMarkers(ctx context.Context, in *NotifyFailoverMarkersRequest, opts ...grpc.CallOption) (*NotifyFailoverMarkersResponse, error) -} - -type historyAPIClient struct { - cc *grpc.ClientConn -} - -func NewHistoryAPIClient(cc *grpc.ClientConn) HistoryAPIClient { - return &historyAPIClient{cc} -} - -func (c *historyAPIClient) StartWorkflowExecution(ctx context.Context, in *StartWorkflowExecutionRequest, opts ...grpc.CallOption) (*StartWorkflowExecutionResponse, error) { - out := new(StartWorkflowExecutionResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/StartWorkflowExecution", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *historyAPIClient) SignalWorkflowExecution(ctx context.Context, in *SignalWorkflowExecutionRequest, opts ...grpc.CallOption) (*SignalWorkflowExecutionResponse, error) { - out := new(SignalWorkflowExecutionResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/SignalWorkflowExecution", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *historyAPIClient) SignalWithStartWorkflowExecution(ctx context.Context, in *SignalWithStartWorkflowExecutionRequest, opts ...grpc.CallOption) (*SignalWithStartWorkflowExecutionResponse, error) { - out := new(SignalWithStartWorkflowExecutionResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/SignalWithStartWorkflowExecution", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *historyAPIClient) ResetWorkflowExecution(ctx context.Context, in *ResetWorkflowExecutionRequest, opts ...grpc.CallOption) (*ResetWorkflowExecutionResponse, error) { - out := new(ResetWorkflowExecutionResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/ResetWorkflowExecution", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *historyAPIClient) TerminateWorkflowExecution(ctx context.Context, in *TerminateWorkflowExecutionRequest, opts ...grpc.CallOption) (*TerminateWorkflowExecutionResponse, error) { - out := new(TerminateWorkflowExecutionResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/TerminateWorkflowExecution", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *historyAPIClient) DescribeWorkflowExecution(ctx context.Context, in *DescribeWorkflowExecutionRequest, opts ...grpc.CallOption) (*DescribeWorkflowExecutionResponse, error) { - out := new(DescribeWorkflowExecutionResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/DescribeWorkflowExecution", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *historyAPIClient) QueryWorkflow(ctx context.Context, in *QueryWorkflowRequest, opts ...grpc.CallOption) (*QueryWorkflowResponse, error) { - out := new(QueryWorkflowResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/QueryWorkflow", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *historyAPIClient) ResetStickyTaskList(ctx context.Context, in *ResetStickyTaskListRequest, opts ...grpc.CallOption) (*ResetStickyTaskListResponse, error) { - out := new(ResetStickyTaskListResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/ResetStickyTaskList", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *historyAPIClient) GetMutableState(ctx context.Context, in *GetMutableStateRequest, opts ...grpc.CallOption) (*GetMutableStateResponse, error) { - out := new(GetMutableStateResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/GetMutableState", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *historyAPIClient) PollMutableState(ctx context.Context, in *PollMutableStateRequest, opts ...grpc.CallOption) (*PollMutableStateResponse, error) { - out := new(PollMutableStateResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/PollMutableState", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *historyAPIClient) RecordDecisionTaskStarted(ctx context.Context, in *RecordDecisionTaskStartedRequest, opts ...grpc.CallOption) (*RecordDecisionTaskStartedResponse, error) { - out := new(RecordDecisionTaskStartedResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/RecordDecisionTaskStarted", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *historyAPIClient) RespondDecisionTaskCompleted(ctx context.Context, in *RespondDecisionTaskCompletedRequest, opts ...grpc.CallOption) (*RespondDecisionTaskCompletedResponse, error) { - out := new(RespondDecisionTaskCompletedResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/RespondDecisionTaskCompleted", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *historyAPIClient) RespondDecisionTaskFailed(ctx context.Context, in *RespondDecisionTaskFailedRequest, opts ...grpc.CallOption) (*RespondDecisionTaskFailedResponse, error) { - out := new(RespondDecisionTaskFailedResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/RespondDecisionTaskFailed", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *historyAPIClient) RecordActivityTaskStarted(ctx context.Context, in *RecordActivityTaskStartedRequest, opts ...grpc.CallOption) (*RecordActivityTaskStartedResponse, error) { - out := new(RecordActivityTaskStartedResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/RecordActivityTaskStarted", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *historyAPIClient) RespondActivityTaskCompleted(ctx context.Context, in *RespondActivityTaskCompletedRequest, opts ...grpc.CallOption) (*RespondActivityTaskCompletedResponse, error) { - out := new(RespondActivityTaskCompletedResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/RespondActivityTaskCompleted", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *historyAPIClient) RespondActivityTaskFailed(ctx context.Context, in *RespondActivityTaskFailedRequest, opts ...grpc.CallOption) (*RespondActivityTaskFailedResponse, error) { - out := new(RespondActivityTaskFailedResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/RespondActivityTaskFailed", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *historyAPIClient) RespondActivityTaskCanceled(ctx context.Context, in *RespondActivityTaskCanceledRequest, opts ...grpc.CallOption) (*RespondActivityTaskCanceledResponse, error) { - out := new(RespondActivityTaskCanceledResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/RespondActivityTaskCanceled", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *historyAPIClient) RecordActivityTaskHeartbeat(ctx context.Context, in *RecordActivityTaskHeartbeatRequest, opts ...grpc.CallOption) (*RecordActivityTaskHeartbeatResponse, error) { - out := new(RecordActivityTaskHeartbeatResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/RecordActivityTaskHeartbeat", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *historyAPIClient) RequestCancelWorkflowExecution(ctx context.Context, in *RequestCancelWorkflowExecutionRequest, opts ...grpc.CallOption) (*RequestCancelWorkflowExecutionResponse, error) { - out := new(RequestCancelWorkflowExecutionResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/RequestCancelWorkflowExecution", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *historyAPIClient) RemoveSignalMutableState(ctx context.Context, in *RemoveSignalMutableStateRequest, opts ...grpc.CallOption) (*RemoveSignalMutableStateResponse, error) { - out := new(RemoveSignalMutableStateResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/RemoveSignalMutableState", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *historyAPIClient) ScheduleDecisionTask(ctx context.Context, in *ScheduleDecisionTaskRequest, opts ...grpc.CallOption) (*ScheduleDecisionTaskResponse, error) { - out := new(ScheduleDecisionTaskResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/ScheduleDecisionTask", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *historyAPIClient) RecordChildExecutionCompleted(ctx context.Context, in *RecordChildExecutionCompletedRequest, opts ...grpc.CallOption) (*RecordChildExecutionCompletedResponse, error) { - out := new(RecordChildExecutionCompletedResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/RecordChildExecutionCompleted", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *historyAPIClient) ReplicateEventsV2(ctx context.Context, in *ReplicateEventsV2Request, opts ...grpc.CallOption) (*ReplicateEventsV2Response, error) { - out := new(ReplicateEventsV2Response) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/ReplicateEventsV2", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *historyAPIClient) SyncShardStatus(ctx context.Context, in *SyncShardStatusRequest, opts ...grpc.CallOption) (*SyncShardStatusResponse, error) { - out := new(SyncShardStatusResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/SyncShardStatus", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *historyAPIClient) SyncActivity(ctx context.Context, in *SyncActivityRequest, opts ...grpc.CallOption) (*SyncActivityResponse, error) { - out := new(SyncActivityResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/SyncActivity", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *historyAPIClient) DescribeMutableState(ctx context.Context, in *DescribeMutableStateRequest, opts ...grpc.CallOption) (*DescribeMutableStateResponse, error) { - out := new(DescribeMutableStateResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/DescribeMutableState", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *historyAPIClient) DescribeHistoryHost(ctx context.Context, in *DescribeHistoryHostRequest, opts ...grpc.CallOption) (*DescribeHistoryHostResponse, error) { - out := new(DescribeHistoryHostResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/DescribeHistoryHost", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *historyAPIClient) CloseShard(ctx context.Context, in *CloseShardRequest, opts ...grpc.CallOption) (*CloseShardResponse, error) { - out := new(CloseShardResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/CloseShard", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *historyAPIClient) RemoveTask(ctx context.Context, in *RemoveTaskRequest, opts ...grpc.CallOption) (*RemoveTaskResponse, error) { - out := new(RemoveTaskResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/RemoveTask", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *historyAPIClient) ResetQueue(ctx context.Context, in *ResetQueueRequest, opts ...grpc.CallOption) (*ResetQueueResponse, error) { - out := new(ResetQueueResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/ResetQueue", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *historyAPIClient) DescribeQueue(ctx context.Context, in *DescribeQueueRequest, opts ...grpc.CallOption) (*DescribeQueueResponse, error) { - out := new(DescribeQueueResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/DescribeQueue", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *historyAPIClient) GetReplicationMessages(ctx context.Context, in *GetReplicationMessagesRequest, opts ...grpc.CallOption) (*GetReplicationMessagesResponse, error) { - out := new(GetReplicationMessagesResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/GetReplicationMessages", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *historyAPIClient) GetDLQReplicationMessages(ctx context.Context, in *GetDLQReplicationMessagesRequest, opts ...grpc.CallOption) (*GetDLQReplicationMessagesResponse, error) { - out := new(GetDLQReplicationMessagesResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/GetDLQReplicationMessages", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *historyAPIClient) ReapplyEvents(ctx context.Context, in *ReapplyEventsRequest, opts ...grpc.CallOption) (*ReapplyEventsResponse, error) { - out := new(ReapplyEventsResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/ReapplyEvents", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *historyAPIClient) RefreshWorkflowTasks(ctx context.Context, in *RefreshWorkflowTasksRequest, opts ...grpc.CallOption) (*RefreshWorkflowTasksResponse, error) { - out := new(RefreshWorkflowTasksResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/RefreshWorkflowTasks", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *historyAPIClient) ReadDLQMessages(ctx context.Context, in *ReadDLQMessagesRequest, opts ...grpc.CallOption) (*ReadDLQMessagesResponse, error) { - out := new(ReadDLQMessagesResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/ReadDLQMessages", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *historyAPIClient) PurgeDLQMessages(ctx context.Context, in *PurgeDLQMessagesRequest, opts ...grpc.CallOption) (*PurgeDLQMessagesResponse, error) { - out := new(PurgeDLQMessagesResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/PurgeDLQMessages", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *historyAPIClient) MergeDLQMessages(ctx context.Context, in *MergeDLQMessagesRequest, opts ...grpc.CallOption) (*MergeDLQMessagesResponse, error) { - out := new(MergeDLQMessagesResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/MergeDLQMessages", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *historyAPIClient) NotifyFailoverMarkers(ctx context.Context, in *NotifyFailoverMarkersRequest, opts ...grpc.CallOption) (*NotifyFailoverMarkersResponse, error) { - out := new(NotifyFailoverMarkersResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/NotifyFailoverMarkers", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// HistoryAPIServer is the server API for HistoryAPI service. -type HistoryAPIServer interface { - // StartWorkflowExecution starts a new long running workflow instance. It will create the instance with - // 'WorkflowExecutionStarted' event in history and also schedule the first DecisionTask for the worker to make the - // first decision for this instance. It will return 'WorkflowExecutionAlreadyStartedError', if an instance already - // exists with same workflowId. - StartWorkflowExecution(context.Context, *StartWorkflowExecutionRequest) (*StartWorkflowExecutionResponse, error) - // SignalWorkflowExecution is used to send a signal event to running workflow execution. This results in - // WorkflowExecutionSignaled event recorded in the history and a decision task being created for the execution. - SignalWorkflowExecution(context.Context, *SignalWorkflowExecutionRequest) (*SignalWorkflowExecutionResponse, error) - // SignalWithStartWorkflowExecution is used to ensure sending a signal event to a workflow execution. - // If workflow is running, this results in WorkflowExecutionSignaled event recorded in the history - // and a decision task being created for the execution. - // If workflow is not running or not found, it will first try start workflow with given WorkflowIDReusePolicy, - // and record WorkflowExecutionStarted and WorkflowExecutionSignaled event in case of success. - // It will return `WorkflowExecutionAlreadyStartedError` if start workflow failed with given policy. - SignalWithStartWorkflowExecution(context.Context, *SignalWithStartWorkflowExecutionRequest) (*SignalWithStartWorkflowExecutionResponse, error) - // ResetWorkflowExecution reset an existing workflow execution by a firstEventID of a existing event batch - // in the history and immediately terminating the current execution instance. - // After reset, the history will grow from nextFirstEventID. - ResetWorkflowExecution(context.Context, *ResetWorkflowExecutionRequest) (*ResetWorkflowExecutionResponse, error) - // TerminateWorkflowExecution terminates an existing workflow execution by recording WorkflowExecutionTerminated event - // in the history and immediately terminating the execution instance. - TerminateWorkflowExecution(context.Context, *TerminateWorkflowExecutionRequest) (*TerminateWorkflowExecutionResponse, error) - // DescribeWorkflowExecution returns information about the specified workflow execution. - DescribeWorkflowExecution(context.Context, *DescribeWorkflowExecutionRequest) (*DescribeWorkflowExecutionResponse, error) - // QueryWorkflow returns query result for a specified workflow execution. - QueryWorkflow(context.Context, *QueryWorkflowRequest) (*QueryWorkflowResponse, error) - // Reset the sticky tasklist related information in mutable state of a given workflow. - // Things cleared are: - // 1. StickyTaskList - // 2. StickyScheduleToStartTimeout - // 3. ClientLibraryVersion - // 4. ClientFeatureVersion - // 5. ClientImpl - ResetStickyTaskList(context.Context, *ResetStickyTaskListRequest) (*ResetStickyTaskListResponse, error) - // Returns the information from mutable state of workflow execution. - // It fails with 'EntityNotExistError' if specified workflow execution in unknown to the service. - // It returns CurrentBranchChangedError if the workflow version branch has changed. - GetMutableState(context.Context, *GetMutableStateRequest) (*GetMutableStateResponse, error) - // Returns the information from mutable state of workflow execution. - // It fails with 'EntityNotExistError' if specified workflow execution in unknown to the service. - // It returns CurrentBranchChangedError if the workflow version branch has changed. - PollMutableState(context.Context, *PollMutableStateRequest) (*PollMutableStateResponse, error) - // RecordDecisionTaskStarted is called by the MatchingService before it hands a decision task to the application worker in response to - // a PollForDecisionTask call. It records in the history the event that the decision task has started. It will return 'EventAlreadyStartedError', - // if the workflow's execution history already includes a record of the event starting. - RecordDecisionTaskStarted(context.Context, *RecordDecisionTaskStartedRequest) (*RecordDecisionTaskStartedResponse, error) - // RespondDecisionTaskCompleted is called by application worker to complete a DecisionTask handed as a result of - // 'PollForDecisionTask' API call. Completing a DecisionTask will result in new events for the workflow execution and - // potentially new ActivityTask being created for corresponding decisions. It will also create a DecisionTaskCompleted - // event in the history for that session. Use the 'taskToken' provided as response of PollForDecisionTask API call - // for completing the DecisionTask. - RespondDecisionTaskCompleted(context.Context, *RespondDecisionTaskCompletedRequest) (*RespondDecisionTaskCompletedResponse, error) - // RespondDecisionTaskFailed is called by application worker to indicate failure. This results in - // DecisionTaskFailedEvent written to the history and a new DecisionTask created. This API can be used by client to - // either clear sticky tasklist or report ny panics during DecisionTask processing. - RespondDecisionTaskFailed(context.Context, *RespondDecisionTaskFailedRequest) (*RespondDecisionTaskFailedResponse, error) - // RecordActivityTaskStarted is called by the MatchingService before it hands a decision task to the application worker in response to - // a PollForActivityTask call. It records in the history the event that the decision task has started. It will return 'EventAlreadyStartedError', - // if the workflow's execution history already includes a record of the event starting. - RecordActivityTaskStarted(context.Context, *RecordActivityTaskStartedRequest) (*RecordActivityTaskStartedResponse, error) - // RespondActivityTaskCompleted is called by application worker when it is done processing an ActivityTask. It will - // result in a new 'ActivityTaskCompleted' event being written to the workflow history and a new DecisionTask - // created for the workflow so new decisions could be made. Use the 'taskToken' provided as response of - // PollForActivityTask API call for completion. It fails with 'EntityNotExistsError' if the taskToken is not valid - // anymore due to activity timeout. - RespondActivityTaskCompleted(context.Context, *RespondActivityTaskCompletedRequest) (*RespondActivityTaskCompletedResponse, error) - // RespondActivityTaskFailed is called by application worker when it is done processing an ActivityTask. It will - // result in a new 'ActivityTaskFailed' event being written to the workflow history and a new DecisionTask - // created for the workflow instance so new decisions could be made. Use the 'taskToken' provided as response of - // PollForActivityTask API call for completion. It fails with 'EntityNotExistsError' if the taskToken is not valid - // anymore due to activity timeout. - RespondActivityTaskFailed(context.Context, *RespondActivityTaskFailedRequest) (*RespondActivityTaskFailedResponse, error) - // RespondActivityTaskCanceled is called by application worker when it is successfully canceled an ActivityTask. It will - // result in a new 'ActivityTaskCanceled' event being written to the workflow history and a new DecisionTask - // created for the workflow instance so new decisions could be made. Use the 'taskToken' provided as response of - // PollForActivityTask API call for completion. It fails with 'EntityNotExistsError' if the taskToken is not valid - // anymore due to activity timeout. - RespondActivityTaskCanceled(context.Context, *RespondActivityTaskCanceledRequest) (*RespondActivityTaskCanceledResponse, error) - // RecordActivityTaskHeartbeat is called by application worker while it is processing an ActivityTask. If worker fails - // to heartbeat within 'heartbeatTimeoutSeconds' interval for the ActivityTask, then it will be marked as timed out and - // 'ActivityTaskTimedOut' event will be written to the workflow history. Calling 'RecordActivityTaskHeartbeat' will - // fail with 'EntityNotExistsError' in such situations. Use the 'taskToken' provided as response of - // PollForActivityTask API call for heart beating. - RecordActivityTaskHeartbeat(context.Context, *RecordActivityTaskHeartbeatRequest) (*RecordActivityTaskHeartbeatResponse, error) - // RequestCancelWorkflowExecution is called by application worker when it wants to request cancellation of a workflow instance. - // It will result in a new 'WorkflowExecutionCancelRequested' event being written to the workflow history and a new DecisionTask - // created for the workflow instance so new decisions could be made. It fails with 'EntityNotExistsError' if the workflow is not valid - // anymore due to completion or doesn't exist. - RequestCancelWorkflowExecution(context.Context, *RequestCancelWorkflowExecutionRequest) (*RequestCancelWorkflowExecutionResponse, error) - // RemoveSignalMutableState is used to remove a signal request ID that was previously recorded. This is currently - // used to clean execution info when signal decision finished. - RemoveSignalMutableState(context.Context, *RemoveSignalMutableStateRequest) (*RemoveSignalMutableStateResponse, error) - // ScheduleDecisionTask is used for creating a decision task for already started workflow execution. This is mainly - // used by transfer queue processor during the processing of StartChildWorkflowExecution task, where it first starts - // child execution without creating the decision task and then calls this API after updating the mutable state of - // parent execution. - ScheduleDecisionTask(context.Context, *ScheduleDecisionTaskRequest) (*ScheduleDecisionTaskResponse, error) - // RecordChildExecutionCompleted is used for reporting the completion of child workflow execution to parent. - // This is mainly called by transfer queue processor during the processing of DeleteExecution task. - RecordChildExecutionCompleted(context.Context, *RecordChildExecutionCompletedRequest) (*RecordChildExecutionCompletedResponse, error) - ReplicateEventsV2(context.Context, *ReplicateEventsV2Request) (*ReplicateEventsV2Response, error) - // SyncShardStatus sync the status between shards. - SyncShardStatus(context.Context, *SyncShardStatusRequest) (*SyncShardStatusResponse, error) - // SyncActivity sync the activity status. - SyncActivity(context.Context, *SyncActivityRequest) (*SyncActivityResponse, error) - // DescribeMutableState returns information about the internal states of workflow mutable state. - DescribeMutableState(context.Context, *DescribeMutableStateRequest) (*DescribeMutableStateResponse, error) - // DescribeHistoryHost returns information about the internal states of a history host. - DescribeHistoryHost(context.Context, *DescribeHistoryHostRequest) (*DescribeHistoryHostResponse, error) - // CloseShard close the shard. - CloseShard(context.Context, *CloseShardRequest) (*CloseShardResponse, error) - // RemoveTask remove task based on type, task_id, shard_id. - RemoveTask(context.Context, *RemoveTaskRequest) (*RemoveTaskResponse, error) - // ResetQueue reset processing queue state based on cluster name and type. - ResetQueue(context.Context, *ResetQueueRequest) (*ResetQueueResponse, error) - // DescribeQueue return queue states based on cluster name and type. - DescribeQueue(context.Context, *DescribeQueueRequest) (*DescribeQueueResponse, error) - // GetReplicationMessages return replication messages based on the read level. - GetReplicationMessages(context.Context, *GetReplicationMessagesRequest) (*GetReplicationMessagesResponse, error) - // GetDLQReplicationMessages return replication messages based on DLQ info. - GetDLQReplicationMessages(context.Context, *GetDLQReplicationMessagesRequest) (*GetDLQReplicationMessagesResponse, error) - // ReapplyEvents applies stale events to the current workflow and current run. - ReapplyEvents(context.Context, *ReapplyEventsRequest) (*ReapplyEventsResponse, error) - // RefreshWorkflowTasks refreshes all tasks of a workflow. - RefreshWorkflowTasks(context.Context, *RefreshWorkflowTasksRequest) (*RefreshWorkflowTasksResponse, error) - // ReadDLQMessages returns messages from DLQ. - ReadDLQMessages(context.Context, *ReadDLQMessagesRequest) (*ReadDLQMessagesResponse, error) - // PurgeDLQMessages purges messages from DLQ. - PurgeDLQMessages(context.Context, *PurgeDLQMessagesRequest) (*PurgeDLQMessagesResponse, error) - // MergeDLQMessages merges messages from DLQ. - MergeDLQMessages(context.Context, *MergeDLQMessagesRequest) (*MergeDLQMessagesResponse, error) - // NotifyFailoverMarkers sends failover marker to the failover coordinator. - NotifyFailoverMarkers(context.Context, *NotifyFailoverMarkersRequest) (*NotifyFailoverMarkersResponse, error) -} - -// UnimplementedHistoryAPIServer can be embedded to have forward compatible implementations. -type UnimplementedHistoryAPIServer struct { -} - -func (*UnimplementedHistoryAPIServer) StartWorkflowExecution(ctx context.Context, req *StartWorkflowExecutionRequest) (*StartWorkflowExecutionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StartWorkflowExecution not implemented") -} -func (*UnimplementedHistoryAPIServer) SignalWorkflowExecution(ctx context.Context, req *SignalWorkflowExecutionRequest) (*SignalWorkflowExecutionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SignalWorkflowExecution not implemented") -} -func (*UnimplementedHistoryAPIServer) SignalWithStartWorkflowExecution(ctx context.Context, req *SignalWithStartWorkflowExecutionRequest) (*SignalWithStartWorkflowExecutionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SignalWithStartWorkflowExecution not implemented") -} -func (*UnimplementedHistoryAPIServer) ResetWorkflowExecution(ctx context.Context, req *ResetWorkflowExecutionRequest) (*ResetWorkflowExecutionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ResetWorkflowExecution not implemented") -} -func (*UnimplementedHistoryAPIServer) TerminateWorkflowExecution(ctx context.Context, req *TerminateWorkflowExecutionRequest) (*TerminateWorkflowExecutionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TerminateWorkflowExecution not implemented") -} -func (*UnimplementedHistoryAPIServer) DescribeWorkflowExecution(ctx context.Context, req *DescribeWorkflowExecutionRequest) (*DescribeWorkflowExecutionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DescribeWorkflowExecution not implemented") -} -func (*UnimplementedHistoryAPIServer) QueryWorkflow(ctx context.Context, req *QueryWorkflowRequest) (*QueryWorkflowResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryWorkflow not implemented") -} -func (*UnimplementedHistoryAPIServer) ResetStickyTaskList(ctx context.Context, req *ResetStickyTaskListRequest) (*ResetStickyTaskListResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ResetStickyTaskList not implemented") -} -func (*UnimplementedHistoryAPIServer) GetMutableState(ctx context.Context, req *GetMutableStateRequest) (*GetMutableStateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetMutableState not implemented") -} -func (*UnimplementedHistoryAPIServer) PollMutableState(ctx context.Context, req *PollMutableStateRequest) (*PollMutableStateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PollMutableState not implemented") -} -func (*UnimplementedHistoryAPIServer) RecordDecisionTaskStarted(ctx context.Context, req *RecordDecisionTaskStartedRequest) (*RecordDecisionTaskStartedResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RecordDecisionTaskStarted not implemented") -} -func (*UnimplementedHistoryAPIServer) RespondDecisionTaskCompleted(ctx context.Context, req *RespondDecisionTaskCompletedRequest) (*RespondDecisionTaskCompletedResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RespondDecisionTaskCompleted not implemented") -} -func (*UnimplementedHistoryAPIServer) RespondDecisionTaskFailed(ctx context.Context, req *RespondDecisionTaskFailedRequest) (*RespondDecisionTaskFailedResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RespondDecisionTaskFailed not implemented") -} -func (*UnimplementedHistoryAPIServer) RecordActivityTaskStarted(ctx context.Context, req *RecordActivityTaskStartedRequest) (*RecordActivityTaskStartedResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RecordActivityTaskStarted not implemented") -} -func (*UnimplementedHistoryAPIServer) RespondActivityTaskCompleted(ctx context.Context, req *RespondActivityTaskCompletedRequest) (*RespondActivityTaskCompletedResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RespondActivityTaskCompleted not implemented") -} -func (*UnimplementedHistoryAPIServer) RespondActivityTaskFailed(ctx context.Context, req *RespondActivityTaskFailedRequest) (*RespondActivityTaskFailedResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RespondActivityTaskFailed not implemented") -} -func (*UnimplementedHistoryAPIServer) RespondActivityTaskCanceled(ctx context.Context, req *RespondActivityTaskCanceledRequest) (*RespondActivityTaskCanceledResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RespondActivityTaskCanceled not implemented") -} -func (*UnimplementedHistoryAPIServer) RecordActivityTaskHeartbeat(ctx context.Context, req *RecordActivityTaskHeartbeatRequest) (*RecordActivityTaskHeartbeatResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RecordActivityTaskHeartbeat not implemented") -} -func (*UnimplementedHistoryAPIServer) RequestCancelWorkflowExecution(ctx context.Context, req *RequestCancelWorkflowExecutionRequest) (*RequestCancelWorkflowExecutionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RequestCancelWorkflowExecution not implemented") -} -func (*UnimplementedHistoryAPIServer) RemoveSignalMutableState(ctx context.Context, req *RemoveSignalMutableStateRequest) (*RemoveSignalMutableStateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveSignalMutableState not implemented") -} -func (*UnimplementedHistoryAPIServer) ScheduleDecisionTask(ctx context.Context, req *ScheduleDecisionTaskRequest) (*ScheduleDecisionTaskResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ScheduleDecisionTask not implemented") -} -func (*UnimplementedHistoryAPIServer) RecordChildExecutionCompleted(ctx context.Context, req *RecordChildExecutionCompletedRequest) (*RecordChildExecutionCompletedResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RecordChildExecutionCompleted not implemented") -} -func (*UnimplementedHistoryAPIServer) ReplicateEventsV2(ctx context.Context, req *ReplicateEventsV2Request) (*ReplicateEventsV2Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReplicateEventsV2 not implemented") -} -func (*UnimplementedHistoryAPIServer) SyncShardStatus(ctx context.Context, req *SyncShardStatusRequest) (*SyncShardStatusResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SyncShardStatus not implemented") -} -func (*UnimplementedHistoryAPIServer) SyncActivity(ctx context.Context, req *SyncActivityRequest) (*SyncActivityResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SyncActivity not implemented") -} -func (*UnimplementedHistoryAPIServer) DescribeMutableState(ctx context.Context, req *DescribeMutableStateRequest) (*DescribeMutableStateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DescribeMutableState not implemented") -} -func (*UnimplementedHistoryAPIServer) DescribeHistoryHost(ctx context.Context, req *DescribeHistoryHostRequest) (*DescribeHistoryHostResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DescribeHistoryHost not implemented") -} -func (*UnimplementedHistoryAPIServer) CloseShard(ctx context.Context, req *CloseShardRequest) (*CloseShardResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CloseShard not implemented") -} -func (*UnimplementedHistoryAPIServer) RemoveTask(ctx context.Context, req *RemoveTaskRequest) (*RemoveTaskResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveTask not implemented") -} -func (*UnimplementedHistoryAPIServer) ResetQueue(ctx context.Context, req *ResetQueueRequest) (*ResetQueueResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ResetQueue not implemented") -} -func (*UnimplementedHistoryAPIServer) DescribeQueue(ctx context.Context, req *DescribeQueueRequest) (*DescribeQueueResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DescribeQueue not implemented") -} -func (*UnimplementedHistoryAPIServer) GetReplicationMessages(ctx context.Context, req *GetReplicationMessagesRequest) (*GetReplicationMessagesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetReplicationMessages not implemented") -} -func (*UnimplementedHistoryAPIServer) GetDLQReplicationMessages(ctx context.Context, req *GetDLQReplicationMessagesRequest) (*GetDLQReplicationMessagesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetDLQReplicationMessages not implemented") -} -func (*UnimplementedHistoryAPIServer) ReapplyEvents(ctx context.Context, req *ReapplyEventsRequest) (*ReapplyEventsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReapplyEvents not implemented") -} -func (*UnimplementedHistoryAPIServer) RefreshWorkflowTasks(ctx context.Context, req *RefreshWorkflowTasksRequest) (*RefreshWorkflowTasksResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RefreshWorkflowTasks not implemented") -} -func (*UnimplementedHistoryAPIServer) ReadDLQMessages(ctx context.Context, req *ReadDLQMessagesRequest) (*ReadDLQMessagesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReadDLQMessages not implemented") -} -func (*UnimplementedHistoryAPIServer) PurgeDLQMessages(ctx context.Context, req *PurgeDLQMessagesRequest) (*PurgeDLQMessagesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PurgeDLQMessages not implemented") -} -func (*UnimplementedHistoryAPIServer) MergeDLQMessages(ctx context.Context, req *MergeDLQMessagesRequest) (*MergeDLQMessagesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MergeDLQMessages not implemented") -} -func (*UnimplementedHistoryAPIServer) NotifyFailoverMarkers(ctx context.Context, req *NotifyFailoverMarkersRequest) (*NotifyFailoverMarkersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method NotifyFailoverMarkers not implemented") -} - -func RegisterHistoryAPIServer(s *grpc.Server, srv HistoryAPIServer) { - s.RegisterService(&_HistoryAPI_serviceDesc, srv) -} - -func _HistoryAPI_StartWorkflowExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StartWorkflowExecutionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HistoryAPIServer).StartWorkflowExecution(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/StartWorkflowExecution", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).StartWorkflowExecution(ctx, req.(*StartWorkflowExecutionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HistoryAPI_SignalWorkflowExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SignalWorkflowExecutionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HistoryAPIServer).SignalWorkflowExecution(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/SignalWorkflowExecution", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).SignalWorkflowExecution(ctx, req.(*SignalWorkflowExecutionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HistoryAPI_SignalWithStartWorkflowExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SignalWithStartWorkflowExecutionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HistoryAPIServer).SignalWithStartWorkflowExecution(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/SignalWithStartWorkflowExecution", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).SignalWithStartWorkflowExecution(ctx, req.(*SignalWithStartWorkflowExecutionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HistoryAPI_ResetWorkflowExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ResetWorkflowExecutionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HistoryAPIServer).ResetWorkflowExecution(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/ResetWorkflowExecution", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).ResetWorkflowExecution(ctx, req.(*ResetWorkflowExecutionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HistoryAPI_TerminateWorkflowExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TerminateWorkflowExecutionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HistoryAPIServer).TerminateWorkflowExecution(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/TerminateWorkflowExecution", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).TerminateWorkflowExecution(ctx, req.(*TerminateWorkflowExecutionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HistoryAPI_DescribeWorkflowExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DescribeWorkflowExecutionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HistoryAPIServer).DescribeWorkflowExecution(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/DescribeWorkflowExecution", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).DescribeWorkflowExecution(ctx, req.(*DescribeWorkflowExecutionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HistoryAPI_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.(HistoryAPIServer).QueryWorkflow(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/QueryWorkflow", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).QueryWorkflow(ctx, req.(*QueryWorkflowRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HistoryAPI_ResetStickyTaskList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ResetStickyTaskListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HistoryAPIServer).ResetStickyTaskList(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/ResetStickyTaskList", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).ResetStickyTaskList(ctx, req.(*ResetStickyTaskListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HistoryAPI_GetMutableState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetMutableStateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HistoryAPIServer).GetMutableState(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/GetMutableState", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).GetMutableState(ctx, req.(*GetMutableStateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HistoryAPI_PollMutableState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PollMutableStateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HistoryAPIServer).PollMutableState(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/PollMutableState", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).PollMutableState(ctx, req.(*PollMutableStateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HistoryAPI_RecordDecisionTaskStarted_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RecordDecisionTaskStartedRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HistoryAPIServer).RecordDecisionTaskStarted(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/RecordDecisionTaskStarted", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).RecordDecisionTaskStarted(ctx, req.(*RecordDecisionTaskStartedRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HistoryAPI_RespondDecisionTaskCompleted_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RespondDecisionTaskCompletedRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HistoryAPIServer).RespondDecisionTaskCompleted(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/RespondDecisionTaskCompleted", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).RespondDecisionTaskCompleted(ctx, req.(*RespondDecisionTaskCompletedRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HistoryAPI_RespondDecisionTaskFailed_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RespondDecisionTaskFailedRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HistoryAPIServer).RespondDecisionTaskFailed(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/RespondDecisionTaskFailed", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).RespondDecisionTaskFailed(ctx, req.(*RespondDecisionTaskFailedRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HistoryAPI_RecordActivityTaskStarted_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RecordActivityTaskStartedRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HistoryAPIServer).RecordActivityTaskStarted(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/RecordActivityTaskStarted", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).RecordActivityTaskStarted(ctx, req.(*RecordActivityTaskStartedRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HistoryAPI_RespondActivityTaskCompleted_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RespondActivityTaskCompletedRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HistoryAPIServer).RespondActivityTaskCompleted(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/RespondActivityTaskCompleted", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).RespondActivityTaskCompleted(ctx, req.(*RespondActivityTaskCompletedRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HistoryAPI_RespondActivityTaskFailed_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RespondActivityTaskFailedRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HistoryAPIServer).RespondActivityTaskFailed(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/RespondActivityTaskFailed", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).RespondActivityTaskFailed(ctx, req.(*RespondActivityTaskFailedRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HistoryAPI_RespondActivityTaskCanceled_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RespondActivityTaskCanceledRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HistoryAPIServer).RespondActivityTaskCanceled(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/RespondActivityTaskCanceled", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).RespondActivityTaskCanceled(ctx, req.(*RespondActivityTaskCanceledRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HistoryAPI_RecordActivityTaskHeartbeat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RecordActivityTaskHeartbeatRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HistoryAPIServer).RecordActivityTaskHeartbeat(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/RecordActivityTaskHeartbeat", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).RecordActivityTaskHeartbeat(ctx, req.(*RecordActivityTaskHeartbeatRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HistoryAPI_RequestCancelWorkflowExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RequestCancelWorkflowExecutionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HistoryAPIServer).RequestCancelWorkflowExecution(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/RequestCancelWorkflowExecution", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).RequestCancelWorkflowExecution(ctx, req.(*RequestCancelWorkflowExecutionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HistoryAPI_RemoveSignalMutableState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RemoveSignalMutableStateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HistoryAPIServer).RemoveSignalMutableState(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/RemoveSignalMutableState", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).RemoveSignalMutableState(ctx, req.(*RemoveSignalMutableStateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HistoryAPI_ScheduleDecisionTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ScheduleDecisionTaskRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HistoryAPIServer).ScheduleDecisionTask(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/ScheduleDecisionTask", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).ScheduleDecisionTask(ctx, req.(*ScheduleDecisionTaskRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HistoryAPI_RecordChildExecutionCompleted_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RecordChildExecutionCompletedRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HistoryAPIServer).RecordChildExecutionCompleted(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/RecordChildExecutionCompleted", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).RecordChildExecutionCompleted(ctx, req.(*RecordChildExecutionCompletedRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HistoryAPI_ReplicateEventsV2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ReplicateEventsV2Request) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HistoryAPIServer).ReplicateEventsV2(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/ReplicateEventsV2", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).ReplicateEventsV2(ctx, req.(*ReplicateEventsV2Request)) - } - return interceptor(ctx, in, info, handler) -} - -func _HistoryAPI_SyncShardStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SyncShardStatusRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HistoryAPIServer).SyncShardStatus(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/SyncShardStatus", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).SyncShardStatus(ctx, req.(*SyncShardStatusRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HistoryAPI_SyncActivity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SyncActivityRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HistoryAPIServer).SyncActivity(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/SyncActivity", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).SyncActivity(ctx, req.(*SyncActivityRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HistoryAPI_DescribeMutableState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DescribeMutableStateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HistoryAPIServer).DescribeMutableState(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/DescribeMutableState", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).DescribeMutableState(ctx, req.(*DescribeMutableStateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HistoryAPI_DescribeHistoryHost_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DescribeHistoryHostRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HistoryAPIServer).DescribeHistoryHost(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/DescribeHistoryHost", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).DescribeHistoryHost(ctx, req.(*DescribeHistoryHostRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HistoryAPI_CloseShard_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CloseShardRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HistoryAPIServer).CloseShard(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/CloseShard", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).CloseShard(ctx, req.(*CloseShardRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HistoryAPI_RemoveTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RemoveTaskRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HistoryAPIServer).RemoveTask(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/RemoveTask", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).RemoveTask(ctx, req.(*RemoveTaskRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HistoryAPI_ResetQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ResetQueueRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HistoryAPIServer).ResetQueue(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/ResetQueue", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).ResetQueue(ctx, req.(*ResetQueueRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HistoryAPI_DescribeQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DescribeQueueRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HistoryAPIServer).DescribeQueue(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/DescribeQueue", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).DescribeQueue(ctx, req.(*DescribeQueueRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HistoryAPI_GetReplicationMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetReplicationMessagesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HistoryAPIServer).GetReplicationMessages(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/GetReplicationMessages", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).GetReplicationMessages(ctx, req.(*GetReplicationMessagesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HistoryAPI_GetDLQReplicationMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetDLQReplicationMessagesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HistoryAPIServer).GetDLQReplicationMessages(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/GetDLQReplicationMessages", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).GetDLQReplicationMessages(ctx, req.(*GetDLQReplicationMessagesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HistoryAPI_ReapplyEvents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ReapplyEventsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HistoryAPIServer).ReapplyEvents(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/ReapplyEvents", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).ReapplyEvents(ctx, req.(*ReapplyEventsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HistoryAPI_RefreshWorkflowTasks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RefreshWorkflowTasksRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HistoryAPIServer).RefreshWorkflowTasks(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/RefreshWorkflowTasks", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).RefreshWorkflowTasks(ctx, req.(*RefreshWorkflowTasksRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HistoryAPI_ReadDLQMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ReadDLQMessagesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HistoryAPIServer).ReadDLQMessages(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/ReadDLQMessages", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).ReadDLQMessages(ctx, req.(*ReadDLQMessagesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HistoryAPI_PurgeDLQMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PurgeDLQMessagesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HistoryAPIServer).PurgeDLQMessages(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/PurgeDLQMessages", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).PurgeDLQMessages(ctx, req.(*PurgeDLQMessagesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HistoryAPI_MergeDLQMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MergeDLQMessagesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HistoryAPIServer).MergeDLQMessages(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/MergeDLQMessages", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).MergeDLQMessages(ctx, req.(*MergeDLQMessagesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _HistoryAPI_NotifyFailoverMarkers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(NotifyFailoverMarkersRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HistoryAPIServer).NotifyFailoverMarkers(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.history.v1.HistoryAPI/NotifyFailoverMarkers", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HistoryAPIServer).NotifyFailoverMarkers(ctx, req.(*NotifyFailoverMarkersRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _HistoryAPI_serviceDesc = grpc.ServiceDesc{ - ServiceName: "uber.cadence.history.v1.HistoryAPI", - HandlerType: (*HistoryAPIServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "StartWorkflowExecution", - Handler: _HistoryAPI_StartWorkflowExecution_Handler, - }, - { - MethodName: "SignalWorkflowExecution", - Handler: _HistoryAPI_SignalWorkflowExecution_Handler, - }, - { - MethodName: "SignalWithStartWorkflowExecution", - Handler: _HistoryAPI_SignalWithStartWorkflowExecution_Handler, - }, - { - MethodName: "ResetWorkflowExecution", - Handler: _HistoryAPI_ResetWorkflowExecution_Handler, - }, - { - MethodName: "TerminateWorkflowExecution", - Handler: _HistoryAPI_TerminateWorkflowExecution_Handler, - }, - { - MethodName: "DescribeWorkflowExecution", - Handler: _HistoryAPI_DescribeWorkflowExecution_Handler, - }, - { - MethodName: "QueryWorkflow", - Handler: _HistoryAPI_QueryWorkflow_Handler, - }, - { - MethodName: "ResetStickyTaskList", - Handler: _HistoryAPI_ResetStickyTaskList_Handler, - }, - { - MethodName: "GetMutableState", - Handler: _HistoryAPI_GetMutableState_Handler, - }, - { - MethodName: "PollMutableState", - Handler: _HistoryAPI_PollMutableState_Handler, - }, - { - MethodName: "RecordDecisionTaskStarted", - Handler: _HistoryAPI_RecordDecisionTaskStarted_Handler, - }, - { - MethodName: "RespondDecisionTaskCompleted", - Handler: _HistoryAPI_RespondDecisionTaskCompleted_Handler, - }, - { - MethodName: "RespondDecisionTaskFailed", - Handler: _HistoryAPI_RespondDecisionTaskFailed_Handler, - }, - { - MethodName: "RecordActivityTaskStarted", - Handler: _HistoryAPI_RecordActivityTaskStarted_Handler, - }, - { - MethodName: "RespondActivityTaskCompleted", - Handler: _HistoryAPI_RespondActivityTaskCompleted_Handler, - }, - { - MethodName: "RespondActivityTaskFailed", - Handler: _HistoryAPI_RespondActivityTaskFailed_Handler, - }, - { - MethodName: "RespondActivityTaskCanceled", - Handler: _HistoryAPI_RespondActivityTaskCanceled_Handler, - }, - { - MethodName: "RecordActivityTaskHeartbeat", - Handler: _HistoryAPI_RecordActivityTaskHeartbeat_Handler, - }, - { - MethodName: "RequestCancelWorkflowExecution", - Handler: _HistoryAPI_RequestCancelWorkflowExecution_Handler, - }, - { - MethodName: "RemoveSignalMutableState", - Handler: _HistoryAPI_RemoveSignalMutableState_Handler, - }, - { - MethodName: "ScheduleDecisionTask", - Handler: _HistoryAPI_ScheduleDecisionTask_Handler, - }, - { - MethodName: "RecordChildExecutionCompleted", - Handler: _HistoryAPI_RecordChildExecutionCompleted_Handler, - }, - { - MethodName: "ReplicateEventsV2", - Handler: _HistoryAPI_ReplicateEventsV2_Handler, - }, - { - MethodName: "SyncShardStatus", - Handler: _HistoryAPI_SyncShardStatus_Handler, - }, - { - MethodName: "SyncActivity", - Handler: _HistoryAPI_SyncActivity_Handler, - }, - { - MethodName: "DescribeMutableState", - Handler: _HistoryAPI_DescribeMutableState_Handler, - }, - { - MethodName: "DescribeHistoryHost", - Handler: _HistoryAPI_DescribeHistoryHost_Handler, - }, - { - MethodName: "CloseShard", - Handler: _HistoryAPI_CloseShard_Handler, - }, - { - MethodName: "RemoveTask", - Handler: _HistoryAPI_RemoveTask_Handler, - }, - { - MethodName: "ResetQueue", - Handler: _HistoryAPI_ResetQueue_Handler, - }, - { - MethodName: "DescribeQueue", - Handler: _HistoryAPI_DescribeQueue_Handler, - }, - { - MethodName: "GetReplicationMessages", - Handler: _HistoryAPI_GetReplicationMessages_Handler, - }, - { - MethodName: "GetDLQReplicationMessages", - Handler: _HistoryAPI_GetDLQReplicationMessages_Handler, - }, - { - MethodName: "ReapplyEvents", - Handler: _HistoryAPI_ReapplyEvents_Handler, - }, - { - MethodName: "RefreshWorkflowTasks", - Handler: _HistoryAPI_RefreshWorkflowTasks_Handler, - }, - { - MethodName: "ReadDLQMessages", - Handler: _HistoryAPI_ReadDLQMessages_Handler, - }, - { - MethodName: "PurgeDLQMessages", - Handler: _HistoryAPI_PurgeDLQMessages_Handler, - }, - { - MethodName: "MergeDLQMessages", - Handler: _HistoryAPI_MergeDLQMessages_Handler, - }, - { - MethodName: "NotifyFailoverMarkers", - Handler: _HistoryAPI_NotifyFailoverMarkers_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "github.com/uber/cadence/.gen/proto/history/v1/service.proto", -} - -func (m *StartWorkflowExecutionRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StartWorkflowExecutionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StartWorkflowExecutionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.FirstDecisionTaskBackoff != nil { - n1, err1 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.FirstDecisionTaskBackoff, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.FirstDecisionTaskBackoff):]) - if err1 != nil { - return 0, err1 - } - i -= n1 - i = encodeVarintService(dAtA, i, uint64(n1)) - i-- - dAtA[i] = 0x4a - } - if m.LastCompletionResult != nil { - { - size, err := m.LastCompletionResult.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } - if m.ContinuedFailure != nil { - { - size, err := m.ContinuedFailure.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - if m.ContinueAsNewInitiator != 0 { - i = encodeVarintService(dAtA, i, uint64(m.ContinueAsNewInitiator)) - i-- - dAtA[i] = 0x30 - } - if m.ExpirationTime != nil { - n4, err4 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.ExpirationTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.ExpirationTime):]) - if err4 != nil { - return 0, err4 - } - i -= n4 - i = encodeVarintService(dAtA, i, uint64(n4)) - i-- - dAtA[i] = 0x2a - } - if m.Attempt != 0 { - i = encodeVarintService(dAtA, i, uint64(m.Attempt)) - i-- - dAtA[i] = 0x20 - } - if m.ParentExecutionInfo != nil { - { - size, err := m.ParentExecutionInfo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintService(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0x12 - } - if m.Request != nil { - { - size, err := m.Request.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *StartWorkflowExecutionResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StartWorkflowExecutionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StartWorkflowExecutionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RunId) > 0 { - i -= len(m.RunId) - copy(dAtA[i:], m.RunId) - i = encodeVarintService(dAtA, i, uint64(len(m.RunId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *SignalWorkflowExecutionRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SignalWorkflowExecutionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SignalWorkflowExecutionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ChildWorkflowOnly { - i-- - if m.ChildWorkflowOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if m.ExternalWorkflowExecution != nil { - { - size, err := m.ExternalWorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintService(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0x12 - } - if m.Request != nil { - { - size, err := m.Request.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *SignalWorkflowExecutionResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SignalWorkflowExecutionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SignalWorkflowExecutionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *SignalWithStartWorkflowExecutionRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SignalWithStartWorkflowExecutionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SignalWithStartWorkflowExecutionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintService(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0x12 - } - if m.Request != nil { - { - size, err := m.Request.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *SignalWithStartWorkflowExecutionResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SignalWithStartWorkflowExecutionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SignalWithStartWorkflowExecutionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RunId) > 0 { - i -= len(m.RunId) - copy(dAtA[i:], m.RunId) - i = encodeVarintService(dAtA, i, uint64(len(m.RunId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ResetWorkflowExecutionRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResetWorkflowExecutionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResetWorkflowExecutionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintService(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0x12 - } - if m.Request != nil { - { - size, err := m.Request.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ResetWorkflowExecutionResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResetWorkflowExecutionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResetWorkflowExecutionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RunId) > 0 { - i -= len(m.RunId) - copy(dAtA[i:], m.RunId) - i = encodeVarintService(dAtA, i, uint64(len(m.RunId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *TerminateWorkflowExecutionRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TerminateWorkflowExecutionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TerminateWorkflowExecutionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintService(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0x12 - } - if m.Request != nil { - { - size, err := m.Request.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *TerminateWorkflowExecutionResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TerminateWorkflowExecutionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TerminateWorkflowExecutionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *DescribeWorkflowExecutionRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DescribeWorkflowExecutionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DescribeWorkflowExecutionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintService(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0x12 - } - if m.Request != nil { - { - size, err := m.Request.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DescribeWorkflowExecutionResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DescribeWorkflowExecutionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DescribeWorkflowExecutionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.PendingDecision != nil { - { - size, err := m.PendingDecision.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if len(m.PendingChildren) > 0 { - for iNdEx := len(m.PendingChildren) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.PendingChildren[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - if len(m.PendingActivities) > 0 { - for iNdEx := len(m.PendingActivities) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.PendingActivities[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if m.WorkflowExecutionInfo != nil { - { - size, err := m.WorkflowExecutionInfo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.ExecutionConfiguration != nil { - { - size, err := m.ExecutionConfiguration.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryWorkflowRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryWorkflowRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryWorkflowRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintService(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0x12 - } - if m.Request != nil { - { - size, err := m.Request.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryWorkflowResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryWorkflowResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryWorkflowResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.QueryRejected != nil { - { - size, err := m.QueryRejected.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.QueryResult != nil { - { - size, err := m.QueryResult.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ResetStickyTaskListRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResetStickyTaskListRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResetStickyTaskListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintService(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0x12 - } - if m.Request != nil { - { - size, err := m.Request.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ResetStickyTaskListResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResetStickyTaskListResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResetStickyTaskListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *GetMutableStateRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetMutableStateRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetMutableStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.CurrentBranchToken) > 0 { - i -= len(m.CurrentBranchToken) - copy(dAtA[i:], m.CurrentBranchToken) - i = encodeVarintService(dAtA, i, uint64(len(m.CurrentBranchToken))) - i-- - dAtA[i] = 0x22 - } - if m.ExpectedNextEventId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.ExpectedNextEventId)) - i-- - dAtA[i] = 0x18 - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintService(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *GetMutableStateResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetMutableStateResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetMutableStateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.IsStickyTaskListEnabled { - i-- - if m.IsStickyTaskListEnabled { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x88 - } - if m.VersionHistories != nil { - { - size, err := m.VersionHistories.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 - } - if m.WorkflowCloseState != 0 { - i = encodeVarintService(dAtA, i, uint64(m.WorkflowCloseState)) - i-- - dAtA[i] = 0x78 - } - if m.WorkflowState != 0 { - i = encodeVarintService(dAtA, i, uint64(m.WorkflowState)) - i-- - dAtA[i] = 0x70 - } - if len(m.CurrentBranchToken) > 0 { - i -= len(m.CurrentBranchToken) - copy(dAtA[i:], m.CurrentBranchToken) - i = encodeVarintService(dAtA, i, uint64(len(m.CurrentBranchToken))) - i-- - dAtA[i] = 0x6a - } - if m.EventStoreVersion != 0 { - i = encodeVarintService(dAtA, i, uint64(m.EventStoreVersion)) - i-- - dAtA[i] = 0x60 - } - if m.StickyTaskListScheduleToStartTimeout != nil { - n22, err22 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.StickyTaskListScheduleToStartTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.StickyTaskListScheduleToStartTimeout):]) - if err22 != nil { - return 0, err22 - } - i -= n22 - i = encodeVarintService(dAtA, i, uint64(n22)) - i-- - dAtA[i] = 0x5a - } - if len(m.ClientImpl) > 0 { - i -= len(m.ClientImpl) - copy(dAtA[i:], m.ClientImpl) - i = encodeVarintService(dAtA, i, uint64(len(m.ClientImpl))) - i-- - dAtA[i] = 0x52 - } - if len(m.ClientFeatureVersion) > 0 { - i -= len(m.ClientFeatureVersion) - copy(dAtA[i:], m.ClientFeatureVersion) - i = encodeVarintService(dAtA, i, uint64(len(m.ClientFeatureVersion))) - i-- - dAtA[i] = 0x4a - } - if len(m.ClientLibraryVersion) > 0 { - i -= len(m.ClientLibraryVersion) - copy(dAtA[i:], m.ClientLibraryVersion) - i = encodeVarintService(dAtA, i, uint64(len(m.ClientLibraryVersion))) - i-- - dAtA[i] = 0x42 - } - if m.StickyTaskList != nil { - { - size, err := m.StickyTaskList.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - if m.TaskList != nil { - { - size, err := m.TaskList.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if m.LastFirstEventId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.LastFirstEventId)) - i-- - dAtA[i] = 0x28 - } - if m.PreviousStartedEventId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.PreviousStartedEventId)) - i-- - dAtA[i] = 0x20 - } - if m.NextEventId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.NextEventId)) - i-- - dAtA[i] = 0x18 - } - if m.WorkflowType != nil { - { - size, err := m.WorkflowType.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *PollMutableStateRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PollMutableStateRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PollMutableStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.CurrentBranchToken) > 0 { - i -= len(m.CurrentBranchToken) - copy(dAtA[i:], m.CurrentBranchToken) - i = encodeVarintService(dAtA, i, uint64(len(m.CurrentBranchToken))) - i-- - dAtA[i] = 0x22 - } - if m.ExpectedNextEventId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.ExpectedNextEventId)) - i-- - dAtA[i] = 0x18 - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintService(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *PollMutableStateResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PollMutableStateResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PollMutableStateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.WorkflowCloseState != 0 { - i = encodeVarintService(dAtA, i, uint64(m.WorkflowCloseState)) - i-- - dAtA[i] = 0x78 - } - if m.WorkflowState != 0 { - i = encodeVarintService(dAtA, i, uint64(m.WorkflowState)) - i-- - dAtA[i] = 0x70 - } - if m.VersionHistories != nil { - { - size, err := m.VersionHistories.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a - } - if len(m.CurrentBranchToken) > 0 { - i -= len(m.CurrentBranchToken) - copy(dAtA[i:], m.CurrentBranchToken) - i = encodeVarintService(dAtA, i, uint64(len(m.CurrentBranchToken))) - i-- - dAtA[i] = 0x62 - } - if m.StickyTaskListScheduleToStartTimeout != nil { - n29, err29 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.StickyTaskListScheduleToStartTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.StickyTaskListScheduleToStartTimeout):]) - if err29 != nil { - return 0, err29 - } - i -= n29 - i = encodeVarintService(dAtA, i, uint64(n29)) - i-- - dAtA[i] = 0x5a - } - if len(m.ClientImpl) > 0 { - i -= len(m.ClientImpl) - copy(dAtA[i:], m.ClientImpl) - i = encodeVarintService(dAtA, i, uint64(len(m.ClientImpl))) - i-- - dAtA[i] = 0x52 - } - if len(m.ClientFeatureVersion) > 0 { - i -= len(m.ClientFeatureVersion) - copy(dAtA[i:], m.ClientFeatureVersion) - i = encodeVarintService(dAtA, i, uint64(len(m.ClientFeatureVersion))) - i-- - dAtA[i] = 0x4a - } - if len(m.ClientLibraryVersion) > 0 { - i -= len(m.ClientLibraryVersion) - copy(dAtA[i:], m.ClientLibraryVersion) - i = encodeVarintService(dAtA, i, uint64(len(m.ClientLibraryVersion))) - i-- - dAtA[i] = 0x42 - } - if m.StickyTaskList != nil { - { - size, err := m.StickyTaskList.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - if m.TaskList != nil { - { - size, err := m.TaskList.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if m.LastFirstEventId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.LastFirstEventId)) - i-- - dAtA[i] = 0x28 - } - if m.PreviousStartedEventId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.PreviousStartedEventId)) - i-- - dAtA[i] = 0x20 - } - if m.NextEventId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.NextEventId)) - i-- - dAtA[i] = 0x18 - } - if m.WorkflowType != nil { - { - size, err := m.WorkflowType.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RecordDecisionTaskStartedRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RecordDecisionTaskStartedRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RecordDecisionTaskStartedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.PollRequest != nil { - { - size, err := m.PollRequest.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if len(m.RequestId) > 0 { - i -= len(m.RequestId) - copy(dAtA[i:], m.RequestId) - i = encodeVarintService(dAtA, i, uint64(len(m.RequestId))) - i-- - dAtA[i] = 0x2a - } - if m.TaskId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.TaskId)) - i-- - dAtA[i] = 0x20 - } - if m.ScheduleId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.ScheduleId)) - i-- - dAtA[i] = 0x18 - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintService(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RecordDecisionTaskStartedResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RecordDecisionTaskStartedResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RecordDecisionTaskStartedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Queries) > 0 { - for k := range m.Queries { - v := m.Queries[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintService(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintService(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x72 - } - } - if m.StartedTime != nil { - n37, err37 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.StartedTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.StartedTime):]) - if err37 != nil { - return 0, err37 - } - i -= n37 - i = encodeVarintService(dAtA, i, uint64(n37)) - i-- - dAtA[i] = 0x6a - } - if m.ScheduledTime != nil { - n38, err38 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.ScheduledTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.ScheduledTime):]) - if err38 != nil { - return 0, err38 - } - i -= n38 - i = encodeVarintService(dAtA, i, uint64(n38)) - i-- - dAtA[i] = 0x62 - } - if len(m.BranchToken) > 0 { - i -= len(m.BranchToken) - copy(dAtA[i:], m.BranchToken) - i = encodeVarintService(dAtA, i, uint64(len(m.BranchToken))) - i-- - dAtA[i] = 0x5a - } - if m.EventStoreVersion != 0 { - i = encodeVarintService(dAtA, i, uint64(m.EventStoreVersion)) - i-- - dAtA[i] = 0x50 - } - if m.WorkflowExecutionTaskList != nil { - { - size, err := m.WorkflowExecutionTaskList.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - } - if m.DecisionInfo != nil { - { - size, err := m.DecisionInfo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } - if m.StickyExecutionEnabled { - i-- - if m.StickyExecutionEnabled { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x38 - } - if m.Attempt != 0 { - i = encodeVarintService(dAtA, i, uint64(m.Attempt)) - i-- - dAtA[i] = 0x30 - } - if m.NextEventId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.NextEventId)) - i-- - dAtA[i] = 0x28 - } - if m.StartedEventId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.StartedEventId)) - i-- - dAtA[i] = 0x20 - } - if m.ScheduledEventId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.ScheduledEventId)) - i-- - dAtA[i] = 0x18 - } - if m.PreviousStartedEventId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.PreviousStartedEventId)) - i-- - dAtA[i] = 0x10 - } - if m.WorkflowType != nil { - { - size, err := m.WorkflowType.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RecordActivityTaskStartedRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RecordActivityTaskStartedRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RecordActivityTaskStartedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.PollRequest != nil { - { - size, err := m.PollRequest.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if len(m.RequestId) > 0 { - i -= len(m.RequestId) - copy(dAtA[i:], m.RequestId) - i = encodeVarintService(dAtA, i, uint64(len(m.RequestId))) - i-- - dAtA[i] = 0x2a - } - if m.TaskId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.TaskId)) - i-- - dAtA[i] = 0x20 - } - if m.ScheduleId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.ScheduleId)) - i-- - dAtA[i] = 0x18 - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintService(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RecordActivityTaskStartedResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RecordActivityTaskStartedResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RecordActivityTaskStartedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.WorkflowDomain) > 0 { - i -= len(m.WorkflowDomain) - copy(dAtA[i:], m.WorkflowDomain) - i = encodeVarintService(dAtA, i, uint64(len(m.WorkflowDomain))) - i-- - dAtA[i] = 0x3a - } - if m.WorkflowType != nil { - { - size, err := m.WorkflowType.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if m.HeartbeatDetails != nil { - { - size, err := m.HeartbeatDetails.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.ScheduledTimeOfThisAttempt != nil { - n46, err46 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.ScheduledTimeOfThisAttempt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.ScheduledTimeOfThisAttempt):]) - if err46 != nil { - return 0, err46 - } - i -= n46 - i = encodeVarintService(dAtA, i, uint64(n46)) - i-- - dAtA[i] = 0x22 - } - if m.Attempt != 0 { - i = encodeVarintService(dAtA, i, uint64(m.Attempt)) - i-- - dAtA[i] = 0x18 - } - if m.StartedTime != nil { - n47, err47 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.StartedTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.StartedTime):]) - if err47 != nil { - return 0, err47 - } - i -= n47 - i = encodeVarintService(dAtA, i, uint64(n47)) - i-- - dAtA[i] = 0x12 - } - if m.ScheduledEvent != nil { - { - size, err := m.ScheduledEvent.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RespondDecisionTaskCompletedRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RespondDecisionTaskCompletedRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RespondDecisionTaskCompletedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintService(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0x12 - } - if m.Request != nil { - { - size, err := m.Request.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RespondDecisionTaskCompletedResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RespondDecisionTaskCompletedResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RespondDecisionTaskCompletedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ActivitiesToDispatchLocally) > 0 { - for k := range m.ActivitiesToDispatchLocally { - v := m.ActivitiesToDispatchLocally[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintService(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintService(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 - } - } - if m.StartedResponse != nil { - { - size, err := m.StartedResponse.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RespondDecisionTaskFailedRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RespondDecisionTaskFailedRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RespondDecisionTaskFailedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintService(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0x12 - } - if m.Request != nil { - { - size, err := m.Request.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RespondDecisionTaskFailedResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RespondDecisionTaskFailedResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RespondDecisionTaskFailedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RecordActivityTaskHeartbeatRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RecordActivityTaskHeartbeatRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RecordActivityTaskHeartbeatRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintService(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0x12 - } - if m.Request != nil { - { - size, err := m.Request.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RecordActivityTaskHeartbeatResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RecordActivityTaskHeartbeatResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RecordActivityTaskHeartbeatResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.CancelRequested { - i-- - if m.CancelRequested { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *RespondActivityTaskCompletedRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RespondActivityTaskCompletedRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RespondActivityTaskCompletedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintService(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0x12 - } - if m.Request != nil { - { - size, err := m.Request.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RespondActivityTaskCompletedResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RespondActivityTaskCompletedResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RespondActivityTaskCompletedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RespondActivityTaskFailedRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RespondActivityTaskFailedRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RespondActivityTaskFailedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintService(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0x12 - } - if m.Request != nil { - { - size, err := m.Request.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RespondActivityTaskFailedResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RespondActivityTaskFailedResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RespondActivityTaskFailedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RespondActivityTaskCanceledRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RespondActivityTaskCanceledRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RespondActivityTaskCanceledRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintService(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0x12 - } - if m.Request != nil { - { - size, err := m.Request.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RespondActivityTaskCanceledResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RespondActivityTaskCanceledResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RespondActivityTaskCanceledResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RemoveSignalMutableStateRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RemoveSignalMutableStateRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RemoveSignalMutableStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RequestId) > 0 { - i -= len(m.RequestId) - copy(dAtA[i:], m.RequestId) - i = encodeVarintService(dAtA, i, uint64(len(m.RequestId))) - i-- - dAtA[i] = 0x1a - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintService(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RemoveSignalMutableStateResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RemoveSignalMutableStateResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RemoveSignalMutableStateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RequestCancelWorkflowExecutionRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RequestCancelWorkflowExecutionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RequestCancelWorkflowExecutionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ChildWorkflowOnly { - i-- - if m.ChildWorkflowOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 - } - if m.ExternalWorkflowExecution != nil { - { - size, err := m.ExternalWorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.ExternalInitiatedEventId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.ExternalInitiatedEventId)) - i-- - dAtA[i] = 0x18 - } - if m.CancelRequest != nil { - { - size, err := m.CancelRequest.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintService(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RequestCancelWorkflowExecutionResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RequestCancelWorkflowExecutionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RequestCancelWorkflowExecutionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *ScheduleDecisionTaskRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ScheduleDecisionTaskRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ScheduleDecisionTaskRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.IsFirstDecision { - i-- - if m.IsFirstDecision { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintService(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ScheduleDecisionTaskResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ScheduleDecisionTaskResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ScheduleDecisionTaskResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RecordChildExecutionCompletedRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RecordChildExecutionCompletedRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RecordChildExecutionCompletedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.CompletionEvent != nil { - { - size, err := m.CompletionEvent.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.CompletedExecution != nil { - { - size, err := m.CompletedExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.InitiatedId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.InitiatedId)) - i-- - dAtA[i] = 0x18 - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintService(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RecordChildExecutionCompletedResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RecordChildExecutionCompletedResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RecordChildExecutionCompletedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *ReplicateEventsV2Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReplicateEventsV2Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicateEventsV2Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.NewRunEvents != nil { - { - size, err := m.NewRunEvents.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.Events != nil { - { - size, err := m.Events.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.VersionHistoryItems) > 0 { - for iNdEx := len(m.VersionHistoryItems) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.VersionHistoryItems[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintService(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ReplicateEventsV2Response) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReplicateEventsV2Response) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicateEventsV2Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *SyncShardStatusRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SyncShardStatusRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SyncShardStatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Time != nil { - n67, err67 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.Time, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.Time):]) - if err67 != nil { - return 0, err67 - } - i -= n67 - i = encodeVarintService(dAtA, i, uint64(n67)) - i-- - dAtA[i] = 0x1a - } - if m.ShardId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.ShardId)) - i-- - dAtA[i] = 0x10 - } - if len(m.SourceCluster) > 0 { - i -= len(m.SourceCluster) - copy(dAtA[i:], m.SourceCluster) - i = encodeVarintService(dAtA, i, uint64(len(m.SourceCluster))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *SyncShardStatusResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SyncShardStatusResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SyncShardStatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *SyncActivityRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SyncActivityRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SyncActivityRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.VersionHistory != nil { - { - size, err := m.VersionHistory.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a - } - if len(m.LastWorkerIdentity) > 0 { - i -= len(m.LastWorkerIdentity) - copy(dAtA[i:], m.LastWorkerIdentity) - i = encodeVarintService(dAtA, i, uint64(len(m.LastWorkerIdentity))) - i-- - dAtA[i] = 0x62 - } - if m.LastFailure != nil { - { - size, err := m.LastFailure.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - } - if m.Attempt != 0 { - i = encodeVarintService(dAtA, i, uint64(m.Attempt)) - i-- - dAtA[i] = 0x50 - } - if m.Details != nil { - { - size, err := m.Details.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - } - if m.LastHeartbeatTime != nil { - n71, err71 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.LastHeartbeatTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.LastHeartbeatTime):]) - if err71 != nil { - return 0, err71 - } - i -= n71 - i = encodeVarintService(dAtA, i, uint64(n71)) - i-- - dAtA[i] = 0x42 - } - if m.StartedTime != nil { - n72, err72 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.StartedTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.StartedTime):]) - if err72 != nil { - return 0, err72 - } - i -= n72 - i = encodeVarintService(dAtA, i, uint64(n72)) - i-- - dAtA[i] = 0x3a - } - if m.StartedId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.StartedId)) - i-- - dAtA[i] = 0x30 - } - if m.ScheduledTime != nil { - n73, err73 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.ScheduledTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.ScheduledTime):]) - if err73 != nil { - return 0, err73 - } - i -= n73 - i = encodeVarintService(dAtA, i, uint64(n73)) - i-- - dAtA[i] = 0x2a - } - if m.ScheduledId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.ScheduledId)) - i-- - dAtA[i] = 0x20 - } - if m.Version != 0 { - i = encodeVarintService(dAtA, i, uint64(m.Version)) - i-- - dAtA[i] = 0x18 - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintService(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *SyncActivityResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SyncActivityResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SyncActivityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *DescribeMutableStateRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DescribeMutableStateRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DescribeMutableStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintService(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DescribeMutableStateResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DescribeMutableStateResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DescribeMutableStateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.MutableStateInDatabase) > 0 { - i -= len(m.MutableStateInDatabase) - copy(dAtA[i:], m.MutableStateInDatabase) - i = encodeVarintService(dAtA, i, uint64(len(m.MutableStateInDatabase))) - i-- - dAtA[i] = 0x12 - } - if len(m.MutableStateInCache) > 0 { - i -= len(m.MutableStateInCache) - copy(dAtA[i:], m.MutableStateInCache) - i = encodeVarintService(dAtA, i, uint64(len(m.MutableStateInCache))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DescribeHistoryHostRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DescribeHistoryHostRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DescribeHistoryHostRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.ShardId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.ShardId)) - i-- - dAtA[i] = 0x10 - } - if len(m.HostAddress) > 0 { - i -= len(m.HostAddress) - copy(dAtA[i:], m.HostAddress) - i = encodeVarintService(dAtA, i, uint64(len(m.HostAddress))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DescribeHistoryHostResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DescribeHistoryHostResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DescribeHistoryHostResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintService(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0x2a - } - if len(m.ShardControllerStatus) > 0 { - i -= len(m.ShardControllerStatus) - copy(dAtA[i:], m.ShardControllerStatus) - i = encodeVarintService(dAtA, i, uint64(len(m.ShardControllerStatus))) - i-- - dAtA[i] = 0x22 - } - if m.DomainCache != nil { - { - size, err := m.DomainCache.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.ShardIds) > 0 { - dAtA79 := make([]byte, len(m.ShardIds)*10) - var j78 int - for _, num1 := range m.ShardIds { - num := uint64(num1) - for num >= 1<<7 { - dAtA79[j78] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j78++ - } - dAtA79[j78] = uint8(num) - j78++ - } - i -= j78 - copy(dAtA[i:], dAtA79[:j78]) - i = encodeVarintService(dAtA, i, uint64(j78)) - i-- - dAtA[i] = 0x12 - } - if m.NumberOfShards != 0 { - i = encodeVarintService(dAtA, i, uint64(m.NumberOfShards)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *CloseShardRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CloseShardRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CloseShardRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ShardId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.ShardId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *CloseShardResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CloseShardResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CloseShardResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RemoveTaskRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RemoveTaskRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RemoveTaskRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.VisibilityTime != nil { - n80, err80 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.VisibilityTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.VisibilityTime):]) - if err80 != nil { - return 0, err80 - } - i -= n80 - i = encodeVarintService(dAtA, i, uint64(n80)) - i-- - dAtA[i] = 0x22 - } - if m.TaskId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.TaskId)) - i-- - dAtA[i] = 0x18 - } - if m.TaskType != 0 { - i = encodeVarintService(dAtA, i, uint64(m.TaskType)) - i-- - dAtA[i] = 0x10 - } - if m.ShardId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.ShardId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *RemoveTaskResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RemoveTaskResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RemoveTaskResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *ResetQueueRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResetQueueRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResetQueueRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.TaskType != 0 { - i = encodeVarintService(dAtA, i, uint64(m.TaskType)) - i-- - dAtA[i] = 0x18 - } - if len(m.ClusterName) > 0 { - i -= len(m.ClusterName) - copy(dAtA[i:], m.ClusterName) - i = encodeVarintService(dAtA, i, uint64(len(m.ClusterName))) - i-- - dAtA[i] = 0x12 - } - if m.ShardId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.ShardId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ResetQueueResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResetQueueResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResetQueueResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *DescribeQueueRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DescribeQueueRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DescribeQueueRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.TaskType != 0 { - i = encodeVarintService(dAtA, i, uint64(m.TaskType)) - i-- - dAtA[i] = 0x18 - } - if len(m.ClusterName) > 0 { - i -= len(m.ClusterName) - copy(dAtA[i:], m.ClusterName) - i = encodeVarintService(dAtA, i, uint64(len(m.ClusterName))) - i-- - dAtA[i] = 0x12 - } - if m.ShardId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.ShardId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *DescribeQueueResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DescribeQueueResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DescribeQueueResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ProcessingQueueStates) > 0 { - for iNdEx := len(m.ProcessingQueueStates) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.ProcessingQueueStates[iNdEx]) - copy(dAtA[i:], m.ProcessingQueueStates[iNdEx]) - i = encodeVarintService(dAtA, i, uint64(len(m.ProcessingQueueStates[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *GetReplicationMessagesRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetReplicationMessagesRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetReplicationMessagesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ClusterName) > 0 { - i -= len(m.ClusterName) - copy(dAtA[i:], m.ClusterName) - i = encodeVarintService(dAtA, i, uint64(len(m.ClusterName))) - i-- - dAtA[i] = 0x12 - } - if len(m.Tokens) > 0 { - for iNdEx := len(m.Tokens) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Tokens[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *GetReplicationMessagesResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetReplicationMessagesResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetReplicationMessagesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ShardMessages) > 0 { - for k := range m.ShardMessages { - v := m.ShardMessages[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i = encodeVarintService(dAtA, i, uint64(k)) - i-- - dAtA[i] = 0x8 - i = encodeVarintService(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *GetDLQReplicationMessagesRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetDLQReplicationMessagesRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetDLQReplicationMessagesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.TaskInfos) > 0 { - for iNdEx := len(m.TaskInfos) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.TaskInfos[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *GetDLQReplicationMessagesResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetDLQReplicationMessagesResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetDLQReplicationMessagesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ReplicationTasks) > 0 { - for iNdEx := len(m.ReplicationTasks) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ReplicationTasks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ReapplyEventsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReapplyEventsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReapplyEventsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Events != nil { - { - size, err := m.Events.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintService(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0x12 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintService(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ReapplyEventsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReapplyEventsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReapplyEventsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RefreshWorkflowTasksRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RefreshWorkflowTasksRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RefreshWorkflowTasksRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintService(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0x12 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintService(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RefreshWorkflowTasksResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RefreshWorkflowTasksResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RefreshWorkflowTasksResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *ReadDLQMessagesRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReadDLQMessagesRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReadDLQMessagesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.NextPageToken) > 0 { - i -= len(m.NextPageToken) - copy(dAtA[i:], m.NextPageToken) - i = encodeVarintService(dAtA, i, uint64(len(m.NextPageToken))) - i-- - dAtA[i] = 0x32 - } - if m.PageSize != 0 { - i = encodeVarintService(dAtA, i, uint64(m.PageSize)) - i-- - dAtA[i] = 0x28 - } - if m.InclusiveEndMessageId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.InclusiveEndMessageId)) - i-- - dAtA[i] = 0x20 - } - if len(m.SourceCluster) > 0 { - i -= len(m.SourceCluster) - copy(dAtA[i:], m.SourceCluster) - i = encodeVarintService(dAtA, i, uint64(len(m.SourceCluster))) - i-- - dAtA[i] = 0x1a - } - if m.ShardId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.ShardId)) - i-- - dAtA[i] = 0x10 - } - if m.Type != 0 { - i = encodeVarintService(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ReadDLQMessagesResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReadDLQMessagesResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReadDLQMessagesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.NextPageToken) > 0 { - i -= len(m.NextPageToken) - copy(dAtA[i:], m.NextPageToken) - i = encodeVarintService(dAtA, i, uint64(len(m.NextPageToken))) - i-- - dAtA[i] = 0x1a - } - if len(m.ReplicationTasks) > 0 { - for iNdEx := len(m.ReplicationTasks) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ReplicationTasks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if m.Type != 0 { - i = encodeVarintService(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *PurgeDLQMessagesRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PurgeDLQMessagesRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PurgeDLQMessagesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.InclusiveEndMessageId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.InclusiveEndMessageId)) - i-- - dAtA[i] = 0x20 - } - if len(m.SourceCluster) > 0 { - i -= len(m.SourceCluster) - copy(dAtA[i:], m.SourceCluster) - i = encodeVarintService(dAtA, i, uint64(len(m.SourceCluster))) - i-- - dAtA[i] = 0x1a - } - if m.ShardId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.ShardId)) - i-- - dAtA[i] = 0x10 - } - if m.Type != 0 { - i = encodeVarintService(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *PurgeDLQMessagesResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PurgeDLQMessagesResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PurgeDLQMessagesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MergeDLQMessagesRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MergeDLQMessagesRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MergeDLQMessagesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.NextPageToken) > 0 { - i -= len(m.NextPageToken) - copy(dAtA[i:], m.NextPageToken) - i = encodeVarintService(dAtA, i, uint64(len(m.NextPageToken))) - i-- - dAtA[i] = 0x32 - } - if m.PageSize != 0 { - i = encodeVarintService(dAtA, i, uint64(m.PageSize)) - i-- - dAtA[i] = 0x28 - } - if m.InclusiveEndMessageId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.InclusiveEndMessageId)) - i-- - dAtA[i] = 0x20 - } - if len(m.SourceCluster) > 0 { - i -= len(m.SourceCluster) - copy(dAtA[i:], m.SourceCluster) - i = encodeVarintService(dAtA, i, uint64(len(m.SourceCluster))) - i-- - dAtA[i] = 0x1a - } - if m.ShardId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.ShardId)) - i-- - dAtA[i] = 0x10 - } - if m.Type != 0 { - i = encodeVarintService(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *MergeDLQMessagesResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MergeDLQMessagesResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MergeDLQMessagesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.NextPageToken) > 0 { - i -= len(m.NextPageToken) - copy(dAtA[i:], m.NextPageToken) - i = encodeVarintService(dAtA, i, uint64(len(m.NextPageToken))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *NotifyFailoverMarkersRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NotifyFailoverMarkersRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NotifyFailoverMarkersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.FailoverMarkerTokens) > 0 { - for iNdEx := len(m.FailoverMarkerTokens) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.FailoverMarkerTokens[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *NotifyFailoverMarkersResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NotifyFailoverMarkersResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NotifyFailoverMarkersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func encodeVarintService(dAtA []byte, offset int, v uint64) int { - offset -= sovService(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *StartWorkflowExecutionRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Request != nil { - l = m.Request.Size() - n += 1 + l + sovService(uint64(l)) - } - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.ParentExecutionInfo != nil { - l = m.ParentExecutionInfo.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.Attempt != 0 { - n += 1 + sovService(uint64(m.Attempt)) - } - if m.ExpirationTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.ExpirationTime) - n += 1 + l + sovService(uint64(l)) - } - if m.ContinueAsNewInitiator != 0 { - n += 1 + sovService(uint64(m.ContinueAsNewInitiator)) - } - if m.ContinuedFailure != nil { - l = m.ContinuedFailure.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.LastCompletionResult != nil { - l = m.LastCompletionResult.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.FirstDecisionTaskBackoff != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.FirstDecisionTaskBackoff) - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *StartWorkflowExecutionResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.RunId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *SignalWorkflowExecutionRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Request != nil { - l = m.Request.Size() - n += 1 + l + sovService(uint64(l)) - } - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.ExternalWorkflowExecution != nil { - l = m.ExternalWorkflowExecution.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.ChildWorkflowOnly { - n += 2 - } - return n -} - -func (m *SignalWorkflowExecutionResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *SignalWithStartWorkflowExecutionRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Request != nil { - l = m.Request.Size() - n += 1 + l + sovService(uint64(l)) - } - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *SignalWithStartWorkflowExecutionResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.RunId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *ResetWorkflowExecutionRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Request != nil { - l = m.Request.Size() - n += 1 + l + sovService(uint64(l)) - } - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *ResetWorkflowExecutionResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.RunId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *TerminateWorkflowExecutionRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Request != nil { - l = m.Request.Size() - n += 1 + l + sovService(uint64(l)) - } - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *TerminateWorkflowExecutionResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *DescribeWorkflowExecutionRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Request != nil { - l = m.Request.Size() - n += 1 + l + sovService(uint64(l)) - } - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *DescribeWorkflowExecutionResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ExecutionConfiguration != nil { - l = m.ExecutionConfiguration.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.WorkflowExecutionInfo != nil { - l = m.WorkflowExecutionInfo.Size() - n += 1 + l + sovService(uint64(l)) - } - if len(m.PendingActivities) > 0 { - for _, e := range m.PendingActivities { - l = e.Size() - n += 1 + l + sovService(uint64(l)) - } - } - if len(m.PendingChildren) > 0 { - for _, e := range m.PendingChildren { - l = e.Size() - n += 1 + l + sovService(uint64(l)) - } - } - if m.PendingDecision != nil { - l = m.PendingDecision.Size() - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *QueryWorkflowRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Request != nil { - l = m.Request.Size() - n += 1 + l + sovService(uint64(l)) - } - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *QueryWorkflowResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.QueryResult != nil { - l = m.QueryResult.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.QueryRejected != nil { - l = m.QueryRejected.Size() - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *ResetStickyTaskListRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Request != nil { - l = m.Request.Size() - n += 1 + l + sovService(uint64(l)) - } - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *ResetStickyTaskListResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *GetMutableStateRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.ExpectedNextEventId != 0 { - n += 1 + sovService(uint64(m.ExpectedNextEventId)) - } - l = len(m.CurrentBranchToken) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *GetMutableStateResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.WorkflowType != nil { - l = m.WorkflowType.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.NextEventId != 0 { - n += 1 + sovService(uint64(m.NextEventId)) - } - if m.PreviousStartedEventId != 0 { - n += 1 + sovService(uint64(m.PreviousStartedEventId)) - } - if m.LastFirstEventId != 0 { - n += 1 + sovService(uint64(m.LastFirstEventId)) - } - if m.TaskList != nil { - l = m.TaskList.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.StickyTaskList != nil { - l = m.StickyTaskList.Size() - n += 1 + l + sovService(uint64(l)) - } - l = len(m.ClientLibraryVersion) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - l = len(m.ClientFeatureVersion) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - l = len(m.ClientImpl) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.StickyTaskListScheduleToStartTimeout != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.StickyTaskListScheduleToStartTimeout) - n += 1 + l + sovService(uint64(l)) - } - if m.EventStoreVersion != 0 { - n += 1 + sovService(uint64(m.EventStoreVersion)) - } - l = len(m.CurrentBranchToken) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.WorkflowState != 0 { - n += 1 + sovService(uint64(m.WorkflowState)) - } - if m.WorkflowCloseState != 0 { - n += 1 + sovService(uint64(m.WorkflowCloseState)) - } - if m.VersionHistories != nil { - l = m.VersionHistories.Size() - n += 2 + l + sovService(uint64(l)) - } - if m.IsStickyTaskListEnabled { - n += 3 - } - return n -} - -func (m *PollMutableStateRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.ExpectedNextEventId != 0 { - n += 1 + sovService(uint64(m.ExpectedNextEventId)) - } - l = len(m.CurrentBranchToken) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *PollMutableStateResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.WorkflowType != nil { - l = m.WorkflowType.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.NextEventId != 0 { - n += 1 + sovService(uint64(m.NextEventId)) - } - if m.PreviousStartedEventId != 0 { - n += 1 + sovService(uint64(m.PreviousStartedEventId)) - } - if m.LastFirstEventId != 0 { - n += 1 + sovService(uint64(m.LastFirstEventId)) - } - if m.TaskList != nil { - l = m.TaskList.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.StickyTaskList != nil { - l = m.StickyTaskList.Size() - n += 1 + l + sovService(uint64(l)) - } - l = len(m.ClientLibraryVersion) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - l = len(m.ClientFeatureVersion) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - l = len(m.ClientImpl) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.StickyTaskListScheduleToStartTimeout != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.StickyTaskListScheduleToStartTimeout) - n += 1 + l + sovService(uint64(l)) - } - l = len(m.CurrentBranchToken) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.VersionHistories != nil { - l = m.VersionHistories.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.WorkflowState != 0 { - n += 1 + sovService(uint64(m.WorkflowState)) - } - if m.WorkflowCloseState != 0 { - n += 1 + sovService(uint64(m.WorkflowCloseState)) - } - return n -} - -func (m *RecordDecisionTaskStartedRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.ScheduleId != 0 { - n += 1 + sovService(uint64(m.ScheduleId)) - } - if m.TaskId != 0 { - n += 1 + sovService(uint64(m.TaskId)) - } - l = len(m.RequestId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.PollRequest != nil { - l = m.PollRequest.Size() - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *RecordDecisionTaskStartedResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.WorkflowType != nil { - l = m.WorkflowType.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.PreviousStartedEventId != 0 { - n += 1 + sovService(uint64(m.PreviousStartedEventId)) - } - if m.ScheduledEventId != 0 { - n += 1 + sovService(uint64(m.ScheduledEventId)) - } - if m.StartedEventId != 0 { - n += 1 + sovService(uint64(m.StartedEventId)) - } - if m.NextEventId != 0 { - n += 1 + sovService(uint64(m.NextEventId)) - } - if m.Attempt != 0 { - n += 1 + sovService(uint64(m.Attempt)) - } - if m.StickyExecutionEnabled { - n += 2 - } - if m.DecisionInfo != nil { - l = m.DecisionInfo.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.WorkflowExecutionTaskList != nil { - l = m.WorkflowExecutionTaskList.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.EventStoreVersion != 0 { - n += 1 + sovService(uint64(m.EventStoreVersion)) - } - l = len(m.BranchToken) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.ScheduledTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.ScheduledTime) - n += 1 + l + sovService(uint64(l)) - } - if m.StartedTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.StartedTime) - n += 1 + l + sovService(uint64(l)) - } - if len(m.Queries) > 0 { - for k, v := range m.Queries { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovService(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovService(uint64(len(k))) + l - n += mapEntrySize + 1 + sovService(uint64(mapEntrySize)) - } - } - return n -} - -func (m *RecordActivityTaskStartedRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.ScheduleId != 0 { - n += 1 + sovService(uint64(m.ScheduleId)) - } - if m.TaskId != 0 { - n += 1 + sovService(uint64(m.TaskId)) - } - l = len(m.RequestId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.PollRequest != nil { - l = m.PollRequest.Size() - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *RecordActivityTaskStartedResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ScheduledEvent != nil { - l = m.ScheduledEvent.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.StartedTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.StartedTime) - n += 1 + l + sovService(uint64(l)) - } - if m.Attempt != 0 { - n += 1 + sovService(uint64(m.Attempt)) - } - if m.ScheduledTimeOfThisAttempt != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.ScheduledTimeOfThisAttempt) - n += 1 + l + sovService(uint64(l)) - } - if m.HeartbeatDetails != nil { - l = m.HeartbeatDetails.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.WorkflowType != nil { - l = m.WorkflowType.Size() - n += 1 + l + sovService(uint64(l)) - } - l = len(m.WorkflowDomain) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *RespondDecisionTaskCompletedRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Request != nil { - l = m.Request.Size() - n += 1 + l + sovService(uint64(l)) - } - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *RespondDecisionTaskCompletedResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.StartedResponse != nil { - l = m.StartedResponse.Size() - n += 1 + l + sovService(uint64(l)) - } - if len(m.ActivitiesToDispatchLocally) > 0 { - for k, v := range m.ActivitiesToDispatchLocally { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovService(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovService(uint64(len(k))) + l - n += mapEntrySize + 1 + sovService(uint64(mapEntrySize)) - } - } - return n -} - -func (m *RespondDecisionTaskFailedRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Request != nil { - l = m.Request.Size() - n += 1 + l + sovService(uint64(l)) - } - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *RespondDecisionTaskFailedResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RecordActivityTaskHeartbeatRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Request != nil { - l = m.Request.Size() - n += 1 + l + sovService(uint64(l)) - } - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *RecordActivityTaskHeartbeatResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.CancelRequested { - n += 2 - } - return n -} - -func (m *RespondActivityTaskCompletedRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Request != nil { - l = m.Request.Size() - n += 1 + l + sovService(uint64(l)) - } - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *RespondActivityTaskCompletedResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RespondActivityTaskFailedRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Request != nil { - l = m.Request.Size() - n += 1 + l + sovService(uint64(l)) - } - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *RespondActivityTaskFailedResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RespondActivityTaskCanceledRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Request != nil { - l = m.Request.Size() - n += 1 + l + sovService(uint64(l)) - } - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *RespondActivityTaskCanceledResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RemoveSignalMutableStateRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovService(uint64(l)) - } - l = len(m.RequestId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *RemoveSignalMutableStateResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RequestCancelWorkflowExecutionRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.CancelRequest != nil { - l = m.CancelRequest.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.ExternalInitiatedEventId != 0 { - n += 1 + sovService(uint64(m.ExternalInitiatedEventId)) - } - if m.ExternalWorkflowExecution != nil { - l = m.ExternalWorkflowExecution.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.ChildWorkflowOnly { - n += 2 - } - return n -} - -func (m *RequestCancelWorkflowExecutionResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *ScheduleDecisionTaskRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.IsFirstDecision { - n += 2 - } - return n -} - -func (m *ScheduleDecisionTaskResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RecordChildExecutionCompletedRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.InitiatedId != 0 { - n += 1 + sovService(uint64(m.InitiatedId)) - } - if m.CompletedExecution != nil { - l = m.CompletedExecution.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.CompletionEvent != nil { - l = m.CompletionEvent.Size() - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *RecordChildExecutionCompletedResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *ReplicateEventsV2Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovService(uint64(l)) - } - if len(m.VersionHistoryItems) > 0 { - for _, e := range m.VersionHistoryItems { - l = e.Size() - n += 1 + l + sovService(uint64(l)) - } - } - if m.Events != nil { - l = m.Events.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.NewRunEvents != nil { - l = m.NewRunEvents.Size() - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *ReplicateEventsV2Response) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *SyncShardStatusRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.SourceCluster) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.ShardId != 0 { - n += 1 + sovService(uint64(m.ShardId)) - } - if m.Time != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.Time) - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *SyncShardStatusResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *SyncActivityRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.Version != 0 { - n += 1 + sovService(uint64(m.Version)) - } - if m.ScheduledId != 0 { - n += 1 + sovService(uint64(m.ScheduledId)) - } - if m.ScheduledTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.ScheduledTime) - n += 1 + l + sovService(uint64(l)) - } - if m.StartedId != 0 { - n += 1 + sovService(uint64(m.StartedId)) - } - if m.StartedTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.StartedTime) - n += 1 + l + sovService(uint64(l)) - } - if m.LastHeartbeatTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.LastHeartbeatTime) - n += 1 + l + sovService(uint64(l)) - } - if m.Details != nil { - l = m.Details.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.Attempt != 0 { - n += 1 + sovService(uint64(m.Attempt)) - } - if m.LastFailure != nil { - l = m.LastFailure.Size() - n += 1 + l + sovService(uint64(l)) - } - l = len(m.LastWorkerIdentity) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.VersionHistory != nil { - l = m.VersionHistory.Size() - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *SyncActivityResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *DescribeMutableStateRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *DescribeMutableStateResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.MutableStateInCache) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - l = len(m.MutableStateInDatabase) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *DescribeHistoryHostRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.HostAddress) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.ShardId != 0 { - n += 1 + sovService(uint64(m.ShardId)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *DescribeHistoryHostResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.NumberOfShards != 0 { - n += 1 + sovService(uint64(m.NumberOfShards)) - } - if len(m.ShardIds) > 0 { - l = 0 - for _, e := range m.ShardIds { - l += sovService(uint64(e)) - } - n += 1 + sovService(uint64(l)) + l - } - if m.DomainCache != nil { - l = m.DomainCache.Size() - n += 1 + l + sovService(uint64(l)) - } - l = len(m.ShardControllerStatus) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - l = len(m.Address) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *CloseShardRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ShardId != 0 { - n += 1 + sovService(uint64(m.ShardId)) - } - return n -} - -func (m *CloseShardResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RemoveTaskRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ShardId != 0 { - n += 1 + sovService(uint64(m.ShardId)) - } - if m.TaskType != 0 { - n += 1 + sovService(uint64(m.TaskType)) - } - if m.TaskId != 0 { - n += 1 + sovService(uint64(m.TaskId)) - } - if m.VisibilityTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.VisibilityTime) - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *RemoveTaskResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *ResetQueueRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ShardId != 0 { - n += 1 + sovService(uint64(m.ShardId)) - } - l = len(m.ClusterName) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.TaskType != 0 { - n += 1 + sovService(uint64(m.TaskType)) - } - return n -} - -func (m *ResetQueueResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *DescribeQueueRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ShardId != 0 { - n += 1 + sovService(uint64(m.ShardId)) - } - l = len(m.ClusterName) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.TaskType != 0 { - n += 1 + sovService(uint64(m.TaskType)) - } - return n -} - -func (m *DescribeQueueResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.ProcessingQueueStates) > 0 { - for _, s := range m.ProcessingQueueStates { - l = len(s) - n += 1 + l + sovService(uint64(l)) - } - } - return n -} - -func (m *GetReplicationMessagesRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Tokens) > 0 { - for _, e := range m.Tokens { - l = e.Size() - n += 1 + l + sovService(uint64(l)) - } - } - l = len(m.ClusterName) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *GetReplicationMessagesResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.ShardMessages) > 0 { - for k, v := range m.ShardMessages { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovService(uint64(l)) - } - mapEntrySize := 1 + sovService(uint64(k)) + l - n += mapEntrySize + 1 + sovService(uint64(mapEntrySize)) - } - } - return n -} - -func (m *GetDLQReplicationMessagesRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.TaskInfos) > 0 { - for _, e := range m.TaskInfos { - l = e.Size() - n += 1 + l + sovService(uint64(l)) - } - } - return n -} - -func (m *GetDLQReplicationMessagesResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.ReplicationTasks) > 0 { - for _, e := range m.ReplicationTasks { - l = e.Size() - n += 1 + l + sovService(uint64(l)) - } - } - return n -} - -func (m *ReapplyEventsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.Events != nil { - l = m.Events.Size() - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *ReapplyEventsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RefreshWorkflowTasksRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *RefreshWorkflowTasksResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *ReadDLQMessagesRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Type != 0 { - n += 1 + sovService(uint64(m.Type)) - } - if m.ShardId != 0 { - n += 1 + sovService(uint64(m.ShardId)) - } - l = len(m.SourceCluster) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.InclusiveEndMessageId != 0 { - n += 1 + sovService(uint64(m.InclusiveEndMessageId)) - } - if m.PageSize != 0 { - n += 1 + sovService(uint64(m.PageSize)) - } - l = len(m.NextPageToken) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *ReadDLQMessagesResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Type != 0 { - n += 1 + sovService(uint64(m.Type)) - } - if len(m.ReplicationTasks) > 0 { - for _, e := range m.ReplicationTasks { - l = e.Size() - n += 1 + l + sovService(uint64(l)) - } - } - l = len(m.NextPageToken) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *PurgeDLQMessagesRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Type != 0 { - n += 1 + sovService(uint64(m.Type)) - } - if m.ShardId != 0 { - n += 1 + sovService(uint64(m.ShardId)) - } - l = len(m.SourceCluster) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.InclusiveEndMessageId != 0 { - n += 1 + sovService(uint64(m.InclusiveEndMessageId)) - } - return n -} - -func (m *PurgeDLQMessagesResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MergeDLQMessagesRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Type != 0 { - n += 1 + sovService(uint64(m.Type)) - } - if m.ShardId != 0 { - n += 1 + sovService(uint64(m.ShardId)) - } - l = len(m.SourceCluster) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.InclusiveEndMessageId != 0 { - n += 1 + sovService(uint64(m.InclusiveEndMessageId)) - } - if m.PageSize != 0 { - n += 1 + sovService(uint64(m.PageSize)) - } - l = len(m.NextPageToken) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *MergeDLQMessagesResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.NextPageToken) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *NotifyFailoverMarkersRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.FailoverMarkerTokens) > 0 { - for _, e := range m.FailoverMarkerTokens { - l = e.Size() - n += 1 + l + sovService(uint64(l)) - } - } - return n -} - -func (m *NotifyFailoverMarkersResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func sovService(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozService(x uint64) (n int) { - return sovService(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *StartWorkflowExecutionRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&StartWorkflowExecutionRequest{`, - `Request:` + strings.Replace(fmt.Sprintf("%v", this.Request), "StartWorkflowExecutionRequest", "v1.StartWorkflowExecutionRequest", 1) + `,`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `ParentExecutionInfo:` + strings.Replace(fmt.Sprintf("%v", this.ParentExecutionInfo), "ParentExecutionInfo", "v11.ParentExecutionInfo", 1) + `,`, - `Attempt:` + fmt.Sprintf("%v", this.Attempt) + `,`, - `ExpirationTime:` + strings.Replace(fmt.Sprintf("%v", this.ExpirationTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `ContinueAsNewInitiator:` + fmt.Sprintf("%v", this.ContinueAsNewInitiator) + `,`, - `ContinuedFailure:` + strings.Replace(fmt.Sprintf("%v", this.ContinuedFailure), "Failure", "v1.Failure", 1) + `,`, - `LastCompletionResult:` + strings.Replace(fmt.Sprintf("%v", this.LastCompletionResult), "Payload", "v1.Payload", 1) + `,`, - `FirstDecisionTaskBackoff:` + strings.Replace(fmt.Sprintf("%v", this.FirstDecisionTaskBackoff), "Duration", "duration.Duration", 1) + `,`, - `}`, - }, "") - return s -} -func (this *StartWorkflowExecutionResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&StartWorkflowExecutionResponse{`, - `RunId:` + fmt.Sprintf("%v", this.RunId) + `,`, - `}`, - }, "") - return s -} -func (this *SignalWorkflowExecutionRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SignalWorkflowExecutionRequest{`, - `Request:` + strings.Replace(fmt.Sprintf("%v", this.Request), "SignalWorkflowExecutionRequest", "v1.SignalWorkflowExecutionRequest", 1) + `,`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `ExternalWorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.ExternalWorkflowExecution), "WorkflowExecution", "v1.WorkflowExecution", 1) + `,`, - `ChildWorkflowOnly:` + fmt.Sprintf("%v", this.ChildWorkflowOnly) + `,`, - `}`, - }, "") - return s -} -func (this *SignalWorkflowExecutionResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SignalWorkflowExecutionResponse{`, - `}`, - }, "") - return s -} -func (this *SignalWithStartWorkflowExecutionRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SignalWithStartWorkflowExecutionRequest{`, - `Request:` + strings.Replace(fmt.Sprintf("%v", this.Request), "SignalWithStartWorkflowExecutionRequest", "v1.SignalWithStartWorkflowExecutionRequest", 1) + `,`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `}`, - }, "") - return s -} -func (this *SignalWithStartWorkflowExecutionResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SignalWithStartWorkflowExecutionResponse{`, - `RunId:` + fmt.Sprintf("%v", this.RunId) + `,`, - `}`, - }, "") - return s -} -func (this *ResetWorkflowExecutionRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ResetWorkflowExecutionRequest{`, - `Request:` + strings.Replace(fmt.Sprintf("%v", this.Request), "ResetWorkflowExecutionRequest", "v1.ResetWorkflowExecutionRequest", 1) + `,`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `}`, - }, "") - return s -} -func (this *ResetWorkflowExecutionResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ResetWorkflowExecutionResponse{`, - `RunId:` + fmt.Sprintf("%v", this.RunId) + `,`, - `}`, - }, "") - return s -} -func (this *TerminateWorkflowExecutionRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TerminateWorkflowExecutionRequest{`, - `Request:` + strings.Replace(fmt.Sprintf("%v", this.Request), "TerminateWorkflowExecutionRequest", "v1.TerminateWorkflowExecutionRequest", 1) + `,`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `}`, - }, "") - return s -} -func (this *TerminateWorkflowExecutionResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TerminateWorkflowExecutionResponse{`, - `}`, - }, "") - return s -} -func (this *DescribeWorkflowExecutionRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DescribeWorkflowExecutionRequest{`, - `Request:` + strings.Replace(fmt.Sprintf("%v", this.Request), "DescribeWorkflowExecutionRequest", "v1.DescribeWorkflowExecutionRequest", 1) + `,`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `}`, - }, "") - return s -} -func (this *DescribeWorkflowExecutionResponse) String() string { - if this == nil { - return "nil" - } - repeatedStringForPendingActivities := "[]*PendingActivityInfo{" - for _, f := range this.PendingActivities { - repeatedStringForPendingActivities += strings.Replace(fmt.Sprintf("%v", f), "PendingActivityInfo", "v1.PendingActivityInfo", 1) + "," - } - repeatedStringForPendingActivities += "}" - repeatedStringForPendingChildren := "[]*PendingChildExecutionInfo{" - for _, f := range this.PendingChildren { - repeatedStringForPendingChildren += strings.Replace(fmt.Sprintf("%v", f), "PendingChildExecutionInfo", "v1.PendingChildExecutionInfo", 1) + "," - } - repeatedStringForPendingChildren += "}" - s := strings.Join([]string{`&DescribeWorkflowExecutionResponse{`, - `ExecutionConfiguration:` + strings.Replace(fmt.Sprintf("%v", this.ExecutionConfiguration), "WorkflowExecutionConfiguration", "v1.WorkflowExecutionConfiguration", 1) + `,`, - `WorkflowExecutionInfo:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecutionInfo), "WorkflowExecutionInfo", "v1.WorkflowExecutionInfo", 1) + `,`, - `PendingActivities:` + repeatedStringForPendingActivities + `,`, - `PendingChildren:` + repeatedStringForPendingChildren + `,`, - `PendingDecision:` + strings.Replace(fmt.Sprintf("%v", this.PendingDecision), "PendingDecisionInfo", "v1.PendingDecisionInfo", 1) + `,`, - `}`, - }, "") - return s -} -func (this *QueryWorkflowRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&QueryWorkflowRequest{`, - `Request:` + strings.Replace(fmt.Sprintf("%v", this.Request), "QueryWorkflowRequest", "v1.QueryWorkflowRequest", 1) + `,`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `}`, - }, "") - return s -} -func (this *QueryWorkflowResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&QueryWorkflowResponse{`, - `QueryResult:` + strings.Replace(fmt.Sprintf("%v", this.QueryResult), "Payload", "v1.Payload", 1) + `,`, - `QueryRejected:` + strings.Replace(fmt.Sprintf("%v", this.QueryRejected), "QueryRejected", "v1.QueryRejected", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ResetStickyTaskListRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ResetStickyTaskListRequest{`, - `Request:` + strings.Replace(fmt.Sprintf("%v", this.Request), "ResetStickyTaskListRequest", "v1.ResetStickyTaskListRequest", 1) + `,`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `}`, - }, "") - return s -} -func (this *ResetStickyTaskListResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ResetStickyTaskListResponse{`, - `}`, - }, "") - return s -} -func (this *GetMutableStateRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&GetMutableStateRequest{`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "v1.WorkflowExecution", 1) + `,`, - `ExpectedNextEventId:` + fmt.Sprintf("%v", this.ExpectedNextEventId) + `,`, - `CurrentBranchToken:` + fmt.Sprintf("%v", this.CurrentBranchToken) + `,`, - `}`, - }, "") - return s -} -func (this *GetMutableStateResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&GetMutableStateResponse{`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "v1.WorkflowExecution", 1) + `,`, - `WorkflowType:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowType), "WorkflowType", "v1.WorkflowType", 1) + `,`, - `NextEventId:` + fmt.Sprintf("%v", this.NextEventId) + `,`, - `PreviousStartedEventId:` + fmt.Sprintf("%v", this.PreviousStartedEventId) + `,`, - `LastFirstEventId:` + fmt.Sprintf("%v", this.LastFirstEventId) + `,`, - `TaskList:` + strings.Replace(fmt.Sprintf("%v", this.TaskList), "TaskList", "v1.TaskList", 1) + `,`, - `StickyTaskList:` + strings.Replace(fmt.Sprintf("%v", this.StickyTaskList), "TaskList", "v1.TaskList", 1) + `,`, - `ClientLibraryVersion:` + fmt.Sprintf("%v", this.ClientLibraryVersion) + `,`, - `ClientFeatureVersion:` + fmt.Sprintf("%v", this.ClientFeatureVersion) + `,`, - `ClientImpl:` + fmt.Sprintf("%v", this.ClientImpl) + `,`, - `StickyTaskListScheduleToStartTimeout:` + strings.Replace(fmt.Sprintf("%v", this.StickyTaskListScheduleToStartTimeout), "Duration", "duration.Duration", 1) + `,`, - `EventStoreVersion:` + fmt.Sprintf("%v", this.EventStoreVersion) + `,`, - `CurrentBranchToken:` + fmt.Sprintf("%v", this.CurrentBranchToken) + `,`, - `WorkflowState:` + fmt.Sprintf("%v", this.WorkflowState) + `,`, - `WorkflowCloseState:` + fmt.Sprintf("%v", this.WorkflowCloseState) + `,`, - `VersionHistories:` + strings.Replace(fmt.Sprintf("%v", this.VersionHistories), "VersionHistories", "v11.VersionHistories", 1) + `,`, - `IsStickyTaskListEnabled:` + fmt.Sprintf("%v", this.IsStickyTaskListEnabled) + `,`, - `}`, - }, "") - return s -} -func (this *PollMutableStateRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PollMutableStateRequest{`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "v1.WorkflowExecution", 1) + `,`, - `ExpectedNextEventId:` + fmt.Sprintf("%v", this.ExpectedNextEventId) + `,`, - `CurrentBranchToken:` + fmt.Sprintf("%v", this.CurrentBranchToken) + `,`, - `}`, - }, "") - return s -} -func (this *PollMutableStateResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PollMutableStateResponse{`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "v1.WorkflowExecution", 1) + `,`, - `WorkflowType:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowType), "WorkflowType", "v1.WorkflowType", 1) + `,`, - `NextEventId:` + fmt.Sprintf("%v", this.NextEventId) + `,`, - `PreviousStartedEventId:` + fmt.Sprintf("%v", this.PreviousStartedEventId) + `,`, - `LastFirstEventId:` + fmt.Sprintf("%v", this.LastFirstEventId) + `,`, - `TaskList:` + strings.Replace(fmt.Sprintf("%v", this.TaskList), "TaskList", "v1.TaskList", 1) + `,`, - `StickyTaskList:` + strings.Replace(fmt.Sprintf("%v", this.StickyTaskList), "TaskList", "v1.TaskList", 1) + `,`, - `ClientLibraryVersion:` + fmt.Sprintf("%v", this.ClientLibraryVersion) + `,`, - `ClientFeatureVersion:` + fmt.Sprintf("%v", this.ClientFeatureVersion) + `,`, - `ClientImpl:` + fmt.Sprintf("%v", this.ClientImpl) + `,`, - `StickyTaskListScheduleToStartTimeout:` + strings.Replace(fmt.Sprintf("%v", this.StickyTaskListScheduleToStartTimeout), "Duration", "duration.Duration", 1) + `,`, - `CurrentBranchToken:` + fmt.Sprintf("%v", this.CurrentBranchToken) + `,`, - `VersionHistories:` + strings.Replace(fmt.Sprintf("%v", this.VersionHistories), "VersionHistories", "v11.VersionHistories", 1) + `,`, - `WorkflowState:` + fmt.Sprintf("%v", this.WorkflowState) + `,`, - `WorkflowCloseState:` + fmt.Sprintf("%v", this.WorkflowCloseState) + `,`, - `}`, - }, "") - return s -} -func (this *RecordDecisionTaskStartedRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RecordDecisionTaskStartedRequest{`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "v1.WorkflowExecution", 1) + `,`, - `ScheduleId:` + fmt.Sprintf("%v", this.ScheduleId) + `,`, - `TaskId:` + fmt.Sprintf("%v", this.TaskId) + `,`, - `RequestId:` + fmt.Sprintf("%v", this.RequestId) + `,`, - `PollRequest:` + strings.Replace(fmt.Sprintf("%v", this.PollRequest), "PollForDecisionTaskRequest", "v1.PollForDecisionTaskRequest", 1) + `,`, - `}`, - }, "") - return s -} -func (this *RecordDecisionTaskStartedResponse) String() string { - if this == nil { - return "nil" - } - keysForQueries := make([]string, 0, len(this.Queries)) - for k, _ := range this.Queries { - keysForQueries = append(keysForQueries, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForQueries) - mapStringForQueries := "map[string]*v1.WorkflowQuery{" - for _, k := range keysForQueries { - mapStringForQueries += fmt.Sprintf("%v: %v,", k, this.Queries[k]) - } - mapStringForQueries += "}" - s := strings.Join([]string{`&RecordDecisionTaskStartedResponse{`, - `WorkflowType:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowType), "WorkflowType", "v1.WorkflowType", 1) + `,`, - `PreviousStartedEventId:` + fmt.Sprintf("%v", this.PreviousStartedEventId) + `,`, - `ScheduledEventId:` + fmt.Sprintf("%v", this.ScheduledEventId) + `,`, - `StartedEventId:` + fmt.Sprintf("%v", this.StartedEventId) + `,`, - `NextEventId:` + fmt.Sprintf("%v", this.NextEventId) + `,`, - `Attempt:` + fmt.Sprintf("%v", this.Attempt) + `,`, - `StickyExecutionEnabled:` + fmt.Sprintf("%v", this.StickyExecutionEnabled) + `,`, - `DecisionInfo:` + strings.Replace(fmt.Sprintf("%v", this.DecisionInfo), "TransientDecisionInfo", "v11.TransientDecisionInfo", 1) + `,`, - `WorkflowExecutionTaskList:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecutionTaskList), "TaskList", "v1.TaskList", 1) + `,`, - `EventStoreVersion:` + fmt.Sprintf("%v", this.EventStoreVersion) + `,`, - `BranchToken:` + fmt.Sprintf("%v", this.BranchToken) + `,`, - `ScheduledTime:` + strings.Replace(fmt.Sprintf("%v", this.ScheduledTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `StartedTime:` + strings.Replace(fmt.Sprintf("%v", this.StartedTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `Queries:` + mapStringForQueries + `,`, - `}`, - }, "") - return s -} -func (this *RecordActivityTaskStartedRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RecordActivityTaskStartedRequest{`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "v1.WorkflowExecution", 1) + `,`, - `ScheduleId:` + fmt.Sprintf("%v", this.ScheduleId) + `,`, - `TaskId:` + fmt.Sprintf("%v", this.TaskId) + `,`, - `RequestId:` + fmt.Sprintf("%v", this.RequestId) + `,`, - `PollRequest:` + strings.Replace(fmt.Sprintf("%v", this.PollRequest), "PollForActivityTaskRequest", "v1.PollForActivityTaskRequest", 1) + `,`, - `}`, - }, "") - return s -} -func (this *RecordActivityTaskStartedResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RecordActivityTaskStartedResponse{`, - `ScheduledEvent:` + strings.Replace(fmt.Sprintf("%v", this.ScheduledEvent), "HistoryEvent", "v1.HistoryEvent", 1) + `,`, - `StartedTime:` + strings.Replace(fmt.Sprintf("%v", this.StartedTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `Attempt:` + fmt.Sprintf("%v", this.Attempt) + `,`, - `ScheduledTimeOfThisAttempt:` + strings.Replace(fmt.Sprintf("%v", this.ScheduledTimeOfThisAttempt), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `HeartbeatDetails:` + strings.Replace(fmt.Sprintf("%v", this.HeartbeatDetails), "Payload", "v1.Payload", 1) + `,`, - `WorkflowType:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowType), "WorkflowType", "v1.WorkflowType", 1) + `,`, - `WorkflowDomain:` + fmt.Sprintf("%v", this.WorkflowDomain) + `,`, - `}`, - }, "") - return s -} -func (this *RespondDecisionTaskCompletedRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RespondDecisionTaskCompletedRequest{`, - `Request:` + strings.Replace(fmt.Sprintf("%v", this.Request), "RespondDecisionTaskCompletedRequest", "v1.RespondDecisionTaskCompletedRequest", 1) + `,`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `}`, - }, "") - return s -} -func (this *RespondDecisionTaskCompletedResponse) String() string { - if this == nil { - return "nil" - } - keysForActivitiesToDispatchLocally := make([]string, 0, len(this.ActivitiesToDispatchLocally)) - for k, _ := range this.ActivitiesToDispatchLocally { - keysForActivitiesToDispatchLocally = append(keysForActivitiesToDispatchLocally, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForActivitiesToDispatchLocally) - mapStringForActivitiesToDispatchLocally := "map[string]*v1.ActivityLocalDispatchInfo{" - for _, k := range keysForActivitiesToDispatchLocally { - mapStringForActivitiesToDispatchLocally += fmt.Sprintf("%v: %v,", k, this.ActivitiesToDispatchLocally[k]) - } - mapStringForActivitiesToDispatchLocally += "}" - s := strings.Join([]string{`&RespondDecisionTaskCompletedResponse{`, - `StartedResponse:` + strings.Replace(this.StartedResponse.String(), "RecordDecisionTaskStartedResponse", "RecordDecisionTaskStartedResponse", 1) + `,`, - `ActivitiesToDispatchLocally:` + mapStringForActivitiesToDispatchLocally + `,`, - `}`, - }, "") - return s -} -func (this *RespondDecisionTaskFailedRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RespondDecisionTaskFailedRequest{`, - `Request:` + strings.Replace(fmt.Sprintf("%v", this.Request), "RespondDecisionTaskFailedRequest", "v1.RespondDecisionTaskFailedRequest", 1) + `,`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `}`, - }, "") - return s -} -func (this *RespondDecisionTaskFailedResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RespondDecisionTaskFailedResponse{`, - `}`, - }, "") - return s -} -func (this *RecordActivityTaskHeartbeatRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RecordActivityTaskHeartbeatRequest{`, - `Request:` + strings.Replace(fmt.Sprintf("%v", this.Request), "RecordActivityTaskHeartbeatRequest", "v1.RecordActivityTaskHeartbeatRequest", 1) + `,`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `}`, - }, "") - return s -} -func (this *RecordActivityTaskHeartbeatResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RecordActivityTaskHeartbeatResponse{`, - `CancelRequested:` + fmt.Sprintf("%v", this.CancelRequested) + `,`, - `}`, - }, "") - return s -} -func (this *RespondActivityTaskCompletedRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RespondActivityTaskCompletedRequest{`, - `Request:` + strings.Replace(fmt.Sprintf("%v", this.Request), "RespondActivityTaskCompletedRequest", "v1.RespondActivityTaskCompletedRequest", 1) + `,`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `}`, - }, "") - return s -} -func (this *RespondActivityTaskCompletedResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RespondActivityTaskCompletedResponse{`, - `}`, - }, "") - return s -} -func (this *RespondActivityTaskFailedRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RespondActivityTaskFailedRequest{`, - `Request:` + strings.Replace(fmt.Sprintf("%v", this.Request), "RespondActivityTaskFailedRequest", "v1.RespondActivityTaskFailedRequest", 1) + `,`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `}`, - }, "") - return s -} -func (this *RespondActivityTaskFailedResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RespondActivityTaskFailedResponse{`, - `}`, - }, "") - return s -} -func (this *RespondActivityTaskCanceledRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RespondActivityTaskCanceledRequest{`, - `Request:` + strings.Replace(fmt.Sprintf("%v", this.Request), "RespondActivityTaskCanceledRequest", "v1.RespondActivityTaskCanceledRequest", 1) + `,`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `}`, - }, "") - return s -} -func (this *RespondActivityTaskCanceledResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RespondActivityTaskCanceledResponse{`, - `}`, - }, "") - return s -} -func (this *RemoveSignalMutableStateRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RemoveSignalMutableStateRequest{`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "v1.WorkflowExecution", 1) + `,`, - `RequestId:` + fmt.Sprintf("%v", this.RequestId) + `,`, - `}`, - }, "") - return s -} -func (this *RemoveSignalMutableStateResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RemoveSignalMutableStateResponse{`, - `}`, - }, "") - return s -} -func (this *RequestCancelWorkflowExecutionRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RequestCancelWorkflowExecutionRequest{`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `CancelRequest:` + strings.Replace(fmt.Sprintf("%v", this.CancelRequest), "RequestCancelWorkflowExecutionRequest", "v1.RequestCancelWorkflowExecutionRequest", 1) + `,`, - `ExternalInitiatedEventId:` + fmt.Sprintf("%v", this.ExternalInitiatedEventId) + `,`, - `ExternalWorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.ExternalWorkflowExecution), "WorkflowExecution", "v1.WorkflowExecution", 1) + `,`, - `ChildWorkflowOnly:` + fmt.Sprintf("%v", this.ChildWorkflowOnly) + `,`, - `}`, - }, "") - return s -} -func (this *RequestCancelWorkflowExecutionResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RequestCancelWorkflowExecutionResponse{`, - `}`, - }, "") - return s -} -func (this *ScheduleDecisionTaskRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ScheduleDecisionTaskRequest{`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "v1.WorkflowExecution", 1) + `,`, - `IsFirstDecision:` + fmt.Sprintf("%v", this.IsFirstDecision) + `,`, - `}`, - }, "") - return s -} -func (this *ScheduleDecisionTaskResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ScheduleDecisionTaskResponse{`, - `}`, - }, "") - return s -} -func (this *RecordChildExecutionCompletedRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RecordChildExecutionCompletedRequest{`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "v1.WorkflowExecution", 1) + `,`, - `InitiatedId:` + fmt.Sprintf("%v", this.InitiatedId) + `,`, - `CompletedExecution:` + strings.Replace(fmt.Sprintf("%v", this.CompletedExecution), "WorkflowExecution", "v1.WorkflowExecution", 1) + `,`, - `CompletionEvent:` + strings.Replace(fmt.Sprintf("%v", this.CompletionEvent), "HistoryEvent", "v1.HistoryEvent", 1) + `,`, - `}`, - }, "") - return s -} -func (this *RecordChildExecutionCompletedResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RecordChildExecutionCompletedResponse{`, - `}`, - }, "") - return s -} -func (this *ReplicateEventsV2Request) String() string { - if this == nil { - return "nil" - } - repeatedStringForVersionHistoryItems := "[]*VersionHistoryItem{" - for _, f := range this.VersionHistoryItems { - repeatedStringForVersionHistoryItems += strings.Replace(fmt.Sprintf("%v", f), "VersionHistoryItem", "v11.VersionHistoryItem", 1) + "," - } - repeatedStringForVersionHistoryItems += "}" - s := strings.Join([]string{`&ReplicateEventsV2Request{`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "v1.WorkflowExecution", 1) + `,`, - `VersionHistoryItems:` + repeatedStringForVersionHistoryItems + `,`, - `Events:` + strings.Replace(fmt.Sprintf("%v", this.Events), "DataBlob", "v1.DataBlob", 1) + `,`, - `NewRunEvents:` + strings.Replace(fmt.Sprintf("%v", this.NewRunEvents), "DataBlob", "v1.DataBlob", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ReplicateEventsV2Response) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ReplicateEventsV2Response{`, - `}`, - }, "") - return s -} -func (this *SyncShardStatusRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SyncShardStatusRequest{`, - `SourceCluster:` + fmt.Sprintf("%v", this.SourceCluster) + `,`, - `ShardId:` + fmt.Sprintf("%v", this.ShardId) + `,`, - `Time:` + strings.Replace(fmt.Sprintf("%v", this.Time), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `}`, - }, "") - return s -} -func (this *SyncShardStatusResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SyncShardStatusResponse{`, - `}`, - }, "") - return s -} -func (this *SyncActivityRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SyncActivityRequest{`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "v1.WorkflowExecution", 1) + `,`, - `Version:` + fmt.Sprintf("%v", this.Version) + `,`, - `ScheduledId:` + fmt.Sprintf("%v", this.ScheduledId) + `,`, - `ScheduledTime:` + strings.Replace(fmt.Sprintf("%v", this.ScheduledTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `StartedId:` + fmt.Sprintf("%v", this.StartedId) + `,`, - `StartedTime:` + strings.Replace(fmt.Sprintf("%v", this.StartedTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `LastHeartbeatTime:` + strings.Replace(fmt.Sprintf("%v", this.LastHeartbeatTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `Details:` + strings.Replace(fmt.Sprintf("%v", this.Details), "Payload", "v1.Payload", 1) + `,`, - `Attempt:` + fmt.Sprintf("%v", this.Attempt) + `,`, - `LastFailure:` + strings.Replace(fmt.Sprintf("%v", this.LastFailure), "Failure", "v1.Failure", 1) + `,`, - `LastWorkerIdentity:` + fmt.Sprintf("%v", this.LastWorkerIdentity) + `,`, - `VersionHistory:` + strings.Replace(fmt.Sprintf("%v", this.VersionHistory), "VersionHistory", "v11.VersionHistory", 1) + `,`, - `}`, - }, "") - return s -} -func (this *SyncActivityResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SyncActivityResponse{`, - `}`, - }, "") - return s -} -func (this *DescribeMutableStateRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DescribeMutableStateRequest{`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "v1.WorkflowExecution", 1) + `,`, - `}`, - }, "") - return s -} -func (this *DescribeMutableStateResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DescribeMutableStateResponse{`, - `MutableStateInCache:` + fmt.Sprintf("%v", this.MutableStateInCache) + `,`, - `MutableStateInDatabase:` + fmt.Sprintf("%v", this.MutableStateInDatabase) + `,`, - `}`, - }, "") - return s -} -func (this *DescribeHistoryHostRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DescribeHistoryHostRequest{`, - `HostAddress:` + fmt.Sprintf("%v", this.HostAddress) + `,`, - `ShardId:` + fmt.Sprintf("%v", this.ShardId) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "v1.WorkflowExecution", 1) + `,`, - `}`, - }, "") - return s -} -func (this *DescribeHistoryHostResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DescribeHistoryHostResponse{`, - `NumberOfShards:` + fmt.Sprintf("%v", this.NumberOfShards) + `,`, - `ShardIds:` + fmt.Sprintf("%v", this.ShardIds) + `,`, - `DomainCache:` + strings.Replace(fmt.Sprintf("%v", this.DomainCache), "DomainCacheInfo", "v11.DomainCacheInfo", 1) + `,`, - `ShardControllerStatus:` + fmt.Sprintf("%v", this.ShardControllerStatus) + `,`, - `Address:` + fmt.Sprintf("%v", this.Address) + `,`, - `}`, - }, "") - return s -} -func (this *CloseShardRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CloseShardRequest{`, - `ShardId:` + fmt.Sprintf("%v", this.ShardId) + `,`, - `}`, - }, "") - return s -} -func (this *CloseShardResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CloseShardResponse{`, - `}`, - }, "") - return s -} -func (this *RemoveTaskRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RemoveTaskRequest{`, - `ShardId:` + fmt.Sprintf("%v", this.ShardId) + `,`, - `TaskType:` + fmt.Sprintf("%v", this.TaskType) + `,`, - `TaskId:` + fmt.Sprintf("%v", this.TaskId) + `,`, - `VisibilityTime:` + strings.Replace(fmt.Sprintf("%v", this.VisibilityTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `}`, - }, "") - return s -} -func (this *RemoveTaskResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RemoveTaskResponse{`, - `}`, - }, "") - return s -} -func (this *ResetQueueRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ResetQueueRequest{`, - `ShardId:` + fmt.Sprintf("%v", this.ShardId) + `,`, - `ClusterName:` + fmt.Sprintf("%v", this.ClusterName) + `,`, - `TaskType:` + fmt.Sprintf("%v", this.TaskType) + `,`, - `}`, - }, "") - return s -} -func (this *ResetQueueResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ResetQueueResponse{`, - `}`, - }, "") - return s -} -func (this *DescribeQueueRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DescribeQueueRequest{`, - `ShardId:` + fmt.Sprintf("%v", this.ShardId) + `,`, - `ClusterName:` + fmt.Sprintf("%v", this.ClusterName) + `,`, - `TaskType:` + fmt.Sprintf("%v", this.TaskType) + `,`, - `}`, - }, "") - return s -} -func (this *DescribeQueueResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DescribeQueueResponse{`, - `ProcessingQueueStates:` + fmt.Sprintf("%v", this.ProcessingQueueStates) + `,`, - `}`, - }, "") - return s -} -func (this *GetReplicationMessagesRequest) String() string { - if this == nil { - return "nil" - } - repeatedStringForTokens := "[]*ReplicationToken{" - for _, f := range this.Tokens { - repeatedStringForTokens += strings.Replace(fmt.Sprintf("%v", f), "ReplicationToken", "v11.ReplicationToken", 1) + "," - } - repeatedStringForTokens += "}" - s := strings.Join([]string{`&GetReplicationMessagesRequest{`, - `Tokens:` + repeatedStringForTokens + `,`, - `ClusterName:` + fmt.Sprintf("%v", this.ClusterName) + `,`, - `}`, - }, "") - return s -} -func (this *GetReplicationMessagesResponse) String() string { - if this == nil { - return "nil" - } - keysForShardMessages := make([]int32, 0, len(this.ShardMessages)) - for k, _ := range this.ShardMessages { - keysForShardMessages = append(keysForShardMessages, k) - } - github_com_gogo_protobuf_sortkeys.Int32s(keysForShardMessages) - mapStringForShardMessages := "map[int32]*v11.ReplicationMessages{" - for _, k := range keysForShardMessages { - mapStringForShardMessages += fmt.Sprintf("%v: %v,", k, this.ShardMessages[k]) - } - mapStringForShardMessages += "}" - s := strings.Join([]string{`&GetReplicationMessagesResponse{`, - `ShardMessages:` + mapStringForShardMessages + `,`, - `}`, - }, "") - return s -} -func (this *GetDLQReplicationMessagesRequest) String() string { - if this == nil { - return "nil" - } - repeatedStringForTaskInfos := "[]*ReplicationTaskInfo{" - for _, f := range this.TaskInfos { - repeatedStringForTaskInfos += strings.Replace(fmt.Sprintf("%v", f), "ReplicationTaskInfo", "v11.ReplicationTaskInfo", 1) + "," - } - repeatedStringForTaskInfos += "}" - s := strings.Join([]string{`&GetDLQReplicationMessagesRequest{`, - `TaskInfos:` + repeatedStringForTaskInfos + `,`, - `}`, - }, "") - return s -} -func (this *GetDLQReplicationMessagesResponse) String() string { - if this == nil { - return "nil" - } - repeatedStringForReplicationTasks := "[]*ReplicationTask{" - for _, f := range this.ReplicationTasks { - repeatedStringForReplicationTasks += strings.Replace(fmt.Sprintf("%v", f), "ReplicationTask", "v11.ReplicationTask", 1) + "," - } - repeatedStringForReplicationTasks += "}" - s := strings.Join([]string{`&GetDLQReplicationMessagesResponse{`, - `ReplicationTasks:` + repeatedStringForReplicationTasks + `,`, - `}`, - }, "") - return s -} -func (this *ReapplyEventsRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ReapplyEventsRequest{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "v1.WorkflowExecution", 1) + `,`, - `Events:` + strings.Replace(fmt.Sprintf("%v", this.Events), "DataBlob", "v1.DataBlob", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ReapplyEventsResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ReapplyEventsResponse{`, - `}`, - }, "") - return s -} -func (this *RefreshWorkflowTasksRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RefreshWorkflowTasksRequest{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "v1.WorkflowExecution", 1) + `,`, - `}`, - }, "") - return s -} -func (this *RefreshWorkflowTasksResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RefreshWorkflowTasksResponse{`, - `}`, - }, "") - return s -} -func (this *ReadDLQMessagesRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ReadDLQMessagesRequest{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `ShardId:` + fmt.Sprintf("%v", this.ShardId) + `,`, - `SourceCluster:` + fmt.Sprintf("%v", this.SourceCluster) + `,`, - `InclusiveEndMessageId:` + fmt.Sprintf("%v", this.InclusiveEndMessageId) + `,`, - `PageSize:` + fmt.Sprintf("%v", this.PageSize) + `,`, - `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, - `}`, - }, "") - return s -} -func (this *ReadDLQMessagesResponse) String() string { - if this == nil { - return "nil" - } - repeatedStringForReplicationTasks := "[]*ReplicationTask{" - for _, f := range this.ReplicationTasks { - repeatedStringForReplicationTasks += strings.Replace(fmt.Sprintf("%v", f), "ReplicationTask", "v11.ReplicationTask", 1) + "," - } - repeatedStringForReplicationTasks += "}" - s := strings.Join([]string{`&ReadDLQMessagesResponse{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `ReplicationTasks:` + repeatedStringForReplicationTasks + `,`, - `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, - `}`, - }, "") - return s -} -func (this *PurgeDLQMessagesRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PurgeDLQMessagesRequest{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `ShardId:` + fmt.Sprintf("%v", this.ShardId) + `,`, - `SourceCluster:` + fmt.Sprintf("%v", this.SourceCluster) + `,`, - `InclusiveEndMessageId:` + fmt.Sprintf("%v", this.InclusiveEndMessageId) + `,`, - `}`, - }, "") - return s -} -func (this *PurgeDLQMessagesResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PurgeDLQMessagesResponse{`, - `}`, - }, "") - return s -} -func (this *MergeDLQMessagesRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&MergeDLQMessagesRequest{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `ShardId:` + fmt.Sprintf("%v", this.ShardId) + `,`, - `SourceCluster:` + fmt.Sprintf("%v", this.SourceCluster) + `,`, - `InclusiveEndMessageId:` + fmt.Sprintf("%v", this.InclusiveEndMessageId) + `,`, - `PageSize:` + fmt.Sprintf("%v", this.PageSize) + `,`, - `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, - `}`, - }, "") - return s -} -func (this *MergeDLQMessagesResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&MergeDLQMessagesResponse{`, - `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, - `}`, - }, "") - return s -} -func (this *NotifyFailoverMarkersRequest) String() string { - if this == nil { - return "nil" - } - repeatedStringForFailoverMarkerTokens := "[]*FailoverMarkerToken{" - for _, f := range this.FailoverMarkerTokens { - repeatedStringForFailoverMarkerTokens += strings.Replace(fmt.Sprintf("%v", f), "FailoverMarkerToken", "v11.FailoverMarkerToken", 1) + "," - } - repeatedStringForFailoverMarkerTokens += "}" - s := strings.Join([]string{`&NotifyFailoverMarkersRequest{`, - `FailoverMarkerTokens:` + repeatedStringForFailoverMarkerTokens + `,`, - `}`, - }, "") - return s -} -func (this *NotifyFailoverMarkersResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&NotifyFailoverMarkersResponse{`, - `}`, - }, "") - return s -} -func valueToStringService(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *StartWorkflowExecutionRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StartWorkflowExecutionRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StartWorkflowExecutionRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Request == nil { - m.Request = &v1.StartWorkflowExecutionRequest{} - } - if err := m.Request.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ParentExecutionInfo", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ParentExecutionInfo == nil { - m.ParentExecutionInfo = &v11.ParentExecutionInfo{} - } - if err := m.ParentExecutionInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Attempt", wireType) - } - m.Attempt = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Attempt |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExpirationTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ExpirationTime == nil { - m.ExpirationTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.ExpirationTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ContinueAsNewInitiator", wireType) - } - m.ContinueAsNewInitiator = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ContinueAsNewInitiator |= v1.ContinueAsNewInitiator(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContinuedFailure", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ContinuedFailure == nil { - m.ContinuedFailure = &v1.Failure{} - } - if err := m.ContinuedFailure.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastCompletionResult", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LastCompletionResult == nil { - m.LastCompletionResult = &v1.Payload{} - } - if err := m.LastCompletionResult.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FirstDecisionTaskBackoff", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.FirstDecisionTaskBackoff == nil { - m.FirstDecisionTaskBackoff = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.FirstDecisionTaskBackoff, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StartWorkflowExecutionResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StartWorkflowExecutionResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StartWorkflowExecutionResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RunId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RunId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SignalWorkflowExecutionRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SignalWorkflowExecutionRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SignalWorkflowExecutionRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Request == nil { - m.Request = &v1.SignalWorkflowExecutionRequest{} - } - if err := m.Request.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExternalWorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ExternalWorkflowExecution == nil { - m.ExternalWorkflowExecution = &v1.WorkflowExecution{} - } - if err := m.ExternalWorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ChildWorkflowOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ChildWorkflowOnly = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SignalWorkflowExecutionResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SignalWorkflowExecutionResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SignalWorkflowExecutionResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SignalWithStartWorkflowExecutionRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SignalWithStartWorkflowExecutionRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SignalWithStartWorkflowExecutionRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Request == nil { - m.Request = &v1.SignalWithStartWorkflowExecutionRequest{} - } - if err := m.Request.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SignalWithStartWorkflowExecutionResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SignalWithStartWorkflowExecutionResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SignalWithStartWorkflowExecutionResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RunId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RunId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResetWorkflowExecutionRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResetWorkflowExecutionRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResetWorkflowExecutionRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Request == nil { - m.Request = &v1.ResetWorkflowExecutionRequest{} - } - if err := m.Request.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResetWorkflowExecutionResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResetWorkflowExecutionResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResetWorkflowExecutionResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RunId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RunId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TerminateWorkflowExecutionRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TerminateWorkflowExecutionRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TerminateWorkflowExecutionRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Request == nil { - m.Request = &v1.TerminateWorkflowExecutionRequest{} - } - if err := m.Request.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TerminateWorkflowExecutionResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TerminateWorkflowExecutionResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TerminateWorkflowExecutionResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DescribeWorkflowExecutionRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DescribeWorkflowExecutionRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DescribeWorkflowExecutionRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Request == nil { - m.Request = &v1.DescribeWorkflowExecutionRequest{} - } - if err := m.Request.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DescribeWorkflowExecutionResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DescribeWorkflowExecutionResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DescribeWorkflowExecutionResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExecutionConfiguration", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ExecutionConfiguration == nil { - m.ExecutionConfiguration = &v1.WorkflowExecutionConfiguration{} - } - if err := m.ExecutionConfiguration.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecutionInfo", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecutionInfo == nil { - m.WorkflowExecutionInfo = &v1.WorkflowExecutionInfo{} - } - if err := m.WorkflowExecutionInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PendingActivities", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PendingActivities = append(m.PendingActivities, &v1.PendingActivityInfo{}) - if err := m.PendingActivities[len(m.PendingActivities)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PendingChildren", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PendingChildren = append(m.PendingChildren, &v1.PendingChildExecutionInfo{}) - if err := m.PendingChildren[len(m.PendingChildren)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PendingDecision", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PendingDecision == nil { - m.PendingDecision = &v1.PendingDecisionInfo{} - } - if err := m.PendingDecision.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryWorkflowRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryWorkflowRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryWorkflowRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Request == nil { - m.Request = &v1.QueryWorkflowRequest{} - } - if err := m.Request.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryWorkflowResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryWorkflowResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryWorkflowResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field QueryResult", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.QueryResult == nil { - m.QueryResult = &v1.Payload{} - } - if err := m.QueryResult.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field QueryRejected", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.QueryRejected == nil { - m.QueryRejected = &v1.QueryRejected{} - } - if err := m.QueryRejected.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResetStickyTaskListRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResetStickyTaskListRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResetStickyTaskListRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Request == nil { - m.Request = &v1.ResetStickyTaskListRequest{} - } - if err := m.Request.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResetStickyTaskListResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResetStickyTaskListResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResetStickyTaskListResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetMutableStateRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetMutableStateRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetMutableStateRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &v1.WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ExpectedNextEventId", wireType) - } - m.ExpectedNextEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ExpectedNextEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentBranchToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CurrentBranchToken = append(m.CurrentBranchToken[:0], dAtA[iNdEx:postIndex]...) - if m.CurrentBranchToken == nil { - m.CurrentBranchToken = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetMutableStateResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetMutableStateResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetMutableStateResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &v1.WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowType", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowType == nil { - m.WorkflowType = &v1.WorkflowType{} - } - if err := m.WorkflowType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NextEventId", wireType) - } - m.NextEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NextEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PreviousStartedEventId", wireType) - } - m.PreviousStartedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PreviousStartedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastFirstEventId", wireType) - } - m.LastFirstEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.LastFirstEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TaskList == nil { - m.TaskList = &v1.TaskList{} - } - if err := m.TaskList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StickyTaskList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StickyTaskList == nil { - m.StickyTaskList = &v1.TaskList{} - } - if err := m.StickyTaskList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClientLibraryVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClientLibraryVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClientFeatureVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClientFeatureVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClientImpl", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClientImpl = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StickyTaskListScheduleToStartTimeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StickyTaskListScheduleToStartTimeout == nil { - m.StickyTaskListScheduleToStartTimeout = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.StickyTaskListScheduleToStartTimeout, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 12: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EventStoreVersion", wireType) - } - m.EventStoreVersion = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EventStoreVersion |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentBranchToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CurrentBranchToken = append(m.CurrentBranchToken[:0], dAtA[iNdEx:postIndex]...) - if m.CurrentBranchToken == nil { - m.CurrentBranchToken = []byte{} - } - iNdEx = postIndex - case 14: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowState", wireType) - } - m.WorkflowState = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.WorkflowState |= v11.WorkflowState(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 15: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowCloseState", wireType) - } - m.WorkflowCloseState = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.WorkflowCloseState |= v1.WorkflowExecutionCloseStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 16: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VersionHistories", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.VersionHistories == nil { - m.VersionHistories = &v11.VersionHistories{} - } - if err := m.VersionHistories.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 17: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsStickyTaskListEnabled", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsStickyTaskListEnabled = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PollMutableStateRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PollMutableStateRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PollMutableStateRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &v1.WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ExpectedNextEventId", wireType) - } - m.ExpectedNextEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ExpectedNextEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentBranchToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CurrentBranchToken = append(m.CurrentBranchToken[:0], dAtA[iNdEx:postIndex]...) - if m.CurrentBranchToken == nil { - m.CurrentBranchToken = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PollMutableStateResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PollMutableStateResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PollMutableStateResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &v1.WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowType", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowType == nil { - m.WorkflowType = &v1.WorkflowType{} - } - if err := m.WorkflowType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NextEventId", wireType) - } - m.NextEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NextEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PreviousStartedEventId", wireType) - } - m.PreviousStartedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PreviousStartedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastFirstEventId", wireType) - } - m.LastFirstEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.LastFirstEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TaskList == nil { - m.TaskList = &v1.TaskList{} - } - if err := m.TaskList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StickyTaskList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StickyTaskList == nil { - m.StickyTaskList = &v1.TaskList{} - } - if err := m.StickyTaskList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClientLibraryVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClientLibraryVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClientFeatureVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClientFeatureVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClientImpl", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClientImpl = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StickyTaskListScheduleToStartTimeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StickyTaskListScheduleToStartTimeout == nil { - m.StickyTaskListScheduleToStartTimeout = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.StickyTaskListScheduleToStartTimeout, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentBranchToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CurrentBranchToken = append(m.CurrentBranchToken[:0], dAtA[iNdEx:postIndex]...) - if m.CurrentBranchToken == nil { - m.CurrentBranchToken = []byte{} - } - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VersionHistories", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.VersionHistories == nil { - m.VersionHistories = &v11.VersionHistories{} - } - if err := m.VersionHistories.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 14: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowState", wireType) - } - m.WorkflowState = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.WorkflowState |= v11.WorkflowState(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 15: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowCloseState", wireType) - } - m.WorkflowCloseState = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.WorkflowCloseState |= v1.WorkflowExecutionCloseStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RecordDecisionTaskStartedRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RecordDecisionTaskStartedRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RecordDecisionTaskStartedRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &v1.WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduleId", wireType) - } - m.ScheduleId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ScheduleId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskId", wireType) - } - m.TaskId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TaskId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RequestId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PollRequest", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PollRequest == nil { - m.PollRequest = &v1.PollForDecisionTaskRequest{} - } - if err := m.PollRequest.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RecordDecisionTaskStartedResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RecordDecisionTaskStartedResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RecordDecisionTaskStartedResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowType", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowType == nil { - m.WorkflowType = &v1.WorkflowType{} - } - if err := m.WorkflowType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PreviousStartedEventId", wireType) - } - m.PreviousStartedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PreviousStartedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduledEventId", wireType) - } - m.ScheduledEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ScheduledEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartedEventId", wireType) - } - m.StartedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NextEventId", wireType) - } - m.NextEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NextEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Attempt", wireType) - } - m.Attempt = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Attempt |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StickyExecutionEnabled", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.StickyExecutionEnabled = bool(v != 0) - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DecisionInfo", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DecisionInfo == nil { - m.DecisionInfo = &v11.TransientDecisionInfo{} - } - if err := m.DecisionInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecutionTaskList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecutionTaskList == nil { - m.WorkflowExecutionTaskList = &v1.TaskList{} - } - if err := m.WorkflowExecutionTaskList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EventStoreVersion", wireType) - } - m.EventStoreVersion = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EventStoreVersion |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BranchToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BranchToken = append(m.BranchToken[:0], dAtA[iNdEx:postIndex]...) - if m.BranchToken == nil { - m.BranchToken = []byte{} - } - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduledTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ScheduledTime == nil { - m.ScheduledTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.ScheduledTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartedTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StartedTime == nil { - m.StartedTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.StartedTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queries", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Queries == nil { - m.Queries = make(map[string]*v1.WorkflowQuery) - } - var mapkey string - var mapvalue *v1.WorkflowQuery - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthService - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthService - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthService - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthService - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &v1.WorkflowQuery{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Queries[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RecordActivityTaskStartedRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RecordActivityTaskStartedRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RecordActivityTaskStartedRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &v1.WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduleId", wireType) - } - m.ScheduleId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ScheduleId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskId", wireType) - } - m.TaskId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TaskId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RequestId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PollRequest", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PollRequest == nil { - m.PollRequest = &v1.PollForActivityTaskRequest{} - } - if err := m.PollRequest.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RecordActivityTaskStartedResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RecordActivityTaskStartedResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RecordActivityTaskStartedResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduledEvent", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ScheduledEvent == nil { - m.ScheduledEvent = &v1.HistoryEvent{} - } - if err := m.ScheduledEvent.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartedTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StartedTime == nil { - m.StartedTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.StartedTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Attempt", wireType) - } - m.Attempt = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Attempt |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduledTimeOfThisAttempt", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ScheduledTimeOfThisAttempt == nil { - m.ScheduledTimeOfThisAttempt = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.ScheduledTimeOfThisAttempt, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HeartbeatDetails", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.HeartbeatDetails == nil { - m.HeartbeatDetails = &v1.Payload{} - } - if err := m.HeartbeatDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowType", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowType == nil { - m.WorkflowType = &v1.WorkflowType{} - } - if err := m.WorkflowType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowDomain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.WorkflowDomain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RespondDecisionTaskCompletedRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RespondDecisionTaskCompletedRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RespondDecisionTaskCompletedRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Request == nil { - m.Request = &v1.RespondDecisionTaskCompletedRequest{} - } - if err := m.Request.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RespondDecisionTaskCompletedResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RespondDecisionTaskCompletedResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RespondDecisionTaskCompletedResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartedResponse", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StartedResponse == nil { - m.StartedResponse = &RecordDecisionTaskStartedResponse{} - } - if err := m.StartedResponse.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActivitiesToDispatchLocally", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ActivitiesToDispatchLocally == nil { - m.ActivitiesToDispatchLocally = make(map[string]*v1.ActivityLocalDispatchInfo) - } - var mapkey string - var mapvalue *v1.ActivityLocalDispatchInfo - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthService - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthService - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthService - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthService - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &v1.ActivityLocalDispatchInfo{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.ActivitiesToDispatchLocally[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RespondDecisionTaskFailedRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RespondDecisionTaskFailedRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RespondDecisionTaskFailedRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Request == nil { - m.Request = &v1.RespondDecisionTaskFailedRequest{} - } - if err := m.Request.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RespondDecisionTaskFailedResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RespondDecisionTaskFailedResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RespondDecisionTaskFailedResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RecordActivityTaskHeartbeatRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RecordActivityTaskHeartbeatRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RecordActivityTaskHeartbeatRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Request == nil { - m.Request = &v1.RecordActivityTaskHeartbeatRequest{} - } - if err := m.Request.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RecordActivityTaskHeartbeatResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RecordActivityTaskHeartbeatResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RecordActivityTaskHeartbeatResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CancelRequested", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.CancelRequested = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RespondActivityTaskCompletedRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RespondActivityTaskCompletedRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RespondActivityTaskCompletedRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Request == nil { - m.Request = &v1.RespondActivityTaskCompletedRequest{} - } - if err := m.Request.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RespondActivityTaskCompletedResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RespondActivityTaskCompletedResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RespondActivityTaskCompletedResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RespondActivityTaskFailedRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RespondActivityTaskFailedRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RespondActivityTaskFailedRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Request == nil { - m.Request = &v1.RespondActivityTaskFailedRequest{} - } - if err := m.Request.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RespondActivityTaskFailedResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RespondActivityTaskFailedResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RespondActivityTaskFailedResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RespondActivityTaskCanceledRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RespondActivityTaskCanceledRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RespondActivityTaskCanceledRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Request == nil { - m.Request = &v1.RespondActivityTaskCanceledRequest{} - } - if err := m.Request.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RespondActivityTaskCanceledResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RespondActivityTaskCanceledResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RespondActivityTaskCanceledResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RemoveSignalMutableStateRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RemoveSignalMutableStateRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RemoveSignalMutableStateRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &v1.WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RequestId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RemoveSignalMutableStateResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RemoveSignalMutableStateResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RemoveSignalMutableStateResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RequestCancelWorkflowExecutionRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RequestCancelWorkflowExecutionRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RequestCancelWorkflowExecutionRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CancelRequest", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CancelRequest == nil { - m.CancelRequest = &v1.RequestCancelWorkflowExecutionRequest{} - } - if err := m.CancelRequest.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ExternalInitiatedEventId", wireType) - } - m.ExternalInitiatedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ExternalInitiatedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExternalWorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ExternalWorkflowExecution == nil { - m.ExternalWorkflowExecution = &v1.WorkflowExecution{} - } - if err := m.ExternalWorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ChildWorkflowOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ChildWorkflowOnly = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RequestCancelWorkflowExecutionResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RequestCancelWorkflowExecutionResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RequestCancelWorkflowExecutionResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ScheduleDecisionTaskRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ScheduleDecisionTaskRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ScheduleDecisionTaskRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &v1.WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsFirstDecision", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsFirstDecision = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ScheduleDecisionTaskResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ScheduleDecisionTaskResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ScheduleDecisionTaskResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RecordChildExecutionCompletedRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RecordChildExecutionCompletedRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RecordChildExecutionCompletedRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &v1.WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field InitiatedId", wireType) - } - m.InitiatedId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.InitiatedId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CompletedExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CompletedExecution == nil { - m.CompletedExecution = &v1.WorkflowExecution{} - } - if err := m.CompletedExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CompletionEvent", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CompletionEvent == nil { - m.CompletionEvent = &v1.HistoryEvent{} - } - if err := m.CompletionEvent.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RecordChildExecutionCompletedResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RecordChildExecutionCompletedResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RecordChildExecutionCompletedResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReplicateEventsV2Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReplicateEventsV2Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicateEventsV2Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &v1.WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VersionHistoryItems", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VersionHistoryItems = append(m.VersionHistoryItems, &v11.VersionHistoryItem{}) - if err := m.VersionHistoryItems[len(m.VersionHistoryItems)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Events == nil { - m.Events = &v1.DataBlob{} - } - if err := m.Events.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NewRunEvents", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.NewRunEvents == nil { - m.NewRunEvents = &v1.DataBlob{} - } - if err := m.NewRunEvents.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReplicateEventsV2Response) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReplicateEventsV2Response: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicateEventsV2Response: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SyncShardStatusRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SyncShardStatusRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SyncShardStatusRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SourceCluster", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SourceCluster = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ShardId", wireType) - } - m.ShardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ShardId |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Time == nil { - m.Time = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.Time, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SyncShardStatusResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SyncShardStatusResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SyncShardStatusResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SyncActivityRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SyncActivityRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SyncActivityRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &v1.WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) - } - m.Version = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Version |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduledId", wireType) - } - m.ScheduledId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ScheduledId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduledTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ScheduledTime == nil { - m.ScheduledTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.ScheduledTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartedId", wireType) - } - m.StartedId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartedId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartedTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StartedTime == nil { - m.StartedTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.StartedTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastHeartbeatTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LastHeartbeatTime == nil { - m.LastHeartbeatTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.LastHeartbeatTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Details", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Details == nil { - m.Details = &v1.Payload{} - } - if err := m.Details.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Attempt", wireType) - } - m.Attempt = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Attempt |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastFailure", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LastFailure == nil { - m.LastFailure = &v1.Failure{} - } - if err := m.LastFailure.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastWorkerIdentity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LastWorkerIdentity = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VersionHistory", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.VersionHistory == nil { - m.VersionHistory = &v11.VersionHistory{} - } - if err := m.VersionHistory.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SyncActivityResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SyncActivityResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SyncActivityResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DescribeMutableStateRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DescribeMutableStateRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DescribeMutableStateRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &v1.WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DescribeMutableStateResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DescribeMutableStateResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DescribeMutableStateResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MutableStateInCache", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MutableStateInCache = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MutableStateInDatabase", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MutableStateInDatabase = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DescribeHistoryHostRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DescribeHistoryHostRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DescribeHistoryHostRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ShardId", wireType) - } - m.ShardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ShardId |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &v1.WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DescribeHistoryHostResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DescribeHistoryHostResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DescribeHistoryHostResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumberOfShards", wireType) - } - m.NumberOfShards = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NumberOfShards |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType == 0 { - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ShardIds = append(m.ShardIds, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(m.ShardIds) == 0 { - m.ShardIds = make([]int32, 0, elementCount) - } - for iNdEx < postIndex { - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ShardIds = append(m.ShardIds, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field ShardIds", wireType) - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainCache", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DomainCache == nil { - m.DomainCache = &v11.DomainCacheInfo{} - } - if err := m.DomainCache.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ShardControllerStatus", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ShardControllerStatus = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CloseShardRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CloseShardRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CloseShardRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ShardId", wireType) - } - m.ShardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ShardId |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CloseShardResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CloseShardResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CloseShardResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RemoveTaskRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RemoveTaskRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RemoveTaskRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ShardId", wireType) - } - m.ShardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ShardId |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskType", wireType) - } - m.TaskType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TaskType |= v11.TaskType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskId", wireType) - } - m.TaskId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TaskId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VisibilityTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.VisibilityTime == nil { - m.VisibilityTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.VisibilityTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RemoveTaskResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RemoveTaskResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RemoveTaskResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResetQueueRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResetQueueRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResetQueueRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ShardId", wireType) - } - m.ShardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ShardId |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskType", wireType) - } - m.TaskType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TaskType |= v11.TaskType(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResetQueueResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResetQueueResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResetQueueResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DescribeQueueRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DescribeQueueRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DescribeQueueRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ShardId", wireType) - } - m.ShardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ShardId |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskType", wireType) - } - m.TaskType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TaskType |= v11.TaskType(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DescribeQueueResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DescribeQueueResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DescribeQueueResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProcessingQueueStates", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ProcessingQueueStates = append(m.ProcessingQueueStates, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetReplicationMessagesRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetReplicationMessagesRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetReplicationMessagesRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tokens", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tokens = append(m.Tokens, &v11.ReplicationToken{}) - if err := m.Tokens[len(m.Tokens)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetReplicationMessagesResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetReplicationMessagesResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetReplicationMessagesResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ShardMessages", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ShardMessages == nil { - m.ShardMessages = make(map[int32]*v11.ReplicationMessages) - } - var mapkey int32 - var mapvalue *v11.ReplicationMessages - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapkey |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthService - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthService - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &v11.ReplicationMessages{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.ShardMessages[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetDLQReplicationMessagesRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetDLQReplicationMessagesRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetDLQReplicationMessagesRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskInfos", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TaskInfos = append(m.TaskInfos, &v11.ReplicationTaskInfo{}) - if err := m.TaskInfos[len(m.TaskInfos)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetDLQReplicationMessagesResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetDLQReplicationMessagesResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetDLQReplicationMessagesResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReplicationTasks", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ReplicationTasks = append(m.ReplicationTasks, &v11.ReplicationTask{}) - if err := m.ReplicationTasks[len(m.ReplicationTasks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReapplyEventsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReapplyEventsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReapplyEventsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &v1.WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Events == nil { - m.Events = &v1.DataBlob{} - } - if err := m.Events.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReapplyEventsResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReapplyEventsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReapplyEventsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RefreshWorkflowTasksRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RefreshWorkflowTasksRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RefreshWorkflowTasksRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &v1.WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RefreshWorkflowTasksResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RefreshWorkflowTasksResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RefreshWorkflowTasksResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReadDLQMessagesRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReadDLQMessagesRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReadDLQMessagesRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= v11.DLQType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ShardId", wireType) - } - m.ShardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ShardId |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SourceCluster", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SourceCluster = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field InclusiveEndMessageId", wireType) - } - m.InclusiveEndMessageId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.InclusiveEndMessageId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) - } - m.PageSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PageSize |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NextPageToken = append(m.NextPageToken[:0], dAtA[iNdEx:postIndex]...) - if m.NextPageToken == nil { - m.NextPageToken = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReadDLQMessagesResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReadDLQMessagesResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReadDLQMessagesResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= v11.DLQType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReplicationTasks", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ReplicationTasks = append(m.ReplicationTasks, &v11.ReplicationTask{}) - if err := m.ReplicationTasks[len(m.ReplicationTasks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NextPageToken = append(m.NextPageToken[:0], dAtA[iNdEx:postIndex]...) - if m.NextPageToken == nil { - m.NextPageToken = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PurgeDLQMessagesRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PurgeDLQMessagesRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PurgeDLQMessagesRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= v11.DLQType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ShardId", wireType) - } - m.ShardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ShardId |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SourceCluster", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SourceCluster = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field InclusiveEndMessageId", wireType) - } - m.InclusiveEndMessageId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.InclusiveEndMessageId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PurgeDLQMessagesResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PurgeDLQMessagesResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PurgeDLQMessagesResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MergeDLQMessagesRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MergeDLQMessagesRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MergeDLQMessagesRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= v11.DLQType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ShardId", wireType) - } - m.ShardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ShardId |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SourceCluster", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SourceCluster = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field InclusiveEndMessageId", wireType) - } - m.InclusiveEndMessageId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.InclusiveEndMessageId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) - } - m.PageSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PageSize |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NextPageToken = append(m.NextPageToken[:0], dAtA[iNdEx:postIndex]...) - if m.NextPageToken == nil { - m.NextPageToken = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MergeDLQMessagesResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MergeDLQMessagesResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MergeDLQMessagesResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NextPageToken = append(m.NextPageToken[:0], dAtA[iNdEx:postIndex]...) - if m.NextPageToken == nil { - m.NextPageToken = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NotifyFailoverMarkersRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NotifyFailoverMarkersRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NotifyFailoverMarkersRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FailoverMarkerTokens", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FailoverMarkerTokens = append(m.FailoverMarkerTokens, &v11.FailoverMarkerToken{}) - if err := m.FailoverMarkerTokens[len(m.FailoverMarkerTokens)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NotifyFailoverMarkersResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NotifyFailoverMarkersResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NotifyFailoverMarkersResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipService(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowService - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowService - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowService - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthService - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupService - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthService - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF +// Deprecated: Use NotifyFailoverMarkersResponse.ProtoReflect.Descriptor instead. +func (*NotifyFailoverMarkersResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_history_v1_service_proto_rawDescGZIP(), []int{77} +} + +var File_uber_cadence_history_v1_service_proto protoreflect.FileDescriptor + +var file_uber_cadence_history_v1_service_proto_rawDesc = []byte{ + 0x0a, 0x25, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x68, + 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x20, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x72, + 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x61, 0x73, + 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x75, 0x62, 0x65, + 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, + 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x2a, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x77, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x75, 0x62, 0x65, + 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, + 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x75, 0x62, 0x65, + 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, + 0x2f, 0x76, 0x31, 0x2f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x22, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x25, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xab, 0x05, 0x0a, 0x1d, 0x53, 0x74, 0x61, 0x72, 0x74, + 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4c, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x53, 0x74, 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x49, 0x64, 0x12, 0x5f, 0x0a, 0x15, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x65, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x65, + 0x6e, 0x74, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, + 0x13, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x12, 0x43, + 0x0a, 0x0f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, + 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x52, 0x0e, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, + 0x69, 0x6d, 0x65, 0x12, 0x66, 0x0a, 0x19, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x5f, + 0x61, 0x73, 0x5f, 0x6e, 0x65, 0x77, 0x5f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x6f, 0x72, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, + 0x74, 0x69, 0x6e, 0x75, 0x65, 0x41, 0x73, 0x4e, 0x65, 0x77, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, + 0x74, 0x6f, 0x72, 0x52, 0x16, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x41, 0x73, 0x4e, + 0x65, 0x77, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x49, 0x0a, 0x11, 0x63, + 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x64, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x61, 0x69, + 0x6c, 0x75, 0x72, 0x65, 0x52, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x64, 0x46, + 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x12, 0x52, 0x0a, 0x16, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x63, + 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, + 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x14, 0x6c, 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x58, 0x0a, 0x1b, 0x66, 0x69, + 0x72, 0x73, 0x74, 0x5f, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x73, + 0x6b, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x18, 0x66, 0x69, 0x72, 0x73, + 0x74, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x42, 0x61, 0x63, + 0x6b, 0x6f, 0x66, 0x66, 0x22, 0x37, 0x0a, 0x1e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x75, 0x6e, 0x49, 0x64, 0x22, 0xa4, 0x02, + 0x0a, 0x1e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x4d, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x33, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x57, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x1b, 0x0a, 0x09, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x66, 0x0a, 0x1b, + 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x19, 0x65, 0x78, 0x74, 0x65, 0x72, + 0x6e, 0x61, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2e, 0x0a, 0x13, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x5f, 0x77, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x11, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x21, 0x0a, 0x1f, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x57, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9e, 0x01, 0x0a, 0x27, 0x53, 0x69, 0x67, 0x6e, + 0x61, 0x6c, 0x57, 0x69, 0x74, 0x68, 0x53, 0x74, 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x56, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, + 0x6c, 0x57, 0x69, 0x74, 0x68, 0x53, 0x74, 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x64, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, 0x41, 0x0a, 0x28, 0x53, 0x69, 0x67, 0x6e, + 0x61, 0x6c, 0x57, 0x69, 0x74, 0x68, 0x53, 0x74, 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x75, 0x6e, 0x49, 0x64, 0x22, 0x8a, 0x01, 0x0a, 0x1d, + 0x52, 0x65, 0x73, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4c, 0x0a, + 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x64, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, 0x37, 0x0a, 0x1e, 0x52, 0x65, 0x73, 0x65, + 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x75, + 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x75, 0x6e, 0x49, + 0x64, 0x22, 0x92, 0x01, 0x0a, 0x21, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x50, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, + 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, 0x24, 0x0a, 0x22, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, + 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x90, 0x01, 0x0a, + 0x20, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x4f, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, + 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, + 0xfe, 0x03, 0x0a, 0x21, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, 0x0a, 0x17, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x16, 0x65, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x62, 0x0a, 0x17, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, + 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, + 0x52, 0x15, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x57, 0x0a, 0x12, 0x70, 0x65, 0x6e, 0x64, 0x69, + 0x6e, 0x67, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, + 0x67, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x11, 0x70, + 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x69, 0x65, 0x73, + 0x12, 0x59, 0x0a, 0x10, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x68, 0x69, 0x6c, + 0x64, 0x72, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0f, 0x70, 0x65, 0x6e, 0x64, + 0x69, 0x6e, 0x67, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x12, 0x53, 0x0a, 0x10, 0x70, + 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, 0x6e, 0x64, + 0x69, 0x6e, 0x67, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, + 0x0f, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x22, 0x78, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, + 0x09, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, 0xa3, 0x01, 0x0a, 0x15, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x0c, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x72, 0x65, + 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x0b, 0x71, 0x75, 0x65, 0x72, 0x79, 0x52, + 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x49, 0x0a, 0x0e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x72, + 0x65, 0x6a, 0x65, 0x63, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x65, + 0x64, 0x52, 0x0d, 0x71, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x65, 0x64, + 0x22, 0x84, 0x01, 0x0a, 0x1a, 0x52, 0x65, 0x73, 0x65, 0x74, 0x53, 0x74, 0x69, 0x63, 0x6b, 0x79, + 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x49, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x2f, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x74, 0x53, 0x74, 0x69, 0x63, + 0x6b, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, 0x1d, 0x0a, 0x1b, 0x52, 0x65, 0x73, 0x65, 0x74, + 0x53, 0x74, 0x69, 0x63, 0x6b, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xf3, 0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x4d, 0x75, + 0x74, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x55, + 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x33, 0x0a, 0x16, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, + 0x64, 0x5f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x4e, + 0x65, 0x78, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x30, 0x0a, 0x14, 0x63, 0x75, + 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x74, 0x6f, 0x6b, + 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x12, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, + 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xf7, 0x08, 0x0a, + 0x17, 0x47, 0x65, 0x74, 0x4d, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x46, 0x0a, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x5f, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, + 0x6e, 0x65, 0x78, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x19, 0x70, + 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x16, + 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x2d, 0x0a, 0x13, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x66, + 0x69, 0x72, 0x73, 0x74, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x10, 0x6c, 0x61, 0x73, 0x74, 0x46, 0x69, 0x72, 0x73, 0x74, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x3a, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6c, 0x69, + 0x73, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, + 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, + 0x74, 0x12, 0x47, 0x0a, 0x10, 0x73, 0x74, 0x69, 0x63, 0x6b, 0x79, 0x5f, 0x74, 0x61, 0x73, 0x6b, + 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x0e, 0x73, 0x74, 0x69, 0x63, + 0x6b, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x16, 0x63, 0x6c, + 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x5f, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x63, 0x6c, 0x69, 0x65, + 0x6e, 0x74, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x12, 0x34, 0x0a, 0x16, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x66, 0x65, 0x61, 0x74, 0x75, + 0x72, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x14, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x56, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, + 0x5f, 0x69, 0x6d, 0x70, 0x6c, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x69, + 0x65, 0x6e, 0x74, 0x49, 0x6d, 0x70, 0x6c, 0x12, 0x73, 0x0a, 0x2a, 0x73, 0x74, 0x69, 0x63, 0x6b, + 0x79, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, + 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x74, 0x6f, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, + 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x24, 0x73, 0x74, 0x69, 0x63, 0x6b, 0x79, 0x54, 0x61, + 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x54, 0x6f, + 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x2e, 0x0a, 0x13, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x53, 0x74, 0x6f, 0x72, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x30, 0x0a, 0x14, + 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x12, 0x63, 0x75, 0x72, 0x72, + 0x65, 0x6e, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x4c, + 0x0a, 0x0e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, + 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, + 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x0d, 0x77, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x63, 0x0a, 0x14, + 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x5f, 0x73, + 0x74, 0x61, 0x74, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x31, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x12, 0x77, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x12, 0x55, 0x0a, 0x11, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x68, 0x69, 0x73, + 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x69, 0x73, + 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x10, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x48, + 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x12, 0x3c, 0x0a, 0x1b, 0x69, 0x73, 0x5f, 0x73, + 0x74, 0x69, 0x63, 0x6b, 0x79, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x5f, + 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x11, 0x20, 0x01, 0x28, 0x08, 0x52, 0x17, 0x69, + 0x73, 0x53, 0x74, 0x69, 0x63, 0x6b, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x45, + 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, 0xf4, 0x01, 0x0a, 0x17, 0x50, 0x6f, 0x6c, 0x6c, 0x4d, + 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, + 0x55, 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x33, 0x0a, 0x16, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, + 0x65, 0x64, 0x5f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, + 0x4e, 0x65, 0x78, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x30, 0x0a, 0x14, 0x63, + 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x12, 0x63, 0x75, 0x72, 0x72, 0x65, + 0x6e, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x8a, 0x08, + 0x0a, 0x18, 0x50, 0x6f, 0x6c, 0x6c, 0x4d, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, + 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x46, 0x0a, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x77, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x6e, 0x65, 0x78, + 0x74, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x0b, 0x6e, 0x65, 0x78, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x39, 0x0a, + 0x19, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, + 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x16, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, + 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x2d, 0x0a, 0x13, 0x6c, 0x61, 0x73, 0x74, + 0x5f, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x6c, 0x61, 0x73, 0x74, 0x46, 0x69, 0x72, 0x73, 0x74, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x3a, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, + 0x6c, 0x69, 0x73, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x4c, + 0x69, 0x73, 0x74, 0x12, 0x47, 0x0a, 0x10, 0x73, 0x74, 0x69, 0x63, 0x6b, 0x79, 0x5f, 0x74, 0x61, + 0x73, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x0e, 0x73, 0x74, + 0x69, 0x63, 0x6b, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x16, + 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x5f, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x63, 0x6c, + 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x56, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x16, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x66, 0x65, 0x61, + 0x74, 0x75, 0x72, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x14, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, + 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x69, 0x65, + 0x6e, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6c, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, + 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x6d, 0x70, 0x6c, 0x12, 0x73, 0x0a, 0x2a, 0x73, 0x74, 0x69, + 0x63, 0x6b, 0x79, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x73, 0x63, + 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x74, 0x6f, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, + 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x24, 0x73, 0x74, 0x69, 0x63, 0x6b, 0x79, + 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, + 0x54, 0x6f, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x30, + 0x0a, 0x14, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, + 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x12, 0x63, 0x75, + 0x72, 0x72, 0x65, 0x6e, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x12, 0x55, 0x0a, 0x11, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x68, 0x69, 0x73, 0x74, + 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x69, 0x73, 0x74, + 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x10, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x69, + 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x12, 0x4c, 0x0a, 0x0e, 0x77, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x25, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x63, 0x0a, 0x14, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x5f, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x0f, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x31, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6c, 0x6f, 0x73, 0x65, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x22, 0xc3, 0x02, 0x0a, 0x20, 0x52, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, + 0x6b, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x1b, 0x0a, 0x09, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x55, 0x0a, 0x12, + 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x5f, + 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, + 0x6c, 0x65, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x12, 0x1d, 0x0a, + 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x52, 0x0a, 0x0c, + 0x70, 0x6f, 0x6c, 0x6c, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x6c, 0x46, 0x6f, 0x72, + 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x52, 0x0b, 0x70, 0x6f, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x22, 0xc2, 0x07, 0x0a, 0x21, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x44, 0x65, 0x63, 0x69, 0x73, + 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, + 0x52, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x12, 0x39, + 0x0a, 0x19, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x16, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x53, 0x74, 0x61, 0x72, 0x74, + 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x12, 0x73, 0x63, 0x68, + 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x0e, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, + 0x64, 0x12, 0x22, 0x0a, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, + 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x65, 0x78, 0x74, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x12, + 0x38, 0x0a, 0x18, 0x73, 0x74, 0x69, 0x63, 0x6b, 0x79, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x16, 0x73, 0x74, 0x69, 0x63, 0x6b, 0x79, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x52, 0x0a, 0x0d, 0x64, 0x65, 0x63, + 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x2d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, + 0x65, 0x6e, 0x74, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, + 0x0c, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x5e, 0x0a, + 0x1c, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x09, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, + 0x73, 0x74, 0x52, 0x19, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2e, 0x0a, + 0x13, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, 0x65, 0x76, 0x65, 0x6e, + 0x74, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, + 0x0c, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x0b, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x12, 0x41, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x5f, 0x74, 0x69, + 0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x54, + 0x69, 0x6d, 0x65, 0x12, 0x3d, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x74, + 0x69, 0x6d, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x54, 0x69, + 0x6d, 0x65, 0x12, 0x61, 0x0a, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x0e, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x47, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, + 0x63, 0x6f, 0x72, 0x64, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, + 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x71, 0x75, + 0x65, 0x72, 0x69, 0x65, 0x73, 0x1a, 0x5e, 0x0a, 0x0c, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x38, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xc3, 0x02, 0x0a, 0x20, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, + 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x72, + 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, + 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, + 0x17, 0x0a, 0x07, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x52, 0x0a, 0x0c, 0x70, 0x6f, 0x6c, 0x6c, 0x5f, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x6c, 0x46, 0x6f, 0x72, 0x41, 0x63, 0x74, 0x69, 0x76, + 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0b, + 0x70, 0x6f, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xe4, 0x03, 0x0a, 0x21, + 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, + 0x73, 0x6b, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x4a, 0x0a, 0x0f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x5f, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x0e, 0x73, + 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x3d, 0x0a, + 0x0c, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, + 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, + 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x61, + 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x12, 0x5e, 0x0a, 0x1e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, + 0x6c, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x74, 0x68, 0x69, 0x73, + 0x5f, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x1a, 0x73, 0x63, 0x68, 0x65, + 0x64, 0x75, 0x6c, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x4f, 0x66, 0x54, 0x68, 0x69, 0x73, 0x41, + 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x12, 0x49, 0x0a, 0x11, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, + 0x65, 0x61, 0x74, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, + 0x10, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, + 0x73, 0x12, 0x46, 0x0a, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x77, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x77, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x44, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x22, 0x96, 0x01, 0x0a, 0x23, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x44, 0x65, + 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, + 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x52, 0x0a, 0x07, 0x72, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, + 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, + 0x0a, 0x09, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, 0xb3, 0x03, 0x0a, 0x24, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, + 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x10, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, + 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, + 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x44, + 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x72, 0x74, + 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0f, 0x73, 0x74, 0x61, 0x72, + 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0xa3, 0x01, 0x0a, 0x1e, + 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x69, 0x65, 0x73, 0x5f, 0x74, 0x6f, 0x5f, 0x64, 0x69, + 0x73, 0x70, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x6c, 0x79, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x5e, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, + 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x69, 0x65, 0x73, 0x54, 0x6f, + 0x44, 0x69, 0x73, 0x70, 0x61, 0x74, 0x63, 0x68, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x6c, 0x79, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x52, 0x1b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x69, 0x65, 0x73, + 0x54, 0x6f, 0x44, 0x69, 0x73, 0x70, 0x61, 0x74, 0x63, 0x68, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x6c, + 0x79, 0x1a, 0x7e, 0x0a, 0x20, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x69, 0x65, 0x73, 0x54, + 0x6f, 0x44, 0x69, 0x73, 0x70, 0x61, 0x74, 0x63, 0x68, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x6c, 0x79, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x44, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, + 0x69, 0x76, 0x69, 0x74, 0x79, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x44, 0x69, 0x73, 0x70, 0x61, 0x74, + 0x63, 0x68, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, + 0x01, 0x22, 0x90, 0x01, 0x0a, 0x20, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x44, 0x65, 0x63, + 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4f, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, + 0x6b, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x49, 0x64, 0x22, 0x23, 0x0a, 0x21, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x44, + 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x46, 0x61, 0x69, 0x6c, 0x65, + 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x94, 0x01, 0x0a, 0x22, 0x52, 0x65, + 0x63, 0x6f, 0x72, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, + 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x51, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x37, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x41, 0x63, + 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, + 0x65, 0x61, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, + 0x22, 0x50, 0x0a, 0x23, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, + 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x63, 0x61, 0x6e, 0x63, 0x65, + 0x6c, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x0f, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x65, 0x64, 0x22, 0x96, 0x01, 0x0a, 0x23, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x41, 0x63, + 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, + 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x52, 0x0a, 0x07, 0x72, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, + 0x79, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, + 0x0a, 0x09, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, 0x26, 0x0a, 0x24, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, + 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x90, 0x01, 0x0a, 0x20, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x41, + 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x46, 0x61, 0x69, 0x6c, 0x65, + 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4f, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, + 0x61, 0x73, 0x6b, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, 0x23, 0x0a, 0x21, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x46, 0x61, 0x69, + 0x6c, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x94, 0x01, 0x0a, 0x22, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, + 0x61, 0x73, 0x6b, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x51, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x61, 0x6e, + 0x63, 0x65, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x49, 0x64, 0x22, 0x25, 0x0a, 0x23, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x41, 0x63, 0x74, + 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x65, + 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xb4, 0x01, 0x0a, 0x1f, 0x52, 0x65, + 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x4d, 0x75, 0x74, 0x61, 0x62, 0x6c, + 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, + 0x09, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, + 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, + 0x22, 0x22, 0x0a, 0x20, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, + 0x4d, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xfe, 0x02, 0x0a, 0x25, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, + 0x0a, 0x09, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x61, 0x0a, 0x0e, 0x63, + 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, + 0x0d, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3d, + 0x0a, 0x1b, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x69, 0x74, 0x69, + 0x61, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x18, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x49, 0x6e, 0x69, + 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x66, 0x0a, + 0x1b, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x19, 0x65, 0x78, 0x74, 0x65, + 0x72, 0x6e, 0x61, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2e, 0x0a, 0x13, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x5f, 0x77, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x11, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x28, 0x0a, 0x26, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0xbd, 0x01, 0x0a, 0x1b, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x44, 0x65, 0x63, 0x69, + 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x1b, 0x0a, 0x09, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x55, 0x0a, 0x12, + 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x0a, 0x11, 0x69, 0x73, 0x5f, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, + 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, + 0x69, 0x73, 0x46, 0x69, 0x72, 0x73, 0x74, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x22, + 0x1e, 0x0a, 0x1c, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x44, 0x65, 0x63, 0x69, 0x73, + 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0xe4, 0x02, 0x0a, 0x24, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, + 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, + 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x0b, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x49, 0x64, 0x12, + 0x57, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x12, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4c, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x70, + 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x0f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, + 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x27, 0x0a, 0x25, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, + 0x43, 0x68, 0x69, 0x6c, 0x64, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, + 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0xea, 0x02, 0x0a, 0x18, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x73, 0x56, 0x32, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, + 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x77, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x5e, 0x0a, 0x15, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x68, 0x69, 0x73, 0x74, + 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x2a, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x13, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x74, 0x65, 0x6d, 0x73, + 0x12, 0x35, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x42, 0x6c, 0x6f, 0x62, 0x52, + 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x43, 0x0a, 0x0e, 0x6e, 0x65, 0x77, 0x5f, 0x72, + 0x75, 0x6e, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x42, 0x6c, 0x6f, 0x62, 0x52, 0x0c, + 0x6e, 0x65, 0x77, 0x52, 0x75, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x1b, 0x0a, 0x19, + 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x56, + 0x32, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x8a, 0x01, 0x0a, 0x16, 0x53, 0x79, + 0x6e, 0x63, 0x53, 0x68, 0x61, 0x72, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x73, + 0x68, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x73, + 0x68, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x19, 0x0a, 0x17, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x68, + 0x61, 0x72, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0xc9, 0x05, 0x0a, 0x13, 0x53, 0x79, 0x6e, 0x63, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, + 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, + 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x64, + 0x75, 0x6c, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x73, + 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x49, 0x64, 0x12, 0x41, 0x0a, 0x0e, 0x73, 0x63, + 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0d, + 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1d, 0x0a, + 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x49, 0x64, 0x12, 0x3d, 0x0a, 0x0c, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0b, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x4a, 0x0a, 0x13, 0x6c, + 0x61, 0x73, 0x74, 0x5f, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x5f, 0x74, 0x69, + 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x52, 0x11, 0x6c, 0x61, 0x73, 0x74, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, + 0x65, 0x61, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, + 0x6c, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, + 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, + 0x18, 0x0a, 0x07, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x07, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x12, 0x3f, 0x0a, 0x0c, 0x6c, 0x61, 0x73, + 0x74, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x52, 0x0b, 0x6c, + 0x61, 0x73, 0x74, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x6c, 0x61, + 0x73, 0x74, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x74, 0x79, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x6c, 0x61, 0x73, 0x74, 0x57, 0x6f, + 0x72, 0x6b, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x4f, 0x0a, 0x0f, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x18, + 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x56, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x0e, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x22, 0x16, 0x0a, + 0x14, 0x53, 0x79, 0x6e, 0x63, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x91, 0x01, 0x0a, 0x1b, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x62, 0x65, 0x4d, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x49, 0x64, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x8e, 0x01, 0x0a, 0x1c, 0x44, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x4d, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x16, 0x6d, 0x75, + 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x6e, 0x5f, 0x63, + 0x61, 0x63, 0x68, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x6d, 0x75, 0x74, 0x61, + 0x62, 0x6c, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x12, + 0x39, 0x0a, 0x19, 0x6d, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, + 0x5f, 0x69, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x16, 0x6d, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x49, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x22, 0xb1, 0x01, 0x0a, 0x1a, 0x44, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x48, 0x6f, + 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x68, 0x6f, 0x73, + 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0b, 0x68, 0x6f, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x19, 0x0a, 0x08, + 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, + 0x73, 0x68, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x82, + 0x02, 0x0a, 0x1b, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, + 0x72, 0x79, 0x48, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, + 0x0a, 0x10, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x6f, 0x66, 0x5f, 0x73, 0x68, 0x61, 0x72, + 0x64, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, + 0x4f, 0x66, 0x53, 0x68, 0x61, 0x72, 0x64, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x68, 0x61, 0x72, + 0x64, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x05, 0x52, 0x08, 0x73, 0x68, 0x61, + 0x72, 0x64, 0x49, 0x64, 0x73, 0x12, 0x4a, 0x0a, 0x0c, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, + 0x63, 0x61, 0x63, 0x68, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, + 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x43, 0x61, 0x63, 0x68, + 0x65, 0x12, 0x36, 0x0a, 0x17, 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, + 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x15, 0x73, 0x68, 0x61, 0x72, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, + 0x6c, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x22, 0x2e, 0x0a, 0x11, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x68, 0x61, 0x72, + 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x68, 0x61, 0x72, + 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x73, 0x68, 0x61, 0x72, + 0x64, 0x49, 0x64, 0x22, 0x14, 0x0a, 0x12, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x68, 0x61, 0x72, + 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xcb, 0x01, 0x0a, 0x11, 0x52, 0x65, + 0x6d, 0x6f, 0x76, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x19, 0x0a, 0x08, 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x07, 0x73, 0x68, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x3d, 0x0a, 0x09, 0x74, 0x61, + 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, + 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x61, 0x73, + 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, + 0x49, 0x64, 0x12, 0x43, 0x0a, 0x0f, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, + 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0e, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x14, 0x0a, 0x12, 0x52, 0x65, 0x6d, 0x6f, 0x76, + 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x90, 0x01, + 0x0a, 0x11, 0x52, 0x65, 0x73, 0x65, 0x74, 0x51, 0x75, 0x65, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x73, 0x68, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x21, + 0x0a, 0x0c, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x3d, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, + 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, + 0x22, 0x14, 0x0a, 0x12, 0x52, 0x65, 0x73, 0x65, 0x74, 0x51, 0x75, 0x65, 0x75, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x93, 0x01, 0x0a, 0x14, 0x44, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x62, 0x65, 0x51, 0x75, 0x65, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x19, 0x0a, 0x08, 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x07, 0x73, 0x68, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3d, 0x0a, + 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x20, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, + 0x70, 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x22, 0x4f, 0x0a, 0x15, + 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x51, 0x75, 0x65, 0x75, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x17, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, + 0x69, 0x6e, 0x67, 0x5f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x15, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x69, + 0x6e, 0x67, 0x51, 0x75, 0x65, 0x75, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x73, 0x22, 0x84, 0x01, + 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x40, 0x0a, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x28, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, + 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x82, 0x02, 0x0a, 0x1e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x71, 0x0a, 0x0e, 0x73, 0x68, 0x61, 0x72, 0x64, + 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x4a, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, + 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x4d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x73, 0x68, 0x61, + 0x72, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x1a, 0x6d, 0x0a, 0x12, 0x53, 0x68, + 0x61, 0x72, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, + 0x65, 0x79, 0x12, 0x41, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x2b, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x6e, 0x0a, 0x20, 0x47, 0x65, 0x74, + 0x44, 0x4c, 0x51, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4a, 0x0a, + 0x0a, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x2b, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, + 0x74, 0x61, 0x73, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x22, 0x79, 0x0a, 0x21, 0x47, 0x65, 0x74, + 0x44, 0x4c, 0x51, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, + 0x0a, 0x11, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x61, + 0x73, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, + 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x61, + 0x73, 0x6b, 0x52, 0x10, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, + 0x61, 0x73, 0x6b, 0x73, 0x22, 0xd9, 0x01, 0x0a, 0x14, 0x52, 0x65, 0x61, 0x70, 0x70, 0x6c, 0x79, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, + 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x49, 0x64, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x0a, 0x06, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x44, 0x61, 0x74, 0x61, 0x42, 0x6c, 0x6f, 0x62, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, + 0x22, 0x17, 0x0a, 0x15, 0x52, 0x65, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xa9, 0x01, 0x0a, 0x1b, 0x52, 0x65, + 0x66, 0x72, 0x65, 0x73, 0x68, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, + 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x55, + 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x1e, 0x0a, 0x1c, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, + 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x8d, 0x02, 0x0a, 0x16, 0x52, 0x65, 0x61, 0x64, 0x44, 0x4c, + 0x51, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x33, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x4c, 0x51, 0x54, 0x79, 0x70, 0x65, 0x52, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, 0x69, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x73, 0x68, 0x61, 0x72, 0x64, 0x49, 0x64, + 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x37, 0x0a, 0x18, 0x69, 0x6e, 0x63, 0x6c, 0x75, + 0x73, 0x69, 0x76, 0x65, 0x5f, 0x65, 0x6e, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x15, 0x69, 0x6e, 0x63, 0x6c, 0x75, + 0x73, 0x69, 0x76, 0x65, 0x45, 0x6e, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, + 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x26, 0x0a, + 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xcc, 0x01, 0x0a, 0x17, 0x52, 0x65, 0x61, 0x64, 0x44, 0x4c, + 0x51, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x33, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x1f, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x4c, 0x51, 0x54, 0x79, 0x70, 0x65, + 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x54, 0x0a, 0x11, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x27, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x10, 0x72, 0x65, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x26, 0x0a, 0x0f, + 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, + 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xc9, 0x01, 0x0a, 0x17, 0x50, 0x75, 0x72, 0x67, 0x65, 0x44, 0x4c, + 0x51, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x33, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x4c, 0x51, 0x54, 0x79, 0x70, 0x65, 0x52, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, 0x69, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x73, 0x68, 0x61, 0x72, 0x64, 0x49, 0x64, + 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x37, 0x0a, 0x18, 0x69, 0x6e, 0x63, 0x6c, 0x75, + 0x73, 0x69, 0x76, 0x65, 0x5f, 0x65, 0x6e, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x15, 0x69, 0x6e, 0x63, 0x6c, 0x75, + 0x73, 0x69, 0x76, 0x65, 0x45, 0x6e, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, + 0x22, 0x1a, 0x0a, 0x18, 0x50, 0x75, 0x72, 0x67, 0x65, 0x44, 0x4c, 0x51, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x8e, 0x02, 0x0a, + 0x17, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x44, 0x4c, 0x51, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x33, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, + 0x44, 0x4c, 0x51, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, + 0x08, 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x07, 0x73, 0x68, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, + 0x37, 0x0a, 0x18, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x73, 0x69, 0x76, 0x65, 0x5f, 0x65, 0x6e, 0x64, + 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x15, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x73, 0x69, 0x76, 0x65, 0x45, 0x6e, 0x64, 0x4d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, + 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, + 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, + 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, + 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x42, 0x0a, + 0x18, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x44, 0x4c, 0x51, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, + 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x22, 0x81, 0x01, 0x0a, 0x1c, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x46, 0x61, 0x69, 0x6c, + 0x6f, 0x76, 0x65, 0x72, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x61, 0x0a, 0x16, 0x66, 0x61, 0x69, 0x6c, 0x6f, 0x76, 0x65, 0x72, 0x5f, 0x6d, + 0x61, 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x61, 0x69, 0x6c, + 0x6f, 0x76, 0x65, 0x72, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, + 0x14, 0x66, 0x61, 0x69, 0x6c, 0x6f, 0x76, 0x65, 0x72, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x72, 0x54, + 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x22, 0x1f, 0x0a, 0x1d, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x46, + 0x61, 0x69, 0x6c, 0x6f, 0x76, 0x65, 0x72, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x72, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xa4, 0x29, 0x0a, 0x0a, 0x48, 0x69, 0x73, 0x74, 0x6f, + 0x72, 0x79, 0x41, 0x50, 0x49, 0x12, 0x89, 0x01, 0x0a, 0x16, 0x53, 0x74, 0x61, 0x72, 0x74, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x36, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, + 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x8c, 0x01, 0x0a, 0x17, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x37, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, + 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x57, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0xa7, 0x01, 0x0a, 0x20, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x57, 0x69, 0x74, 0x68, 0x53, + 0x74, 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x40, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, + 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x57, 0x69, 0x74, 0x68, 0x53, 0x74, 0x61, 0x72, 0x74, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x41, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x57, 0x69, 0x74, 0x68, 0x53, 0x74, 0x61, 0x72, + 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x89, 0x01, 0x0a, 0x16, 0x52, + 0x65, 0x73, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, + 0x52, 0x65, 0x73, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, + 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x74, 0x57, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x95, 0x01, 0x0a, 0x1a, 0x54, 0x65, 0x72, 0x6d, 0x69, + 0x6e, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3a, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, + 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x3b, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x72, 0x6d, + 0x69, 0x6e, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x92, + 0x01, 0x0a, 0x19, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, + 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x6e, 0x0a, 0x0d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x2d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x80, 0x01, 0x0a, 0x13, 0x52, 0x65, 0x73, 0x65, 0x74, 0x53, 0x74, 0x69, + 0x63, 0x6b, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x33, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x74, 0x53, 0x74, 0x69, 0x63, 0x6b, + 0x79, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x34, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x74, + 0x53, 0x74, 0x69, 0x63, 0x6b, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x74, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x4d, 0x75, 0x74, + 0x61, 0x62, 0x6c, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2f, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x77, 0x0a, 0x10, + 0x50, 0x6f, 0x6c, 0x6c, 0x4d, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x12, 0x30, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x6c, 0x4d, + 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, + 0x6c, 0x4d, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x92, 0x01, 0x0a, 0x19, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, + 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x72, + 0x74, 0x65, 0x64, 0x12, 0x39, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, + 0x63, 0x6f, 0x72, 0x64, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, + 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, + 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x44, + 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x72, 0x74, + 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x9b, 0x01, 0x0a, 0x1c, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, + 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x3c, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x44, 0x65, 0x63, + 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, + 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3d, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x44, 0x65, 0x63, 0x69, 0x73, + 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x92, 0x01, 0x0a, 0x19, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x64, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, + 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x12, 0x39, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x54, 0x61, 0x73, 0x6b, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x3a, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x64, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x46, + 0x61, 0x69, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x92, 0x01, + 0x0a, 0x19, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, + 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x12, 0x39, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x41, 0x63, 0x74, 0x69, + 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, + 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x9b, 0x01, 0x0a, 0x1c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x41, 0x63, + 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, + 0x74, 0x65, 0x64, 0x12, 0x3c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, + 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x3d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x43, + 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x92, 0x01, 0x0a, 0x19, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x41, 0x63, 0x74, 0x69, + 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x12, 0x39, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, + 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, + 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x46, 0x61, 0x69, 0x6c, + 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, + 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x98, 0x01, 0x0a, 0x1b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x61, 0x6e, + 0x63, 0x65, 0x6c, 0x65, 0x64, 0x12, 0x3b, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, + 0x61, 0x73, 0x6b, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x3c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, + 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x98, 0x01, 0x0a, 0x1b, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, + 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, + 0x12, 0x3b, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x65, 0x61, + 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3c, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, + 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x41, 0x63, + 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, + 0x65, 0x61, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0xa1, 0x01, 0x0a, 0x1e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x57, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3e, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, + 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3f, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, + 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x8f, 0x01, 0x0a, 0x18, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, + 0x4d, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x38, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, + 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x69, 0x67, + 0x6e, 0x61, 0x6c, 0x4d, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x4d, 0x75, 0x74, + 0x61, 0x62, 0x6c, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x83, 0x01, 0x0a, 0x14, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x44, 0x65, + 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x34, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x44, 0x65, 0x63, + 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x35, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, + 0x75, 0x6c, 0x65, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x9e, 0x01, 0x0a, 0x1d, 0x52, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x3d, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, + 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3e, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7a, 0x0a, 0x11, 0x52, 0x65, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x74, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x56, 0x32, 0x12, 0x31, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, + 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, + 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x56, 0x32, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x32, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x56, 0x32, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x74, 0x0a, 0x0f, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x68, 0x61, 0x72, + 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2f, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x68, 0x61, 0x72, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x68, 0x61, 0x72, 0x64, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x0c, 0x53, 0x79, + 0x6e, 0x63, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x12, 0x2c, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, + 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x83, 0x01, 0x0a, 0x14, 0x44, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x62, 0x65, 0x4d, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x12, 0x34, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x62, 0x65, 0x4d, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x4d, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x80, 0x01, + 0x0a, 0x13, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, + 0x79, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x33, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, + 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x48, + 0x6f, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x48, 0x69, 0x73, + 0x74, 0x6f, 0x72, 0x79, 0x48, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x65, 0x0a, 0x0a, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x12, 0x2a, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, + 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x68, + 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x0a, 0x52, 0x65, 0x6d, 0x6f, 0x76, + 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x2a, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, + 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2b, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, + 0x76, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, + 0x0a, 0x0a, 0x52, 0x65, 0x73, 0x65, 0x74, 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, 0x2a, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, + 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x74, 0x51, 0x75, 0x65, 0x75, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x74, 0x51, 0x75, 0x65, 0x75, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6e, 0x0a, 0x0d, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, + 0x65, 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, 0x2d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x51, 0x75, 0x65, 0x75, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, + 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x51, 0x75, 0x65, 0x75, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x89, 0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, + 0x12, 0x36, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x92, 0x01, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x44, 0x4c, 0x51, 0x52, 0x65, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, + 0x39, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, + 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x4c, 0x51, + 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x4c, 0x51, 0x52, 0x65, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6e, 0x0a, 0x0d, 0x52, 0x65, 0x61, 0x70, 0x70, 0x6c, + 0x79, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x2e, 0x52, 0x65, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x2e, 0x52, 0x65, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x83, 0x01, 0x0a, 0x14, 0x52, 0x65, 0x66, 0x72, 0x65, + 0x73, 0x68, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, + 0x34, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, + 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, + 0x68, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, + 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, + 0x61, 0x73, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x74, 0x0a, 0x0f, + 0x52, 0x65, 0x61, 0x64, 0x44, 0x4c, 0x51, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, + 0x2f, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, + 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x44, 0x4c, + 0x51, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x30, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x44, + 0x4c, 0x51, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x77, 0x0a, 0x10, 0x50, 0x75, 0x72, 0x67, 0x65, 0x44, 0x4c, 0x51, 0x4d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x30, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x2e, 0x50, 0x75, 0x72, 0x67, 0x65, 0x44, 0x4c, 0x51, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x2e, 0x50, 0x75, 0x72, 0x67, 0x65, 0x44, 0x4c, 0x51, 0x4d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x77, 0x0a, 0x10, 0x4d, + 0x65, 0x72, 0x67, 0x65, 0x44, 0x4c, 0x51, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, + 0x30, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, + 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x44, + 0x4c, 0x51, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x31, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x72, 0x67, + 0x65, 0x44, 0x4c, 0x51, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x86, 0x01, 0x0a, 0x15, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x46, + 0x61, 0x69, 0x6c, 0x6f, 0x76, 0x65, 0x72, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x72, 0x73, 0x12, 0x35, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, + 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x46, + 0x61, 0x69, 0x6c, 0x6f, 0x76, 0x65, 0x72, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x72, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, + 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x46, 0x61, 0x69, 0x6c, 0x6f, 0x76, 0x65, 0x72, 0x4d, 0x61, + 0x72, 0x6b, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x39, 0x5a, + 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x62, 0x65, 0x72, + 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x2e, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x3b, 0x68, + 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - ErrInvalidLengthService = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowService = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupService = fmt.Errorf("proto: unexpected end of group") + file_uber_cadence_history_v1_service_proto_rawDescOnce sync.Once + file_uber_cadence_history_v1_service_proto_rawDescData = file_uber_cadence_history_v1_service_proto_rawDesc ) + +func file_uber_cadence_history_v1_service_proto_rawDescGZIP() []byte { + file_uber_cadence_history_v1_service_proto_rawDescOnce.Do(func() { + file_uber_cadence_history_v1_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_uber_cadence_history_v1_service_proto_rawDescData) + }) + return file_uber_cadence_history_v1_service_proto_rawDescData +} + +var file_uber_cadence_history_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 81) +var file_uber_cadence_history_v1_service_proto_goTypes = []interface{}{ + (*StartWorkflowExecutionRequest)(nil), // 0: uber.cadence.history.v1.StartWorkflowExecutionRequest + (*StartWorkflowExecutionResponse)(nil), // 1: uber.cadence.history.v1.StartWorkflowExecutionResponse + (*SignalWorkflowExecutionRequest)(nil), // 2: uber.cadence.history.v1.SignalWorkflowExecutionRequest + (*SignalWorkflowExecutionResponse)(nil), // 3: uber.cadence.history.v1.SignalWorkflowExecutionResponse + (*SignalWithStartWorkflowExecutionRequest)(nil), // 4: uber.cadence.history.v1.SignalWithStartWorkflowExecutionRequest + (*SignalWithStartWorkflowExecutionResponse)(nil), // 5: uber.cadence.history.v1.SignalWithStartWorkflowExecutionResponse + (*ResetWorkflowExecutionRequest)(nil), // 6: uber.cadence.history.v1.ResetWorkflowExecutionRequest + (*ResetWorkflowExecutionResponse)(nil), // 7: uber.cadence.history.v1.ResetWorkflowExecutionResponse + (*TerminateWorkflowExecutionRequest)(nil), // 8: uber.cadence.history.v1.TerminateWorkflowExecutionRequest + (*TerminateWorkflowExecutionResponse)(nil), // 9: uber.cadence.history.v1.TerminateWorkflowExecutionResponse + (*DescribeWorkflowExecutionRequest)(nil), // 10: uber.cadence.history.v1.DescribeWorkflowExecutionRequest + (*DescribeWorkflowExecutionResponse)(nil), // 11: uber.cadence.history.v1.DescribeWorkflowExecutionResponse + (*QueryWorkflowRequest)(nil), // 12: uber.cadence.history.v1.QueryWorkflowRequest + (*QueryWorkflowResponse)(nil), // 13: uber.cadence.history.v1.QueryWorkflowResponse + (*ResetStickyTaskListRequest)(nil), // 14: uber.cadence.history.v1.ResetStickyTaskListRequest + (*ResetStickyTaskListResponse)(nil), // 15: uber.cadence.history.v1.ResetStickyTaskListResponse + (*GetMutableStateRequest)(nil), // 16: uber.cadence.history.v1.GetMutableStateRequest + (*GetMutableStateResponse)(nil), // 17: uber.cadence.history.v1.GetMutableStateResponse + (*PollMutableStateRequest)(nil), // 18: uber.cadence.history.v1.PollMutableStateRequest + (*PollMutableStateResponse)(nil), // 19: uber.cadence.history.v1.PollMutableStateResponse + (*RecordDecisionTaskStartedRequest)(nil), // 20: uber.cadence.history.v1.RecordDecisionTaskStartedRequest + (*RecordDecisionTaskStartedResponse)(nil), // 21: uber.cadence.history.v1.RecordDecisionTaskStartedResponse + (*RecordActivityTaskStartedRequest)(nil), // 22: uber.cadence.history.v1.RecordActivityTaskStartedRequest + (*RecordActivityTaskStartedResponse)(nil), // 23: uber.cadence.history.v1.RecordActivityTaskStartedResponse + (*RespondDecisionTaskCompletedRequest)(nil), // 24: uber.cadence.history.v1.RespondDecisionTaskCompletedRequest + (*RespondDecisionTaskCompletedResponse)(nil), // 25: uber.cadence.history.v1.RespondDecisionTaskCompletedResponse + (*RespondDecisionTaskFailedRequest)(nil), // 26: uber.cadence.history.v1.RespondDecisionTaskFailedRequest + (*RespondDecisionTaskFailedResponse)(nil), // 27: uber.cadence.history.v1.RespondDecisionTaskFailedResponse + (*RecordActivityTaskHeartbeatRequest)(nil), // 28: uber.cadence.history.v1.RecordActivityTaskHeartbeatRequest + (*RecordActivityTaskHeartbeatResponse)(nil), // 29: uber.cadence.history.v1.RecordActivityTaskHeartbeatResponse + (*RespondActivityTaskCompletedRequest)(nil), // 30: uber.cadence.history.v1.RespondActivityTaskCompletedRequest + (*RespondActivityTaskCompletedResponse)(nil), // 31: uber.cadence.history.v1.RespondActivityTaskCompletedResponse + (*RespondActivityTaskFailedRequest)(nil), // 32: uber.cadence.history.v1.RespondActivityTaskFailedRequest + (*RespondActivityTaskFailedResponse)(nil), // 33: uber.cadence.history.v1.RespondActivityTaskFailedResponse + (*RespondActivityTaskCanceledRequest)(nil), // 34: uber.cadence.history.v1.RespondActivityTaskCanceledRequest + (*RespondActivityTaskCanceledResponse)(nil), // 35: uber.cadence.history.v1.RespondActivityTaskCanceledResponse + (*RemoveSignalMutableStateRequest)(nil), // 36: uber.cadence.history.v1.RemoveSignalMutableStateRequest + (*RemoveSignalMutableStateResponse)(nil), // 37: uber.cadence.history.v1.RemoveSignalMutableStateResponse + (*RequestCancelWorkflowExecutionRequest)(nil), // 38: uber.cadence.history.v1.RequestCancelWorkflowExecutionRequest + (*RequestCancelWorkflowExecutionResponse)(nil), // 39: uber.cadence.history.v1.RequestCancelWorkflowExecutionResponse + (*ScheduleDecisionTaskRequest)(nil), // 40: uber.cadence.history.v1.ScheduleDecisionTaskRequest + (*ScheduleDecisionTaskResponse)(nil), // 41: uber.cadence.history.v1.ScheduleDecisionTaskResponse + (*RecordChildExecutionCompletedRequest)(nil), // 42: uber.cadence.history.v1.RecordChildExecutionCompletedRequest + (*RecordChildExecutionCompletedResponse)(nil), // 43: uber.cadence.history.v1.RecordChildExecutionCompletedResponse + (*ReplicateEventsV2Request)(nil), // 44: uber.cadence.history.v1.ReplicateEventsV2Request + (*ReplicateEventsV2Response)(nil), // 45: uber.cadence.history.v1.ReplicateEventsV2Response + (*SyncShardStatusRequest)(nil), // 46: uber.cadence.history.v1.SyncShardStatusRequest + (*SyncShardStatusResponse)(nil), // 47: uber.cadence.history.v1.SyncShardStatusResponse + (*SyncActivityRequest)(nil), // 48: uber.cadence.history.v1.SyncActivityRequest + (*SyncActivityResponse)(nil), // 49: uber.cadence.history.v1.SyncActivityResponse + (*DescribeMutableStateRequest)(nil), // 50: uber.cadence.history.v1.DescribeMutableStateRequest + (*DescribeMutableStateResponse)(nil), // 51: uber.cadence.history.v1.DescribeMutableStateResponse + (*DescribeHistoryHostRequest)(nil), // 52: uber.cadence.history.v1.DescribeHistoryHostRequest + (*DescribeHistoryHostResponse)(nil), // 53: uber.cadence.history.v1.DescribeHistoryHostResponse + (*CloseShardRequest)(nil), // 54: uber.cadence.history.v1.CloseShardRequest + (*CloseShardResponse)(nil), // 55: uber.cadence.history.v1.CloseShardResponse + (*RemoveTaskRequest)(nil), // 56: uber.cadence.history.v1.RemoveTaskRequest + (*RemoveTaskResponse)(nil), // 57: uber.cadence.history.v1.RemoveTaskResponse + (*ResetQueueRequest)(nil), // 58: uber.cadence.history.v1.ResetQueueRequest + (*ResetQueueResponse)(nil), // 59: uber.cadence.history.v1.ResetQueueResponse + (*DescribeQueueRequest)(nil), // 60: uber.cadence.history.v1.DescribeQueueRequest + (*DescribeQueueResponse)(nil), // 61: uber.cadence.history.v1.DescribeQueueResponse + (*GetReplicationMessagesRequest)(nil), // 62: uber.cadence.history.v1.GetReplicationMessagesRequest + (*GetReplicationMessagesResponse)(nil), // 63: uber.cadence.history.v1.GetReplicationMessagesResponse + (*GetDLQReplicationMessagesRequest)(nil), // 64: uber.cadence.history.v1.GetDLQReplicationMessagesRequest + (*GetDLQReplicationMessagesResponse)(nil), // 65: uber.cadence.history.v1.GetDLQReplicationMessagesResponse + (*ReapplyEventsRequest)(nil), // 66: uber.cadence.history.v1.ReapplyEventsRequest + (*ReapplyEventsResponse)(nil), // 67: uber.cadence.history.v1.ReapplyEventsResponse + (*RefreshWorkflowTasksRequest)(nil), // 68: uber.cadence.history.v1.RefreshWorkflowTasksRequest + (*RefreshWorkflowTasksResponse)(nil), // 69: uber.cadence.history.v1.RefreshWorkflowTasksResponse + (*ReadDLQMessagesRequest)(nil), // 70: uber.cadence.history.v1.ReadDLQMessagesRequest + (*ReadDLQMessagesResponse)(nil), // 71: uber.cadence.history.v1.ReadDLQMessagesResponse + (*PurgeDLQMessagesRequest)(nil), // 72: uber.cadence.history.v1.PurgeDLQMessagesRequest + (*PurgeDLQMessagesResponse)(nil), // 73: uber.cadence.history.v1.PurgeDLQMessagesResponse + (*MergeDLQMessagesRequest)(nil), // 74: uber.cadence.history.v1.MergeDLQMessagesRequest + (*MergeDLQMessagesResponse)(nil), // 75: uber.cadence.history.v1.MergeDLQMessagesResponse + (*NotifyFailoverMarkersRequest)(nil), // 76: uber.cadence.history.v1.NotifyFailoverMarkersRequest + (*NotifyFailoverMarkersResponse)(nil), // 77: uber.cadence.history.v1.NotifyFailoverMarkersResponse + nil, // 78: uber.cadence.history.v1.RecordDecisionTaskStartedResponse.QueriesEntry + nil, // 79: uber.cadence.history.v1.RespondDecisionTaskCompletedResponse.ActivitiesToDispatchLocallyEntry + nil, // 80: uber.cadence.history.v1.GetReplicationMessagesResponse.ShardMessagesEntry + (*v1.StartWorkflowExecutionRequest)(nil), // 81: uber.cadence.api.v1.StartWorkflowExecutionRequest + (*v11.ParentExecutionInfo)(nil), // 82: uber.cadence.shared.v1.ParentExecutionInfo + (*timestamppb.Timestamp)(nil), // 83: google.protobuf.Timestamp + (v1.ContinueAsNewInitiator)(0), // 84: uber.cadence.api.v1.ContinueAsNewInitiator + (*v1.Failure)(nil), // 85: uber.cadence.api.v1.Failure + (*v1.Payload)(nil), // 86: uber.cadence.api.v1.Payload + (*durationpb.Duration)(nil), // 87: google.protobuf.Duration + (*v1.SignalWorkflowExecutionRequest)(nil), // 88: uber.cadence.api.v1.SignalWorkflowExecutionRequest + (*v1.WorkflowExecution)(nil), // 89: uber.cadence.api.v1.WorkflowExecution + (*v1.SignalWithStartWorkflowExecutionRequest)(nil), // 90: uber.cadence.api.v1.SignalWithStartWorkflowExecutionRequest + (*v1.ResetWorkflowExecutionRequest)(nil), // 91: uber.cadence.api.v1.ResetWorkflowExecutionRequest + (*v1.TerminateWorkflowExecutionRequest)(nil), // 92: uber.cadence.api.v1.TerminateWorkflowExecutionRequest + (*v1.DescribeWorkflowExecutionRequest)(nil), // 93: uber.cadence.api.v1.DescribeWorkflowExecutionRequest + (*v1.WorkflowExecutionConfiguration)(nil), // 94: uber.cadence.api.v1.WorkflowExecutionConfiguration + (*v1.WorkflowExecutionInfo)(nil), // 95: uber.cadence.api.v1.WorkflowExecutionInfo + (*v1.PendingActivityInfo)(nil), // 96: uber.cadence.api.v1.PendingActivityInfo + (*v1.PendingChildExecutionInfo)(nil), // 97: uber.cadence.api.v1.PendingChildExecutionInfo + (*v1.PendingDecisionInfo)(nil), // 98: uber.cadence.api.v1.PendingDecisionInfo + (*v1.QueryWorkflowRequest)(nil), // 99: uber.cadence.api.v1.QueryWorkflowRequest + (*v1.QueryRejected)(nil), // 100: uber.cadence.api.v1.QueryRejected + (*v1.ResetStickyTaskListRequest)(nil), // 101: uber.cadence.api.v1.ResetStickyTaskListRequest + (*v1.WorkflowType)(nil), // 102: uber.cadence.api.v1.WorkflowType + (*v1.TaskList)(nil), // 103: uber.cadence.api.v1.TaskList + (v11.WorkflowState)(0), // 104: uber.cadence.shared.v1.WorkflowState + (v1.WorkflowExecutionCloseStatus)(0), // 105: uber.cadence.api.v1.WorkflowExecutionCloseStatus + (*v11.VersionHistories)(nil), // 106: uber.cadence.shared.v1.VersionHistories + (*v1.PollForDecisionTaskRequest)(nil), // 107: uber.cadence.api.v1.PollForDecisionTaskRequest + (*v11.TransientDecisionInfo)(nil), // 108: uber.cadence.shared.v1.TransientDecisionInfo + (*v1.PollForActivityTaskRequest)(nil), // 109: uber.cadence.api.v1.PollForActivityTaskRequest + (*v1.HistoryEvent)(nil), // 110: uber.cadence.api.v1.HistoryEvent + (*v1.RespondDecisionTaskCompletedRequest)(nil), // 111: uber.cadence.api.v1.RespondDecisionTaskCompletedRequest + (*v1.RespondDecisionTaskFailedRequest)(nil), // 112: uber.cadence.api.v1.RespondDecisionTaskFailedRequest + (*v1.RecordActivityTaskHeartbeatRequest)(nil), // 113: uber.cadence.api.v1.RecordActivityTaskHeartbeatRequest + (*v1.RespondActivityTaskCompletedRequest)(nil), // 114: uber.cadence.api.v1.RespondActivityTaskCompletedRequest + (*v1.RespondActivityTaskFailedRequest)(nil), // 115: uber.cadence.api.v1.RespondActivityTaskFailedRequest + (*v1.RespondActivityTaskCanceledRequest)(nil), // 116: uber.cadence.api.v1.RespondActivityTaskCanceledRequest + (*v1.RequestCancelWorkflowExecutionRequest)(nil), // 117: uber.cadence.api.v1.RequestCancelWorkflowExecutionRequest + (*v11.VersionHistoryItem)(nil), // 118: uber.cadence.shared.v1.VersionHistoryItem + (*v1.DataBlob)(nil), // 119: uber.cadence.api.v1.DataBlob + (*v11.VersionHistory)(nil), // 120: uber.cadence.shared.v1.VersionHistory + (*v11.DomainCacheInfo)(nil), // 121: uber.cadence.shared.v1.DomainCacheInfo + (v11.TaskType)(0), // 122: uber.cadence.shared.v1.TaskType + (*v11.ReplicationToken)(nil), // 123: uber.cadence.shared.v1.ReplicationToken + (*v11.ReplicationTaskInfo)(nil), // 124: uber.cadence.shared.v1.ReplicationTaskInfo + (*v11.ReplicationTask)(nil), // 125: uber.cadence.shared.v1.ReplicationTask + (v11.DLQType)(0), // 126: uber.cadence.shared.v1.DLQType + (*v11.FailoverMarkerToken)(nil), // 127: uber.cadence.shared.v1.FailoverMarkerToken + (*v1.WorkflowQuery)(nil), // 128: uber.cadence.api.v1.WorkflowQuery + (*v1.ActivityLocalDispatchInfo)(nil), // 129: uber.cadence.api.v1.ActivityLocalDispatchInfo + (*v11.ReplicationMessages)(nil), // 130: uber.cadence.shared.v1.ReplicationMessages +} +var file_uber_cadence_history_v1_service_proto_depIdxs = []int32{ + 81, // 0: uber.cadence.history.v1.StartWorkflowExecutionRequest.request:type_name -> uber.cadence.api.v1.StartWorkflowExecutionRequest + 82, // 1: uber.cadence.history.v1.StartWorkflowExecutionRequest.parent_execution_info:type_name -> uber.cadence.shared.v1.ParentExecutionInfo + 83, // 2: uber.cadence.history.v1.StartWorkflowExecutionRequest.expiration_time:type_name -> google.protobuf.Timestamp + 84, // 3: uber.cadence.history.v1.StartWorkflowExecutionRequest.continue_as_new_initiator:type_name -> uber.cadence.api.v1.ContinueAsNewInitiator + 85, // 4: uber.cadence.history.v1.StartWorkflowExecutionRequest.continued_failure:type_name -> uber.cadence.api.v1.Failure + 86, // 5: uber.cadence.history.v1.StartWorkflowExecutionRequest.last_completion_result:type_name -> uber.cadence.api.v1.Payload + 87, // 6: uber.cadence.history.v1.StartWorkflowExecutionRequest.first_decision_task_backoff:type_name -> google.protobuf.Duration + 88, // 7: uber.cadence.history.v1.SignalWorkflowExecutionRequest.request:type_name -> uber.cadence.api.v1.SignalWorkflowExecutionRequest + 89, // 8: uber.cadence.history.v1.SignalWorkflowExecutionRequest.external_workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 90, // 9: uber.cadence.history.v1.SignalWithStartWorkflowExecutionRequest.request:type_name -> uber.cadence.api.v1.SignalWithStartWorkflowExecutionRequest + 91, // 10: uber.cadence.history.v1.ResetWorkflowExecutionRequest.request:type_name -> uber.cadence.api.v1.ResetWorkflowExecutionRequest + 92, // 11: uber.cadence.history.v1.TerminateWorkflowExecutionRequest.request:type_name -> uber.cadence.api.v1.TerminateWorkflowExecutionRequest + 93, // 12: uber.cadence.history.v1.DescribeWorkflowExecutionRequest.request:type_name -> uber.cadence.api.v1.DescribeWorkflowExecutionRequest + 94, // 13: uber.cadence.history.v1.DescribeWorkflowExecutionResponse.execution_configuration:type_name -> uber.cadence.api.v1.WorkflowExecutionConfiguration + 95, // 14: uber.cadence.history.v1.DescribeWorkflowExecutionResponse.workflow_execution_info:type_name -> uber.cadence.api.v1.WorkflowExecutionInfo + 96, // 15: uber.cadence.history.v1.DescribeWorkflowExecutionResponse.pending_activities:type_name -> uber.cadence.api.v1.PendingActivityInfo + 97, // 16: uber.cadence.history.v1.DescribeWorkflowExecutionResponse.pending_children:type_name -> uber.cadence.api.v1.PendingChildExecutionInfo + 98, // 17: uber.cadence.history.v1.DescribeWorkflowExecutionResponse.pending_decision:type_name -> uber.cadence.api.v1.PendingDecisionInfo + 99, // 18: uber.cadence.history.v1.QueryWorkflowRequest.request:type_name -> uber.cadence.api.v1.QueryWorkflowRequest + 86, // 19: uber.cadence.history.v1.QueryWorkflowResponse.query_result:type_name -> uber.cadence.api.v1.Payload + 100, // 20: uber.cadence.history.v1.QueryWorkflowResponse.query_rejected:type_name -> uber.cadence.api.v1.QueryRejected + 101, // 21: uber.cadence.history.v1.ResetStickyTaskListRequest.request:type_name -> uber.cadence.api.v1.ResetStickyTaskListRequest + 89, // 22: uber.cadence.history.v1.GetMutableStateRequest.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 89, // 23: uber.cadence.history.v1.GetMutableStateResponse.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 102, // 24: uber.cadence.history.v1.GetMutableStateResponse.workflow_type:type_name -> uber.cadence.api.v1.WorkflowType + 103, // 25: uber.cadence.history.v1.GetMutableStateResponse.task_list:type_name -> uber.cadence.api.v1.TaskList + 103, // 26: uber.cadence.history.v1.GetMutableStateResponse.sticky_task_list:type_name -> uber.cadence.api.v1.TaskList + 87, // 27: uber.cadence.history.v1.GetMutableStateResponse.sticky_task_list_schedule_to_start_timeout:type_name -> google.protobuf.Duration + 104, // 28: uber.cadence.history.v1.GetMutableStateResponse.workflow_state:type_name -> uber.cadence.shared.v1.WorkflowState + 105, // 29: uber.cadence.history.v1.GetMutableStateResponse.workflow_close_state:type_name -> uber.cadence.api.v1.WorkflowExecutionCloseStatus + 106, // 30: uber.cadence.history.v1.GetMutableStateResponse.version_histories:type_name -> uber.cadence.shared.v1.VersionHistories + 89, // 31: uber.cadence.history.v1.PollMutableStateRequest.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 89, // 32: uber.cadence.history.v1.PollMutableStateResponse.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 102, // 33: uber.cadence.history.v1.PollMutableStateResponse.workflow_type:type_name -> uber.cadence.api.v1.WorkflowType + 103, // 34: uber.cadence.history.v1.PollMutableStateResponse.task_list:type_name -> uber.cadence.api.v1.TaskList + 103, // 35: uber.cadence.history.v1.PollMutableStateResponse.sticky_task_list:type_name -> uber.cadence.api.v1.TaskList + 87, // 36: uber.cadence.history.v1.PollMutableStateResponse.sticky_task_list_schedule_to_start_timeout:type_name -> google.protobuf.Duration + 106, // 37: uber.cadence.history.v1.PollMutableStateResponse.version_histories:type_name -> uber.cadence.shared.v1.VersionHistories + 104, // 38: uber.cadence.history.v1.PollMutableStateResponse.workflow_state:type_name -> uber.cadence.shared.v1.WorkflowState + 105, // 39: uber.cadence.history.v1.PollMutableStateResponse.workflow_close_state:type_name -> uber.cadence.api.v1.WorkflowExecutionCloseStatus + 89, // 40: uber.cadence.history.v1.RecordDecisionTaskStartedRequest.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 107, // 41: uber.cadence.history.v1.RecordDecisionTaskStartedRequest.poll_request:type_name -> uber.cadence.api.v1.PollForDecisionTaskRequest + 102, // 42: uber.cadence.history.v1.RecordDecisionTaskStartedResponse.workflow_type:type_name -> uber.cadence.api.v1.WorkflowType + 108, // 43: uber.cadence.history.v1.RecordDecisionTaskStartedResponse.decision_info:type_name -> uber.cadence.shared.v1.TransientDecisionInfo + 103, // 44: uber.cadence.history.v1.RecordDecisionTaskStartedResponse.workflow_execution_task_list:type_name -> uber.cadence.api.v1.TaskList + 83, // 45: uber.cadence.history.v1.RecordDecisionTaskStartedResponse.scheduled_time:type_name -> google.protobuf.Timestamp + 83, // 46: uber.cadence.history.v1.RecordDecisionTaskStartedResponse.started_time:type_name -> google.protobuf.Timestamp + 78, // 47: uber.cadence.history.v1.RecordDecisionTaskStartedResponse.queries:type_name -> uber.cadence.history.v1.RecordDecisionTaskStartedResponse.QueriesEntry + 89, // 48: uber.cadence.history.v1.RecordActivityTaskStartedRequest.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 109, // 49: uber.cadence.history.v1.RecordActivityTaskStartedRequest.poll_request:type_name -> uber.cadence.api.v1.PollForActivityTaskRequest + 110, // 50: uber.cadence.history.v1.RecordActivityTaskStartedResponse.scheduled_event:type_name -> uber.cadence.api.v1.HistoryEvent + 83, // 51: uber.cadence.history.v1.RecordActivityTaskStartedResponse.started_time:type_name -> google.protobuf.Timestamp + 83, // 52: uber.cadence.history.v1.RecordActivityTaskStartedResponse.scheduled_time_of_this_attempt:type_name -> google.protobuf.Timestamp + 86, // 53: uber.cadence.history.v1.RecordActivityTaskStartedResponse.heartbeat_details:type_name -> uber.cadence.api.v1.Payload + 102, // 54: uber.cadence.history.v1.RecordActivityTaskStartedResponse.workflow_type:type_name -> uber.cadence.api.v1.WorkflowType + 111, // 55: uber.cadence.history.v1.RespondDecisionTaskCompletedRequest.request:type_name -> uber.cadence.api.v1.RespondDecisionTaskCompletedRequest + 21, // 56: uber.cadence.history.v1.RespondDecisionTaskCompletedResponse.started_response:type_name -> uber.cadence.history.v1.RecordDecisionTaskStartedResponse + 79, // 57: uber.cadence.history.v1.RespondDecisionTaskCompletedResponse.activities_to_dispatch_locally:type_name -> uber.cadence.history.v1.RespondDecisionTaskCompletedResponse.ActivitiesToDispatchLocallyEntry + 112, // 58: uber.cadence.history.v1.RespondDecisionTaskFailedRequest.request:type_name -> uber.cadence.api.v1.RespondDecisionTaskFailedRequest + 113, // 59: uber.cadence.history.v1.RecordActivityTaskHeartbeatRequest.request:type_name -> uber.cadence.api.v1.RecordActivityTaskHeartbeatRequest + 114, // 60: uber.cadence.history.v1.RespondActivityTaskCompletedRequest.request:type_name -> uber.cadence.api.v1.RespondActivityTaskCompletedRequest + 115, // 61: uber.cadence.history.v1.RespondActivityTaskFailedRequest.request:type_name -> uber.cadence.api.v1.RespondActivityTaskFailedRequest + 116, // 62: uber.cadence.history.v1.RespondActivityTaskCanceledRequest.request:type_name -> uber.cadence.api.v1.RespondActivityTaskCanceledRequest + 89, // 63: uber.cadence.history.v1.RemoveSignalMutableStateRequest.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 117, // 64: uber.cadence.history.v1.RequestCancelWorkflowExecutionRequest.cancel_request:type_name -> uber.cadence.api.v1.RequestCancelWorkflowExecutionRequest + 89, // 65: uber.cadence.history.v1.RequestCancelWorkflowExecutionRequest.external_workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 89, // 66: uber.cadence.history.v1.ScheduleDecisionTaskRequest.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 89, // 67: uber.cadence.history.v1.RecordChildExecutionCompletedRequest.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 89, // 68: uber.cadence.history.v1.RecordChildExecutionCompletedRequest.completed_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 110, // 69: uber.cadence.history.v1.RecordChildExecutionCompletedRequest.completion_event:type_name -> uber.cadence.api.v1.HistoryEvent + 89, // 70: uber.cadence.history.v1.ReplicateEventsV2Request.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 118, // 71: uber.cadence.history.v1.ReplicateEventsV2Request.version_history_items:type_name -> uber.cadence.shared.v1.VersionHistoryItem + 119, // 72: uber.cadence.history.v1.ReplicateEventsV2Request.events:type_name -> uber.cadence.api.v1.DataBlob + 119, // 73: uber.cadence.history.v1.ReplicateEventsV2Request.new_run_events:type_name -> uber.cadence.api.v1.DataBlob + 83, // 74: uber.cadence.history.v1.SyncShardStatusRequest.time:type_name -> google.protobuf.Timestamp + 89, // 75: uber.cadence.history.v1.SyncActivityRequest.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 83, // 76: uber.cadence.history.v1.SyncActivityRequest.scheduled_time:type_name -> google.protobuf.Timestamp + 83, // 77: uber.cadence.history.v1.SyncActivityRequest.started_time:type_name -> google.protobuf.Timestamp + 83, // 78: uber.cadence.history.v1.SyncActivityRequest.last_heartbeat_time:type_name -> google.protobuf.Timestamp + 86, // 79: uber.cadence.history.v1.SyncActivityRequest.details:type_name -> uber.cadence.api.v1.Payload + 85, // 80: uber.cadence.history.v1.SyncActivityRequest.last_failure:type_name -> uber.cadence.api.v1.Failure + 120, // 81: uber.cadence.history.v1.SyncActivityRequest.version_history:type_name -> uber.cadence.shared.v1.VersionHistory + 89, // 82: uber.cadence.history.v1.DescribeMutableStateRequest.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 89, // 83: uber.cadence.history.v1.DescribeHistoryHostRequest.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 121, // 84: uber.cadence.history.v1.DescribeHistoryHostResponse.domain_cache:type_name -> uber.cadence.shared.v1.DomainCacheInfo + 122, // 85: uber.cadence.history.v1.RemoveTaskRequest.task_type:type_name -> uber.cadence.shared.v1.TaskType + 83, // 86: uber.cadence.history.v1.RemoveTaskRequest.visibility_time:type_name -> google.protobuf.Timestamp + 122, // 87: uber.cadence.history.v1.ResetQueueRequest.task_type:type_name -> uber.cadence.shared.v1.TaskType + 122, // 88: uber.cadence.history.v1.DescribeQueueRequest.task_type:type_name -> uber.cadence.shared.v1.TaskType + 123, // 89: uber.cadence.history.v1.GetReplicationMessagesRequest.tokens:type_name -> uber.cadence.shared.v1.ReplicationToken + 80, // 90: uber.cadence.history.v1.GetReplicationMessagesResponse.shard_messages:type_name -> uber.cadence.history.v1.GetReplicationMessagesResponse.ShardMessagesEntry + 124, // 91: uber.cadence.history.v1.GetDLQReplicationMessagesRequest.task_infos:type_name -> uber.cadence.shared.v1.ReplicationTaskInfo + 125, // 92: uber.cadence.history.v1.GetDLQReplicationMessagesResponse.replication_tasks:type_name -> uber.cadence.shared.v1.ReplicationTask + 89, // 93: uber.cadence.history.v1.ReapplyEventsRequest.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 119, // 94: uber.cadence.history.v1.ReapplyEventsRequest.events:type_name -> uber.cadence.api.v1.DataBlob + 89, // 95: uber.cadence.history.v1.RefreshWorkflowTasksRequest.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 126, // 96: uber.cadence.history.v1.ReadDLQMessagesRequest.type:type_name -> uber.cadence.shared.v1.DLQType + 126, // 97: uber.cadence.history.v1.ReadDLQMessagesResponse.type:type_name -> uber.cadence.shared.v1.DLQType + 125, // 98: uber.cadence.history.v1.ReadDLQMessagesResponse.replication_tasks:type_name -> uber.cadence.shared.v1.ReplicationTask + 126, // 99: uber.cadence.history.v1.PurgeDLQMessagesRequest.type:type_name -> uber.cadence.shared.v1.DLQType + 126, // 100: uber.cadence.history.v1.MergeDLQMessagesRequest.type:type_name -> uber.cadence.shared.v1.DLQType + 127, // 101: uber.cadence.history.v1.NotifyFailoverMarkersRequest.failover_marker_tokens:type_name -> uber.cadence.shared.v1.FailoverMarkerToken + 128, // 102: uber.cadence.history.v1.RecordDecisionTaskStartedResponse.QueriesEntry.value:type_name -> uber.cadence.api.v1.WorkflowQuery + 129, // 103: uber.cadence.history.v1.RespondDecisionTaskCompletedResponse.ActivitiesToDispatchLocallyEntry.value:type_name -> uber.cadence.api.v1.ActivityLocalDispatchInfo + 130, // 104: uber.cadence.history.v1.GetReplicationMessagesResponse.ShardMessagesEntry.value:type_name -> uber.cadence.shared.v1.ReplicationMessages + 0, // 105: uber.cadence.history.v1.HistoryAPI.StartWorkflowExecution:input_type -> uber.cadence.history.v1.StartWorkflowExecutionRequest + 2, // 106: uber.cadence.history.v1.HistoryAPI.SignalWorkflowExecution:input_type -> uber.cadence.history.v1.SignalWorkflowExecutionRequest + 4, // 107: uber.cadence.history.v1.HistoryAPI.SignalWithStartWorkflowExecution:input_type -> uber.cadence.history.v1.SignalWithStartWorkflowExecutionRequest + 6, // 108: uber.cadence.history.v1.HistoryAPI.ResetWorkflowExecution:input_type -> uber.cadence.history.v1.ResetWorkflowExecutionRequest + 8, // 109: uber.cadence.history.v1.HistoryAPI.TerminateWorkflowExecution:input_type -> uber.cadence.history.v1.TerminateWorkflowExecutionRequest + 10, // 110: uber.cadence.history.v1.HistoryAPI.DescribeWorkflowExecution:input_type -> uber.cadence.history.v1.DescribeWorkflowExecutionRequest + 12, // 111: uber.cadence.history.v1.HistoryAPI.QueryWorkflow:input_type -> uber.cadence.history.v1.QueryWorkflowRequest + 14, // 112: uber.cadence.history.v1.HistoryAPI.ResetStickyTaskList:input_type -> uber.cadence.history.v1.ResetStickyTaskListRequest + 16, // 113: uber.cadence.history.v1.HistoryAPI.GetMutableState:input_type -> uber.cadence.history.v1.GetMutableStateRequest + 18, // 114: uber.cadence.history.v1.HistoryAPI.PollMutableState:input_type -> uber.cadence.history.v1.PollMutableStateRequest + 20, // 115: uber.cadence.history.v1.HistoryAPI.RecordDecisionTaskStarted:input_type -> uber.cadence.history.v1.RecordDecisionTaskStartedRequest + 24, // 116: uber.cadence.history.v1.HistoryAPI.RespondDecisionTaskCompleted:input_type -> uber.cadence.history.v1.RespondDecisionTaskCompletedRequest + 26, // 117: uber.cadence.history.v1.HistoryAPI.RespondDecisionTaskFailed:input_type -> uber.cadence.history.v1.RespondDecisionTaskFailedRequest + 22, // 118: uber.cadence.history.v1.HistoryAPI.RecordActivityTaskStarted:input_type -> uber.cadence.history.v1.RecordActivityTaskStartedRequest + 30, // 119: uber.cadence.history.v1.HistoryAPI.RespondActivityTaskCompleted:input_type -> uber.cadence.history.v1.RespondActivityTaskCompletedRequest + 32, // 120: uber.cadence.history.v1.HistoryAPI.RespondActivityTaskFailed:input_type -> uber.cadence.history.v1.RespondActivityTaskFailedRequest + 34, // 121: uber.cadence.history.v1.HistoryAPI.RespondActivityTaskCanceled:input_type -> uber.cadence.history.v1.RespondActivityTaskCanceledRequest + 28, // 122: uber.cadence.history.v1.HistoryAPI.RecordActivityTaskHeartbeat:input_type -> uber.cadence.history.v1.RecordActivityTaskHeartbeatRequest + 38, // 123: uber.cadence.history.v1.HistoryAPI.RequestCancelWorkflowExecution:input_type -> uber.cadence.history.v1.RequestCancelWorkflowExecutionRequest + 36, // 124: uber.cadence.history.v1.HistoryAPI.RemoveSignalMutableState:input_type -> uber.cadence.history.v1.RemoveSignalMutableStateRequest + 40, // 125: uber.cadence.history.v1.HistoryAPI.ScheduleDecisionTask:input_type -> uber.cadence.history.v1.ScheduleDecisionTaskRequest + 42, // 126: uber.cadence.history.v1.HistoryAPI.RecordChildExecutionCompleted:input_type -> uber.cadence.history.v1.RecordChildExecutionCompletedRequest + 44, // 127: uber.cadence.history.v1.HistoryAPI.ReplicateEventsV2:input_type -> uber.cadence.history.v1.ReplicateEventsV2Request + 46, // 128: uber.cadence.history.v1.HistoryAPI.SyncShardStatus:input_type -> uber.cadence.history.v1.SyncShardStatusRequest + 48, // 129: uber.cadence.history.v1.HistoryAPI.SyncActivity:input_type -> uber.cadence.history.v1.SyncActivityRequest + 50, // 130: uber.cadence.history.v1.HistoryAPI.DescribeMutableState:input_type -> uber.cadence.history.v1.DescribeMutableStateRequest + 52, // 131: uber.cadence.history.v1.HistoryAPI.DescribeHistoryHost:input_type -> uber.cadence.history.v1.DescribeHistoryHostRequest + 54, // 132: uber.cadence.history.v1.HistoryAPI.CloseShard:input_type -> uber.cadence.history.v1.CloseShardRequest + 56, // 133: uber.cadence.history.v1.HistoryAPI.RemoveTask:input_type -> uber.cadence.history.v1.RemoveTaskRequest + 58, // 134: uber.cadence.history.v1.HistoryAPI.ResetQueue:input_type -> uber.cadence.history.v1.ResetQueueRequest + 60, // 135: uber.cadence.history.v1.HistoryAPI.DescribeQueue:input_type -> uber.cadence.history.v1.DescribeQueueRequest + 62, // 136: uber.cadence.history.v1.HistoryAPI.GetReplicationMessages:input_type -> uber.cadence.history.v1.GetReplicationMessagesRequest + 64, // 137: uber.cadence.history.v1.HistoryAPI.GetDLQReplicationMessages:input_type -> uber.cadence.history.v1.GetDLQReplicationMessagesRequest + 66, // 138: uber.cadence.history.v1.HistoryAPI.ReapplyEvents:input_type -> uber.cadence.history.v1.ReapplyEventsRequest + 68, // 139: uber.cadence.history.v1.HistoryAPI.RefreshWorkflowTasks:input_type -> uber.cadence.history.v1.RefreshWorkflowTasksRequest + 70, // 140: uber.cadence.history.v1.HistoryAPI.ReadDLQMessages:input_type -> uber.cadence.history.v1.ReadDLQMessagesRequest + 72, // 141: uber.cadence.history.v1.HistoryAPI.PurgeDLQMessages:input_type -> uber.cadence.history.v1.PurgeDLQMessagesRequest + 74, // 142: uber.cadence.history.v1.HistoryAPI.MergeDLQMessages:input_type -> uber.cadence.history.v1.MergeDLQMessagesRequest + 76, // 143: uber.cadence.history.v1.HistoryAPI.NotifyFailoverMarkers:input_type -> uber.cadence.history.v1.NotifyFailoverMarkersRequest + 1, // 144: uber.cadence.history.v1.HistoryAPI.StartWorkflowExecution:output_type -> uber.cadence.history.v1.StartWorkflowExecutionResponse + 3, // 145: uber.cadence.history.v1.HistoryAPI.SignalWorkflowExecution:output_type -> uber.cadence.history.v1.SignalWorkflowExecutionResponse + 5, // 146: uber.cadence.history.v1.HistoryAPI.SignalWithStartWorkflowExecution:output_type -> uber.cadence.history.v1.SignalWithStartWorkflowExecutionResponse + 7, // 147: uber.cadence.history.v1.HistoryAPI.ResetWorkflowExecution:output_type -> uber.cadence.history.v1.ResetWorkflowExecutionResponse + 9, // 148: uber.cadence.history.v1.HistoryAPI.TerminateWorkflowExecution:output_type -> uber.cadence.history.v1.TerminateWorkflowExecutionResponse + 11, // 149: uber.cadence.history.v1.HistoryAPI.DescribeWorkflowExecution:output_type -> uber.cadence.history.v1.DescribeWorkflowExecutionResponse + 13, // 150: uber.cadence.history.v1.HistoryAPI.QueryWorkflow:output_type -> uber.cadence.history.v1.QueryWorkflowResponse + 15, // 151: uber.cadence.history.v1.HistoryAPI.ResetStickyTaskList:output_type -> uber.cadence.history.v1.ResetStickyTaskListResponse + 17, // 152: uber.cadence.history.v1.HistoryAPI.GetMutableState:output_type -> uber.cadence.history.v1.GetMutableStateResponse + 19, // 153: uber.cadence.history.v1.HistoryAPI.PollMutableState:output_type -> uber.cadence.history.v1.PollMutableStateResponse + 21, // 154: uber.cadence.history.v1.HistoryAPI.RecordDecisionTaskStarted:output_type -> uber.cadence.history.v1.RecordDecisionTaskStartedResponse + 25, // 155: uber.cadence.history.v1.HistoryAPI.RespondDecisionTaskCompleted:output_type -> uber.cadence.history.v1.RespondDecisionTaskCompletedResponse + 27, // 156: uber.cadence.history.v1.HistoryAPI.RespondDecisionTaskFailed:output_type -> uber.cadence.history.v1.RespondDecisionTaskFailedResponse + 23, // 157: uber.cadence.history.v1.HistoryAPI.RecordActivityTaskStarted:output_type -> uber.cadence.history.v1.RecordActivityTaskStartedResponse + 31, // 158: uber.cadence.history.v1.HistoryAPI.RespondActivityTaskCompleted:output_type -> uber.cadence.history.v1.RespondActivityTaskCompletedResponse + 33, // 159: uber.cadence.history.v1.HistoryAPI.RespondActivityTaskFailed:output_type -> uber.cadence.history.v1.RespondActivityTaskFailedResponse + 35, // 160: uber.cadence.history.v1.HistoryAPI.RespondActivityTaskCanceled:output_type -> uber.cadence.history.v1.RespondActivityTaskCanceledResponse + 29, // 161: uber.cadence.history.v1.HistoryAPI.RecordActivityTaskHeartbeat:output_type -> uber.cadence.history.v1.RecordActivityTaskHeartbeatResponse + 39, // 162: uber.cadence.history.v1.HistoryAPI.RequestCancelWorkflowExecution:output_type -> uber.cadence.history.v1.RequestCancelWorkflowExecutionResponse + 37, // 163: uber.cadence.history.v1.HistoryAPI.RemoveSignalMutableState:output_type -> uber.cadence.history.v1.RemoveSignalMutableStateResponse + 41, // 164: uber.cadence.history.v1.HistoryAPI.ScheduleDecisionTask:output_type -> uber.cadence.history.v1.ScheduleDecisionTaskResponse + 43, // 165: uber.cadence.history.v1.HistoryAPI.RecordChildExecutionCompleted:output_type -> uber.cadence.history.v1.RecordChildExecutionCompletedResponse + 45, // 166: uber.cadence.history.v1.HistoryAPI.ReplicateEventsV2:output_type -> uber.cadence.history.v1.ReplicateEventsV2Response + 47, // 167: uber.cadence.history.v1.HistoryAPI.SyncShardStatus:output_type -> uber.cadence.history.v1.SyncShardStatusResponse + 49, // 168: uber.cadence.history.v1.HistoryAPI.SyncActivity:output_type -> uber.cadence.history.v1.SyncActivityResponse + 51, // 169: uber.cadence.history.v1.HistoryAPI.DescribeMutableState:output_type -> uber.cadence.history.v1.DescribeMutableStateResponse + 53, // 170: uber.cadence.history.v1.HistoryAPI.DescribeHistoryHost:output_type -> uber.cadence.history.v1.DescribeHistoryHostResponse + 55, // 171: uber.cadence.history.v1.HistoryAPI.CloseShard:output_type -> uber.cadence.history.v1.CloseShardResponse + 57, // 172: uber.cadence.history.v1.HistoryAPI.RemoveTask:output_type -> uber.cadence.history.v1.RemoveTaskResponse + 59, // 173: uber.cadence.history.v1.HistoryAPI.ResetQueue:output_type -> uber.cadence.history.v1.ResetQueueResponse + 61, // 174: uber.cadence.history.v1.HistoryAPI.DescribeQueue:output_type -> uber.cadence.history.v1.DescribeQueueResponse + 63, // 175: uber.cadence.history.v1.HistoryAPI.GetReplicationMessages:output_type -> uber.cadence.history.v1.GetReplicationMessagesResponse + 65, // 176: uber.cadence.history.v1.HistoryAPI.GetDLQReplicationMessages:output_type -> uber.cadence.history.v1.GetDLQReplicationMessagesResponse + 67, // 177: uber.cadence.history.v1.HistoryAPI.ReapplyEvents:output_type -> uber.cadence.history.v1.ReapplyEventsResponse + 69, // 178: uber.cadence.history.v1.HistoryAPI.RefreshWorkflowTasks:output_type -> uber.cadence.history.v1.RefreshWorkflowTasksResponse + 71, // 179: uber.cadence.history.v1.HistoryAPI.ReadDLQMessages:output_type -> uber.cadence.history.v1.ReadDLQMessagesResponse + 73, // 180: uber.cadence.history.v1.HistoryAPI.PurgeDLQMessages:output_type -> uber.cadence.history.v1.PurgeDLQMessagesResponse + 75, // 181: uber.cadence.history.v1.HistoryAPI.MergeDLQMessages:output_type -> uber.cadence.history.v1.MergeDLQMessagesResponse + 77, // 182: uber.cadence.history.v1.HistoryAPI.NotifyFailoverMarkers:output_type -> uber.cadence.history.v1.NotifyFailoverMarkersResponse + 144, // [144:183] is the sub-list for method output_type + 105, // [105:144] is the sub-list for method input_type + 105, // [105:105] is the sub-list for extension type_name + 105, // [105:105] is the sub-list for extension extendee + 0, // [0:105] is the sub-list for field type_name +} + +func init() { file_uber_cadence_history_v1_service_proto_init() } +func file_uber_cadence_history_v1_service_proto_init() { + if File_uber_cadence_history_v1_service_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_uber_cadence_history_v1_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StartWorkflowExecutionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StartWorkflowExecutionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignalWorkflowExecutionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignalWorkflowExecutionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignalWithStartWorkflowExecutionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignalWithStartWorkflowExecutionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResetWorkflowExecutionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResetWorkflowExecutionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TerminateWorkflowExecutionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TerminateWorkflowExecutionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DescribeWorkflowExecutionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DescribeWorkflowExecutionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryWorkflowRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryWorkflowResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResetStickyTaskListRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResetStickyTaskListResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetMutableStateRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetMutableStateResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PollMutableStateRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PollMutableStateResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RecordDecisionTaskStartedRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RecordDecisionTaskStartedResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RecordActivityTaskStartedRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RecordActivityTaskStartedResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RespondDecisionTaskCompletedRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RespondDecisionTaskCompletedResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RespondDecisionTaskFailedRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RespondDecisionTaskFailedResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RecordActivityTaskHeartbeatRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RecordActivityTaskHeartbeatResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RespondActivityTaskCompletedRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RespondActivityTaskCompletedResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RespondActivityTaskFailedRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RespondActivityTaskFailedResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RespondActivityTaskCanceledRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RespondActivityTaskCanceledResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemoveSignalMutableStateRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemoveSignalMutableStateResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestCancelWorkflowExecutionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestCancelWorkflowExecutionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ScheduleDecisionTaskRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ScheduleDecisionTaskResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RecordChildExecutionCompletedRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RecordChildExecutionCompletedResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReplicateEventsV2Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReplicateEventsV2Response); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SyncShardStatusRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SyncShardStatusResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SyncActivityRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SyncActivityResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DescribeMutableStateRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DescribeMutableStateResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DescribeHistoryHostRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DescribeHistoryHostResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CloseShardRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CloseShardResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemoveTaskRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemoveTaskResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResetQueueRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResetQueueResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DescribeQueueRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DescribeQueueResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetReplicationMessagesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetReplicationMessagesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDLQReplicationMessagesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDLQReplicationMessagesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReapplyEventsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReapplyEventsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RefreshWorkflowTasksRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RefreshWorkflowTasksResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReadDLQMessagesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReadDLQMessagesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PurgeDLQMessagesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PurgeDLQMessagesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MergeDLQMessagesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MergeDLQMessagesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NotifyFailoverMarkersRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_history_v1_service_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NotifyFailoverMarkersResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_uber_cadence_history_v1_service_proto_rawDesc, + NumEnums: 0, + NumMessages: 81, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_uber_cadence_history_v1_service_proto_goTypes, + DependencyIndexes: file_uber_cadence_history_v1_service_proto_depIdxs, + MessageInfos: file_uber_cadence_history_v1_service_proto_msgTypes, + }.Build() + File_uber_cadence_history_v1_service_proto = out.File + file_uber_cadence_history_v1_service_proto_rawDesc = nil + file_uber_cadence_history_v1_service_proto_goTypes = nil + file_uber_cadence_history_v1_service_proto_depIdxs = nil +} diff --git a/.gen/proto/history/v1/service_grpc.pb.go b/.gen/proto/history/v1/service_grpc.pb.go new file mode 100644 index 00000000000..26d4f9d1122 --- /dev/null +++ b/.gen/proto/history/v1/service_grpc.pb.go @@ -0,0 +1,1680 @@ +// The MIT License (MIT) + +// Copyright (c) 2017-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-go-grpc. DO NOT EDIT. + +package historyv1 + +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 + +// HistoryAPIClient is the client API for HistoryAPI 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 HistoryAPIClient interface { + // StartWorkflowExecution starts a new long running workflow instance. It will create the instance with + // 'WorkflowExecutionStarted' event in history and also schedule the first DecisionTask for the worker to make the + // first decision for this instance. It will return 'WorkflowExecutionAlreadyStartedError', if an instance already + // exists with same workflowId. + StartWorkflowExecution(ctx context.Context, in *StartWorkflowExecutionRequest, opts ...grpc.CallOption) (*StartWorkflowExecutionResponse, error) + // SignalWorkflowExecution is used to send a signal event to running workflow execution. This results in + // WorkflowExecutionSignaled event recorded in the history and a decision task being created for the execution. + SignalWorkflowExecution(ctx context.Context, in *SignalWorkflowExecutionRequest, opts ...grpc.CallOption) (*SignalWorkflowExecutionResponse, error) + // SignalWithStartWorkflowExecution is used to ensure sending a signal event to a workflow execution. + // If workflow is running, this results in WorkflowExecutionSignaled event recorded in the history + // and a decision task being created for the execution. + // If workflow is not running or not found, it will first try start workflow with given WorkflowIDReusePolicy, + // and record WorkflowExecutionStarted and WorkflowExecutionSignaled event in case of success. + // It will return `WorkflowExecutionAlreadyStartedError` if start workflow failed with given policy. + SignalWithStartWorkflowExecution(ctx context.Context, in *SignalWithStartWorkflowExecutionRequest, opts ...grpc.CallOption) (*SignalWithStartWorkflowExecutionResponse, error) + // ResetWorkflowExecution reset an existing workflow execution by a firstEventID of a existing event batch + // in the history and immediately terminating the current execution instance. + // After reset, the history will grow from nextFirstEventID. + ResetWorkflowExecution(ctx context.Context, in *ResetWorkflowExecutionRequest, opts ...grpc.CallOption) (*ResetWorkflowExecutionResponse, error) + // TerminateWorkflowExecution terminates an existing workflow execution by recording WorkflowExecutionTerminated event + // in the history and immediately terminating the execution instance. + TerminateWorkflowExecution(ctx context.Context, in *TerminateWorkflowExecutionRequest, opts ...grpc.CallOption) (*TerminateWorkflowExecutionResponse, error) + // DescribeWorkflowExecution returns information about the specified workflow execution. + DescribeWorkflowExecution(ctx context.Context, in *DescribeWorkflowExecutionRequest, opts ...grpc.CallOption) (*DescribeWorkflowExecutionResponse, error) + // QueryWorkflow returns query result for a specified workflow execution. + QueryWorkflow(ctx context.Context, in *QueryWorkflowRequest, opts ...grpc.CallOption) (*QueryWorkflowResponse, error) + // Reset the sticky tasklist related information in mutable state of a given workflow. + // Things cleared are: + // 1. StickyTaskList + // 2. StickyScheduleToStartTimeout + // 3. ClientLibraryVersion + // 4. ClientFeatureVersion + // 5. ClientImpl + ResetStickyTaskList(ctx context.Context, in *ResetStickyTaskListRequest, opts ...grpc.CallOption) (*ResetStickyTaskListResponse, error) + // Returns the information from mutable state of workflow execution. + // It fails with 'EntityNotExistError' if specified workflow execution in unknown to the service. + // It returns CurrentBranchChangedError if the workflow version branch has changed. + GetMutableState(ctx context.Context, in *GetMutableStateRequest, opts ...grpc.CallOption) (*GetMutableStateResponse, error) + // Returns the information from mutable state of workflow execution. + // It fails with 'EntityNotExistError' if specified workflow execution in unknown to the service. + // It returns CurrentBranchChangedError if the workflow version branch has changed. + PollMutableState(ctx context.Context, in *PollMutableStateRequest, opts ...grpc.CallOption) (*PollMutableStateResponse, error) + // RecordDecisionTaskStarted is called by the MatchingService before it hands a decision task to the application worker in response to + // a PollForDecisionTask call. It records in the history the event that the decision task has started. It will return 'EventAlreadyStartedError', + // if the workflow's execution history already includes a record of the event starting. + RecordDecisionTaskStarted(ctx context.Context, in *RecordDecisionTaskStartedRequest, opts ...grpc.CallOption) (*RecordDecisionTaskStartedResponse, error) + // RespondDecisionTaskCompleted is called by application worker to complete a DecisionTask handed as a result of + // 'PollForDecisionTask' API call. Completing a DecisionTask will result in new events for the workflow execution and + // potentially new ActivityTask being created for corresponding decisions. It will also create a DecisionTaskCompleted + // event in the history for that session. Use the 'taskToken' provided as response of PollForDecisionTask API call + // for completing the DecisionTask. + RespondDecisionTaskCompleted(ctx context.Context, in *RespondDecisionTaskCompletedRequest, opts ...grpc.CallOption) (*RespondDecisionTaskCompletedResponse, error) + // RespondDecisionTaskFailed is called by application worker to indicate failure. This results in + // DecisionTaskFailedEvent written to the history and a new DecisionTask created. This API can be used by client to + // either clear sticky tasklist or report ny panics during DecisionTask processing. + RespondDecisionTaskFailed(ctx context.Context, in *RespondDecisionTaskFailedRequest, opts ...grpc.CallOption) (*RespondDecisionTaskFailedResponse, error) + // RecordActivityTaskStarted is called by the MatchingService before it hands a decision task to the application worker in response to + // a PollForActivityTask call. It records in the history the event that the decision task has started. It will return 'EventAlreadyStartedError', + // if the workflow's execution history already includes a record of the event starting. + RecordActivityTaskStarted(ctx context.Context, in *RecordActivityTaskStartedRequest, opts ...grpc.CallOption) (*RecordActivityTaskStartedResponse, error) + // RespondActivityTaskCompleted is called by application worker when it is done processing an ActivityTask. It will + // result in a new 'ActivityTaskCompleted' event being written to the workflow history and a new DecisionTask + // created for the workflow so new decisions could be made. Use the 'taskToken' provided as response of + // PollForActivityTask API call for completion. It fails with 'EntityNotExistsError' if the taskToken is not valid + // anymore due to activity timeout. + RespondActivityTaskCompleted(ctx context.Context, in *RespondActivityTaskCompletedRequest, opts ...grpc.CallOption) (*RespondActivityTaskCompletedResponse, error) + // RespondActivityTaskFailed is called by application worker when it is done processing an ActivityTask. It will + // result in a new 'ActivityTaskFailed' event being written to the workflow history and a new DecisionTask + // created for the workflow instance so new decisions could be made. Use the 'taskToken' provided as response of + // PollForActivityTask API call for completion. It fails with 'EntityNotExistsError' if the taskToken is not valid + // anymore due to activity timeout. + RespondActivityTaskFailed(ctx context.Context, in *RespondActivityTaskFailedRequest, opts ...grpc.CallOption) (*RespondActivityTaskFailedResponse, error) + // RespondActivityTaskCanceled is called by application worker when it is successfully canceled an ActivityTask. It will + // result in a new 'ActivityTaskCanceled' event being written to the workflow history and a new DecisionTask + // created for the workflow instance so new decisions could be made. Use the 'taskToken' provided as response of + // PollForActivityTask API call for completion. It fails with 'EntityNotExistsError' if the taskToken is not valid + // anymore due to activity timeout. + RespondActivityTaskCanceled(ctx context.Context, in *RespondActivityTaskCanceledRequest, opts ...grpc.CallOption) (*RespondActivityTaskCanceledResponse, error) + // RecordActivityTaskHeartbeat is called by application worker while it is processing an ActivityTask. If worker fails + // to heartbeat within 'heartbeatTimeoutSeconds' interval for the ActivityTask, then it will be marked as timed out and + // 'ActivityTaskTimedOut' event will be written to the workflow history. Calling 'RecordActivityTaskHeartbeat' will + // fail with 'EntityNotExistsError' in such situations. Use the 'taskToken' provided as response of + // PollForActivityTask API call for heart beating. + RecordActivityTaskHeartbeat(ctx context.Context, in *RecordActivityTaskHeartbeatRequest, opts ...grpc.CallOption) (*RecordActivityTaskHeartbeatResponse, error) + // RequestCancelWorkflowExecution is called by application worker when it wants to request cancellation of a workflow instance. + // It will result in a new 'WorkflowExecutionCancelRequested' event being written to the workflow history and a new DecisionTask + // created for the workflow instance so new decisions could be made. It fails with 'EntityNotExistsError' if the workflow is not valid + // anymore due to completion or doesn't exist. + RequestCancelWorkflowExecution(ctx context.Context, in *RequestCancelWorkflowExecutionRequest, opts ...grpc.CallOption) (*RequestCancelWorkflowExecutionResponse, error) + // RemoveSignalMutableState is used to remove a signal request ID that was previously recorded. This is currently + // used to clean execution info when signal decision finished. + RemoveSignalMutableState(ctx context.Context, in *RemoveSignalMutableStateRequest, opts ...grpc.CallOption) (*RemoveSignalMutableStateResponse, error) + // ScheduleDecisionTask is used for creating a decision task for already started workflow execution. This is mainly + // used by transfer queue processor during the processing of StartChildWorkflowExecution task, where it first starts + // child execution without creating the decision task and then calls this API after updating the mutable state of + // parent execution. + ScheduleDecisionTask(ctx context.Context, in *ScheduleDecisionTaskRequest, opts ...grpc.CallOption) (*ScheduleDecisionTaskResponse, error) + // RecordChildExecutionCompleted is used for reporting the completion of child workflow execution to parent. + // This is mainly called by transfer queue processor during the processing of DeleteExecution task. + RecordChildExecutionCompleted(ctx context.Context, in *RecordChildExecutionCompletedRequest, opts ...grpc.CallOption) (*RecordChildExecutionCompletedResponse, error) + ReplicateEventsV2(ctx context.Context, in *ReplicateEventsV2Request, opts ...grpc.CallOption) (*ReplicateEventsV2Response, error) + // SyncShardStatus sync the status between shards. + SyncShardStatus(ctx context.Context, in *SyncShardStatusRequest, opts ...grpc.CallOption) (*SyncShardStatusResponse, error) + // SyncActivity sync the activity status. + SyncActivity(ctx context.Context, in *SyncActivityRequest, opts ...grpc.CallOption) (*SyncActivityResponse, error) + // DescribeMutableState returns information about the internal states of workflow mutable state. + DescribeMutableState(ctx context.Context, in *DescribeMutableStateRequest, opts ...grpc.CallOption) (*DescribeMutableStateResponse, error) + // DescribeHistoryHost returns information about the internal states of a history host. + DescribeHistoryHost(ctx context.Context, in *DescribeHistoryHostRequest, opts ...grpc.CallOption) (*DescribeHistoryHostResponse, error) + // CloseShard close the shard. + CloseShard(ctx context.Context, in *CloseShardRequest, opts ...grpc.CallOption) (*CloseShardResponse, error) + // RemoveTask remove task based on type, task_id, shard_id. + RemoveTask(ctx context.Context, in *RemoveTaskRequest, opts ...grpc.CallOption) (*RemoveTaskResponse, error) + // ResetQueue reset processing queue state based on cluster name and type. + ResetQueue(ctx context.Context, in *ResetQueueRequest, opts ...grpc.CallOption) (*ResetQueueResponse, error) + // DescribeQueue return queue states based on cluster name and type. + DescribeQueue(ctx context.Context, in *DescribeQueueRequest, opts ...grpc.CallOption) (*DescribeQueueResponse, error) + // GetReplicationMessages return replication messages based on the read level. + GetReplicationMessages(ctx context.Context, in *GetReplicationMessagesRequest, opts ...grpc.CallOption) (*GetReplicationMessagesResponse, error) + // GetDLQReplicationMessages return replication messages based on DLQ info. + GetDLQReplicationMessages(ctx context.Context, in *GetDLQReplicationMessagesRequest, opts ...grpc.CallOption) (*GetDLQReplicationMessagesResponse, error) + // ReapplyEvents applies stale events to the current workflow and current run. + ReapplyEvents(ctx context.Context, in *ReapplyEventsRequest, opts ...grpc.CallOption) (*ReapplyEventsResponse, error) + // RefreshWorkflowTasks refreshes all tasks of a workflow. + RefreshWorkflowTasks(ctx context.Context, in *RefreshWorkflowTasksRequest, opts ...grpc.CallOption) (*RefreshWorkflowTasksResponse, error) + // ReadDLQMessages returns messages from DLQ. + ReadDLQMessages(ctx context.Context, in *ReadDLQMessagesRequest, opts ...grpc.CallOption) (*ReadDLQMessagesResponse, error) + // PurgeDLQMessages purges messages from DLQ. + PurgeDLQMessages(ctx context.Context, in *PurgeDLQMessagesRequest, opts ...grpc.CallOption) (*PurgeDLQMessagesResponse, error) + // MergeDLQMessages merges messages from DLQ. + MergeDLQMessages(ctx context.Context, in *MergeDLQMessagesRequest, opts ...grpc.CallOption) (*MergeDLQMessagesResponse, error) + // NotifyFailoverMarkers sends failover marker to the failover coordinator. + NotifyFailoverMarkers(ctx context.Context, in *NotifyFailoverMarkersRequest, opts ...grpc.CallOption) (*NotifyFailoverMarkersResponse, error) +} + +type historyAPIClient struct { + cc grpc.ClientConnInterface +} + +func NewHistoryAPIClient(cc grpc.ClientConnInterface) HistoryAPIClient { + return &historyAPIClient{cc} +} + +func (c *historyAPIClient) StartWorkflowExecution(ctx context.Context, in *StartWorkflowExecutionRequest, opts ...grpc.CallOption) (*StartWorkflowExecutionResponse, error) { + out := new(StartWorkflowExecutionResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/StartWorkflowExecution", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *historyAPIClient) SignalWorkflowExecution(ctx context.Context, in *SignalWorkflowExecutionRequest, opts ...grpc.CallOption) (*SignalWorkflowExecutionResponse, error) { + out := new(SignalWorkflowExecutionResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/SignalWorkflowExecution", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *historyAPIClient) SignalWithStartWorkflowExecution(ctx context.Context, in *SignalWithStartWorkflowExecutionRequest, opts ...grpc.CallOption) (*SignalWithStartWorkflowExecutionResponse, error) { + out := new(SignalWithStartWorkflowExecutionResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/SignalWithStartWorkflowExecution", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *historyAPIClient) ResetWorkflowExecution(ctx context.Context, in *ResetWorkflowExecutionRequest, opts ...grpc.CallOption) (*ResetWorkflowExecutionResponse, error) { + out := new(ResetWorkflowExecutionResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/ResetWorkflowExecution", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *historyAPIClient) TerminateWorkflowExecution(ctx context.Context, in *TerminateWorkflowExecutionRequest, opts ...grpc.CallOption) (*TerminateWorkflowExecutionResponse, error) { + out := new(TerminateWorkflowExecutionResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/TerminateWorkflowExecution", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *historyAPIClient) DescribeWorkflowExecution(ctx context.Context, in *DescribeWorkflowExecutionRequest, opts ...grpc.CallOption) (*DescribeWorkflowExecutionResponse, error) { + out := new(DescribeWorkflowExecutionResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/DescribeWorkflowExecution", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *historyAPIClient) QueryWorkflow(ctx context.Context, in *QueryWorkflowRequest, opts ...grpc.CallOption) (*QueryWorkflowResponse, error) { + out := new(QueryWorkflowResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/QueryWorkflow", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *historyAPIClient) ResetStickyTaskList(ctx context.Context, in *ResetStickyTaskListRequest, opts ...grpc.CallOption) (*ResetStickyTaskListResponse, error) { + out := new(ResetStickyTaskListResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/ResetStickyTaskList", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *historyAPIClient) GetMutableState(ctx context.Context, in *GetMutableStateRequest, opts ...grpc.CallOption) (*GetMutableStateResponse, error) { + out := new(GetMutableStateResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/GetMutableState", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *historyAPIClient) PollMutableState(ctx context.Context, in *PollMutableStateRequest, opts ...grpc.CallOption) (*PollMutableStateResponse, error) { + out := new(PollMutableStateResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/PollMutableState", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *historyAPIClient) RecordDecisionTaskStarted(ctx context.Context, in *RecordDecisionTaskStartedRequest, opts ...grpc.CallOption) (*RecordDecisionTaskStartedResponse, error) { + out := new(RecordDecisionTaskStartedResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/RecordDecisionTaskStarted", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *historyAPIClient) RespondDecisionTaskCompleted(ctx context.Context, in *RespondDecisionTaskCompletedRequest, opts ...grpc.CallOption) (*RespondDecisionTaskCompletedResponse, error) { + out := new(RespondDecisionTaskCompletedResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/RespondDecisionTaskCompleted", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *historyAPIClient) RespondDecisionTaskFailed(ctx context.Context, in *RespondDecisionTaskFailedRequest, opts ...grpc.CallOption) (*RespondDecisionTaskFailedResponse, error) { + out := new(RespondDecisionTaskFailedResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/RespondDecisionTaskFailed", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *historyAPIClient) RecordActivityTaskStarted(ctx context.Context, in *RecordActivityTaskStartedRequest, opts ...grpc.CallOption) (*RecordActivityTaskStartedResponse, error) { + out := new(RecordActivityTaskStartedResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/RecordActivityTaskStarted", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *historyAPIClient) RespondActivityTaskCompleted(ctx context.Context, in *RespondActivityTaskCompletedRequest, opts ...grpc.CallOption) (*RespondActivityTaskCompletedResponse, error) { + out := new(RespondActivityTaskCompletedResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/RespondActivityTaskCompleted", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *historyAPIClient) RespondActivityTaskFailed(ctx context.Context, in *RespondActivityTaskFailedRequest, opts ...grpc.CallOption) (*RespondActivityTaskFailedResponse, error) { + out := new(RespondActivityTaskFailedResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/RespondActivityTaskFailed", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *historyAPIClient) RespondActivityTaskCanceled(ctx context.Context, in *RespondActivityTaskCanceledRequest, opts ...grpc.CallOption) (*RespondActivityTaskCanceledResponse, error) { + out := new(RespondActivityTaskCanceledResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/RespondActivityTaskCanceled", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *historyAPIClient) RecordActivityTaskHeartbeat(ctx context.Context, in *RecordActivityTaskHeartbeatRequest, opts ...grpc.CallOption) (*RecordActivityTaskHeartbeatResponse, error) { + out := new(RecordActivityTaskHeartbeatResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/RecordActivityTaskHeartbeat", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *historyAPIClient) RequestCancelWorkflowExecution(ctx context.Context, in *RequestCancelWorkflowExecutionRequest, opts ...grpc.CallOption) (*RequestCancelWorkflowExecutionResponse, error) { + out := new(RequestCancelWorkflowExecutionResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/RequestCancelWorkflowExecution", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *historyAPIClient) RemoveSignalMutableState(ctx context.Context, in *RemoveSignalMutableStateRequest, opts ...grpc.CallOption) (*RemoveSignalMutableStateResponse, error) { + out := new(RemoveSignalMutableStateResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/RemoveSignalMutableState", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *historyAPIClient) ScheduleDecisionTask(ctx context.Context, in *ScheduleDecisionTaskRequest, opts ...grpc.CallOption) (*ScheduleDecisionTaskResponse, error) { + out := new(ScheduleDecisionTaskResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/ScheduleDecisionTask", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *historyAPIClient) RecordChildExecutionCompleted(ctx context.Context, in *RecordChildExecutionCompletedRequest, opts ...grpc.CallOption) (*RecordChildExecutionCompletedResponse, error) { + out := new(RecordChildExecutionCompletedResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/RecordChildExecutionCompleted", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *historyAPIClient) ReplicateEventsV2(ctx context.Context, in *ReplicateEventsV2Request, opts ...grpc.CallOption) (*ReplicateEventsV2Response, error) { + out := new(ReplicateEventsV2Response) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/ReplicateEventsV2", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *historyAPIClient) SyncShardStatus(ctx context.Context, in *SyncShardStatusRequest, opts ...grpc.CallOption) (*SyncShardStatusResponse, error) { + out := new(SyncShardStatusResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/SyncShardStatus", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *historyAPIClient) SyncActivity(ctx context.Context, in *SyncActivityRequest, opts ...grpc.CallOption) (*SyncActivityResponse, error) { + out := new(SyncActivityResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/SyncActivity", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *historyAPIClient) DescribeMutableState(ctx context.Context, in *DescribeMutableStateRequest, opts ...grpc.CallOption) (*DescribeMutableStateResponse, error) { + out := new(DescribeMutableStateResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/DescribeMutableState", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *historyAPIClient) DescribeHistoryHost(ctx context.Context, in *DescribeHistoryHostRequest, opts ...grpc.CallOption) (*DescribeHistoryHostResponse, error) { + out := new(DescribeHistoryHostResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/DescribeHistoryHost", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *historyAPIClient) CloseShard(ctx context.Context, in *CloseShardRequest, opts ...grpc.CallOption) (*CloseShardResponse, error) { + out := new(CloseShardResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/CloseShard", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *historyAPIClient) RemoveTask(ctx context.Context, in *RemoveTaskRequest, opts ...grpc.CallOption) (*RemoveTaskResponse, error) { + out := new(RemoveTaskResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/RemoveTask", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *historyAPIClient) ResetQueue(ctx context.Context, in *ResetQueueRequest, opts ...grpc.CallOption) (*ResetQueueResponse, error) { + out := new(ResetQueueResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/ResetQueue", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *historyAPIClient) DescribeQueue(ctx context.Context, in *DescribeQueueRequest, opts ...grpc.CallOption) (*DescribeQueueResponse, error) { + out := new(DescribeQueueResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/DescribeQueue", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *historyAPIClient) GetReplicationMessages(ctx context.Context, in *GetReplicationMessagesRequest, opts ...grpc.CallOption) (*GetReplicationMessagesResponse, error) { + out := new(GetReplicationMessagesResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/GetReplicationMessages", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *historyAPIClient) GetDLQReplicationMessages(ctx context.Context, in *GetDLQReplicationMessagesRequest, opts ...grpc.CallOption) (*GetDLQReplicationMessagesResponse, error) { + out := new(GetDLQReplicationMessagesResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/GetDLQReplicationMessages", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *historyAPIClient) ReapplyEvents(ctx context.Context, in *ReapplyEventsRequest, opts ...grpc.CallOption) (*ReapplyEventsResponse, error) { + out := new(ReapplyEventsResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/ReapplyEvents", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *historyAPIClient) RefreshWorkflowTasks(ctx context.Context, in *RefreshWorkflowTasksRequest, opts ...grpc.CallOption) (*RefreshWorkflowTasksResponse, error) { + out := new(RefreshWorkflowTasksResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/RefreshWorkflowTasks", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *historyAPIClient) ReadDLQMessages(ctx context.Context, in *ReadDLQMessagesRequest, opts ...grpc.CallOption) (*ReadDLQMessagesResponse, error) { + out := new(ReadDLQMessagesResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/ReadDLQMessages", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *historyAPIClient) PurgeDLQMessages(ctx context.Context, in *PurgeDLQMessagesRequest, opts ...grpc.CallOption) (*PurgeDLQMessagesResponse, error) { + out := new(PurgeDLQMessagesResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/PurgeDLQMessages", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *historyAPIClient) MergeDLQMessages(ctx context.Context, in *MergeDLQMessagesRequest, opts ...grpc.CallOption) (*MergeDLQMessagesResponse, error) { + out := new(MergeDLQMessagesResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/MergeDLQMessages", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *historyAPIClient) NotifyFailoverMarkers(ctx context.Context, in *NotifyFailoverMarkersRequest, opts ...grpc.CallOption) (*NotifyFailoverMarkersResponse, error) { + out := new(NotifyFailoverMarkersResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.history.v1.HistoryAPI/NotifyFailoverMarkers", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// HistoryAPIServer is the server API for HistoryAPI service. +// All implementations must embed UnimplementedHistoryAPIServer +// for forward compatibility +type HistoryAPIServer interface { + // StartWorkflowExecution starts a new long running workflow instance. It will create the instance with + // 'WorkflowExecutionStarted' event in history and also schedule the first DecisionTask for the worker to make the + // first decision for this instance. It will return 'WorkflowExecutionAlreadyStartedError', if an instance already + // exists with same workflowId. + StartWorkflowExecution(context.Context, *StartWorkflowExecutionRequest) (*StartWorkflowExecutionResponse, error) + // SignalWorkflowExecution is used to send a signal event to running workflow execution. This results in + // WorkflowExecutionSignaled event recorded in the history and a decision task being created for the execution. + SignalWorkflowExecution(context.Context, *SignalWorkflowExecutionRequest) (*SignalWorkflowExecutionResponse, error) + // SignalWithStartWorkflowExecution is used to ensure sending a signal event to a workflow execution. + // If workflow is running, this results in WorkflowExecutionSignaled event recorded in the history + // and a decision task being created for the execution. + // If workflow is not running or not found, it will first try start workflow with given WorkflowIDReusePolicy, + // and record WorkflowExecutionStarted and WorkflowExecutionSignaled event in case of success. + // It will return `WorkflowExecutionAlreadyStartedError` if start workflow failed with given policy. + SignalWithStartWorkflowExecution(context.Context, *SignalWithStartWorkflowExecutionRequest) (*SignalWithStartWorkflowExecutionResponse, error) + // ResetWorkflowExecution reset an existing workflow execution by a firstEventID of a existing event batch + // in the history and immediately terminating the current execution instance. + // After reset, the history will grow from nextFirstEventID. + ResetWorkflowExecution(context.Context, *ResetWorkflowExecutionRequest) (*ResetWorkflowExecutionResponse, error) + // TerminateWorkflowExecution terminates an existing workflow execution by recording WorkflowExecutionTerminated event + // in the history and immediately terminating the execution instance. + TerminateWorkflowExecution(context.Context, *TerminateWorkflowExecutionRequest) (*TerminateWorkflowExecutionResponse, error) + // DescribeWorkflowExecution returns information about the specified workflow execution. + DescribeWorkflowExecution(context.Context, *DescribeWorkflowExecutionRequest) (*DescribeWorkflowExecutionResponse, error) + // QueryWorkflow returns query result for a specified workflow execution. + QueryWorkflow(context.Context, *QueryWorkflowRequest) (*QueryWorkflowResponse, error) + // Reset the sticky tasklist related information in mutable state of a given workflow. + // Things cleared are: + // 1. StickyTaskList + // 2. StickyScheduleToStartTimeout + // 3. ClientLibraryVersion + // 4. ClientFeatureVersion + // 5. ClientImpl + ResetStickyTaskList(context.Context, *ResetStickyTaskListRequest) (*ResetStickyTaskListResponse, error) + // Returns the information from mutable state of workflow execution. + // It fails with 'EntityNotExistError' if specified workflow execution in unknown to the service. + // It returns CurrentBranchChangedError if the workflow version branch has changed. + GetMutableState(context.Context, *GetMutableStateRequest) (*GetMutableStateResponse, error) + // Returns the information from mutable state of workflow execution. + // It fails with 'EntityNotExistError' if specified workflow execution in unknown to the service. + // It returns CurrentBranchChangedError if the workflow version branch has changed. + PollMutableState(context.Context, *PollMutableStateRequest) (*PollMutableStateResponse, error) + // RecordDecisionTaskStarted is called by the MatchingService before it hands a decision task to the application worker in response to + // a PollForDecisionTask call. It records in the history the event that the decision task has started. It will return 'EventAlreadyStartedError', + // if the workflow's execution history already includes a record of the event starting. + RecordDecisionTaskStarted(context.Context, *RecordDecisionTaskStartedRequest) (*RecordDecisionTaskStartedResponse, error) + // RespondDecisionTaskCompleted is called by application worker to complete a DecisionTask handed as a result of + // 'PollForDecisionTask' API call. Completing a DecisionTask will result in new events for the workflow execution and + // potentially new ActivityTask being created for corresponding decisions. It will also create a DecisionTaskCompleted + // event in the history for that session. Use the 'taskToken' provided as response of PollForDecisionTask API call + // for completing the DecisionTask. + RespondDecisionTaskCompleted(context.Context, *RespondDecisionTaskCompletedRequest) (*RespondDecisionTaskCompletedResponse, error) + // RespondDecisionTaskFailed is called by application worker to indicate failure. This results in + // DecisionTaskFailedEvent written to the history and a new DecisionTask created. This API can be used by client to + // either clear sticky tasklist or report ny panics during DecisionTask processing. + RespondDecisionTaskFailed(context.Context, *RespondDecisionTaskFailedRequest) (*RespondDecisionTaskFailedResponse, error) + // RecordActivityTaskStarted is called by the MatchingService before it hands a decision task to the application worker in response to + // a PollForActivityTask call. It records in the history the event that the decision task has started. It will return 'EventAlreadyStartedError', + // if the workflow's execution history already includes a record of the event starting. + RecordActivityTaskStarted(context.Context, *RecordActivityTaskStartedRequest) (*RecordActivityTaskStartedResponse, error) + // RespondActivityTaskCompleted is called by application worker when it is done processing an ActivityTask. It will + // result in a new 'ActivityTaskCompleted' event being written to the workflow history and a new DecisionTask + // created for the workflow so new decisions could be made. Use the 'taskToken' provided as response of + // PollForActivityTask API call for completion. It fails with 'EntityNotExistsError' if the taskToken is not valid + // anymore due to activity timeout. + RespondActivityTaskCompleted(context.Context, *RespondActivityTaskCompletedRequest) (*RespondActivityTaskCompletedResponse, error) + // RespondActivityTaskFailed is called by application worker when it is done processing an ActivityTask. It will + // result in a new 'ActivityTaskFailed' event being written to the workflow history and a new DecisionTask + // created for the workflow instance so new decisions could be made. Use the 'taskToken' provided as response of + // PollForActivityTask API call for completion. It fails with 'EntityNotExistsError' if the taskToken is not valid + // anymore due to activity timeout. + RespondActivityTaskFailed(context.Context, *RespondActivityTaskFailedRequest) (*RespondActivityTaskFailedResponse, error) + // RespondActivityTaskCanceled is called by application worker when it is successfully canceled an ActivityTask. It will + // result in a new 'ActivityTaskCanceled' event being written to the workflow history and a new DecisionTask + // created for the workflow instance so new decisions could be made. Use the 'taskToken' provided as response of + // PollForActivityTask API call for completion. It fails with 'EntityNotExistsError' if the taskToken is not valid + // anymore due to activity timeout. + RespondActivityTaskCanceled(context.Context, *RespondActivityTaskCanceledRequest) (*RespondActivityTaskCanceledResponse, error) + // RecordActivityTaskHeartbeat is called by application worker while it is processing an ActivityTask. If worker fails + // to heartbeat within 'heartbeatTimeoutSeconds' interval for the ActivityTask, then it will be marked as timed out and + // 'ActivityTaskTimedOut' event will be written to the workflow history. Calling 'RecordActivityTaskHeartbeat' will + // fail with 'EntityNotExistsError' in such situations. Use the 'taskToken' provided as response of + // PollForActivityTask API call for heart beating. + RecordActivityTaskHeartbeat(context.Context, *RecordActivityTaskHeartbeatRequest) (*RecordActivityTaskHeartbeatResponse, error) + // RequestCancelWorkflowExecution is called by application worker when it wants to request cancellation of a workflow instance. + // It will result in a new 'WorkflowExecutionCancelRequested' event being written to the workflow history and a new DecisionTask + // created for the workflow instance so new decisions could be made. It fails with 'EntityNotExistsError' if the workflow is not valid + // anymore due to completion or doesn't exist. + RequestCancelWorkflowExecution(context.Context, *RequestCancelWorkflowExecutionRequest) (*RequestCancelWorkflowExecutionResponse, error) + // RemoveSignalMutableState is used to remove a signal request ID that was previously recorded. This is currently + // used to clean execution info when signal decision finished. + RemoveSignalMutableState(context.Context, *RemoveSignalMutableStateRequest) (*RemoveSignalMutableStateResponse, error) + // ScheduleDecisionTask is used for creating a decision task for already started workflow execution. This is mainly + // used by transfer queue processor during the processing of StartChildWorkflowExecution task, where it first starts + // child execution without creating the decision task and then calls this API after updating the mutable state of + // parent execution. + ScheduleDecisionTask(context.Context, *ScheduleDecisionTaskRequest) (*ScheduleDecisionTaskResponse, error) + // RecordChildExecutionCompleted is used for reporting the completion of child workflow execution to parent. + // This is mainly called by transfer queue processor during the processing of DeleteExecution task. + RecordChildExecutionCompleted(context.Context, *RecordChildExecutionCompletedRequest) (*RecordChildExecutionCompletedResponse, error) + ReplicateEventsV2(context.Context, *ReplicateEventsV2Request) (*ReplicateEventsV2Response, error) + // SyncShardStatus sync the status between shards. + SyncShardStatus(context.Context, *SyncShardStatusRequest) (*SyncShardStatusResponse, error) + // SyncActivity sync the activity status. + SyncActivity(context.Context, *SyncActivityRequest) (*SyncActivityResponse, error) + // DescribeMutableState returns information about the internal states of workflow mutable state. + DescribeMutableState(context.Context, *DescribeMutableStateRequest) (*DescribeMutableStateResponse, error) + // DescribeHistoryHost returns information about the internal states of a history host. + DescribeHistoryHost(context.Context, *DescribeHistoryHostRequest) (*DescribeHistoryHostResponse, error) + // CloseShard close the shard. + CloseShard(context.Context, *CloseShardRequest) (*CloseShardResponse, error) + // RemoveTask remove task based on type, task_id, shard_id. + RemoveTask(context.Context, *RemoveTaskRequest) (*RemoveTaskResponse, error) + // ResetQueue reset processing queue state based on cluster name and type. + ResetQueue(context.Context, *ResetQueueRequest) (*ResetQueueResponse, error) + // DescribeQueue return queue states based on cluster name and type. + DescribeQueue(context.Context, *DescribeQueueRequest) (*DescribeQueueResponse, error) + // GetReplicationMessages return replication messages based on the read level. + GetReplicationMessages(context.Context, *GetReplicationMessagesRequest) (*GetReplicationMessagesResponse, error) + // GetDLQReplicationMessages return replication messages based on DLQ info. + GetDLQReplicationMessages(context.Context, *GetDLQReplicationMessagesRequest) (*GetDLQReplicationMessagesResponse, error) + // ReapplyEvents applies stale events to the current workflow and current run. + ReapplyEvents(context.Context, *ReapplyEventsRequest) (*ReapplyEventsResponse, error) + // RefreshWorkflowTasks refreshes all tasks of a workflow. + RefreshWorkflowTasks(context.Context, *RefreshWorkflowTasksRequest) (*RefreshWorkflowTasksResponse, error) + // ReadDLQMessages returns messages from DLQ. + ReadDLQMessages(context.Context, *ReadDLQMessagesRequest) (*ReadDLQMessagesResponse, error) + // PurgeDLQMessages purges messages from DLQ. + PurgeDLQMessages(context.Context, *PurgeDLQMessagesRequest) (*PurgeDLQMessagesResponse, error) + // MergeDLQMessages merges messages from DLQ. + MergeDLQMessages(context.Context, *MergeDLQMessagesRequest) (*MergeDLQMessagesResponse, error) + // NotifyFailoverMarkers sends failover marker to the failover coordinator. + NotifyFailoverMarkers(context.Context, *NotifyFailoverMarkersRequest) (*NotifyFailoverMarkersResponse, error) + mustEmbedUnimplementedHistoryAPIServer() +} + +// UnimplementedHistoryAPIServer must be embedded to have forward compatible implementations. +type UnimplementedHistoryAPIServer struct { +} + +func (UnimplementedHistoryAPIServer) StartWorkflowExecution(context.Context, *StartWorkflowExecutionRequest) (*StartWorkflowExecutionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StartWorkflowExecution not implemented") +} +func (UnimplementedHistoryAPIServer) SignalWorkflowExecution(context.Context, *SignalWorkflowExecutionRequest) (*SignalWorkflowExecutionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SignalWorkflowExecution not implemented") +} +func (UnimplementedHistoryAPIServer) SignalWithStartWorkflowExecution(context.Context, *SignalWithStartWorkflowExecutionRequest) (*SignalWithStartWorkflowExecutionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SignalWithStartWorkflowExecution not implemented") +} +func (UnimplementedHistoryAPIServer) ResetWorkflowExecution(context.Context, *ResetWorkflowExecutionRequest) (*ResetWorkflowExecutionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ResetWorkflowExecution not implemented") +} +func (UnimplementedHistoryAPIServer) TerminateWorkflowExecution(context.Context, *TerminateWorkflowExecutionRequest) (*TerminateWorkflowExecutionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TerminateWorkflowExecution not implemented") +} +func (UnimplementedHistoryAPIServer) DescribeWorkflowExecution(context.Context, *DescribeWorkflowExecutionRequest) (*DescribeWorkflowExecutionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DescribeWorkflowExecution not implemented") +} +func (UnimplementedHistoryAPIServer) QueryWorkflow(context.Context, *QueryWorkflowRequest) (*QueryWorkflowResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryWorkflow not implemented") +} +func (UnimplementedHistoryAPIServer) ResetStickyTaskList(context.Context, *ResetStickyTaskListRequest) (*ResetStickyTaskListResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ResetStickyTaskList not implemented") +} +func (UnimplementedHistoryAPIServer) GetMutableState(context.Context, *GetMutableStateRequest) (*GetMutableStateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetMutableState not implemented") +} +func (UnimplementedHistoryAPIServer) PollMutableState(context.Context, *PollMutableStateRequest) (*PollMutableStateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PollMutableState not implemented") +} +func (UnimplementedHistoryAPIServer) RecordDecisionTaskStarted(context.Context, *RecordDecisionTaskStartedRequest) (*RecordDecisionTaskStartedResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RecordDecisionTaskStarted not implemented") +} +func (UnimplementedHistoryAPIServer) RespondDecisionTaskCompleted(context.Context, *RespondDecisionTaskCompletedRequest) (*RespondDecisionTaskCompletedResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RespondDecisionTaskCompleted not implemented") +} +func (UnimplementedHistoryAPIServer) RespondDecisionTaskFailed(context.Context, *RespondDecisionTaskFailedRequest) (*RespondDecisionTaskFailedResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RespondDecisionTaskFailed not implemented") +} +func (UnimplementedHistoryAPIServer) RecordActivityTaskStarted(context.Context, *RecordActivityTaskStartedRequest) (*RecordActivityTaskStartedResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RecordActivityTaskStarted not implemented") +} +func (UnimplementedHistoryAPIServer) RespondActivityTaskCompleted(context.Context, *RespondActivityTaskCompletedRequest) (*RespondActivityTaskCompletedResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RespondActivityTaskCompleted not implemented") +} +func (UnimplementedHistoryAPIServer) RespondActivityTaskFailed(context.Context, *RespondActivityTaskFailedRequest) (*RespondActivityTaskFailedResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RespondActivityTaskFailed not implemented") +} +func (UnimplementedHistoryAPIServer) RespondActivityTaskCanceled(context.Context, *RespondActivityTaskCanceledRequest) (*RespondActivityTaskCanceledResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RespondActivityTaskCanceled not implemented") +} +func (UnimplementedHistoryAPIServer) RecordActivityTaskHeartbeat(context.Context, *RecordActivityTaskHeartbeatRequest) (*RecordActivityTaskHeartbeatResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RecordActivityTaskHeartbeat not implemented") +} +func (UnimplementedHistoryAPIServer) RequestCancelWorkflowExecution(context.Context, *RequestCancelWorkflowExecutionRequest) (*RequestCancelWorkflowExecutionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RequestCancelWorkflowExecution not implemented") +} +func (UnimplementedHistoryAPIServer) RemoveSignalMutableState(context.Context, *RemoveSignalMutableStateRequest) (*RemoveSignalMutableStateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveSignalMutableState not implemented") +} +func (UnimplementedHistoryAPIServer) ScheduleDecisionTask(context.Context, *ScheduleDecisionTaskRequest) (*ScheduleDecisionTaskResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ScheduleDecisionTask not implemented") +} +func (UnimplementedHistoryAPIServer) RecordChildExecutionCompleted(context.Context, *RecordChildExecutionCompletedRequest) (*RecordChildExecutionCompletedResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RecordChildExecutionCompleted not implemented") +} +func (UnimplementedHistoryAPIServer) ReplicateEventsV2(context.Context, *ReplicateEventsV2Request) (*ReplicateEventsV2Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReplicateEventsV2 not implemented") +} +func (UnimplementedHistoryAPIServer) SyncShardStatus(context.Context, *SyncShardStatusRequest) (*SyncShardStatusResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SyncShardStatus not implemented") +} +func (UnimplementedHistoryAPIServer) SyncActivity(context.Context, *SyncActivityRequest) (*SyncActivityResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SyncActivity not implemented") +} +func (UnimplementedHistoryAPIServer) DescribeMutableState(context.Context, *DescribeMutableStateRequest) (*DescribeMutableStateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DescribeMutableState not implemented") +} +func (UnimplementedHistoryAPIServer) DescribeHistoryHost(context.Context, *DescribeHistoryHostRequest) (*DescribeHistoryHostResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DescribeHistoryHost not implemented") +} +func (UnimplementedHistoryAPIServer) CloseShard(context.Context, *CloseShardRequest) (*CloseShardResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CloseShard not implemented") +} +func (UnimplementedHistoryAPIServer) RemoveTask(context.Context, *RemoveTaskRequest) (*RemoveTaskResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveTask not implemented") +} +func (UnimplementedHistoryAPIServer) ResetQueue(context.Context, *ResetQueueRequest) (*ResetQueueResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ResetQueue not implemented") +} +func (UnimplementedHistoryAPIServer) DescribeQueue(context.Context, *DescribeQueueRequest) (*DescribeQueueResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DescribeQueue not implemented") +} +func (UnimplementedHistoryAPIServer) GetReplicationMessages(context.Context, *GetReplicationMessagesRequest) (*GetReplicationMessagesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetReplicationMessages not implemented") +} +func (UnimplementedHistoryAPIServer) GetDLQReplicationMessages(context.Context, *GetDLQReplicationMessagesRequest) (*GetDLQReplicationMessagesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetDLQReplicationMessages not implemented") +} +func (UnimplementedHistoryAPIServer) ReapplyEvents(context.Context, *ReapplyEventsRequest) (*ReapplyEventsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReapplyEvents not implemented") +} +func (UnimplementedHistoryAPIServer) RefreshWorkflowTasks(context.Context, *RefreshWorkflowTasksRequest) (*RefreshWorkflowTasksResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RefreshWorkflowTasks not implemented") +} +func (UnimplementedHistoryAPIServer) ReadDLQMessages(context.Context, *ReadDLQMessagesRequest) (*ReadDLQMessagesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReadDLQMessages not implemented") +} +func (UnimplementedHistoryAPIServer) PurgeDLQMessages(context.Context, *PurgeDLQMessagesRequest) (*PurgeDLQMessagesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PurgeDLQMessages not implemented") +} +func (UnimplementedHistoryAPIServer) MergeDLQMessages(context.Context, *MergeDLQMessagesRequest) (*MergeDLQMessagesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method MergeDLQMessages not implemented") +} +func (UnimplementedHistoryAPIServer) NotifyFailoverMarkers(context.Context, *NotifyFailoverMarkersRequest) (*NotifyFailoverMarkersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method NotifyFailoverMarkers not implemented") +} +func (UnimplementedHistoryAPIServer) mustEmbedUnimplementedHistoryAPIServer() {} + +// UnsafeHistoryAPIServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to HistoryAPIServer will +// result in compilation errors. +type UnsafeHistoryAPIServer interface { + mustEmbedUnimplementedHistoryAPIServer() +} + +func RegisterHistoryAPIServer(s grpc.ServiceRegistrar, srv HistoryAPIServer) { + s.RegisterService(&HistoryAPI_ServiceDesc, srv) +} + +func _HistoryAPI_StartWorkflowExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StartWorkflowExecutionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HistoryAPIServer).StartWorkflowExecution(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/StartWorkflowExecution", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).StartWorkflowExecution(ctx, req.(*StartWorkflowExecutionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _HistoryAPI_SignalWorkflowExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SignalWorkflowExecutionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HistoryAPIServer).SignalWorkflowExecution(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/SignalWorkflowExecution", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).SignalWorkflowExecution(ctx, req.(*SignalWorkflowExecutionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _HistoryAPI_SignalWithStartWorkflowExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SignalWithStartWorkflowExecutionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HistoryAPIServer).SignalWithStartWorkflowExecution(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/SignalWithStartWorkflowExecution", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).SignalWithStartWorkflowExecution(ctx, req.(*SignalWithStartWorkflowExecutionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _HistoryAPI_ResetWorkflowExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ResetWorkflowExecutionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HistoryAPIServer).ResetWorkflowExecution(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/ResetWorkflowExecution", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).ResetWorkflowExecution(ctx, req.(*ResetWorkflowExecutionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _HistoryAPI_TerminateWorkflowExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TerminateWorkflowExecutionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HistoryAPIServer).TerminateWorkflowExecution(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/TerminateWorkflowExecution", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).TerminateWorkflowExecution(ctx, req.(*TerminateWorkflowExecutionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _HistoryAPI_DescribeWorkflowExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DescribeWorkflowExecutionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HistoryAPIServer).DescribeWorkflowExecution(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/DescribeWorkflowExecution", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).DescribeWorkflowExecution(ctx, req.(*DescribeWorkflowExecutionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _HistoryAPI_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.(HistoryAPIServer).QueryWorkflow(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/QueryWorkflow", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).QueryWorkflow(ctx, req.(*QueryWorkflowRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _HistoryAPI_ResetStickyTaskList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ResetStickyTaskListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HistoryAPIServer).ResetStickyTaskList(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/ResetStickyTaskList", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).ResetStickyTaskList(ctx, req.(*ResetStickyTaskListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _HistoryAPI_GetMutableState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetMutableStateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HistoryAPIServer).GetMutableState(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/GetMutableState", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).GetMutableState(ctx, req.(*GetMutableStateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _HistoryAPI_PollMutableState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PollMutableStateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HistoryAPIServer).PollMutableState(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/PollMutableState", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).PollMutableState(ctx, req.(*PollMutableStateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _HistoryAPI_RecordDecisionTaskStarted_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RecordDecisionTaskStartedRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HistoryAPIServer).RecordDecisionTaskStarted(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/RecordDecisionTaskStarted", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).RecordDecisionTaskStarted(ctx, req.(*RecordDecisionTaskStartedRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _HistoryAPI_RespondDecisionTaskCompleted_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RespondDecisionTaskCompletedRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HistoryAPIServer).RespondDecisionTaskCompleted(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/RespondDecisionTaskCompleted", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).RespondDecisionTaskCompleted(ctx, req.(*RespondDecisionTaskCompletedRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _HistoryAPI_RespondDecisionTaskFailed_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RespondDecisionTaskFailedRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HistoryAPIServer).RespondDecisionTaskFailed(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/RespondDecisionTaskFailed", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).RespondDecisionTaskFailed(ctx, req.(*RespondDecisionTaskFailedRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _HistoryAPI_RecordActivityTaskStarted_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RecordActivityTaskStartedRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HistoryAPIServer).RecordActivityTaskStarted(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/RecordActivityTaskStarted", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).RecordActivityTaskStarted(ctx, req.(*RecordActivityTaskStartedRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _HistoryAPI_RespondActivityTaskCompleted_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RespondActivityTaskCompletedRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HistoryAPIServer).RespondActivityTaskCompleted(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/RespondActivityTaskCompleted", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).RespondActivityTaskCompleted(ctx, req.(*RespondActivityTaskCompletedRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _HistoryAPI_RespondActivityTaskFailed_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RespondActivityTaskFailedRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HistoryAPIServer).RespondActivityTaskFailed(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/RespondActivityTaskFailed", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).RespondActivityTaskFailed(ctx, req.(*RespondActivityTaskFailedRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _HistoryAPI_RespondActivityTaskCanceled_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RespondActivityTaskCanceledRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HistoryAPIServer).RespondActivityTaskCanceled(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/RespondActivityTaskCanceled", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).RespondActivityTaskCanceled(ctx, req.(*RespondActivityTaskCanceledRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _HistoryAPI_RecordActivityTaskHeartbeat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RecordActivityTaskHeartbeatRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HistoryAPIServer).RecordActivityTaskHeartbeat(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/RecordActivityTaskHeartbeat", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).RecordActivityTaskHeartbeat(ctx, req.(*RecordActivityTaskHeartbeatRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _HistoryAPI_RequestCancelWorkflowExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RequestCancelWorkflowExecutionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HistoryAPIServer).RequestCancelWorkflowExecution(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/RequestCancelWorkflowExecution", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).RequestCancelWorkflowExecution(ctx, req.(*RequestCancelWorkflowExecutionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _HistoryAPI_RemoveSignalMutableState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RemoveSignalMutableStateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HistoryAPIServer).RemoveSignalMutableState(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/RemoveSignalMutableState", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).RemoveSignalMutableState(ctx, req.(*RemoveSignalMutableStateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _HistoryAPI_ScheduleDecisionTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ScheduleDecisionTaskRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HistoryAPIServer).ScheduleDecisionTask(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/ScheduleDecisionTask", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).ScheduleDecisionTask(ctx, req.(*ScheduleDecisionTaskRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _HistoryAPI_RecordChildExecutionCompleted_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RecordChildExecutionCompletedRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HistoryAPIServer).RecordChildExecutionCompleted(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/RecordChildExecutionCompleted", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).RecordChildExecutionCompleted(ctx, req.(*RecordChildExecutionCompletedRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _HistoryAPI_ReplicateEventsV2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ReplicateEventsV2Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HistoryAPIServer).ReplicateEventsV2(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/ReplicateEventsV2", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).ReplicateEventsV2(ctx, req.(*ReplicateEventsV2Request)) + } + return interceptor(ctx, in, info, handler) +} + +func _HistoryAPI_SyncShardStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SyncShardStatusRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HistoryAPIServer).SyncShardStatus(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/SyncShardStatus", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).SyncShardStatus(ctx, req.(*SyncShardStatusRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _HistoryAPI_SyncActivity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SyncActivityRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HistoryAPIServer).SyncActivity(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/SyncActivity", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).SyncActivity(ctx, req.(*SyncActivityRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _HistoryAPI_DescribeMutableState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DescribeMutableStateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HistoryAPIServer).DescribeMutableState(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/DescribeMutableState", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).DescribeMutableState(ctx, req.(*DescribeMutableStateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _HistoryAPI_DescribeHistoryHost_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DescribeHistoryHostRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HistoryAPIServer).DescribeHistoryHost(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/DescribeHistoryHost", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).DescribeHistoryHost(ctx, req.(*DescribeHistoryHostRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _HistoryAPI_CloseShard_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CloseShardRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HistoryAPIServer).CloseShard(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/CloseShard", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).CloseShard(ctx, req.(*CloseShardRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _HistoryAPI_RemoveTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RemoveTaskRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HistoryAPIServer).RemoveTask(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/RemoveTask", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).RemoveTask(ctx, req.(*RemoveTaskRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _HistoryAPI_ResetQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ResetQueueRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HistoryAPIServer).ResetQueue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/ResetQueue", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).ResetQueue(ctx, req.(*ResetQueueRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _HistoryAPI_DescribeQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DescribeQueueRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HistoryAPIServer).DescribeQueue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/DescribeQueue", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).DescribeQueue(ctx, req.(*DescribeQueueRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _HistoryAPI_GetReplicationMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetReplicationMessagesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HistoryAPIServer).GetReplicationMessages(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/GetReplicationMessages", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).GetReplicationMessages(ctx, req.(*GetReplicationMessagesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _HistoryAPI_GetDLQReplicationMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetDLQReplicationMessagesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HistoryAPIServer).GetDLQReplicationMessages(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/GetDLQReplicationMessages", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).GetDLQReplicationMessages(ctx, req.(*GetDLQReplicationMessagesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _HistoryAPI_ReapplyEvents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ReapplyEventsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HistoryAPIServer).ReapplyEvents(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/ReapplyEvents", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).ReapplyEvents(ctx, req.(*ReapplyEventsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _HistoryAPI_RefreshWorkflowTasks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RefreshWorkflowTasksRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HistoryAPIServer).RefreshWorkflowTasks(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/RefreshWorkflowTasks", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).RefreshWorkflowTasks(ctx, req.(*RefreshWorkflowTasksRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _HistoryAPI_ReadDLQMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ReadDLQMessagesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HistoryAPIServer).ReadDLQMessages(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/ReadDLQMessages", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).ReadDLQMessages(ctx, req.(*ReadDLQMessagesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _HistoryAPI_PurgeDLQMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PurgeDLQMessagesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HistoryAPIServer).PurgeDLQMessages(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/PurgeDLQMessages", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).PurgeDLQMessages(ctx, req.(*PurgeDLQMessagesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _HistoryAPI_MergeDLQMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MergeDLQMessagesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HistoryAPIServer).MergeDLQMessages(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/MergeDLQMessages", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).MergeDLQMessages(ctx, req.(*MergeDLQMessagesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _HistoryAPI_NotifyFailoverMarkers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(NotifyFailoverMarkersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HistoryAPIServer).NotifyFailoverMarkers(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.history.v1.HistoryAPI/NotifyFailoverMarkers", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HistoryAPIServer).NotifyFailoverMarkers(ctx, req.(*NotifyFailoverMarkersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// HistoryAPI_ServiceDesc is the grpc.ServiceDesc for HistoryAPI service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var HistoryAPI_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "uber.cadence.history.v1.HistoryAPI", + HandlerType: (*HistoryAPIServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "StartWorkflowExecution", + Handler: _HistoryAPI_StartWorkflowExecution_Handler, + }, + { + MethodName: "SignalWorkflowExecution", + Handler: _HistoryAPI_SignalWorkflowExecution_Handler, + }, + { + MethodName: "SignalWithStartWorkflowExecution", + Handler: _HistoryAPI_SignalWithStartWorkflowExecution_Handler, + }, + { + MethodName: "ResetWorkflowExecution", + Handler: _HistoryAPI_ResetWorkflowExecution_Handler, + }, + { + MethodName: "TerminateWorkflowExecution", + Handler: _HistoryAPI_TerminateWorkflowExecution_Handler, + }, + { + MethodName: "DescribeWorkflowExecution", + Handler: _HistoryAPI_DescribeWorkflowExecution_Handler, + }, + { + MethodName: "QueryWorkflow", + Handler: _HistoryAPI_QueryWorkflow_Handler, + }, + { + MethodName: "ResetStickyTaskList", + Handler: _HistoryAPI_ResetStickyTaskList_Handler, + }, + { + MethodName: "GetMutableState", + Handler: _HistoryAPI_GetMutableState_Handler, + }, + { + MethodName: "PollMutableState", + Handler: _HistoryAPI_PollMutableState_Handler, + }, + { + MethodName: "RecordDecisionTaskStarted", + Handler: _HistoryAPI_RecordDecisionTaskStarted_Handler, + }, + { + MethodName: "RespondDecisionTaskCompleted", + Handler: _HistoryAPI_RespondDecisionTaskCompleted_Handler, + }, + { + MethodName: "RespondDecisionTaskFailed", + Handler: _HistoryAPI_RespondDecisionTaskFailed_Handler, + }, + { + MethodName: "RecordActivityTaskStarted", + Handler: _HistoryAPI_RecordActivityTaskStarted_Handler, + }, + { + MethodName: "RespondActivityTaskCompleted", + Handler: _HistoryAPI_RespondActivityTaskCompleted_Handler, + }, + { + MethodName: "RespondActivityTaskFailed", + Handler: _HistoryAPI_RespondActivityTaskFailed_Handler, + }, + { + MethodName: "RespondActivityTaskCanceled", + Handler: _HistoryAPI_RespondActivityTaskCanceled_Handler, + }, + { + MethodName: "RecordActivityTaskHeartbeat", + Handler: _HistoryAPI_RecordActivityTaskHeartbeat_Handler, + }, + { + MethodName: "RequestCancelWorkflowExecution", + Handler: _HistoryAPI_RequestCancelWorkflowExecution_Handler, + }, + { + MethodName: "RemoveSignalMutableState", + Handler: _HistoryAPI_RemoveSignalMutableState_Handler, + }, + { + MethodName: "ScheduleDecisionTask", + Handler: _HistoryAPI_ScheduleDecisionTask_Handler, + }, + { + MethodName: "RecordChildExecutionCompleted", + Handler: _HistoryAPI_RecordChildExecutionCompleted_Handler, + }, + { + MethodName: "ReplicateEventsV2", + Handler: _HistoryAPI_ReplicateEventsV2_Handler, + }, + { + MethodName: "SyncShardStatus", + Handler: _HistoryAPI_SyncShardStatus_Handler, + }, + { + MethodName: "SyncActivity", + Handler: _HistoryAPI_SyncActivity_Handler, + }, + { + MethodName: "DescribeMutableState", + Handler: _HistoryAPI_DescribeMutableState_Handler, + }, + { + MethodName: "DescribeHistoryHost", + Handler: _HistoryAPI_DescribeHistoryHost_Handler, + }, + { + MethodName: "CloseShard", + Handler: _HistoryAPI_CloseShard_Handler, + }, + { + MethodName: "RemoveTask", + Handler: _HistoryAPI_RemoveTask_Handler, + }, + { + MethodName: "ResetQueue", + Handler: _HistoryAPI_ResetQueue_Handler, + }, + { + MethodName: "DescribeQueue", + Handler: _HistoryAPI_DescribeQueue_Handler, + }, + { + MethodName: "GetReplicationMessages", + Handler: _HistoryAPI_GetReplicationMessages_Handler, + }, + { + MethodName: "GetDLQReplicationMessages", + Handler: _HistoryAPI_GetDLQReplicationMessages_Handler, + }, + { + MethodName: "ReapplyEvents", + Handler: _HistoryAPI_ReapplyEvents_Handler, + }, + { + MethodName: "RefreshWorkflowTasks", + Handler: _HistoryAPI_RefreshWorkflowTasks_Handler, + }, + { + MethodName: "ReadDLQMessages", + Handler: _HistoryAPI_ReadDLQMessages_Handler, + }, + { + MethodName: "PurgeDLQMessages", + Handler: _HistoryAPI_PurgeDLQMessages_Handler, + }, + { + MethodName: "MergeDLQMessages", + Handler: _HistoryAPI_MergeDLQMessages_Handler, + }, + { + MethodName: "NotifyFailoverMarkers", + Handler: _HistoryAPI_NotifyFailoverMarkers_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "uber/cadence/history/v1/service.proto", +} diff --git a/.gen/proto/indexer/v1/messages.pb.go b/.gen/proto/indexer/v1/messages.pb.go index 3f62577da6f..cb9099655ce 100644 --- a/.gen/proto/indexer/v1/messages.pb.go +++ b/.gen/proto/indexer/v1/messages.pb.go @@ -1,81 +1,106 @@ -// The MIT License (MIT) - -// Copyright (c) 2017-2020 Uber Technologies Inc. - +// 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 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. +// 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. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.14.0 // source: uber/cadence/indexer/v1/messages.proto package indexerv1 import ( - bytes "bytes" - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" reflect "reflect" - strconv "strconv" - strings "strings" + sync "sync" - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" + proto "github.com/golang/protobuf/proto" v1 "github.com/uber/cadence/.gen/proto/api/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// 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 +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type MessageType int32 const ( - MESSAGE_TYPE_INVALID MessageType = 0 - MESSAGE_TYPE_INDEX MessageType = 1 - MESSAGE_TYPE_DELETE MessageType = 2 + MessageType_MESSAGE_TYPE_INVALID MessageType = 0 + MessageType_MESSAGE_TYPE_INDEX MessageType = 1 + MessageType_MESSAGE_TYPE_DELETE MessageType = 2 +) + +// Enum value maps for MessageType. +var ( + MessageType_name = map[int32]string{ + 0: "MESSAGE_TYPE_INVALID", + 1: "MESSAGE_TYPE_INDEX", + 2: "MESSAGE_TYPE_DELETE", + } + MessageType_value = map[string]int32{ + "MESSAGE_TYPE_INVALID": 0, + "MESSAGE_TYPE_INDEX": 1, + "MESSAGE_TYPE_DELETE": 2, + } ) -var MessageType_name = map[int32]string{ - 0: "MESSAGE_TYPE_INVALID", - 1: "MESSAGE_TYPE_INDEX", - 2: "MESSAGE_TYPE_DELETE", +func (x MessageType) Enum() *MessageType { + p := new(MessageType) + *p = x + return p } -var MessageType_value = map[string]int32{ - "MESSAGE_TYPE_INVALID": 0, - "MESSAGE_TYPE_INDEX": 1, - "MESSAGE_TYPE_DELETE": 2, +func (x MessageType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (MessageType) Descriptor() protoreflect.EnumDescriptor { + return file_uber_cadence_indexer_v1_messages_proto_enumTypes[0].Descriptor() +} + +func (MessageType) Type() protoreflect.EnumType { + return &file_uber_cadence_indexer_v1_messages_proto_enumTypes[0] +} + +func (x MessageType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use MessageType.Descriptor instead. func (MessageType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_60256a432328b016, []int{0} + return file_uber_cadence_indexer_v1_messages_proto_rawDescGZIP(), []int{0} } type Message struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + MessageType MessageType `protobuf:"varint,1,opt,name=message_type,json=messageType,proto3,enum=uber.cadence.indexer.v1.MessageType" json:"message_type,omitempty"` DomainId string `protobuf:"bytes,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` @@ -83,75 +108,79 @@ type Message struct { Fields map[string]*Field `protobuf:"bytes,5,rep,name=fields,proto3" json:"fields,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func (m *Message) Reset() { *m = Message{} } -func (*Message) ProtoMessage() {} -func (*Message) Descriptor() ([]byte, []int) { - return fileDescriptor_60256a432328b016, []int{0} +func (x *Message) Reset() { + *x = Message{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_indexer_v1_messages_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Message) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *Message) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Message.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*Message) ProtoMessage() {} + +func (x *Message) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_indexer_v1_messages_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *Message) XXX_Merge(src proto.Message) { - xxx_messageInfo_Message.Merge(m, src) -} -func (m *Message) XXX_Size() int { - return m.Size() -} -func (m *Message) XXX_DiscardUnknown() { - xxx_messageInfo_Message.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_Message proto.InternalMessageInfo +// Deprecated: Use Message.ProtoReflect.Descriptor instead. +func (*Message) Descriptor() ([]byte, []int) { + return file_uber_cadence_indexer_v1_messages_proto_rawDescGZIP(), []int{0} +} -func (m *Message) GetMessageType() MessageType { - if m != nil { - return m.MessageType +func (x *Message) GetMessageType() MessageType { + if x != nil { + return x.MessageType } - return MESSAGE_TYPE_INVALID + return MessageType_MESSAGE_TYPE_INVALID } -func (m *Message) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *Message) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } -func (m *Message) GetWorkflowExecution() *v1.WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *Message) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *Message) GetVersion() int64 { - if m != nil { - return m.Version +func (x *Message) GetVersion() int64 { + if x != nil { + return x.Version } return 0 } -func (m *Message) GetFields() map[string]*Field { - if m != nil { - return m.Fields +func (x *Message) GetFields() map[string]*Field { + if x != nil { + return x.Fields } return nil } type Field struct { - // Types that are valid to be assigned to Data: + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Data: // *Field_StringData // *Field_IntData // *Field_BoolData @@ -159,63 +188,38 @@ type Field struct { Data isField_Data `protobuf_oneof:"data"` } -func (m *Field) Reset() { *m = Field{} } -func (*Field) ProtoMessage() {} -func (*Field) Descriptor() ([]byte, []int) { - return fileDescriptor_60256a432328b016, []int{1} -} -func (m *Field) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Field) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Field.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *Field) Reset() { + *x = Field{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_indexer_v1_messages_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *Field) XXX_Merge(src proto.Message) { - xxx_messageInfo_Field.Merge(m, src) -} -func (m *Field) XXX_Size() int { - return m.Size() -} -func (m *Field) XXX_DiscardUnknown() { - xxx_messageInfo_Field.DiscardUnknown(m) + +func (x *Field) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_Field proto.InternalMessageInfo +func (*Field) ProtoMessage() {} -type isField_Data interface { - isField_Data() - Equal(interface{}) bool - MarshalTo([]byte) (int, error) - Size() int +func (x *Field) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_indexer_v1_messages_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type Field_StringData struct { - StringData string `protobuf:"bytes,1,opt,name=string_data,json=stringData,proto3,oneof" json:"string_data,omitempty"` -} -type Field_IntData struct { - IntData int64 `protobuf:"varint,2,opt,name=int_data,json=intData,proto3,oneof" json:"int_data,omitempty"` -} -type Field_BoolData struct { - BoolData bool `protobuf:"varint,3,opt,name=bool_data,json=boolData,proto3,oneof" json:"bool_data,omitempty"` -} -type Field_BinaryData struct { - BinaryData []byte `protobuf:"bytes,4,opt,name=binary_data,json=binaryData,proto3,oneof" json:"binary_data,omitempty"` +// Deprecated: Use Field.ProtoReflect.Descriptor instead. +func (*Field) Descriptor() ([]byte, []int) { + return file_uber_cadence_indexer_v1_messages_proto_rawDescGZIP(), []int{1} } -func (*Field_StringData) isField_Data() {} -func (*Field_IntData) isField_Data() {} -func (*Field_BoolData) isField_Data() {} -func (*Field_BinaryData) isField_Data() {} - func (m *Field) GetData() isField_Data { if m != nil { return m.Data @@ -223,1230 +227,204 @@ func (m *Field) GetData() isField_Data { return nil } -func (m *Field) GetStringData() string { - if x, ok := m.GetData().(*Field_StringData); ok { +func (x *Field) GetStringData() string { + if x, ok := x.GetData().(*Field_StringData); ok { return x.StringData } return "" } -func (m *Field) GetIntData() int64 { - if x, ok := m.GetData().(*Field_IntData); ok { +func (x *Field) GetIntData() int64 { + if x, ok := x.GetData().(*Field_IntData); ok { return x.IntData } return 0 } -func (m *Field) GetBoolData() bool { - if x, ok := m.GetData().(*Field_BoolData); ok { +func (x *Field) GetBoolData() bool { + if x, ok := x.GetData().(*Field_BoolData); ok { return x.BoolData } return false } -func (m *Field) GetBinaryData() []byte { - if x, ok := m.GetData().(*Field_BinaryData); ok { +func (x *Field) GetBinaryData() []byte { + if x, ok := x.GetData().(*Field_BinaryData); ok { return x.BinaryData } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Field) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*Field_StringData)(nil), - (*Field_IntData)(nil), - (*Field_BoolData)(nil), - (*Field_BinaryData)(nil), - } -} - -func init() { - proto.RegisterEnum("uber.cadence.indexer.v1.MessageType", MessageType_name, MessageType_value) - proto.RegisterType((*Message)(nil), "uber.cadence.indexer.v1.Message") - proto.RegisterMapType((map[string]*Field)(nil), "uber.cadence.indexer.v1.Message.FieldsEntry") - proto.RegisterType((*Field)(nil), "uber.cadence.indexer.v1.Field") -} - -func init() { - proto.RegisterFile("github.com/uber/cadence/.gen/proto/indexer/v1/messages.proto", fileDescriptor_60256a432328b016) -} - -var fileDescriptor_60256a432328b016 = []byte{ - // 510 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xcd, 0x6e, 0xd3, 0x40, - 0x14, 0x85, 0x3d, 0x71, 0xf3, 0x77, 0x5d, 0xa1, 0x30, 0x20, 0x6a, 0xb5, 0x62, 0xe4, 0x56, 0xa8, - 0x8a, 0x10, 0x72, 0x94, 0xc0, 0x02, 0xb1, 0x41, 0xad, 0x62, 0x9a, 0x48, 0x2d, 0x42, 0x6e, 0x80, - 0x96, 0x8d, 0x35, 0x89, 0xa7, 0xd5, 0xa8, 0x89, 0x27, 0xb2, 0x9d, 0xa4, 0xde, 0xc1, 0x1b, 0xc0, - 0x5b, 0xf0, 0x28, 0x2c, 0xb3, 0xec, 0x92, 0x38, 0x1b, 0x96, 0x7d, 0x04, 0x34, 0x1e, 0x57, 0x34, - 0x95, 0x2a, 0x76, 0x9e, 0x73, 0xbe, 0x7b, 0xae, 0xe6, 0x78, 0x60, 0x77, 0xd2, 0x67, 0x61, 0x63, - 0x40, 0x7d, 0x16, 0x0c, 0x58, 0x83, 0x07, 0x3e, 0xbb, 0x64, 0x61, 0x63, 0xda, 0x6c, 0x8c, 0x58, - 0x14, 0xd1, 0x73, 0x16, 0xd9, 0xe3, 0x50, 0xc4, 0x02, 0x6f, 0x48, 0xce, 0xce, 0x39, 0x3b, 0xe7, - 0xec, 0x69, 0x73, 0xd3, 0x5a, 0x09, 0xa0, 0x63, 0x2e, 0x87, 0x07, 0x62, 0x34, 0x12, 0x81, 0x1a, - 0xdd, 0xf9, 0xa6, 0x43, 0xf9, 0x48, 0xa5, 0xe1, 0x03, 0x58, 0xcf, 0x83, 0xbd, 0x38, 0x19, 0x33, - 0x13, 0x59, 0xa8, 0xfe, 0xa0, 0xf5, 0xcc, 0xbe, 0x27, 0xdd, 0xce, 0xe7, 0x7a, 0xc9, 0x98, 0xb9, - 0xc6, 0xe8, 0xdf, 0x01, 0x6f, 0x41, 0xd5, 0x17, 0x23, 0xca, 0x03, 0x8f, 0xfb, 0x66, 0xc1, 0x42, - 0xf5, 0xaa, 0x5b, 0x51, 0x42, 0xd7, 0xc7, 0x1f, 0x01, 0xcf, 0x44, 0x78, 0x71, 0x36, 0x14, 0x33, - 0x8f, 0x5d, 0xb2, 0xc1, 0x24, 0xe6, 0x22, 0x30, 0x75, 0x0b, 0xd5, 0x8d, 0xd6, 0xee, 0xea, 0x2e, - 0x3a, 0xe6, 0x72, 0xcf, 0xe7, 0x1c, 0x77, 0x6e, 0x68, 0xf7, 0xe1, 0xec, 0xae, 0x84, 0x4d, 0x28, - 0x4f, 0x59, 0x18, 0xc9, 0xac, 0x35, 0x0b, 0xd5, 0x75, 0xf7, 0xe6, 0x88, 0xdb, 0x50, 0x3a, 0xe3, - 0x6c, 0xe8, 0x47, 0x66, 0xd1, 0xd2, 0xeb, 0x46, 0xeb, 0xc5, 0xff, 0x2e, 0x64, 0xbf, 0xcb, 0x70, - 0x27, 0x88, 0xc3, 0xc4, 0xcd, 0x67, 0x37, 0x4f, 0xc1, 0xb8, 0x25, 0xe3, 0x1a, 0xe8, 0x17, 0x2c, - 0xc9, 0x2a, 0xaa, 0xba, 0xf2, 0x13, 0xbf, 0x82, 0xe2, 0x94, 0x0e, 0x27, 0x2c, 0xbb, 0xb0, 0xd1, - 0x22, 0xf7, 0x6e, 0xc9, 0x62, 0x5c, 0x05, 0xbf, 0x29, 0xbc, 0x46, 0x3b, 0x3f, 0x10, 0x14, 0x33, - 0x11, 0x6f, 0x83, 0x11, 0xc5, 0x21, 0x0f, 0xce, 0x3d, 0x9f, 0xc6, 0x54, 0xa5, 0x77, 0x34, 0x17, - 0x94, 0xd8, 0xa6, 0x31, 0xc5, 0x5b, 0x50, 0xe1, 0x41, 0xac, 0x7c, 0xb9, 0x49, 0xef, 0x68, 0x6e, - 0x99, 0x07, 0x71, 0x66, 0x3e, 0x85, 0x6a, 0x5f, 0x88, 0xa1, 0x72, 0x65, 0xa5, 0x95, 0x8e, 0xe6, - 0x56, 0xa4, 0x94, 0xd9, 0xdb, 0x60, 0xf4, 0x79, 0x40, 0xc3, 0x44, 0x01, 0xb2, 0xa7, 0x75, 0x19, - 0xaf, 0x44, 0x89, 0xec, 0x97, 0x60, 0x4d, 0x7a, 0xcf, 0x4f, 0xc0, 0xb8, 0xf5, 0x7b, 0xb1, 0x09, - 0x8f, 0x8f, 0x9c, 0xe3, 0xe3, 0xbd, 0x03, 0xc7, 0xeb, 0x9d, 0x7e, 0x70, 0xbc, 0xee, 0xfb, 0x4f, - 0x7b, 0x87, 0xdd, 0x76, 0x4d, 0xc3, 0x4f, 0x00, 0xdf, 0x71, 0xda, 0xce, 0x49, 0x0d, 0xe1, 0x0d, - 0x78, 0xb4, 0xa2, 0xb7, 0x9d, 0x43, 0xa7, 0xe7, 0xd4, 0x0a, 0xfb, 0x6f, 0xe7, 0x0b, 0xa2, 0x5d, - 0x2d, 0x88, 0x76, 0xbd, 0x20, 0xe8, 0x6b, 0x4a, 0xd0, 0xcf, 0x94, 0xa0, 0x5f, 0x29, 0x41, 0xf3, - 0x94, 0xa0, 0xdf, 0x29, 0x41, 0x7f, 0x52, 0xa2, 0x5d, 0xa7, 0x04, 0x7d, 0x5f, 0x12, 0x6d, 0xbe, - 0x24, 0xda, 0xd5, 0x92, 0x68, 0x5f, 0xaa, 0x79, 0x81, 0xd3, 0x66, 0xbf, 0x94, 0xbd, 0xdc, 0x97, - 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xf1, 0xcc, 0xd5, 0x76, 0x1e, 0x03, 0x00, 0x00, -} - -func (x MessageType) String() string { - s, ok := MessageType_name[int32(x)] - if ok { - return s - } - return strconv.Itoa(int(x)) -} -func (this *Message) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Message) - if !ok { - that2, ok := that.(Message) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.MessageType != that1.MessageType { - return false - } - if this.DomainId != that1.DomainId { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if this.Version != that1.Version { - return false - } - if len(this.Fields) != len(that1.Fields) { - return false - } - for i := range this.Fields { - if !this.Fields[i].Equal(that1.Fields[i]) { - return false - } - } - return true -} -func (this *Field) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Field) - if !ok { - that2, ok := that.(Field) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if that1.Data == nil { - if this.Data != nil { - return false - } - } else if this.Data == nil { - return false - } else if !this.Data.Equal(that1.Data) { - return false - } - return true -} -func (this *Field_StringData) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Field_StringData) - if !ok { - that2, ok := that.(Field_StringData) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.StringData != that1.StringData { - return false - } - return true -} -func (this *Field_IntData) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Field_IntData) - if !ok { - that2, ok := that.(Field_IntData) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.IntData != that1.IntData { - return false - } - return true -} -func (this *Field_BoolData) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Field_BoolData) - if !ok { - that2, ok := that.(Field_BoolData) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.BoolData != that1.BoolData { - return false - } - return true -} -func (this *Field_BinaryData) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Field_BinaryData) - if !ok { - that2, ok := that.(Field_BinaryData) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !bytes.Equal(this.BinaryData, that1.BinaryData) { - return false - } - return true -} -func (this *Message) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 9) - s = append(s, "&indexerv1.Message{") - s = append(s, "MessageType: "+fmt.Sprintf("%#v", this.MessageType)+",\n") - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "Version: "+fmt.Sprintf("%#v", this.Version)+",\n") - keysForFields := make([]string, 0, len(this.Fields)) - for k, _ := range this.Fields { - keysForFields = append(keysForFields, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForFields) - mapStringForFields := "map[string]*Field{" - for _, k := range keysForFields { - mapStringForFields += fmt.Sprintf("%#v: %#v,", k, this.Fields[k]) - } - mapStringForFields += "}" - if this.Fields != nil { - s = append(s, "Fields: "+mapStringForFields+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *Field) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 8) - s = append(s, "&indexerv1.Field{") - if this.Data != nil { - s = append(s, "Data: "+fmt.Sprintf("%#v", this.Data)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *Field_StringData) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&indexerv1.Field_StringData{` + - `StringData:` + fmt.Sprintf("%#v", this.StringData) + `}`}, ", ") - return s -} -func (this *Field_IntData) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&indexerv1.Field_IntData{` + - `IntData:` + fmt.Sprintf("%#v", this.IntData) + `}`}, ", ") - return s -} -func (this *Field_BoolData) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&indexerv1.Field_BoolData{` + - `BoolData:` + fmt.Sprintf("%#v", this.BoolData) + `}`}, ", ") - return s -} -func (this *Field_BinaryData) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&indexerv1.Field_BinaryData{` + - `BinaryData:` + fmt.Sprintf("%#v", this.BinaryData) + `}`}, ", ") - return s -} -func valueToGoStringMessages(v interface{}, typ string) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) -} -func (m *Message) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Message) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Fields) > 0 { - for k := range m.Fields { - v := m.Fields[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMessages(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintMessages(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintMessages(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x2a - } - } - if m.Version != 0 { - i = encodeVarintMessages(dAtA, i, uint64(m.Version)) - i-- - dAtA[i] = 0x20 - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMessages(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintMessages(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0x12 - } - if m.MessageType != 0 { - i = encodeVarintMessages(dAtA, i, uint64(m.MessageType)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *Field) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +type isField_Data interface { + isField_Data() } -func (m *Field) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type Field_StringData struct { + StringData string `protobuf:"bytes,1,opt,name=string_data,json=stringData,proto3,oneof"` } -func (m *Field) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Data != nil { - { - size := m.Data.Size() - i -= size - if _, err := m.Data.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - return len(dAtA) - i, nil +type Field_IntData struct { + IntData int64 `protobuf:"varint,2,opt,name=int_data,json=intData,proto3,oneof"` } -func (m *Field_StringData) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type Field_BoolData struct { + BoolData bool `protobuf:"varint,3,opt,name=bool_data,json=boolData,proto3,oneof"` } -func (m *Field_StringData) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i -= len(m.StringData) - copy(dAtA[i:], m.StringData) - i = encodeVarintMessages(dAtA, i, uint64(len(m.StringData))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} -func (m *Field_IntData) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type Field_BinaryData struct { + BinaryData []byte `protobuf:"bytes,4,opt,name=binary_data,json=binaryData,proto3,oneof"` } -func (m *Field_IntData) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i = encodeVarintMessages(dAtA, i, uint64(m.IntData)) - i-- - dAtA[i] = 0x10 - return len(dAtA) - i, nil -} -func (m *Field_BoolData) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*Field_StringData) isField_Data() {} -func (m *Field_BoolData) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i-- - if m.BoolData { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - return len(dAtA) - i, nil -} -func (m *Field_BinaryData) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*Field_IntData) isField_Data() {} -func (m *Field_BinaryData) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.BinaryData != nil { - i -= len(m.BinaryData) - copy(dAtA[i:], m.BinaryData) - i = encodeVarintMessages(dAtA, i, uint64(len(m.BinaryData))) - i-- - dAtA[i] = 0x22 - } - return len(dAtA) - i, nil -} -func encodeVarintMessages(dAtA []byte, offset int, v uint64) int { - offset -= sovMessages(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Message) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.MessageType != 0 { - n += 1 + sovMessages(uint64(m.MessageType)) - } - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovMessages(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovMessages(uint64(l)) - } - if m.Version != 0 { - n += 1 + sovMessages(uint64(m.Version)) - } - if len(m.Fields) > 0 { - for k, v := range m.Fields { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovMessages(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovMessages(uint64(len(k))) + l - n += mapEntrySize + 1 + sovMessages(uint64(mapEntrySize)) - } - } - return n -} +func (*Field_BoolData) isField_Data() {} -func (m *Field) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Data != nil { - n += m.Data.Size() - } - return n -} +func (*Field_BinaryData) isField_Data() {} -func (m *Field_StringData) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.StringData) - n += 1 + l + sovMessages(uint64(l)) - return n -} -func (m *Field_IntData) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovMessages(uint64(m.IntData)) - return n -} -func (m *Field_BoolData) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 2 - return n -} -func (m *Field_BinaryData) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.BinaryData != nil { - l = len(m.BinaryData) - n += 1 + l + sovMessages(uint64(l)) - } - return n +var File_uber_cadence_indexer_v1_messages_proto protoreflect.FileDescriptor + +var file_uber_cadence_indexer_v1_messages_proto_rawDesc = []byte{ + 0x0a, 0x26, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x69, + 0x6e, 0x64, 0x65, 0x78, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x72, 0x2e, 0x76, + 0x31, 0x1a, 0x20, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0x81, 0x03, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, + 0x47, 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x6d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x44, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, + 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x72, 0x2e, 0x76, 0x31, + 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x1a, 0x59, 0x0a, 0x0b, + 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x34, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x69, 0x6e, 0x64, 0x65, + 0x78, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x91, 0x01, 0x0a, 0x05, 0x46, 0x69, 0x65, 0x6c, + 0x64, 0x12, 0x21, 0x0a, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x64, 0x61, 0x74, 0x61, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0a, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x44, 0x61, 0x74, 0x61, 0x12, 0x1b, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x07, 0x69, 0x6e, 0x74, 0x44, 0x61, 0x74, + 0x61, 0x12, 0x1d, 0x0a, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x08, 0x62, 0x6f, 0x6f, 0x6c, 0x44, 0x61, 0x74, 0x61, + 0x12, 0x21, 0x0a, 0x0b, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0a, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x44, + 0x61, 0x74, 0x61, 0x42, 0x06, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x2a, 0x58, 0x0a, 0x0b, 0x4d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x14, 0x4d, 0x45, + 0x53, 0x53, 0x41, 0x47, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, + 0x49, 0x44, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x44, 0x45, 0x58, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, + 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x45, 0x4c, + 0x45, 0x54, 0x45, 0x10, 0x02, 0x42, 0x39, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2f, 0x2e, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x69, 0x6e, 0x64, 0x65, + 0x78, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x3b, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x72, 0x76, 0x31, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func sovMessages(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozMessages(x uint64) (n int) { - return sovMessages(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *Message) String() string { - if this == nil { - return "nil" - } - keysForFields := make([]string, 0, len(this.Fields)) - for k, _ := range this.Fields { - keysForFields = append(keysForFields, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForFields) - mapStringForFields := "map[string]*Field{" - for _, k := range keysForFields { - mapStringForFields += fmt.Sprintf("%v: %v,", k, this.Fields[k]) - } - mapStringForFields += "}" - s := strings.Join([]string{`&Message{`, - `MessageType:` + fmt.Sprintf("%v", this.MessageType) + `,`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "v1.WorkflowExecution", 1) + `,`, - `Version:` + fmt.Sprintf("%v", this.Version) + `,`, - `Fields:` + mapStringForFields + `,`, - `}`, - }, "") - return s -} -func (this *Field) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Field{`, - `Data:` + fmt.Sprintf("%v", this.Data) + `,`, - `}`, - }, "") - return s -} -func (this *Field_StringData) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Field_StringData{`, - `StringData:` + fmt.Sprintf("%v", this.StringData) + `,`, - `}`, - }, "") - return s -} -func (this *Field_IntData) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Field_IntData{`, - `IntData:` + fmt.Sprintf("%v", this.IntData) + `,`, - `}`, - }, "") - return s -} -func (this *Field_BoolData) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Field_BoolData{`, - `BoolData:` + fmt.Sprintf("%v", this.BoolData) + `,`, - `}`, - }, "") - return s -} -func (this *Field_BinaryData) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Field_BinaryData{`, - `BinaryData:` + fmt.Sprintf("%v", this.BinaryData) + `,`, - `}`, - }, "") - return s -} -func valueToStringMessages(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *Message) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMessages - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Message: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Message: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MessageType", wireType) - } - m.MessageType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMessages - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MessageType |= MessageType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMessages - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthMessages - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMessages - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMessages - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMessages - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMessages - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &v1.WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) - } - m.Version = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMessages - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Version |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Fields", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMessages - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMessages - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMessages - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Fields == nil { - m.Fields = make(map[string]*Field) - } - var mapkey string - var mapvalue *Field - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMessages - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMessages - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthMessages - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthMessages - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMessages - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthMessages - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthMessages - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &Field{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipMessages(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMessages - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Fields[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMessages(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMessages - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthMessages - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } +var ( + file_uber_cadence_indexer_v1_messages_proto_rawDescOnce sync.Once + file_uber_cadence_indexer_v1_messages_proto_rawDescData = file_uber_cadence_indexer_v1_messages_proto_rawDesc +) - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Field) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMessages - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break +func file_uber_cadence_indexer_v1_messages_proto_rawDescGZIP() []byte { + file_uber_cadence_indexer_v1_messages_proto_rawDescOnce.Do(func() { + file_uber_cadence_indexer_v1_messages_proto_rawDescData = protoimpl.X.CompressGZIP(file_uber_cadence_indexer_v1_messages_proto_rawDescData) + }) + return file_uber_cadence_indexer_v1_messages_proto_rawDescData +} + +var file_uber_cadence_indexer_v1_messages_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_uber_cadence_indexer_v1_messages_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_uber_cadence_indexer_v1_messages_proto_goTypes = []interface{}{ + (MessageType)(0), // 0: uber.cadence.indexer.v1.MessageType + (*Message)(nil), // 1: uber.cadence.indexer.v1.Message + (*Field)(nil), // 2: uber.cadence.indexer.v1.Field + nil, // 3: uber.cadence.indexer.v1.Message.FieldsEntry + (*v1.WorkflowExecution)(nil), // 4: uber.cadence.api.v1.WorkflowExecution +} +var file_uber_cadence_indexer_v1_messages_proto_depIdxs = []int32{ + 0, // 0: uber.cadence.indexer.v1.Message.message_type:type_name -> uber.cadence.indexer.v1.MessageType + 4, // 1: uber.cadence.indexer.v1.Message.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 3, // 2: uber.cadence.indexer.v1.Message.fields:type_name -> uber.cadence.indexer.v1.Message.FieldsEntry + 2, // 3: uber.cadence.indexer.v1.Message.FieldsEntry.value:type_name -> uber.cadence.indexer.v1.Field + 4, // [4:4] is the sub-list for method output_type + 4, // [4:4] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name +} + +func init() { file_uber_cadence_indexer_v1_messages_proto_init() } +func file_uber_cadence_indexer_v1_messages_proto_init() { + if File_uber_cadence_indexer_v1_messages_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_uber_cadence_indexer_v1_messages_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Message); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil } } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Field: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Field: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StringData", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMessages - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthMessages + file_uber_cadence_indexer_v1_messages_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Field); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMessages - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Data = &Field_StringData{string(dAtA[iNdEx:postIndex])} - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IntData", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMessages - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Data = &Field_IntData{v} - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BoolData", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMessages - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.Data = &Field_BoolData{b} - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BinaryData", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMessages - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthMessages - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMessages - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := make([]byte, postIndex-iNdEx) - copy(v, dAtA[iNdEx:postIndex]) - m.Data = &Field_BinaryData{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMessages(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMessages - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthMessages - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy } } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipMessages(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMessages - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMessages - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMessages - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthMessages - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupMessages - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthMessages - } - if depth == 0 { - return iNdEx, nil - } + file_uber_cadence_indexer_v1_messages_proto_msgTypes[1].OneofWrappers = []interface{}{ + (*Field_StringData)(nil), + (*Field_IntData)(nil), + (*Field_BoolData)(nil), + (*Field_BinaryData)(nil), } - return 0, io.ErrUnexpectedEOF + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_uber_cadence_indexer_v1_messages_proto_rawDesc, + NumEnums: 1, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_uber_cadence_indexer_v1_messages_proto_goTypes, + DependencyIndexes: file_uber_cadence_indexer_v1_messages_proto_depIdxs, + EnumInfos: file_uber_cadence_indexer_v1_messages_proto_enumTypes, + MessageInfos: file_uber_cadence_indexer_v1_messages_proto_msgTypes, + }.Build() + File_uber_cadence_indexer_v1_messages_proto = out.File + file_uber_cadence_indexer_v1_messages_proto_rawDesc = nil + file_uber_cadence_indexer_v1_messages_proto_goTypes = nil + file_uber_cadence_indexer_v1_messages_proto_depIdxs = nil } - -var ( - ErrInvalidLengthMessages = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowMessages = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupMessages = fmt.Errorf("proto: unexpected end of group") -) diff --git a/.gen/proto/matching/v1/service.pb.go b/.gen/proto/matching/v1/service.pb.go index 00d76732a87..7d17274b97a 100644 --- a/.gen/proto/matching/v1/service.pb.go +++ b/.gen/proto/matching/v1/service.pb.go @@ -1,134 +1,131 @@ -// The MIT License (MIT) - -// Copyright (c) 2017-2020 Uber Technologies Inc. - +// 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 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. +// 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. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.14.0 // source: uber/cadence/matching/v1/service.proto package matchingv1 import ( - bytes "bytes" - context "context" - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" reflect "reflect" - strings "strings" - time "time" - - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" - github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" - _ "github.com/golang/protobuf/ptypes/duration" - _ "github.com/golang/protobuf/ptypes/timestamp" + sync "sync" + + proto "github.com/golang/protobuf/proto" v1 "github.com/uber/cadence/.gen/proto/api/v1" v11 "github.com/uber/cadence/.gen/proto/shared/v1" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf -var _ = time.Kitchen +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// 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 +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type PollForDecisionTaskRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Request *v1.PollForDecisionTaskRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` DomainId string `protobuf:"bytes,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` PollerId string `protobuf:"bytes,3,opt,name=poller_id,json=pollerId,proto3" json:"poller_id,omitempty"` ForwardedFrom string `protobuf:"bytes,4,opt,name=forwarded_from,json=forwardedFrom,proto3" json:"forwarded_from,omitempty"` } -func (m *PollForDecisionTaskRequest) Reset() { *m = PollForDecisionTaskRequest{} } -func (*PollForDecisionTaskRequest) ProtoMessage() {} -func (*PollForDecisionTaskRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{0} -} -func (m *PollForDecisionTaskRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PollForDecisionTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PollForDecisionTaskRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *PollForDecisionTaskRequest) Reset() { + *x = PollForDecisionTaskRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_matching_v1_service_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *PollForDecisionTaskRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PollForDecisionTaskRequest.Merge(m, src) -} -func (m *PollForDecisionTaskRequest) XXX_Size() int { - return m.Size() + +func (x *PollForDecisionTaskRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PollForDecisionTaskRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PollForDecisionTaskRequest.DiscardUnknown(m) + +func (*PollForDecisionTaskRequest) ProtoMessage() {} + +func (x *PollForDecisionTaskRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_matching_v1_service_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PollForDecisionTaskRequest proto.InternalMessageInfo +// Deprecated: Use PollForDecisionTaskRequest.ProtoReflect.Descriptor instead. +func (*PollForDecisionTaskRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_matching_v1_service_proto_rawDescGZIP(), []int{0} +} -func (m *PollForDecisionTaskRequest) GetRequest() *v1.PollForDecisionTaskRequest { - if m != nil { - return m.Request +func (x *PollForDecisionTaskRequest) GetRequest() *v1.PollForDecisionTaskRequest { + if x != nil { + return x.Request } return nil } -func (m *PollForDecisionTaskRequest) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *PollForDecisionTaskRequest) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } -func (m *PollForDecisionTaskRequest) GetPollerId() string { - if m != nil { - return m.PollerId +func (x *PollForDecisionTaskRequest) GetPollerId() string { + if x != nil { + return x.PollerId } return "" } -func (m *PollForDecisionTaskRequest) GetForwardedFrom() string { - if m != nil { - return m.ForwardedFrom +func (x *PollForDecisionTaskRequest) GetForwardedFrom() string { + if x != nil { + return x.ForwardedFrom } return "" } type PollForDecisionTaskResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + TaskToken []byte `protobuf:"bytes,1,opt,name=task_token,json=taskToken,proto3" json:"task_token,omitempty"` WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` WorkflowType *v1.WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` @@ -143,8269 +140,2031 @@ type PollForDecisionTaskResponse struct { WorkflowExecutionTaskList *v1.TaskList `protobuf:"bytes,12,opt,name=workflow_execution_task_list,json=workflowExecutionTaskList,proto3" json:"workflow_execution_task_list,omitempty"` EventStoreVersion int32 `protobuf:"varint,13,opt,name=event_store_version,json=eventStoreVersion,proto3" json:"event_store_version,omitempty"` BranchToken []byte `protobuf:"bytes,14,opt,name=branch_token,json=branchToken,proto3" json:"branch_token,omitempty"` - ScheduledTime *time.Time `protobuf:"bytes,15,opt,name=scheduled_time,json=scheduledTime,proto3,stdtime" json:"scheduled_time,omitempty"` - StartedTime *time.Time `protobuf:"bytes,16,opt,name=started_time,json=startedTime,proto3,stdtime" json:"started_time,omitempty"` + ScheduledTime *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=scheduled_time,json=scheduledTime,proto3" json:"scheduled_time,omitempty"` + StartedTime *timestamppb.Timestamp `protobuf:"bytes,16,opt,name=started_time,json=startedTime,proto3" json:"started_time,omitempty"` Queries map[string]*v1.WorkflowQuery `protobuf:"bytes,17,rep,name=queries,proto3" json:"queries,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func (m *PollForDecisionTaskResponse) Reset() { *m = PollForDecisionTaskResponse{} } -func (*PollForDecisionTaskResponse) ProtoMessage() {} -func (*PollForDecisionTaskResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{1} -} -func (m *PollForDecisionTaskResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PollForDecisionTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PollForDecisionTaskResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *PollForDecisionTaskResponse) Reset() { + *x = PollForDecisionTaskResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_matching_v1_service_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *PollForDecisionTaskResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PollForDecisionTaskResponse.Merge(m, src) -} -func (m *PollForDecisionTaskResponse) XXX_Size() int { - return m.Size() + +func (x *PollForDecisionTaskResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PollForDecisionTaskResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PollForDecisionTaskResponse.DiscardUnknown(m) + +func (*PollForDecisionTaskResponse) ProtoMessage() {} + +func (x *PollForDecisionTaskResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_matching_v1_service_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PollForDecisionTaskResponse proto.InternalMessageInfo +// Deprecated: Use PollForDecisionTaskResponse.ProtoReflect.Descriptor instead. +func (*PollForDecisionTaskResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_matching_v1_service_proto_rawDescGZIP(), []int{1} +} -func (m *PollForDecisionTaskResponse) GetTaskToken() []byte { - if m != nil { - return m.TaskToken +func (x *PollForDecisionTaskResponse) GetTaskToken() []byte { + if x != nil { + return x.TaskToken } return nil } -func (m *PollForDecisionTaskResponse) GetWorkflowExecution() *v1.WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *PollForDecisionTaskResponse) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *PollForDecisionTaskResponse) GetWorkflowType() *v1.WorkflowType { - if m != nil { - return m.WorkflowType +func (x *PollForDecisionTaskResponse) GetWorkflowType() *v1.WorkflowType { + if x != nil { + return x.WorkflowType } return nil } -func (m *PollForDecisionTaskResponse) GetPreviousStartedEventId() int64 { - if m != nil { - return m.PreviousStartedEventId +func (x *PollForDecisionTaskResponse) GetPreviousStartedEventId() int64 { + if x != nil { + return x.PreviousStartedEventId } return 0 } -func (m *PollForDecisionTaskResponse) GetStartedEventId() int64 { - if m != nil { - return m.StartedEventId +func (x *PollForDecisionTaskResponse) GetStartedEventId() int64 { + if x != nil { + return x.StartedEventId } return 0 } -func (m *PollForDecisionTaskResponse) GetAttempt() int32 { - if m != nil { - return m.Attempt +func (x *PollForDecisionTaskResponse) GetAttempt() int32 { + if x != nil { + return x.Attempt } return 0 } -func (m *PollForDecisionTaskResponse) GetNextEventId() int64 { - if m != nil { - return m.NextEventId +func (x *PollForDecisionTaskResponse) GetNextEventId() int64 { + if x != nil { + return x.NextEventId } return 0 } -func (m *PollForDecisionTaskResponse) GetBacklogCountHint() int64 { - if m != nil { - return m.BacklogCountHint +func (x *PollForDecisionTaskResponse) GetBacklogCountHint() int64 { + if x != nil { + return x.BacklogCountHint } return 0 } -func (m *PollForDecisionTaskResponse) GetStickyExecutionEnabled() bool { - if m != nil { - return m.StickyExecutionEnabled +func (x *PollForDecisionTaskResponse) GetStickyExecutionEnabled() bool { + if x != nil { + return x.StickyExecutionEnabled } return false } -func (m *PollForDecisionTaskResponse) GetQuery() *v1.WorkflowQuery { - if m != nil { - return m.Query +func (x *PollForDecisionTaskResponse) GetQuery() *v1.WorkflowQuery { + if x != nil { + return x.Query } return nil } -func (m *PollForDecisionTaskResponse) GetDecisionInfo() *v11.TransientDecisionInfo { - if m != nil { - return m.DecisionInfo +func (x *PollForDecisionTaskResponse) GetDecisionInfo() *v11.TransientDecisionInfo { + if x != nil { + return x.DecisionInfo } return nil } -func (m *PollForDecisionTaskResponse) GetWorkflowExecutionTaskList() *v1.TaskList { - if m != nil { - return m.WorkflowExecutionTaskList +func (x *PollForDecisionTaskResponse) GetWorkflowExecutionTaskList() *v1.TaskList { + if x != nil { + return x.WorkflowExecutionTaskList } return nil } -func (m *PollForDecisionTaskResponse) GetEventStoreVersion() int32 { - if m != nil { - return m.EventStoreVersion +func (x *PollForDecisionTaskResponse) GetEventStoreVersion() int32 { + if x != nil { + return x.EventStoreVersion } return 0 } -func (m *PollForDecisionTaskResponse) GetBranchToken() []byte { - if m != nil { - return m.BranchToken +func (x *PollForDecisionTaskResponse) GetBranchToken() []byte { + if x != nil { + return x.BranchToken } return nil } -func (m *PollForDecisionTaskResponse) GetScheduledTime() *time.Time { - if m != nil { - return m.ScheduledTime +func (x *PollForDecisionTaskResponse) GetScheduledTime() *timestamppb.Timestamp { + if x != nil { + return x.ScheduledTime } return nil } -func (m *PollForDecisionTaskResponse) GetStartedTime() *time.Time { - if m != nil { - return m.StartedTime +func (x *PollForDecisionTaskResponse) GetStartedTime() *timestamppb.Timestamp { + if x != nil { + return x.StartedTime } return nil } -func (m *PollForDecisionTaskResponse) GetQueries() map[string]*v1.WorkflowQuery { - if m != nil { - return m.Queries +func (x *PollForDecisionTaskResponse) GetQueries() map[string]*v1.WorkflowQuery { + if x != nil { + return x.Queries } return nil } type PollForActivityTaskRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Request *v1.PollForActivityTaskRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` DomainId string `protobuf:"bytes,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` PollerId string `protobuf:"bytes,3,opt,name=poller_id,json=pollerId,proto3" json:"poller_id,omitempty"` ForwardedFrom string `protobuf:"bytes,4,opt,name=forwarded_from,json=forwardedFrom,proto3" json:"forwarded_from,omitempty"` } -func (m *PollForActivityTaskRequest) Reset() { *m = PollForActivityTaskRequest{} } -func (*PollForActivityTaskRequest) ProtoMessage() {} -func (*PollForActivityTaskRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{2} -} -func (m *PollForActivityTaskRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PollForActivityTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PollForActivityTaskRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *PollForActivityTaskRequest) Reset() { + *x = PollForActivityTaskRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_matching_v1_service_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *PollForActivityTaskRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PollForActivityTaskRequest.Merge(m, src) -} -func (m *PollForActivityTaskRequest) XXX_Size() int { - return m.Size() + +func (x *PollForActivityTaskRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PollForActivityTaskRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PollForActivityTaskRequest.DiscardUnknown(m) + +func (*PollForActivityTaskRequest) ProtoMessage() {} + +func (x *PollForActivityTaskRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_matching_v1_service_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PollForActivityTaskRequest proto.InternalMessageInfo +// Deprecated: Use PollForActivityTaskRequest.ProtoReflect.Descriptor instead. +func (*PollForActivityTaskRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_matching_v1_service_proto_rawDescGZIP(), []int{2} +} -func (m *PollForActivityTaskRequest) GetRequest() *v1.PollForActivityTaskRequest { - if m != nil { - return m.Request +func (x *PollForActivityTaskRequest) GetRequest() *v1.PollForActivityTaskRequest { + if x != nil { + return x.Request } return nil } -func (m *PollForActivityTaskRequest) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *PollForActivityTaskRequest) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } -func (m *PollForActivityTaskRequest) GetPollerId() string { - if m != nil { - return m.PollerId +func (x *PollForActivityTaskRequest) GetPollerId() string { + if x != nil { + return x.PollerId } return "" } -func (m *PollForActivityTaskRequest) GetForwardedFrom() string { - if m != nil { - return m.ForwardedFrom +func (x *PollForActivityTaskRequest) GetForwardedFrom() string { + if x != nil { + return x.ForwardedFrom } return "" } type PollForActivityTaskResponse struct { - TaskToken []byte `protobuf:"bytes,1,opt,name=task_token,json=taskToken,proto3" json:"task_token,omitempty"` - WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` - ActivityId string `protobuf:"bytes,3,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` - ActivityType *v1.ActivityType `protobuf:"bytes,4,opt,name=activity_type,json=activityType,proto3" json:"activity_type,omitempty"` - Input *v1.Payload `protobuf:"bytes,5,opt,name=input,proto3" json:"input,omitempty"` - ScheduledTime *time.Time `protobuf:"bytes,6,opt,name=scheduled_time,json=scheduledTime,proto3,stdtime" json:"scheduled_time,omitempty"` - StartedTime *time.Time `protobuf:"bytes,7,opt,name=started_time,json=startedTime,proto3,stdtime" json:"started_time,omitempty"` - ScheduleToCloseTimeout *time.Duration `protobuf:"bytes,8,opt,name=schedule_to_close_timeout,json=scheduleToCloseTimeout,proto3,stdduration" json:"schedule_to_close_timeout,omitempty"` - StartToCloseTimeout *time.Duration `protobuf:"bytes,9,opt,name=start_to_close_timeout,json=startToCloseTimeout,proto3,stdduration" json:"start_to_close_timeout,omitempty"` - HeartbeatTimeout *time.Duration `protobuf:"bytes,10,opt,name=heartbeat_timeout,json=heartbeatTimeout,proto3,stdduration" json:"heartbeat_timeout,omitempty"` - Attempt int32 `protobuf:"varint,11,opt,name=attempt,proto3" json:"attempt,omitempty"` - ScheduledTimeOfThisAttempt *time.Time `protobuf:"bytes,12,opt,name=scheduled_time_of_this_attempt,json=scheduledTimeOfThisAttempt,proto3,stdtime" json:"scheduled_time_of_this_attempt,omitempty"` - HeartbeatDetails *v1.Payload `protobuf:"bytes,13,opt,name=heartbeat_details,json=heartbeatDetails,proto3" json:"heartbeat_details,omitempty"` - WorkflowType *v1.WorkflowType `protobuf:"bytes,14,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` - WorkflowDomain string `protobuf:"bytes,15,opt,name=workflow_domain,json=workflowDomain,proto3" json:"workflow_domain,omitempty"` - Header *v1.Header `protobuf:"bytes,16,opt,name=header,proto3" json:"header,omitempty"` -} - -func (m *PollForActivityTaskResponse) Reset() { *m = PollForActivityTaskResponse{} } -func (*PollForActivityTaskResponse) ProtoMessage() {} -func (*PollForActivityTaskResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{3} -} -func (m *PollForActivityTaskResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PollForActivityTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PollForActivityTaskResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TaskToken []byte `protobuf:"bytes,1,opt,name=task_token,json=taskToken,proto3" json:"task_token,omitempty"` + WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` + ActivityId string `protobuf:"bytes,3,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` + ActivityType *v1.ActivityType `protobuf:"bytes,4,opt,name=activity_type,json=activityType,proto3" json:"activity_type,omitempty"` + Input *v1.Payload `protobuf:"bytes,5,opt,name=input,proto3" json:"input,omitempty"` + ScheduledTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=scheduled_time,json=scheduledTime,proto3" json:"scheduled_time,omitempty"` + StartedTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=started_time,json=startedTime,proto3" json:"started_time,omitempty"` + ScheduleToCloseTimeout *durationpb.Duration `protobuf:"bytes,8,opt,name=schedule_to_close_timeout,json=scheduleToCloseTimeout,proto3" json:"schedule_to_close_timeout,omitempty"` + StartToCloseTimeout *durationpb.Duration `protobuf:"bytes,9,opt,name=start_to_close_timeout,json=startToCloseTimeout,proto3" json:"start_to_close_timeout,omitempty"` + HeartbeatTimeout *durationpb.Duration `protobuf:"bytes,10,opt,name=heartbeat_timeout,json=heartbeatTimeout,proto3" json:"heartbeat_timeout,omitempty"` + Attempt int32 `protobuf:"varint,11,opt,name=attempt,proto3" json:"attempt,omitempty"` + ScheduledTimeOfThisAttempt *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=scheduled_time_of_this_attempt,json=scheduledTimeOfThisAttempt,proto3" json:"scheduled_time_of_this_attempt,omitempty"` + HeartbeatDetails *v1.Payload `protobuf:"bytes,13,opt,name=heartbeat_details,json=heartbeatDetails,proto3" json:"heartbeat_details,omitempty"` + WorkflowType *v1.WorkflowType `protobuf:"bytes,14,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` + WorkflowDomain string `protobuf:"bytes,15,opt,name=workflow_domain,json=workflowDomain,proto3" json:"workflow_domain,omitempty"` + Header *v1.Header `protobuf:"bytes,16,opt,name=header,proto3" json:"header,omitempty"` } -func (m *PollForActivityTaskResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PollForActivityTaskResponse.Merge(m, src) + +func (x *PollForActivityTaskResponse) Reset() { + *x = PollForActivityTaskResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_matching_v1_service_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *PollForActivityTaskResponse) XXX_Size() int { - return m.Size() + +func (x *PollForActivityTaskResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PollForActivityTaskResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PollForActivityTaskResponse.DiscardUnknown(m) + +func (*PollForActivityTaskResponse) ProtoMessage() {} + +func (x *PollForActivityTaskResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_matching_v1_service_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PollForActivityTaskResponse proto.InternalMessageInfo +// Deprecated: Use PollForActivityTaskResponse.ProtoReflect.Descriptor instead. +func (*PollForActivityTaskResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_matching_v1_service_proto_rawDescGZIP(), []int{3} +} -func (m *PollForActivityTaskResponse) GetTaskToken() []byte { - if m != nil { - return m.TaskToken +func (x *PollForActivityTaskResponse) GetTaskToken() []byte { + if x != nil { + return x.TaskToken } return nil } -func (m *PollForActivityTaskResponse) GetWorkflowExecution() *v1.WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *PollForActivityTaskResponse) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *PollForActivityTaskResponse) GetActivityId() string { - if m != nil { - return m.ActivityId +func (x *PollForActivityTaskResponse) GetActivityId() string { + if x != nil { + return x.ActivityId } return "" } -func (m *PollForActivityTaskResponse) GetActivityType() *v1.ActivityType { - if m != nil { - return m.ActivityType +func (x *PollForActivityTaskResponse) GetActivityType() *v1.ActivityType { + if x != nil { + return x.ActivityType } return nil } -func (m *PollForActivityTaskResponse) GetInput() *v1.Payload { - if m != nil { - return m.Input +func (x *PollForActivityTaskResponse) GetInput() *v1.Payload { + if x != nil { + return x.Input } return nil } -func (m *PollForActivityTaskResponse) GetScheduledTime() *time.Time { - if m != nil { - return m.ScheduledTime +func (x *PollForActivityTaskResponse) GetScheduledTime() *timestamppb.Timestamp { + if x != nil { + return x.ScheduledTime } return nil } -func (m *PollForActivityTaskResponse) GetStartedTime() *time.Time { - if m != nil { - return m.StartedTime +func (x *PollForActivityTaskResponse) GetStartedTime() *timestamppb.Timestamp { + if x != nil { + return x.StartedTime } return nil } -func (m *PollForActivityTaskResponse) GetScheduleToCloseTimeout() *time.Duration { - if m != nil { - return m.ScheduleToCloseTimeout +func (x *PollForActivityTaskResponse) GetScheduleToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.ScheduleToCloseTimeout } return nil } -func (m *PollForActivityTaskResponse) GetStartToCloseTimeout() *time.Duration { - if m != nil { - return m.StartToCloseTimeout +func (x *PollForActivityTaskResponse) GetStartToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.StartToCloseTimeout } return nil } -func (m *PollForActivityTaskResponse) GetHeartbeatTimeout() *time.Duration { - if m != nil { - return m.HeartbeatTimeout +func (x *PollForActivityTaskResponse) GetHeartbeatTimeout() *durationpb.Duration { + if x != nil { + return x.HeartbeatTimeout } return nil } -func (m *PollForActivityTaskResponse) GetAttempt() int32 { - if m != nil { - return m.Attempt +func (x *PollForActivityTaskResponse) GetAttempt() int32 { + if x != nil { + return x.Attempt } return 0 } -func (m *PollForActivityTaskResponse) GetScheduledTimeOfThisAttempt() *time.Time { - if m != nil { - return m.ScheduledTimeOfThisAttempt +func (x *PollForActivityTaskResponse) GetScheduledTimeOfThisAttempt() *timestamppb.Timestamp { + if x != nil { + return x.ScheduledTimeOfThisAttempt } return nil } -func (m *PollForActivityTaskResponse) GetHeartbeatDetails() *v1.Payload { - if m != nil { - return m.HeartbeatDetails +func (x *PollForActivityTaskResponse) GetHeartbeatDetails() *v1.Payload { + if x != nil { + return x.HeartbeatDetails } return nil } -func (m *PollForActivityTaskResponse) GetWorkflowType() *v1.WorkflowType { - if m != nil { - return m.WorkflowType +func (x *PollForActivityTaskResponse) GetWorkflowType() *v1.WorkflowType { + if x != nil { + return x.WorkflowType } return nil } -func (m *PollForActivityTaskResponse) GetWorkflowDomain() string { - if m != nil { - return m.WorkflowDomain +func (x *PollForActivityTaskResponse) GetWorkflowDomain() string { + if x != nil { + return x.WorkflowDomain } return "" } -func (m *PollForActivityTaskResponse) GetHeader() *v1.Header { - if m != nil { - return m.Header +func (x *PollForActivityTaskResponse) GetHeader() *v1.Header { + if x != nil { + return x.Header } return nil } type AddDecisionTaskRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + DomainId string `protobuf:"bytes,1,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` TaskList *v1.TaskList `protobuf:"bytes,3,opt,name=task_list,json=taskList,proto3" json:"task_list,omitempty"` ScheduleId int64 `protobuf:"varint,4,opt,name=schedule_id,json=scheduleId,proto3" json:"schedule_id,omitempty"` - ScheduleToStartTimeout *time.Duration `protobuf:"bytes,5,opt,name=schedule_to_start_timeout,json=scheduleToStartTimeout,proto3,stdduration" json:"schedule_to_start_timeout,omitempty"` + ScheduleToStartTimeout *durationpb.Duration `protobuf:"bytes,5,opt,name=schedule_to_start_timeout,json=scheduleToStartTimeout,proto3" json:"schedule_to_start_timeout,omitempty"` Source v11.TaskSource `protobuf:"varint,6,opt,name=source,proto3,enum=uber.cadence.shared.v1.TaskSource" json:"source,omitempty"` ForwardedFrom string `protobuf:"bytes,7,opt,name=forwarded_from,json=forwardedFrom,proto3" json:"forwarded_from,omitempty"` } -func (m *AddDecisionTaskRequest) Reset() { *m = AddDecisionTaskRequest{} } -func (*AddDecisionTaskRequest) ProtoMessage() {} -func (*AddDecisionTaskRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{4} -} -func (m *AddDecisionTaskRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AddDecisionTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AddDecisionTaskRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *AddDecisionTaskRequest) Reset() { + *x = AddDecisionTaskRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_matching_v1_service_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *AddDecisionTaskRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_AddDecisionTaskRequest.Merge(m, src) -} -func (m *AddDecisionTaskRequest) XXX_Size() int { - return m.Size() + +func (x *AddDecisionTaskRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AddDecisionTaskRequest) XXX_DiscardUnknown() { - xxx_messageInfo_AddDecisionTaskRequest.DiscardUnknown(m) + +func (*AddDecisionTaskRequest) ProtoMessage() {} + +func (x *AddDecisionTaskRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_matching_v1_service_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_AddDecisionTaskRequest proto.InternalMessageInfo +// Deprecated: Use AddDecisionTaskRequest.ProtoReflect.Descriptor instead. +func (*AddDecisionTaskRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_matching_v1_service_proto_rawDescGZIP(), []int{4} +} -func (m *AddDecisionTaskRequest) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *AddDecisionTaskRequest) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } -func (m *AddDecisionTaskRequest) GetWorkflowExecution() *v1.WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *AddDecisionTaskRequest) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *AddDecisionTaskRequest) GetTaskList() *v1.TaskList { - if m != nil { - return m.TaskList +func (x *AddDecisionTaskRequest) GetTaskList() *v1.TaskList { + if x != nil { + return x.TaskList } return nil } -func (m *AddDecisionTaskRequest) GetScheduleId() int64 { - if m != nil { - return m.ScheduleId +func (x *AddDecisionTaskRequest) GetScheduleId() int64 { + if x != nil { + return x.ScheduleId } return 0 } -func (m *AddDecisionTaskRequest) GetScheduleToStartTimeout() *time.Duration { - if m != nil { - return m.ScheduleToStartTimeout +func (x *AddDecisionTaskRequest) GetScheduleToStartTimeout() *durationpb.Duration { + if x != nil { + return x.ScheduleToStartTimeout } return nil } -func (m *AddDecisionTaskRequest) GetSource() v11.TaskSource { - if m != nil { - return m.Source +func (x *AddDecisionTaskRequest) GetSource() v11.TaskSource { + if x != nil { + return x.Source } - return v11.TASK_SOURCE_INVALID + return v11.TaskSource_TASK_SOURCE_INVALID } -func (m *AddDecisionTaskRequest) GetForwardedFrom() string { - if m != nil { - return m.ForwardedFrom +func (x *AddDecisionTaskRequest) GetForwardedFrom() string { + if x != nil { + return x.ForwardedFrom } return "" } type AddDecisionTaskResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *AddDecisionTaskResponse) Reset() { *m = AddDecisionTaskResponse{} } -func (*AddDecisionTaskResponse) ProtoMessage() {} -func (*AddDecisionTaskResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{5} -} -func (m *AddDecisionTaskResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AddDecisionTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AddDecisionTaskResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *AddDecisionTaskResponse) Reset() { + *x = AddDecisionTaskResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_matching_v1_service_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *AddDecisionTaskResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_AddDecisionTaskResponse.Merge(m, src) -} -func (m *AddDecisionTaskResponse) XXX_Size() int { - return m.Size() + +func (x *AddDecisionTaskResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AddDecisionTaskResponse) XXX_DiscardUnknown() { - xxx_messageInfo_AddDecisionTaskResponse.DiscardUnknown(m) + +func (*AddDecisionTaskResponse) ProtoMessage() {} + +func (x *AddDecisionTaskResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_matching_v1_service_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_AddDecisionTaskResponse proto.InternalMessageInfo +// Deprecated: Use AddDecisionTaskResponse.ProtoReflect.Descriptor instead. +func (*AddDecisionTaskResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_matching_v1_service_proto_rawDescGZIP(), []int{5} +} type AddActivityTaskRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + DomainId string `protobuf:"bytes,1,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` SourceDomainId string `protobuf:"bytes,3,opt,name=source_domain_id,json=sourceDomainId,proto3" json:"source_domain_id,omitempty"` TaskList *v1.TaskList `protobuf:"bytes,4,opt,name=task_list,json=taskList,proto3" json:"task_list,omitempty"` ScheduleId int64 `protobuf:"varint,5,opt,name=schedule_id,json=scheduleId,proto3" json:"schedule_id,omitempty"` - ScheduleToStartTimeout *time.Duration `protobuf:"bytes,6,opt,name=schedule_to_start_timeout,json=scheduleToStartTimeout,proto3,stdduration" json:"schedule_to_start_timeout,omitempty"` + ScheduleToStartTimeout *durationpb.Duration `protobuf:"bytes,6,opt,name=schedule_to_start_timeout,json=scheduleToStartTimeout,proto3" json:"schedule_to_start_timeout,omitempty"` Source v11.TaskSource `protobuf:"varint,7,opt,name=source,proto3,enum=uber.cadence.shared.v1.TaskSource" json:"source,omitempty"` ForwardedFrom string `protobuf:"bytes,8,opt,name=forwarded_from,json=forwardedFrom,proto3" json:"forwarded_from,omitempty"` } -func (m *AddActivityTaskRequest) Reset() { *m = AddActivityTaskRequest{} } -func (*AddActivityTaskRequest) ProtoMessage() {} -func (*AddActivityTaskRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{6} -} -func (m *AddActivityTaskRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AddActivityTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AddActivityTaskRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *AddActivityTaskRequest) Reset() { + *x = AddActivityTaskRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_matching_v1_service_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *AddActivityTaskRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_AddActivityTaskRequest.Merge(m, src) -} -func (m *AddActivityTaskRequest) XXX_Size() int { - return m.Size() + +func (x *AddActivityTaskRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AddActivityTaskRequest) XXX_DiscardUnknown() { - xxx_messageInfo_AddActivityTaskRequest.DiscardUnknown(m) + +func (*AddActivityTaskRequest) ProtoMessage() {} + +func (x *AddActivityTaskRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_matching_v1_service_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_AddActivityTaskRequest proto.InternalMessageInfo +// Deprecated: Use AddActivityTaskRequest.ProtoReflect.Descriptor instead. +func (*AddActivityTaskRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_matching_v1_service_proto_rawDescGZIP(), []int{6} +} -func (m *AddActivityTaskRequest) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *AddActivityTaskRequest) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } -func (m *AddActivityTaskRequest) GetWorkflowExecution() *v1.WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *AddActivityTaskRequest) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *AddActivityTaskRequest) GetSourceDomainId() string { - if m != nil { - return m.SourceDomainId +func (x *AddActivityTaskRequest) GetSourceDomainId() string { + if x != nil { + return x.SourceDomainId } return "" } -func (m *AddActivityTaskRequest) GetTaskList() *v1.TaskList { - if m != nil { - return m.TaskList +func (x *AddActivityTaskRequest) GetTaskList() *v1.TaskList { + if x != nil { + return x.TaskList } return nil } -func (m *AddActivityTaskRequest) GetScheduleId() int64 { - if m != nil { - return m.ScheduleId +func (x *AddActivityTaskRequest) GetScheduleId() int64 { + if x != nil { + return x.ScheduleId } return 0 } -func (m *AddActivityTaskRequest) GetScheduleToStartTimeout() *time.Duration { - if m != nil { - return m.ScheduleToStartTimeout +func (x *AddActivityTaskRequest) GetScheduleToStartTimeout() *durationpb.Duration { + if x != nil { + return x.ScheduleToStartTimeout } return nil } -func (m *AddActivityTaskRequest) GetSource() v11.TaskSource { - if m != nil { - return m.Source +func (x *AddActivityTaskRequest) GetSource() v11.TaskSource { + if x != nil { + return x.Source } - return v11.TASK_SOURCE_INVALID + return v11.TaskSource_TASK_SOURCE_INVALID } -func (m *AddActivityTaskRequest) GetForwardedFrom() string { - if m != nil { - return m.ForwardedFrom +func (x *AddActivityTaskRequest) GetForwardedFrom() string { + if x != nil { + return x.ForwardedFrom } return "" } type AddActivityTaskResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *AddActivityTaskResponse) Reset() { *m = AddActivityTaskResponse{} } -func (*AddActivityTaskResponse) ProtoMessage() {} -func (*AddActivityTaskResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{7} -} -func (m *AddActivityTaskResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AddActivityTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AddActivityTaskResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *AddActivityTaskResponse) Reset() { + *x = AddActivityTaskResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_matching_v1_service_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *AddActivityTaskResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_AddActivityTaskResponse.Merge(m, src) -} -func (m *AddActivityTaskResponse) XXX_Size() int { - return m.Size() + +func (x *AddActivityTaskResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AddActivityTaskResponse) XXX_DiscardUnknown() { - xxx_messageInfo_AddActivityTaskResponse.DiscardUnknown(m) + +func (*AddActivityTaskResponse) ProtoMessage() {} + +func (x *AddActivityTaskResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_matching_v1_service_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_AddActivityTaskResponse proto.InternalMessageInfo +// Deprecated: Use AddActivityTaskResponse.ProtoReflect.Descriptor instead. +func (*AddActivityTaskResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_matching_v1_service_proto_rawDescGZIP(), []int{7} +} type QueryWorkflowRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Request *v1.QueryWorkflowRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` DomainId string `protobuf:"bytes,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` TaskList *v1.TaskList `protobuf:"bytes,3,opt,name=task_list,json=taskList,proto3" json:"task_list,omitempty"` ForwardedFrom string `protobuf:"bytes,4,opt,name=forwarded_from,json=forwardedFrom,proto3" json:"forwarded_from,omitempty"` } -func (m *QueryWorkflowRequest) Reset() { *m = QueryWorkflowRequest{} } -func (*QueryWorkflowRequest) ProtoMessage() {} -func (*QueryWorkflowRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{8} -} -func (m *QueryWorkflowRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryWorkflowRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryWorkflowRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *QueryWorkflowRequest) Reset() { + *x = QueryWorkflowRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_matching_v1_service_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *QueryWorkflowRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryWorkflowRequest.Merge(m, src) -} -func (m *QueryWorkflowRequest) XXX_Size() int { - return m.Size() + +func (x *QueryWorkflowRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *QueryWorkflowRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryWorkflowRequest.DiscardUnknown(m) + +func (*QueryWorkflowRequest) ProtoMessage() {} + +func (x *QueryWorkflowRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_matching_v1_service_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_QueryWorkflowRequest proto.InternalMessageInfo +// Deprecated: Use QueryWorkflowRequest.ProtoReflect.Descriptor instead. +func (*QueryWorkflowRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_matching_v1_service_proto_rawDescGZIP(), []int{8} +} -func (m *QueryWorkflowRequest) GetRequest() *v1.QueryWorkflowRequest { - if m != nil { - return m.Request +func (x *QueryWorkflowRequest) GetRequest() *v1.QueryWorkflowRequest { + if x != nil { + return x.Request } return nil } -func (m *QueryWorkflowRequest) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *QueryWorkflowRequest) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } -func (m *QueryWorkflowRequest) GetTaskList() *v1.TaskList { - if m != nil { - return m.TaskList +func (x *QueryWorkflowRequest) GetTaskList() *v1.TaskList { + if x != nil { + return x.TaskList } return nil } -func (m *QueryWorkflowRequest) GetForwardedFrom() string { - if m != nil { - return m.ForwardedFrom +func (x *QueryWorkflowRequest) GetForwardedFrom() string { + if x != nil { + return x.ForwardedFrom } return "" } type QueryWorkflowResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + QueryResult *v1.Payload `protobuf:"bytes,1,opt,name=query_result,json=queryResult,proto3" json:"query_result,omitempty"` QueryRejected *v1.QueryRejected `protobuf:"bytes,2,opt,name=query_rejected,json=queryRejected,proto3" json:"query_rejected,omitempty"` } -func (m *QueryWorkflowResponse) Reset() { *m = QueryWorkflowResponse{} } -func (*QueryWorkflowResponse) ProtoMessage() {} -func (*QueryWorkflowResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{9} -} -func (m *QueryWorkflowResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryWorkflowResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryWorkflowResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *QueryWorkflowResponse) Reset() { + *x = QueryWorkflowResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_matching_v1_service_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *QueryWorkflowResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryWorkflowResponse.Merge(m, src) -} -func (m *QueryWorkflowResponse) XXX_Size() int { - return m.Size() + +func (x *QueryWorkflowResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *QueryWorkflowResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryWorkflowResponse.DiscardUnknown(m) + +func (*QueryWorkflowResponse) ProtoMessage() {} + +func (x *QueryWorkflowResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_matching_v1_service_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_QueryWorkflowResponse proto.InternalMessageInfo +// Deprecated: Use QueryWorkflowResponse.ProtoReflect.Descriptor instead. +func (*QueryWorkflowResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_matching_v1_service_proto_rawDescGZIP(), []int{9} +} -func (m *QueryWorkflowResponse) GetQueryResult() *v1.Payload { - if m != nil { - return m.QueryResult +func (x *QueryWorkflowResponse) GetQueryResult() *v1.Payload { + if x != nil { + return x.QueryResult } return nil } -func (m *QueryWorkflowResponse) GetQueryRejected() *v1.QueryRejected { - if m != nil { - return m.QueryRejected +func (x *QueryWorkflowResponse) GetQueryRejected() *v1.QueryRejected { + if x != nil { + return x.QueryRejected } return nil } type RespondQueryTaskCompletedRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Request *v1.RespondQueryTaskCompletedRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` DomainId string `protobuf:"bytes,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` TaskList *v1.TaskList `protobuf:"bytes,3,opt,name=task_list,json=taskList,proto3" json:"task_list,omitempty"` TaskId string `protobuf:"bytes,4,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` } -func (m *RespondQueryTaskCompletedRequest) Reset() { *m = RespondQueryTaskCompletedRequest{} } -func (*RespondQueryTaskCompletedRequest) ProtoMessage() {} -func (*RespondQueryTaskCompletedRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{10} -} -func (m *RespondQueryTaskCompletedRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RespondQueryTaskCompletedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RespondQueryTaskCompletedRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RespondQueryTaskCompletedRequest) Reset() { + *x = RespondQueryTaskCompletedRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_matching_v1_service_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RespondQueryTaskCompletedRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RespondQueryTaskCompletedRequest.Merge(m, src) -} -func (m *RespondQueryTaskCompletedRequest) XXX_Size() int { - return m.Size() + +func (x *RespondQueryTaskCompletedRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RespondQueryTaskCompletedRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RespondQueryTaskCompletedRequest.DiscardUnknown(m) + +func (*RespondQueryTaskCompletedRequest) ProtoMessage() {} + +func (x *RespondQueryTaskCompletedRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_matching_v1_service_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RespondQueryTaskCompletedRequest proto.InternalMessageInfo +// Deprecated: Use RespondQueryTaskCompletedRequest.ProtoReflect.Descriptor instead. +func (*RespondQueryTaskCompletedRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_matching_v1_service_proto_rawDescGZIP(), []int{10} +} -func (m *RespondQueryTaskCompletedRequest) GetRequest() *v1.RespondQueryTaskCompletedRequest { - if m != nil { - return m.Request +func (x *RespondQueryTaskCompletedRequest) GetRequest() *v1.RespondQueryTaskCompletedRequest { + if x != nil { + return x.Request } return nil } -func (m *RespondQueryTaskCompletedRequest) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *RespondQueryTaskCompletedRequest) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } -func (m *RespondQueryTaskCompletedRequest) GetTaskList() *v1.TaskList { - if m != nil { - return m.TaskList +func (x *RespondQueryTaskCompletedRequest) GetTaskList() *v1.TaskList { + if x != nil { + return x.TaskList } return nil } -func (m *RespondQueryTaskCompletedRequest) GetTaskId() string { - if m != nil { - return m.TaskId +func (x *RespondQueryTaskCompletedRequest) GetTaskId() string { + if x != nil { + return x.TaskId } return "" } type RespondQueryTaskCompletedResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *RespondQueryTaskCompletedResponse) Reset() { *m = RespondQueryTaskCompletedResponse{} } -func (*RespondQueryTaskCompletedResponse) ProtoMessage() {} -func (*RespondQueryTaskCompletedResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{11} -} -func (m *RespondQueryTaskCompletedResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RespondQueryTaskCompletedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RespondQueryTaskCompletedResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RespondQueryTaskCompletedResponse) Reset() { + *x = RespondQueryTaskCompletedResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_matching_v1_service_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RespondQueryTaskCompletedResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RespondQueryTaskCompletedResponse.Merge(m, src) -} -func (m *RespondQueryTaskCompletedResponse) XXX_Size() int { - return m.Size() + +func (x *RespondQueryTaskCompletedResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RespondQueryTaskCompletedResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RespondQueryTaskCompletedResponse.DiscardUnknown(m) + +func (*RespondQueryTaskCompletedResponse) ProtoMessage() {} + +func (x *RespondQueryTaskCompletedResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_matching_v1_service_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RespondQueryTaskCompletedResponse proto.InternalMessageInfo +// Deprecated: Use RespondQueryTaskCompletedResponse.ProtoReflect.Descriptor instead. +func (*RespondQueryTaskCompletedResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_matching_v1_service_proto_rawDescGZIP(), []int{11} +} type CancelOutstandingPollRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + DomainId string `protobuf:"bytes,1,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` PollerId string `protobuf:"bytes,2,opt,name=poller_id,json=pollerId,proto3" json:"poller_id,omitempty"` TaskListType v1.TaskListType `protobuf:"varint,3,opt,name=task_list_type,json=taskListType,proto3,enum=uber.cadence.api.v1.TaskListType" json:"task_list_type,omitempty"` TaskList *v1.TaskList `protobuf:"bytes,4,opt,name=task_list,json=taskList,proto3" json:"task_list,omitempty"` } -func (m *CancelOutstandingPollRequest) Reset() { *m = CancelOutstandingPollRequest{} } -func (*CancelOutstandingPollRequest) ProtoMessage() {} -func (*CancelOutstandingPollRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{12} -} -func (m *CancelOutstandingPollRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CancelOutstandingPollRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CancelOutstandingPollRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *CancelOutstandingPollRequest) Reset() { + *x = CancelOutstandingPollRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_matching_v1_service_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *CancelOutstandingPollRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CancelOutstandingPollRequest.Merge(m, src) -} -func (m *CancelOutstandingPollRequest) XXX_Size() int { - return m.Size() + +func (x *CancelOutstandingPollRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CancelOutstandingPollRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CancelOutstandingPollRequest.DiscardUnknown(m) + +func (*CancelOutstandingPollRequest) ProtoMessage() {} + +func (x *CancelOutstandingPollRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_matching_v1_service_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CancelOutstandingPollRequest proto.InternalMessageInfo +// Deprecated: Use CancelOutstandingPollRequest.ProtoReflect.Descriptor instead. +func (*CancelOutstandingPollRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_matching_v1_service_proto_rawDescGZIP(), []int{12} +} -func (m *CancelOutstandingPollRequest) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *CancelOutstandingPollRequest) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } -func (m *CancelOutstandingPollRequest) GetPollerId() string { - if m != nil { - return m.PollerId +func (x *CancelOutstandingPollRequest) GetPollerId() string { + if x != nil { + return x.PollerId } return "" } -func (m *CancelOutstandingPollRequest) GetTaskListType() v1.TaskListType { - if m != nil { - return m.TaskListType +func (x *CancelOutstandingPollRequest) GetTaskListType() v1.TaskListType { + if x != nil { + return x.TaskListType } - return v1.TASK_LIST_TYPE_INVALID + return v1.TaskListType_TASK_LIST_TYPE_INVALID } -func (m *CancelOutstandingPollRequest) GetTaskList() *v1.TaskList { - if m != nil { - return m.TaskList +func (x *CancelOutstandingPollRequest) GetTaskList() *v1.TaskList { + if x != nil { + return x.TaskList } return nil } type CancelOutstandingPollResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *CancelOutstandingPollResponse) Reset() { *m = CancelOutstandingPollResponse{} } -func (*CancelOutstandingPollResponse) ProtoMessage() {} -func (*CancelOutstandingPollResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{13} -} -func (m *CancelOutstandingPollResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CancelOutstandingPollResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CancelOutstandingPollResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *CancelOutstandingPollResponse) Reset() { + *x = CancelOutstandingPollResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_matching_v1_service_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *CancelOutstandingPollResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CancelOutstandingPollResponse.Merge(m, src) -} -func (m *CancelOutstandingPollResponse) XXX_Size() int { - return m.Size() + +func (x *CancelOutstandingPollResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CancelOutstandingPollResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CancelOutstandingPollResponse.DiscardUnknown(m) + +func (*CancelOutstandingPollResponse) ProtoMessage() {} + +func (x *CancelOutstandingPollResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_matching_v1_service_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CancelOutstandingPollResponse proto.InternalMessageInfo +// Deprecated: Use CancelOutstandingPollResponse.ProtoReflect.Descriptor instead. +func (*CancelOutstandingPollResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_matching_v1_service_proto_rawDescGZIP(), []int{13} +} type DescribeTaskListRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Request *v1.DescribeTaskListRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` DomainId string `protobuf:"bytes,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` } -func (m *DescribeTaskListRequest) Reset() { *m = DescribeTaskListRequest{} } -func (*DescribeTaskListRequest) ProtoMessage() {} -func (*DescribeTaskListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{14} -} -func (m *DescribeTaskListRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DescribeTaskListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DescribeTaskListRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *DescribeTaskListRequest) Reset() { + *x = DescribeTaskListRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_matching_v1_service_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *DescribeTaskListRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescribeTaskListRequest.Merge(m, src) -} -func (m *DescribeTaskListRequest) XXX_Size() int { - return m.Size() + +func (x *DescribeTaskListRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DescribeTaskListRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DescribeTaskListRequest.DiscardUnknown(m) + +func (*DescribeTaskListRequest) ProtoMessage() {} + +func (x *DescribeTaskListRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_matching_v1_service_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DescribeTaskListRequest proto.InternalMessageInfo +// Deprecated: Use DescribeTaskListRequest.ProtoReflect.Descriptor instead. +func (*DescribeTaskListRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_matching_v1_service_proto_rawDescGZIP(), []int{14} +} -func (m *DescribeTaskListRequest) GetRequest() *v1.DescribeTaskListRequest { - if m != nil { - return m.Request +func (x *DescribeTaskListRequest) GetRequest() *v1.DescribeTaskListRequest { + if x != nil { + return x.Request } return nil } -func (m *DescribeTaskListRequest) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *DescribeTaskListRequest) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } type DescribeTaskListResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Pollers []*v1.PollerInfo `protobuf:"bytes,1,rep,name=pollers,proto3" json:"pollers,omitempty"` TaskListStatus *v1.TaskListStatus `protobuf:"bytes,2,opt,name=task_list_status,json=taskListStatus,proto3" json:"task_list_status,omitempty"` } -func (m *DescribeTaskListResponse) Reset() { *m = DescribeTaskListResponse{} } -func (*DescribeTaskListResponse) ProtoMessage() {} -func (*DescribeTaskListResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{15} -} -func (m *DescribeTaskListResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DescribeTaskListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DescribeTaskListResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *DescribeTaskListResponse) Reset() { + *x = DescribeTaskListResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_matching_v1_service_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *DescribeTaskListResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescribeTaskListResponse.Merge(m, src) -} -func (m *DescribeTaskListResponse) XXX_Size() int { - return m.Size() + +func (x *DescribeTaskListResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DescribeTaskListResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DescribeTaskListResponse.DiscardUnknown(m) + +func (*DescribeTaskListResponse) ProtoMessage() {} + +func (x *DescribeTaskListResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_matching_v1_service_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DescribeTaskListResponse proto.InternalMessageInfo +// Deprecated: Use DescribeTaskListResponse.ProtoReflect.Descriptor instead. +func (*DescribeTaskListResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_matching_v1_service_proto_rawDescGZIP(), []int{15} +} -func (m *DescribeTaskListResponse) GetPollers() []*v1.PollerInfo { - if m != nil { - return m.Pollers +func (x *DescribeTaskListResponse) GetPollers() []*v1.PollerInfo { + if x != nil { + return x.Pollers } return nil } -func (m *DescribeTaskListResponse) GetTaskListStatus() *v1.TaskListStatus { - if m != nil { - return m.TaskListStatus +func (x *DescribeTaskListResponse) GetTaskListStatus() *v1.TaskListStatus { + if x != nil { + return x.TaskListStatus } return nil } type ListTaskListPartitionsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` TaskList *v1.TaskList `protobuf:"bytes,2,opt,name=task_list,json=taskList,proto3" json:"task_list,omitempty"` } -func (m *ListTaskListPartitionsRequest) Reset() { *m = ListTaskListPartitionsRequest{} } -func (*ListTaskListPartitionsRequest) ProtoMessage() {} -func (*ListTaskListPartitionsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{16} -} -func (m *ListTaskListPartitionsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ListTaskListPartitionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListTaskListPartitionsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ListTaskListPartitionsRequest) Reset() { + *x = ListTaskListPartitionsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_matching_v1_service_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ListTaskListPartitionsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListTaskListPartitionsRequest.Merge(m, src) -} -func (m *ListTaskListPartitionsRequest) XXX_Size() int { - return m.Size() + +func (x *ListTaskListPartitionsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListTaskListPartitionsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListTaskListPartitionsRequest.DiscardUnknown(m) + +func (*ListTaskListPartitionsRequest) ProtoMessage() {} + +func (x *ListTaskListPartitionsRequest) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_matching_v1_service_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ListTaskListPartitionsRequest proto.InternalMessageInfo +// Deprecated: Use ListTaskListPartitionsRequest.ProtoReflect.Descriptor instead. +func (*ListTaskListPartitionsRequest) Descriptor() ([]byte, []int) { + return file_uber_cadence_matching_v1_service_proto_rawDescGZIP(), []int{16} +} -func (m *ListTaskListPartitionsRequest) GetDomain() string { - if m != nil { - return m.Domain +func (x *ListTaskListPartitionsRequest) GetDomain() string { + if x != nil { + return x.Domain } return "" } -func (m *ListTaskListPartitionsRequest) GetTaskList() *v1.TaskList { - if m != nil { - return m.TaskList +func (x *ListTaskListPartitionsRequest) GetTaskList() *v1.TaskList { + if x != nil { + return x.TaskList } return nil } type ListTaskListPartitionsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + ActivityTaskListPartitions []*v1.TaskListPartitionMetadata `protobuf:"bytes,1,rep,name=activity_task_list_partitions,json=activityTaskListPartitions,proto3" json:"activity_task_list_partitions,omitempty"` DecisionTaskListPartitions []*v1.TaskListPartitionMetadata `protobuf:"bytes,2,rep,name=decision_task_list_partitions,json=decisionTaskListPartitions,proto3" json:"decision_task_list_partitions,omitempty"` } -func (m *ListTaskListPartitionsResponse) Reset() { *m = ListTaskListPartitionsResponse{} } -func (*ListTaskListPartitionsResponse) ProtoMessage() {} -func (*ListTaskListPartitionsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_826e827d3aabf7fc, []int{17} -} -func (m *ListTaskListPartitionsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ListTaskListPartitionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListTaskListPartitionsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ListTaskListPartitionsResponse) Reset() { + *x = ListTaskListPartitionsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_matching_v1_service_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ListTaskListPartitionsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListTaskListPartitionsResponse.Merge(m, src) -} -func (m *ListTaskListPartitionsResponse) XXX_Size() int { - return m.Size() -} -func (m *ListTaskListPartitionsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListTaskListPartitionsResponse.DiscardUnknown(m) + +func (x *ListTaskListPartitionsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ListTaskListPartitionsResponse proto.InternalMessageInfo +func (*ListTaskListPartitionsResponse) ProtoMessage() {} -func (m *ListTaskListPartitionsResponse) GetActivityTaskListPartitions() []*v1.TaskListPartitionMetadata { - if m != nil { - return m.ActivityTaskListPartitions +func (x *ListTaskListPartitionsResponse) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_matching_v1_service_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *ListTaskListPartitionsResponse) GetDecisionTaskListPartitions() []*v1.TaskListPartitionMetadata { - if m != nil { - return m.DecisionTaskListPartitions +// Deprecated: Use ListTaskListPartitionsResponse.ProtoReflect.Descriptor instead. +func (*ListTaskListPartitionsResponse) Descriptor() ([]byte, []int) { + return file_uber_cadence_matching_v1_service_proto_rawDescGZIP(), []int{17} +} + +func (x *ListTaskListPartitionsResponse) GetActivityTaskListPartitions() []*v1.TaskListPartitionMetadata { + if x != nil { + return x.ActivityTaskListPartitions } return nil } -func init() { - proto.RegisterType((*PollForDecisionTaskRequest)(nil), "uber.cadence.matching.v1.PollForDecisionTaskRequest") - proto.RegisterType((*PollForDecisionTaskResponse)(nil), "uber.cadence.matching.v1.PollForDecisionTaskResponse") - proto.RegisterMapType((map[string]*v1.WorkflowQuery)(nil), "uber.cadence.matching.v1.PollForDecisionTaskResponse.QueriesEntry") - proto.RegisterType((*PollForActivityTaskRequest)(nil), "uber.cadence.matching.v1.PollForActivityTaskRequest") - proto.RegisterType((*PollForActivityTaskResponse)(nil), "uber.cadence.matching.v1.PollForActivityTaskResponse") - proto.RegisterType((*AddDecisionTaskRequest)(nil), "uber.cadence.matching.v1.AddDecisionTaskRequest") - proto.RegisterType((*AddDecisionTaskResponse)(nil), "uber.cadence.matching.v1.AddDecisionTaskResponse") - proto.RegisterType((*AddActivityTaskRequest)(nil), "uber.cadence.matching.v1.AddActivityTaskRequest") - proto.RegisterType((*AddActivityTaskResponse)(nil), "uber.cadence.matching.v1.AddActivityTaskResponse") - proto.RegisterType((*QueryWorkflowRequest)(nil), "uber.cadence.matching.v1.QueryWorkflowRequest") - proto.RegisterType((*QueryWorkflowResponse)(nil), "uber.cadence.matching.v1.QueryWorkflowResponse") - proto.RegisterType((*RespondQueryTaskCompletedRequest)(nil), "uber.cadence.matching.v1.RespondQueryTaskCompletedRequest") - proto.RegisterType((*RespondQueryTaskCompletedResponse)(nil), "uber.cadence.matching.v1.RespondQueryTaskCompletedResponse") - proto.RegisterType((*CancelOutstandingPollRequest)(nil), "uber.cadence.matching.v1.CancelOutstandingPollRequest") - proto.RegisterType((*CancelOutstandingPollResponse)(nil), "uber.cadence.matching.v1.CancelOutstandingPollResponse") - proto.RegisterType((*DescribeTaskListRequest)(nil), "uber.cadence.matching.v1.DescribeTaskListRequest") - proto.RegisterType((*DescribeTaskListResponse)(nil), "uber.cadence.matching.v1.DescribeTaskListResponse") - proto.RegisterType((*ListTaskListPartitionsRequest)(nil), "uber.cadence.matching.v1.ListTaskListPartitionsRequest") - proto.RegisterType((*ListTaskListPartitionsResponse)(nil), "uber.cadence.matching.v1.ListTaskListPartitionsResponse") -} - -func init() { - proto.RegisterFile("github.com/uber/cadence/.gen/proto/matching/v1/service.proto", fileDescriptor_826e827d3aabf7fc) -} - -var fileDescriptor_826e827d3aabf7fc = []byte{ - // 1822 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0xcd, 0x6f, 0x1b, 0xc7, - 0x15, 0xd7, 0xea, 0x8b, 0xe2, 0x23, 0x45, 0xcb, 0xe3, 0x46, 0x5e, 0xd1, 0x16, 0x25, 0x33, 0x4d, - 0xaa, 0x16, 0x29, 0x59, 0x31, 0x4d, 0xeb, 0xb8, 0x87, 0xd6, 0x96, 0xec, 0x84, 0x40, 0x0c, 0x3b, - 0x6b, 0xb6, 0x05, 0x82, 0x22, 0x8b, 0xd1, 0xee, 0x48, 0xdc, 0x6a, 0xb9, 0x43, 0xef, 0xcc, 0x52, - 0xe1, 0xa5, 0x28, 0x7a, 0x28, 0x0a, 0xf4, 0x92, 0x43, 0x0f, 0xbd, 0x37, 0x87, 0xdc, 0xfa, 0x6f, - 0xe4, 0x68, 0xf4, 0x14, 0xa0, 0x28, 0x5a, 0xcb, 0x28, 0xd0, 0x63, 0x80, 0xfe, 0x03, 0xc5, 0x7c, - 0xec, 0x92, 0x4b, 0x2e, 0x29, 0x52, 0x76, 0x93, 0x1b, 0x77, 0xe6, 0xbd, 0xdf, 0xfb, 0x9c, 0xdf, - 0xbc, 0x21, 0xbc, 0x19, 0x1d, 0x91, 0xb0, 0xee, 0x60, 0x97, 0x04, 0x0e, 0xa9, 0x77, 0x30, 0x77, - 0xda, 0x5e, 0x70, 0x52, 0xef, 0xed, 0xd7, 0x19, 0x09, 0x7b, 0x9e, 0x43, 0x6a, 0xdd, 0x90, 0x72, - 0x8a, 0x4c, 0x21, 0x57, 0xd3, 0x72, 0xb5, 0x58, 0xae, 0xd6, 0xdb, 0x2f, 0x57, 0x4e, 0x28, 0x3d, - 0xf1, 0x49, 0x5d, 0xca, 0x1d, 0x45, 0xc7, 0x75, 0x37, 0x0a, 0x31, 0xf7, 0x68, 0xa0, 0x34, 0xcb, - 0x3b, 0xa3, 0xfb, 0xdc, 0xeb, 0x10, 0xc6, 0x71, 0xa7, 0xab, 0x05, 0x6e, 0xba, 0xa4, 0x4b, 0x02, - 0x01, 0xec, 0x11, 0x56, 0x3f, 0xa1, 0x27, 0x54, 0xae, 0xeb, 0xdd, 0xdd, 0x94, 0x83, 0xb8, 0xeb, - 0x09, 0xdf, 0x1c, 0xda, 0xe9, 0x0c, 0x0c, 0x64, 0x49, 0x3c, 0x8d, 0x48, 0xd8, 0xd7, 0x02, 0xd5, - 0x2c, 0x01, 0x8e, 0xd9, 0xa9, 0xef, 0x31, 0xae, 0x65, 0xf6, 0xb2, 0x64, 0x74, 0x0a, 0xec, 0x33, - 0x1a, 0x9e, 0x92, 0x50, 0x4b, 0x7e, 0xef, 0x22, 0xc9, 0x63, 0x9f, 0x9e, 0x69, 0xd9, 0x6f, 0xa7, - 0x64, 0x59, 0x1b, 0x87, 0xc4, 0x15, 0xe2, 0x6d, 0x8f, 0x71, 0x9a, 0xf8, 0xf7, 0xc6, 0x04, 0xa9, - 0xb4, 0x8b, 0xd5, 0x2f, 0x0c, 0x28, 0x3f, 0xa6, 0xbe, 0xff, 0x80, 0x86, 0x87, 0xc4, 0xf1, 0x98, - 0x47, 0x83, 0x16, 0x66, 0xa7, 0x16, 0x79, 0x1a, 0x11, 0xc6, 0x51, 0x13, 0x72, 0xa1, 0xfa, 0x69, - 0x1a, 0xbb, 0xc6, 0x5e, 0xa1, 0x51, 0xaf, 0xa5, 0x6a, 0x86, 0xbb, 0x5e, 0xad, 0xb7, 0x5f, 0x9b, - 0x8c, 0x60, 0xc5, 0xfa, 0xe8, 0x06, 0xe4, 0x5d, 0xda, 0xc1, 0x5e, 0x60, 0x7b, 0xae, 0xb9, 0xb8, - 0x6b, 0xec, 0xe5, 0xad, 0x35, 0xb5, 0xd0, 0x74, 0xc5, 0x66, 0x97, 0xfa, 0x3e, 0x09, 0xc5, 0xe6, - 0x92, 0xda, 0x54, 0x0b, 0x4d, 0x17, 0xbd, 0x01, 0xa5, 0x63, 0x1a, 0x9e, 0xe1, 0xd0, 0x25, 0xae, - 0x7d, 0x1c, 0xd2, 0x8e, 0xb9, 0x2c, 0x25, 0xd6, 0x93, 0xd5, 0x07, 0x21, 0xed, 0x54, 0xff, 0xbb, - 0x06, 0x37, 0x32, 0x1d, 0x61, 0x5d, 0x1a, 0x30, 0x82, 0xb6, 0x01, 0x44, 0xf0, 0x36, 0xa7, 0xa7, - 0x24, 0x90, 0xe1, 0x14, 0xad, 0xbc, 0x58, 0x69, 0x89, 0x05, 0xf4, 0x73, 0x40, 0x71, 0xa2, 0x6d, - 0xf2, 0x09, 0x71, 0x22, 0xd1, 0x6e, 0xd2, 0xd1, 0x42, 0xe3, 0xcd, 0xcc, 0xa8, 0x7f, 0xa9, 0xc5, - 0xef, 0xc7, 0xd2, 0xd6, 0xd5, 0xb3, 0xd1, 0x25, 0xf4, 0x00, 0xd6, 0x13, 0x58, 0xde, 0xef, 0x12, - 0x19, 0x5d, 0xa1, 0x71, 0x6b, 0x2a, 0x62, 0xab, 0xdf, 0x25, 0x56, 0xf1, 0x6c, 0xe8, 0x0b, 0xbd, - 0x0b, 0x5b, 0xdd, 0x90, 0xf4, 0x3c, 0x1a, 0x31, 0x9b, 0x71, 0x1c, 0x72, 0xe2, 0xda, 0xa4, 0x47, - 0x02, 0x2e, 0x32, 0x26, 0xf2, 0xb1, 0x64, 0x6d, 0xc6, 0x02, 0x4f, 0xd4, 0xfe, 0x7d, 0xb1, 0xdd, - 0x74, 0xd1, 0x1e, 0x6c, 0x8c, 0x69, 0xac, 0x48, 0x8d, 0x12, 0x4b, 0x4b, 0x9a, 0x90, 0xc3, 0x9c, - 0x93, 0x4e, 0x97, 0x9b, 0xab, 0xbb, 0xc6, 0xde, 0x8a, 0x15, 0x7f, 0xa2, 0x2a, 0xac, 0x07, 0xe4, - 0x13, 0x3e, 0x00, 0xc8, 0x49, 0x80, 0x82, 0x58, 0x8c, 0xb5, 0xdf, 0x02, 0x74, 0x84, 0x9d, 0x53, - 0x9f, 0x9e, 0xd8, 0x0e, 0x8d, 0x02, 0x6e, 0xb7, 0xbd, 0x80, 0x9b, 0x6b, 0x52, 0x70, 0x43, 0xef, - 0x1c, 0x88, 0x8d, 0xf7, 0xbd, 0x80, 0xa3, 0xdb, 0x60, 0x32, 0xee, 0x39, 0xa7, 0xfd, 0x41, 0xb6, - 0x6d, 0x12, 0xe0, 0x23, 0x9f, 0xb8, 0x66, 0x7e, 0xd7, 0xd8, 0x5b, 0xb3, 0x36, 0xd5, 0x7e, 0x92, - 0xcb, 0xfb, 0x6a, 0x17, 0xdd, 0x86, 0x15, 0x79, 0x12, 0x4d, 0x90, 0xa9, 0xac, 0x4e, 0x4d, 0xe5, - 0x87, 0x42, 0xd2, 0x52, 0x0a, 0xc8, 0x82, 0x75, 0x57, 0xb7, 0x86, 0xed, 0x05, 0xc7, 0xd4, 0x2c, - 0x48, 0x84, 0xef, 0xa7, 0x11, 0xd4, 0x61, 0x11, 0x20, 0xad, 0x10, 0x07, 0xcc, 0x23, 0x01, 0x8f, - 0x1b, 0xaa, 0x19, 0x1c, 0x53, 0xab, 0xe8, 0x0e, 0x7d, 0xa1, 0x8f, 0xe1, 0xe6, 0x78, 0xdf, 0xd8, - 0xb2, 0xd3, 0xc4, 0x39, 0x33, 0x8b, 0xd2, 0xc4, 0x76, 0xa6, 0x93, 0xa2, 0x3f, 0x3f, 0xf0, 0x18, - 0xb7, 0xb6, 0xc6, 0x1a, 0x27, 0xde, 0x42, 0x35, 0xb8, 0xa6, 0x92, 0x2e, 0x4e, 0x37, 0xb1, 0x7b, - 0x24, 0x14, 0xa6, 0xcd, 0x75, 0x59, 0x9f, 0xab, 0x72, 0xeb, 0x89, 0xd8, 0xf9, 0x85, 0xda, 0x40, - 0xb7, 0xa0, 0x78, 0x14, 0xe2, 0xc0, 0x69, 0xeb, 0x46, 0x2f, 0xc9, 0x46, 0x2f, 0xa8, 0x35, 0xd5, - 0xea, 0xef, 0x41, 0x89, 0x39, 0x6d, 0xe2, 0x46, 0x3e, 0x71, 0x6d, 0xc1, 0x9c, 0xe6, 0x15, 0xe9, - 0x64, 0xb9, 0xa6, 0x68, 0xb5, 0x16, 0xd3, 0x6a, 0xad, 0x15, 0xd3, 0xea, 0xbd, 0xe5, 0x4f, 0xff, - 0xb9, 0x63, 0x58, 0xeb, 0x89, 0x9e, 0xd8, 0x41, 0x07, 0x50, 0x8c, 0x3b, 0x4b, 0xc2, 0x6c, 0xcc, - 0x08, 0x53, 0xd0, 0x5a, 0x12, 0xe4, 0x57, 0x90, 0x13, 0xd5, 0xf1, 0x08, 0x33, 0xaf, 0xee, 0x2e, - 0xed, 0x15, 0x1a, 0xf7, 0x6a, 0x93, 0xee, 0x85, 0xda, 0x94, 0xf3, 0x5d, 0xfb, 0x50, 0x81, 0xdc, - 0x0f, 0x78, 0xd8, 0xb7, 0x62, 0xc8, 0xf2, 0xc7, 0x50, 0x1c, 0xde, 0x40, 0x1b, 0xb0, 0x74, 0x4a, - 0xfa, 0xf2, 0xf8, 0xe7, 0x2d, 0xf1, 0x53, 0xb4, 0x53, 0x0f, 0xfb, 0x11, 0xd1, 0x67, 0x7d, 0xa6, - 0x76, 0x92, 0x0a, 0x77, 0x16, 0x6f, 0x1b, 0xc3, 0x04, 0x7a, 0xd7, 0xe1, 0x5e, 0xcf, 0xe3, 0xfd, - 0xcb, 0x13, 0x68, 0x06, 0xc2, 0xd7, 0x48, 0xa0, 0x7f, 0x1d, 0x10, 0x68, 0xda, 0x91, 0x6f, 0x94, - 0x40, 0x77, 0xa0, 0x80, 0xb5, 0x37, 0x83, 0xd8, 0x20, 0x5e, 0x6a, 0xba, 0x82, 0x61, 0x13, 0x01, - 0xc9, 0xb0, 0xcb, 0x53, 0x18, 0x36, 0x09, 0x4c, 0x32, 0x2c, 0x1e, 0xfa, 0x42, 0x0d, 0x58, 0xf1, - 0x82, 0x6e, 0xc4, 0x25, 0x37, 0x16, 0x1a, 0x37, 0xb3, 0x0b, 0x85, 0xfb, 0x3e, 0xc5, 0xae, 0xa5, - 0x44, 0x33, 0x4e, 0xd2, 0xea, 0xab, 0x39, 0x49, 0xb9, 0xcb, 0x9c, 0xa4, 0x8f, 0x60, 0x2b, 0x46, - 0xb5, 0x39, 0xb5, 0x1d, 0x9f, 0x32, 0x22, 0xe1, 0x68, 0xa4, 0x78, 0xb8, 0xd0, 0xd8, 0x1a, 0x43, - 0x3c, 0xd4, 0x93, 0xd5, 0xbd, 0xe5, 0x3f, 0x0b, 0xc0, 0xcd, 0x18, 0xa1, 0x45, 0x0f, 0x84, 0x7e, - 0x4b, 0xa9, 0xa3, 0x16, 0x6c, 0x4a, 0x53, 0xe3, 0xc0, 0xf9, 0xd9, 0x80, 0xaf, 0x49, 0xf5, 0x11, - 0xd4, 0x0f, 0xe0, 0x6a, 0x9b, 0xe0, 0x90, 0x1f, 0x11, 0xcc, 0x13, 0x40, 0x98, 0x0d, 0x70, 0x23, - 0xd1, 0x8c, 0xd1, 0x86, 0xae, 0xaf, 0x42, 0xfa, 0xfa, 0x72, 0xa1, 0x92, 0xae, 0x93, 0x4d, 0x8f, - 0x6d, 0xde, 0xf6, 0x98, 0x1d, 0x2b, 0x14, 0x67, 0x4c, 0x78, 0x39, 0x55, 0xb7, 0x47, 0xc7, 0xad, - 0xb6, 0xc7, 0xee, 0x6a, 0x2b, 0xcd, 0xe1, 0x68, 0x5c, 0xc2, 0xb1, 0xe7, 0x33, 0x49, 0xd4, 0x17, - 0x75, 0xd3, 0x20, 0x94, 0x43, 0xa5, 0x35, 0x3e, 0x36, 0x94, 0x2e, 0x37, 0x36, 0x7c, 0x07, 0xae, - 0x24, 0x38, 0x8a, 0x2c, 0x24, 0xd7, 0xe7, 0xad, 0x52, 0xbc, 0x7c, 0x28, 0x57, 0xd1, 0xdb, 0xb0, - 0xda, 0x26, 0xd8, 0x25, 0xa1, 0x26, 0xf1, 0x1b, 0x99, 0x96, 0xde, 0x97, 0x22, 0x96, 0x16, 0xad, - 0x7e, 0xbe, 0x04, 0x9b, 0x77, 0x5d, 0x37, 0x6b, 0x72, 0x4c, 0xb1, 0x95, 0x31, 0xc2, 0x56, 0xff, - 0x27, 0xaa, 0xb8, 0x03, 0xf9, 0xc1, 0xbd, 0xbb, 0x34, 0xcb, 0xbd, 0xbb, 0xc6, 0xe3, 0x6b, 0x76, - 0x07, 0x0a, 0xc9, 0xd9, 0x49, 0x26, 0x2a, 0x88, 0x97, 0x9a, 0xee, 0xe8, 0xe1, 0xd2, 0x87, 0x41, - 0xb7, 0xec, 0xca, 0xdc, 0x87, 0x4b, 0xce, 0x68, 0x71, 0xe3, 0xde, 0x81, 0x55, 0x46, 0xa3, 0xd0, - 0x51, 0xf4, 0x51, 0x1a, 0xbd, 0x83, 0x86, 0x06, 0x12, 0xcc, 0x4e, 0x9f, 0x48, 0x49, 0x4b, 0x6b, - 0x64, 0x90, 0x7b, 0x2e, 0x8b, 0xdc, 0xb7, 0xe0, 0xfa, 0x58, 0xa5, 0x14, 0xaf, 0x57, 0xff, 0xa6, - 0xaa, 0x98, 0x75, 0x7d, 0x7d, 0x13, 0x55, 0x14, 0xe3, 0xaa, 0x0c, 0xcd, 0x1e, 0x98, 0x56, 0xac, - 0x5f, 0x52, 0xeb, 0x87, 0xb1, 0x03, 0xa9, 0x7a, 0x2f, 0xbf, 0x54, 0xbd, 0x57, 0xe6, 0xab, 0xf7, - 0xea, 0xab, 0xaa, 0x77, 0xee, 0x15, 0xd4, 0x7b, 0x6d, 0x72, 0xbd, 0xb3, 0xee, 0xf1, 0xea, 0xdf, - 0x0d, 0xf8, 0x96, 0x9c, 0x63, 0xe2, 0x72, 0xc4, 0xd5, 0x3e, 0x18, 0x1d, 0x56, 0xbe, 0x9b, 0x99, - 0xcd, 0x2c, 0xdd, 0x19, 0xc7, 0x94, 0x97, 0x39, 0xa1, 0x33, 0x4e, 0x31, 0x7f, 0x31, 0xe0, 0xb5, - 0x11, 0x0f, 0xf5, 0xfc, 0xf2, 0x53, 0x28, 0xca, 0x67, 0x80, 0x1d, 0x12, 0x16, 0xf9, 0x71, 0x8c, - 0xd3, 0x99, 0xb9, 0x20, 0x35, 0x2c, 0xa9, 0x80, 0x9a, 0x50, 0x8a, 0x01, 0x7e, 0x4d, 0x1c, 0x4e, - 0xdc, 0xa9, 0x23, 0xa3, 0x1a, 0x15, 0xb5, 0xa4, 0xb5, 0xfe, 0x74, 0xf8, 0xb3, 0xfa, 0x6f, 0x03, - 0x76, 0x95, 0x63, 0xae, 0x94, 0x13, 0xf1, 0x1e, 0xd0, 0x4e, 0xd7, 0x27, 0x42, 0x58, 0xa7, 0xf2, - 0xd1, 0x68, 0x3d, 0xde, 0xc9, 0x34, 0x74, 0x11, 0xce, 0xd7, 0x50, 0x9b, 0xeb, 0x90, 0x93, 0xba, - 0x9a, 0x39, 0xf3, 0xd6, 0xaa, 0xf8, 0x6c, 0xba, 0xd5, 0xd7, 0xe1, 0xd6, 0x14, 0xf7, 0x74, 0x43, - 0xfe, 0xc3, 0x80, 0x9b, 0x07, 0x38, 0x70, 0x88, 0xff, 0x28, 0xe2, 0x8c, 0xe3, 0xc0, 0xf5, 0x82, - 0x13, 0x31, 0x89, 0xce, 0x44, 0x43, 0xa9, 0xd1, 0x77, 0x71, 0x64, 0xf4, 0x7d, 0x0f, 0x4a, 0x49, - 0x50, 0x83, 0xf7, 0x77, 0x69, 0xc2, 0x45, 0x1a, 0x47, 0xa6, 0x2e, 0x52, 0x3e, 0xf4, 0xf5, 0x32, - 0x5c, 0x53, 0xdd, 0x81, 0xed, 0x09, 0xe1, 0xe9, 0x04, 0xfc, 0x06, 0xae, 0x1f, 0x12, 0xe6, 0x84, - 0xde, 0x11, 0x49, 0xd4, 0x75, 0xe8, 0x0f, 0x46, 0x7b, 0xe0, 0xad, 0x4c, 0xab, 0x13, 0xd4, 0x67, - 0x2b, 0x7d, 0xf5, 0x33, 0x03, 0xcc, 0x71, 0x04, 0x7d, 0x6c, 0xde, 0x85, 0x9c, 0x4a, 0x27, 0x33, - 0x0d, 0xf9, 0x3e, 0xdb, 0x99, 0xf8, 0x84, 0x21, 0xa1, 0x7c, 0x20, 0xc7, 0xf2, 0xe8, 0x21, 0x6c, - 0x0c, 0xb2, 0xcf, 0x38, 0xe6, 0x11, 0xd3, 0x47, 0xe6, 0xf5, 0xa9, 0xb9, 0x7b, 0x22, 0x45, 0xad, - 0x12, 0x4f, 0x7d, 0x57, 0x19, 0x6c, 0xcb, 0x7a, 0xe8, 0xd5, 0xc7, 0x38, 0xe4, 0x9e, 0x60, 0x5b, - 0x16, 0x27, 0x6b, 0x13, 0x56, 0xf5, 0x90, 0xa3, 0x9a, 0x44, 0x7f, 0xa5, 0x8b, 0xb7, 0x38, 0x5f, - 0xf1, 0x7e, 0xbf, 0x08, 0x95, 0x49, 0x56, 0x75, 0x86, 0x9e, 0xc2, 0xf6, 0xe0, 0x05, 0x92, 0xc4, - 0xdb, 0x4d, 0x04, 0x75, 0xde, 0x6a, 0x53, 0x4d, 0x26, 0xb8, 0x0f, 0x09, 0xc7, 0x2e, 0xe6, 0xd8, - 0x2a, 0xe3, 0x21, 0xf6, 0x4e, 0x9b, 0x16, 0x26, 0x93, 0x7f, 0x32, 0x32, 0x4d, 0x2e, 0x5e, 0xce, - 0xa4, 0x3b, 0x34, 0x20, 0xa4, 0x4d, 0x36, 0x3e, 0xcb, 0x43, 0xe1, 0xa1, 0x7e, 0x8b, 0xdf, 0x7d, - 0xdc, 0x44, 0xbf, 0x33, 0xe0, 0x5a, 0xc6, 0x7b, 0x1c, 0xfd, 0x70, 0xce, 0xe7, 0xbb, 0x2c, 0x5d, - 0xf9, 0x9d, 0x4b, 0x3d, 0xfa, 0x87, 0x9d, 0x18, 0xbe, 0xeb, 0x66, 0x70, 0x22, 0x63, 0xdc, 0x99, - 0xc1, 0x89, 0xcc, 0x87, 0x71, 0x0f, 0xae, 0x8c, 0xcc, 0x56, 0xe8, 0x07, 0x93, 0x91, 0xb2, 0x07, - 0xe6, 0xf2, 0xfe, 0x1c, 0x1a, 0x29, 0xbb, 0xa9, 0xb8, 0xa7, 0xdb, 0xcd, 0x8a, 0x79, 0x7f, 0x0e, - 0x0d, 0x6d, 0xb7, 0x0b, 0xeb, 0xa9, 0x1b, 0x16, 0xd5, 0x26, 0x63, 0x64, 0x0d, 0x0b, 0xe5, 0xfa, - 0xcc, 0xf2, 0xda, 0xe2, 0x9f, 0x0c, 0xd8, 0x9a, 0x78, 0x8f, 0xa0, 0x3b, 0x93, 0xe1, 0x2e, 0xba, - 0x1b, 0xcb, 0x3f, 0xb9, 0x94, 0xae, 0x76, 0xeb, 0x0f, 0x06, 0xbc, 0x96, 0xc9, 0xec, 0xe8, 0x47, - 0x93, 0x61, 0xa7, 0xdd, 0x74, 0xe5, 0x1f, 0xcf, 0xad, 0xa7, 0x5d, 0xe9, 0xc3, 0xc6, 0x28, 0x83, - 0xa3, 0x29, 0xa5, 0x9d, 0x70, 0x5f, 0x94, 0x1b, 0xf3, 0xa8, 0x68, 0xd3, 0x7f, 0x34, 0x60, 0x33, - 0x9b, 0x21, 0xd1, 0x94, 0x70, 0xa6, 0x32, 0x79, 0xf9, 0xf6, 0xfc, 0x8a, 0xca, 0x9b, 0x7b, 0x3f, - 0x7b, 0xf6, 0xbc, 0xb2, 0xf0, 0xe5, 0xf3, 0xca, 0xc2, 0x57, 0xcf, 0x2b, 0xc6, 0x6f, 0xcf, 0x2b, - 0xc6, 0xe7, 0xe7, 0x15, 0xe3, 0x8b, 0xf3, 0x8a, 0xf1, 0xec, 0xbc, 0x62, 0xfc, 0xeb, 0xbc, 0x62, - 0xfc, 0xe7, 0xbc, 0xb2, 0xf0, 0xd5, 0x79, 0xc5, 0xf8, 0xf4, 0x45, 0x65, 0xe1, 0xd9, 0x8b, 0xca, - 0xc2, 0x97, 0x2f, 0x2a, 0x0b, 0x1f, 0x41, 0x6c, 0xa1, 0xb7, 0x7f, 0xb4, 0x2a, 0xc7, 0xf9, 0xb7, - 0xff, 0x17, 0x00, 0x00, 0xff, 0xff, 0x24, 0xb4, 0x6b, 0x55, 0xc7, 0x1a, 0x00, 0x00, -} - -func (this *PollForDecisionTaskRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil +func (x *ListTaskListPartitionsResponse) GetDecisionTaskListPartitions() []*v1.TaskListPartitionMetadata { + if x != nil { + return x.DecisionTaskListPartitions } + return nil +} - that1, ok := that.(*PollForDecisionTaskRequest) - if !ok { - that2, ok := that.(PollForDecisionTaskRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.Request.Equal(that1.Request) { - return false - } - if this.DomainId != that1.DomainId { - return false - } - if this.PollerId != that1.PollerId { - return false - } - if this.ForwardedFrom != that1.ForwardedFrom { - return false - } - return true -} -func (this *PollForDecisionTaskResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*PollForDecisionTaskResponse) - if !ok { - that2, ok := that.(PollForDecisionTaskResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !bytes.Equal(this.TaskToken, that1.TaskToken) { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if !this.WorkflowType.Equal(that1.WorkflowType) { - return false - } - if this.PreviousStartedEventId != that1.PreviousStartedEventId { - return false - } - if this.StartedEventId != that1.StartedEventId { - return false - } - if this.Attempt != that1.Attempt { - return false - } - if this.NextEventId != that1.NextEventId { - return false - } - if this.BacklogCountHint != that1.BacklogCountHint { - return false - } - if this.StickyExecutionEnabled != that1.StickyExecutionEnabled { - return false - } - if !this.Query.Equal(that1.Query) { - return false - } - if !this.DecisionInfo.Equal(that1.DecisionInfo) { - return false - } - if !this.WorkflowExecutionTaskList.Equal(that1.WorkflowExecutionTaskList) { - return false - } - if this.EventStoreVersion != that1.EventStoreVersion { - return false - } - if !bytes.Equal(this.BranchToken, that1.BranchToken) { - return false - } - if that1.ScheduledTime == nil { - if this.ScheduledTime != nil { - return false - } - } else if !this.ScheduledTime.Equal(*that1.ScheduledTime) { - return false - } - if that1.StartedTime == nil { - if this.StartedTime != nil { - return false - } - } else if !this.StartedTime.Equal(*that1.StartedTime) { - return false - } - if len(this.Queries) != len(that1.Queries) { - return false - } - for i := range this.Queries { - if !this.Queries[i].Equal(that1.Queries[i]) { - return false - } - } - return true -} -func (this *PollForActivityTaskRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*PollForActivityTaskRequest) - if !ok { - that2, ok := that.(PollForActivityTaskRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.Request.Equal(that1.Request) { - return false - } - if this.DomainId != that1.DomainId { - return false - } - if this.PollerId != that1.PollerId { - return false - } - if this.ForwardedFrom != that1.ForwardedFrom { - return false - } - return true -} -func (this *PollForActivityTaskResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*PollForActivityTaskResponse) - if !ok { - that2, ok := that.(PollForActivityTaskResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !bytes.Equal(this.TaskToken, that1.TaskToken) { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if this.ActivityId != that1.ActivityId { - return false - } - if !this.ActivityType.Equal(that1.ActivityType) { - return false - } - if !this.Input.Equal(that1.Input) { - return false - } - if that1.ScheduledTime == nil { - if this.ScheduledTime != nil { - return false - } - } else if !this.ScheduledTime.Equal(*that1.ScheduledTime) { - return false - } - if that1.StartedTime == nil { - if this.StartedTime != nil { - return false - } - } else if !this.StartedTime.Equal(*that1.StartedTime) { - return false - } - if this.ScheduleToCloseTimeout != nil && that1.ScheduleToCloseTimeout != nil { - if *this.ScheduleToCloseTimeout != *that1.ScheduleToCloseTimeout { - return false - } - } else if this.ScheduleToCloseTimeout != nil { - return false - } else if that1.ScheduleToCloseTimeout != nil { - return false - } - if this.StartToCloseTimeout != nil && that1.StartToCloseTimeout != nil { - if *this.StartToCloseTimeout != *that1.StartToCloseTimeout { - return false - } - } else if this.StartToCloseTimeout != nil { - return false - } else if that1.StartToCloseTimeout != nil { - return false - } - if this.HeartbeatTimeout != nil && that1.HeartbeatTimeout != nil { - if *this.HeartbeatTimeout != *that1.HeartbeatTimeout { - return false - } - } else if this.HeartbeatTimeout != nil { - return false - } else if that1.HeartbeatTimeout != nil { - return false - } - if this.Attempt != that1.Attempt { - return false - } - if that1.ScheduledTimeOfThisAttempt == nil { - if this.ScheduledTimeOfThisAttempt != nil { - return false - } - } else if !this.ScheduledTimeOfThisAttempt.Equal(*that1.ScheduledTimeOfThisAttempt) { - return false - } - if !this.HeartbeatDetails.Equal(that1.HeartbeatDetails) { - return false - } - if !this.WorkflowType.Equal(that1.WorkflowType) { - return false - } - if this.WorkflowDomain != that1.WorkflowDomain { - return false - } - if !this.Header.Equal(that1.Header) { - return false - } - return true -} -func (this *AddDecisionTaskRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*AddDecisionTaskRequest) - if !ok { - that2, ok := that.(AddDecisionTaskRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.DomainId != that1.DomainId { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if !this.TaskList.Equal(that1.TaskList) { - return false - } - if this.ScheduleId != that1.ScheduleId { - return false - } - if this.ScheduleToStartTimeout != nil && that1.ScheduleToStartTimeout != nil { - if *this.ScheduleToStartTimeout != *that1.ScheduleToStartTimeout { - return false - } - } else if this.ScheduleToStartTimeout != nil { - return false - } else if that1.ScheduleToStartTimeout != nil { - return false - } - if this.Source != that1.Source { - return false - } - if this.ForwardedFrom != that1.ForwardedFrom { - return false - } - return true -} -func (this *AddDecisionTaskResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*AddDecisionTaskResponse) - if !ok { - that2, ok := that.(AddDecisionTaskResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *AddActivityTaskRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*AddActivityTaskRequest) - if !ok { - that2, ok := that.(AddActivityTaskRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.DomainId != that1.DomainId { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if this.SourceDomainId != that1.SourceDomainId { - return false - } - if !this.TaskList.Equal(that1.TaskList) { - return false - } - if this.ScheduleId != that1.ScheduleId { - return false - } - if this.ScheduleToStartTimeout != nil && that1.ScheduleToStartTimeout != nil { - if *this.ScheduleToStartTimeout != *that1.ScheduleToStartTimeout { - return false - } - } else if this.ScheduleToStartTimeout != nil { - return false - } else if that1.ScheduleToStartTimeout != nil { - return false - } - if this.Source != that1.Source { - return false - } - if this.ForwardedFrom != that1.ForwardedFrom { - return false - } - return true -} -func (this *AddActivityTaskResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*AddActivityTaskResponse) - if !ok { - that2, ok := that.(AddActivityTaskResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *QueryWorkflowRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*QueryWorkflowRequest) - if !ok { - that2, ok := that.(QueryWorkflowRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.Request.Equal(that1.Request) { - return false - } - if this.DomainId != that1.DomainId { - return false - } - if !this.TaskList.Equal(that1.TaskList) { - return false - } - if this.ForwardedFrom != that1.ForwardedFrom { - return false - } - return true -} -func (this *QueryWorkflowResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*QueryWorkflowResponse) - if !ok { - that2, ok := that.(QueryWorkflowResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.QueryResult.Equal(that1.QueryResult) { - return false - } - if !this.QueryRejected.Equal(that1.QueryRejected) { - return false - } - return true -} -func (this *RespondQueryTaskCompletedRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RespondQueryTaskCompletedRequest) - if !ok { - that2, ok := that.(RespondQueryTaskCompletedRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.Request.Equal(that1.Request) { - return false - } - if this.DomainId != that1.DomainId { - return false - } - if !this.TaskList.Equal(that1.TaskList) { - return false - } - if this.TaskId != that1.TaskId { - return false - } - return true -} -func (this *RespondQueryTaskCompletedResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RespondQueryTaskCompletedResponse) - if !ok { - that2, ok := that.(RespondQueryTaskCompletedResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *CancelOutstandingPollRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*CancelOutstandingPollRequest) - if !ok { - that2, ok := that.(CancelOutstandingPollRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.DomainId != that1.DomainId { - return false - } - if this.PollerId != that1.PollerId { - return false - } - if this.TaskListType != that1.TaskListType { - return false - } - if !this.TaskList.Equal(that1.TaskList) { - return false - } - return true -} -func (this *CancelOutstandingPollResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*CancelOutstandingPollResponse) - if !ok { - that2, ok := that.(CancelOutstandingPollResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (this *DescribeTaskListRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*DescribeTaskListRequest) - if !ok { - that2, ok := that.(DescribeTaskListRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.Request.Equal(that1.Request) { - return false - } - if this.DomainId != that1.DomainId { - return false - } - return true -} -func (this *DescribeTaskListResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*DescribeTaskListResponse) - if !ok { - that2, ok := that.(DescribeTaskListResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if len(this.Pollers) != len(that1.Pollers) { - return false - } - for i := range this.Pollers { - if !this.Pollers[i].Equal(that1.Pollers[i]) { - return false - } - } - if !this.TaskListStatus.Equal(that1.TaskListStatus) { - return false - } - return true -} -func (this *ListTaskListPartitionsRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ListTaskListPartitionsRequest) - if !ok { - that2, ok := that.(ListTaskListPartitionsRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Domain != that1.Domain { - return false - } - if !this.TaskList.Equal(that1.TaskList) { - return false - } - return true -} -func (this *ListTaskListPartitionsResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ListTaskListPartitionsResponse) - if !ok { - that2, ok := that.(ListTaskListPartitionsResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if len(this.ActivityTaskListPartitions) != len(that1.ActivityTaskListPartitions) { - return false - } - for i := range this.ActivityTaskListPartitions { - if !this.ActivityTaskListPartitions[i].Equal(that1.ActivityTaskListPartitions[i]) { - return false - } - } - if len(this.DecisionTaskListPartitions) != len(that1.DecisionTaskListPartitions) { - return false - } - for i := range this.DecisionTaskListPartitions { - if !this.DecisionTaskListPartitions[i].Equal(that1.DecisionTaskListPartitions[i]) { - return false - } - } - return true -} -func (this *PollForDecisionTaskRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 8) - s = append(s, "&matchingv1.PollForDecisionTaskRequest{") - if this.Request != nil { - s = append(s, "Request: "+fmt.Sprintf("%#v", this.Request)+",\n") - } - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - s = append(s, "PollerId: "+fmt.Sprintf("%#v", this.PollerId)+",\n") - s = append(s, "ForwardedFrom: "+fmt.Sprintf("%#v", this.ForwardedFrom)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *PollForDecisionTaskResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 21) - s = append(s, "&matchingv1.PollForDecisionTaskResponse{") - s = append(s, "TaskToken: "+fmt.Sprintf("%#v", this.TaskToken)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - if this.WorkflowType != nil { - s = append(s, "WorkflowType: "+fmt.Sprintf("%#v", this.WorkflowType)+",\n") - } - s = append(s, "PreviousStartedEventId: "+fmt.Sprintf("%#v", this.PreviousStartedEventId)+",\n") - s = append(s, "StartedEventId: "+fmt.Sprintf("%#v", this.StartedEventId)+",\n") - s = append(s, "Attempt: "+fmt.Sprintf("%#v", this.Attempt)+",\n") - s = append(s, "NextEventId: "+fmt.Sprintf("%#v", this.NextEventId)+",\n") - s = append(s, "BacklogCountHint: "+fmt.Sprintf("%#v", this.BacklogCountHint)+",\n") - s = append(s, "StickyExecutionEnabled: "+fmt.Sprintf("%#v", this.StickyExecutionEnabled)+",\n") - if this.Query != nil { - s = append(s, "Query: "+fmt.Sprintf("%#v", this.Query)+",\n") - } - if this.DecisionInfo != nil { - s = append(s, "DecisionInfo: "+fmt.Sprintf("%#v", this.DecisionInfo)+",\n") - } - if this.WorkflowExecutionTaskList != nil { - s = append(s, "WorkflowExecutionTaskList: "+fmt.Sprintf("%#v", this.WorkflowExecutionTaskList)+",\n") - } - s = append(s, "EventStoreVersion: "+fmt.Sprintf("%#v", this.EventStoreVersion)+",\n") - s = append(s, "BranchToken: "+fmt.Sprintf("%#v", this.BranchToken)+",\n") - s = append(s, "ScheduledTime: "+fmt.Sprintf("%#v", this.ScheduledTime)+",\n") - s = append(s, "StartedTime: "+fmt.Sprintf("%#v", this.StartedTime)+",\n") - keysForQueries := make([]string, 0, len(this.Queries)) - for k, _ := range this.Queries { - keysForQueries = append(keysForQueries, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForQueries) - mapStringForQueries := "map[string]*v1.WorkflowQuery{" - for _, k := range keysForQueries { - mapStringForQueries += fmt.Sprintf("%#v: %#v,", k, this.Queries[k]) - } - mapStringForQueries += "}" - if this.Queries != nil { - s = append(s, "Queries: "+mapStringForQueries+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *PollForActivityTaskRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 8) - s = append(s, "&matchingv1.PollForActivityTaskRequest{") - if this.Request != nil { - s = append(s, "Request: "+fmt.Sprintf("%#v", this.Request)+",\n") - } - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - s = append(s, "PollerId: "+fmt.Sprintf("%#v", this.PollerId)+",\n") - s = append(s, "ForwardedFrom: "+fmt.Sprintf("%#v", this.ForwardedFrom)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *PollForActivityTaskResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 20) - s = append(s, "&matchingv1.PollForActivityTaskResponse{") - s = append(s, "TaskToken: "+fmt.Sprintf("%#v", this.TaskToken)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "ActivityId: "+fmt.Sprintf("%#v", this.ActivityId)+",\n") - if this.ActivityType != nil { - s = append(s, "ActivityType: "+fmt.Sprintf("%#v", this.ActivityType)+",\n") - } - if this.Input != nil { - s = append(s, "Input: "+fmt.Sprintf("%#v", this.Input)+",\n") - } - s = append(s, "ScheduledTime: "+fmt.Sprintf("%#v", this.ScheduledTime)+",\n") - s = append(s, "StartedTime: "+fmt.Sprintf("%#v", this.StartedTime)+",\n") - s = append(s, "ScheduleToCloseTimeout: "+fmt.Sprintf("%#v", this.ScheduleToCloseTimeout)+",\n") - s = append(s, "StartToCloseTimeout: "+fmt.Sprintf("%#v", this.StartToCloseTimeout)+",\n") - s = append(s, "HeartbeatTimeout: "+fmt.Sprintf("%#v", this.HeartbeatTimeout)+",\n") - s = append(s, "Attempt: "+fmt.Sprintf("%#v", this.Attempt)+",\n") - s = append(s, "ScheduledTimeOfThisAttempt: "+fmt.Sprintf("%#v", this.ScheduledTimeOfThisAttempt)+",\n") - if this.HeartbeatDetails != nil { - s = append(s, "HeartbeatDetails: "+fmt.Sprintf("%#v", this.HeartbeatDetails)+",\n") - } - if this.WorkflowType != nil { - s = append(s, "WorkflowType: "+fmt.Sprintf("%#v", this.WorkflowType)+",\n") - } - s = append(s, "WorkflowDomain: "+fmt.Sprintf("%#v", this.WorkflowDomain)+",\n") - if this.Header != nil { - s = append(s, "Header: "+fmt.Sprintf("%#v", this.Header)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *AddDecisionTaskRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 11) - s = append(s, "&matchingv1.AddDecisionTaskRequest{") - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - if this.TaskList != nil { - s = append(s, "TaskList: "+fmt.Sprintf("%#v", this.TaskList)+",\n") - } - s = append(s, "ScheduleId: "+fmt.Sprintf("%#v", this.ScheduleId)+",\n") - s = append(s, "ScheduleToStartTimeout: "+fmt.Sprintf("%#v", this.ScheduleToStartTimeout)+",\n") - s = append(s, "Source: "+fmt.Sprintf("%#v", this.Source)+",\n") - s = append(s, "ForwardedFrom: "+fmt.Sprintf("%#v", this.ForwardedFrom)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *AddDecisionTaskResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&matchingv1.AddDecisionTaskResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *AddActivityTaskRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 12) - s = append(s, "&matchingv1.AddActivityTaskRequest{") - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "SourceDomainId: "+fmt.Sprintf("%#v", this.SourceDomainId)+",\n") - if this.TaskList != nil { - s = append(s, "TaskList: "+fmt.Sprintf("%#v", this.TaskList)+",\n") - } - s = append(s, "ScheduleId: "+fmt.Sprintf("%#v", this.ScheduleId)+",\n") - s = append(s, "ScheduleToStartTimeout: "+fmt.Sprintf("%#v", this.ScheduleToStartTimeout)+",\n") - s = append(s, "Source: "+fmt.Sprintf("%#v", this.Source)+",\n") - s = append(s, "ForwardedFrom: "+fmt.Sprintf("%#v", this.ForwardedFrom)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *AddActivityTaskResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&matchingv1.AddActivityTaskResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *QueryWorkflowRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 8) - s = append(s, "&matchingv1.QueryWorkflowRequest{") - if this.Request != nil { - s = append(s, "Request: "+fmt.Sprintf("%#v", this.Request)+",\n") - } - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - if this.TaskList != nil { - s = append(s, "TaskList: "+fmt.Sprintf("%#v", this.TaskList)+",\n") - } - s = append(s, "ForwardedFrom: "+fmt.Sprintf("%#v", this.ForwardedFrom)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *QueryWorkflowResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&matchingv1.QueryWorkflowResponse{") - if this.QueryResult != nil { - s = append(s, "QueryResult: "+fmt.Sprintf("%#v", this.QueryResult)+",\n") - } - if this.QueryRejected != nil { - s = append(s, "QueryRejected: "+fmt.Sprintf("%#v", this.QueryRejected)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RespondQueryTaskCompletedRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 8) - s = append(s, "&matchingv1.RespondQueryTaskCompletedRequest{") - if this.Request != nil { - s = append(s, "Request: "+fmt.Sprintf("%#v", this.Request)+",\n") - } - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - if this.TaskList != nil { - s = append(s, "TaskList: "+fmt.Sprintf("%#v", this.TaskList)+",\n") - } - s = append(s, "TaskId: "+fmt.Sprintf("%#v", this.TaskId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RespondQueryTaskCompletedResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&matchingv1.RespondQueryTaskCompletedResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *CancelOutstandingPollRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 8) - s = append(s, "&matchingv1.CancelOutstandingPollRequest{") - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - s = append(s, "PollerId: "+fmt.Sprintf("%#v", this.PollerId)+",\n") - s = append(s, "TaskListType: "+fmt.Sprintf("%#v", this.TaskListType)+",\n") - if this.TaskList != nil { - s = append(s, "TaskList: "+fmt.Sprintf("%#v", this.TaskList)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *CancelOutstandingPollResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&matchingv1.CancelOutstandingPollResponse{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DescribeTaskListRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&matchingv1.DescribeTaskListRequest{") - if this.Request != nil { - s = append(s, "Request: "+fmt.Sprintf("%#v", this.Request)+",\n") - } - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DescribeTaskListResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&matchingv1.DescribeTaskListResponse{") - if this.Pollers != nil { - s = append(s, "Pollers: "+fmt.Sprintf("%#v", this.Pollers)+",\n") - } - if this.TaskListStatus != nil { - s = append(s, "TaskListStatus: "+fmt.Sprintf("%#v", this.TaskListStatus)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ListTaskListPartitionsRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&matchingv1.ListTaskListPartitionsRequest{") - s = append(s, "Domain: "+fmt.Sprintf("%#v", this.Domain)+",\n") - if this.TaskList != nil { - s = append(s, "TaskList: "+fmt.Sprintf("%#v", this.TaskList)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ListTaskListPartitionsResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&matchingv1.ListTaskListPartitionsResponse{") - if this.ActivityTaskListPartitions != nil { - s = append(s, "ActivityTaskListPartitions: "+fmt.Sprintf("%#v", this.ActivityTaskListPartitions)+",\n") - } - if this.DecisionTaskListPartitions != nil { - s = append(s, "DecisionTaskListPartitions: "+fmt.Sprintf("%#v", this.DecisionTaskListPartitions)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func valueToGoStringService(v interface{}, typ string) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// 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 - -// MatchingAPIClient is the client API for MatchingAPI service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type MatchingAPIClient interface { - // PollForDecisionTask is called by frontend to process DecisionTask from a specific taskList. A - // DecisionTask is dispatched to callers for active workflow executions, with pending decisions. - PollForDecisionTask(ctx context.Context, in *PollForDecisionTaskRequest, opts ...grpc.CallOption) (*PollForDecisionTaskResponse, error) - // PollForActivityTask is called by frontend to process ActivityTask from a specific taskList. ActivityTask - // is dispatched to callers whenever a ScheduleTask decision is made for a workflow execution. - PollForActivityTask(ctx context.Context, in *PollForActivityTaskRequest, opts ...grpc.CallOption) (*PollForActivityTaskResponse, error) - // AddDecisionTask is called by the history service when a decision task is scheduled, so that it can be dispatched - // by the MatchingEngine. - AddDecisionTask(ctx context.Context, in *AddDecisionTaskRequest, opts ...grpc.CallOption) (*AddDecisionTaskResponse, error) - // AddActivityTask is called by the history service when a decision 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 everytime 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) - // DescribeTaskList returns information about the target tasklist, right now this API returns the - // pollers which polled this tasklist in last few minutes. - DescribeTaskList(ctx context.Context, in *DescribeTaskListRequest, opts ...grpc.CallOption) (*DescribeTaskListResponse, error) - // ListTaskListPartitions returns a map of partitionKey and hostAddress for a taskList - ListTaskListPartitions(ctx context.Context, in *ListTaskListPartitionsRequest, opts ...grpc.CallOption) (*ListTaskListPartitionsResponse, error) -} - -type matchingAPIClient struct { - cc *grpc.ClientConn -} - -func NewMatchingAPIClient(cc *grpc.ClientConn) MatchingAPIClient { - return &matchingAPIClient{cc} -} - -func (c *matchingAPIClient) PollForDecisionTask(ctx context.Context, in *PollForDecisionTaskRequest, opts ...grpc.CallOption) (*PollForDecisionTaskResponse, error) { - out := new(PollForDecisionTaskResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.matching.v1.MatchingAPI/PollForDecisionTask", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *matchingAPIClient) PollForActivityTask(ctx context.Context, in *PollForActivityTaskRequest, opts ...grpc.CallOption) (*PollForActivityTaskResponse, error) { - out := new(PollForActivityTaskResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.matching.v1.MatchingAPI/PollForActivityTask", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *matchingAPIClient) AddDecisionTask(ctx context.Context, in *AddDecisionTaskRequest, opts ...grpc.CallOption) (*AddDecisionTaskResponse, error) { - out := new(AddDecisionTaskResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.matching.v1.MatchingAPI/AddDecisionTask", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *matchingAPIClient) AddActivityTask(ctx context.Context, in *AddActivityTaskRequest, opts ...grpc.CallOption) (*AddActivityTaskResponse, error) { - out := new(AddActivityTaskResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.matching.v1.MatchingAPI/AddActivityTask", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *matchingAPIClient) QueryWorkflow(ctx context.Context, in *QueryWorkflowRequest, opts ...grpc.CallOption) (*QueryWorkflowResponse, error) { - out := new(QueryWorkflowResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.matching.v1.MatchingAPI/QueryWorkflow", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *matchingAPIClient) RespondQueryTaskCompleted(ctx context.Context, in *RespondQueryTaskCompletedRequest, opts ...grpc.CallOption) (*RespondQueryTaskCompletedResponse, error) { - out := new(RespondQueryTaskCompletedResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.matching.v1.MatchingAPI/RespondQueryTaskCompleted", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *matchingAPIClient) CancelOutstandingPoll(ctx context.Context, in *CancelOutstandingPollRequest, opts ...grpc.CallOption) (*CancelOutstandingPollResponse, error) { - out := new(CancelOutstandingPollResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.matching.v1.MatchingAPI/CancelOutstandingPoll", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *matchingAPIClient) DescribeTaskList(ctx context.Context, in *DescribeTaskListRequest, opts ...grpc.CallOption) (*DescribeTaskListResponse, error) { - out := new(DescribeTaskListResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.matching.v1.MatchingAPI/DescribeTaskList", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *matchingAPIClient) ListTaskListPartitions(ctx context.Context, in *ListTaskListPartitionsRequest, opts ...grpc.CallOption) (*ListTaskListPartitionsResponse, error) { - out := new(ListTaskListPartitionsResponse) - err := c.cc.Invoke(ctx, "/uber.cadence.matching.v1.MatchingAPI/ListTaskListPartitions", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// MatchingAPIServer is the server API for MatchingAPI service. -type MatchingAPIServer interface { - // PollForDecisionTask is called by frontend to process DecisionTask from a specific taskList. A - // DecisionTask is dispatched to callers for active workflow executions, with pending decisions. - PollForDecisionTask(context.Context, *PollForDecisionTaskRequest) (*PollForDecisionTaskResponse, error) - // PollForActivityTask is called by frontend to process ActivityTask from a specific taskList. ActivityTask - // is dispatched to callers whenever a ScheduleTask decision is made for a workflow execution. - PollForActivityTask(context.Context, *PollForActivityTaskRequest) (*PollForActivityTaskResponse, error) - // AddDecisionTask is called by the history service when a decision task is scheduled, so that it can be dispatched - // by the MatchingEngine. - AddDecisionTask(context.Context, *AddDecisionTaskRequest) (*AddDecisionTaskResponse, error) - // AddActivityTask is called by the history service when a decision 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 everytime 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) - // DescribeTaskList returns information about the target tasklist, right now this API returns the - // pollers which polled this tasklist in last few minutes. - DescribeTaskList(context.Context, *DescribeTaskListRequest) (*DescribeTaskListResponse, error) - // ListTaskListPartitions returns a map of partitionKey and hostAddress for a taskList - ListTaskListPartitions(context.Context, *ListTaskListPartitionsRequest) (*ListTaskListPartitionsResponse, error) -} - -// UnimplementedMatchingAPIServer can be embedded to have forward compatible implementations. -type UnimplementedMatchingAPIServer struct { -} - -func (*UnimplementedMatchingAPIServer) PollForDecisionTask(ctx context.Context, req *PollForDecisionTaskRequest) (*PollForDecisionTaskResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PollForDecisionTask not implemented") -} -func (*UnimplementedMatchingAPIServer) PollForActivityTask(ctx context.Context, req *PollForActivityTaskRequest) (*PollForActivityTaskResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PollForActivityTask not implemented") -} -func (*UnimplementedMatchingAPIServer) AddDecisionTask(ctx context.Context, req *AddDecisionTaskRequest) (*AddDecisionTaskResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddDecisionTask not implemented") -} -func (*UnimplementedMatchingAPIServer) AddActivityTask(ctx context.Context, req *AddActivityTaskRequest) (*AddActivityTaskResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddActivityTask not implemented") -} -func (*UnimplementedMatchingAPIServer) QueryWorkflow(ctx context.Context, req *QueryWorkflowRequest) (*QueryWorkflowResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryWorkflow not implemented") -} -func (*UnimplementedMatchingAPIServer) RespondQueryTaskCompleted(ctx context.Context, req *RespondQueryTaskCompletedRequest) (*RespondQueryTaskCompletedResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RespondQueryTaskCompleted not implemented") -} -func (*UnimplementedMatchingAPIServer) CancelOutstandingPoll(ctx context.Context, req *CancelOutstandingPollRequest) (*CancelOutstandingPollResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CancelOutstandingPoll not implemented") -} -func (*UnimplementedMatchingAPIServer) DescribeTaskList(ctx context.Context, req *DescribeTaskListRequest) (*DescribeTaskListResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DescribeTaskList not implemented") -} -func (*UnimplementedMatchingAPIServer) ListTaskListPartitions(ctx context.Context, req *ListTaskListPartitionsRequest) (*ListTaskListPartitionsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListTaskListPartitions not implemented") -} - -func RegisterMatchingAPIServer(s *grpc.Server, srv MatchingAPIServer) { - s.RegisterService(&_MatchingAPI_serviceDesc, srv) -} - -func _MatchingAPI_PollForDecisionTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PollForDecisionTaskRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MatchingAPIServer).PollForDecisionTask(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.matching.v1.MatchingAPI/PollForDecisionTask", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MatchingAPIServer).PollForDecisionTask(ctx, req.(*PollForDecisionTaskRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MatchingAPI_PollForActivityTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PollForActivityTaskRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MatchingAPIServer).PollForActivityTask(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.matching.v1.MatchingAPI/PollForActivityTask", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MatchingAPIServer).PollForActivityTask(ctx, req.(*PollForActivityTaskRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MatchingAPI_AddDecisionTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddDecisionTaskRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MatchingAPIServer).AddDecisionTask(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.matching.v1.MatchingAPI/AddDecisionTask", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MatchingAPIServer).AddDecisionTask(ctx, req.(*AddDecisionTaskRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MatchingAPI_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.(MatchingAPIServer).AddActivityTask(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.matching.v1.MatchingAPI/AddActivityTask", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MatchingAPIServer).AddActivityTask(ctx, req.(*AddActivityTaskRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MatchingAPI_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.(MatchingAPIServer).QueryWorkflow(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.matching.v1.MatchingAPI/QueryWorkflow", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MatchingAPIServer).QueryWorkflow(ctx, req.(*QueryWorkflowRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MatchingAPI_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.(MatchingAPIServer).RespondQueryTaskCompleted(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.matching.v1.MatchingAPI/RespondQueryTaskCompleted", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MatchingAPIServer).RespondQueryTaskCompleted(ctx, req.(*RespondQueryTaskCompletedRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MatchingAPI_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.(MatchingAPIServer).CancelOutstandingPoll(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.matching.v1.MatchingAPI/CancelOutstandingPoll", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MatchingAPIServer).CancelOutstandingPoll(ctx, req.(*CancelOutstandingPollRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MatchingAPI_DescribeTaskList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DescribeTaskListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MatchingAPIServer).DescribeTaskList(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.matching.v1.MatchingAPI/DescribeTaskList", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MatchingAPIServer).DescribeTaskList(ctx, req.(*DescribeTaskListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MatchingAPI_ListTaskListPartitions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListTaskListPartitionsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MatchingAPIServer).ListTaskListPartitions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/uber.cadence.matching.v1.MatchingAPI/ListTaskListPartitions", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MatchingAPIServer).ListTaskListPartitions(ctx, req.(*ListTaskListPartitionsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _MatchingAPI_serviceDesc = grpc.ServiceDesc{ - ServiceName: "uber.cadence.matching.v1.MatchingAPI", - HandlerType: (*MatchingAPIServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "PollForDecisionTask", - Handler: _MatchingAPI_PollForDecisionTask_Handler, - }, - { - MethodName: "PollForActivityTask", - Handler: _MatchingAPI_PollForActivityTask_Handler, - }, - { - MethodName: "AddDecisionTask", - Handler: _MatchingAPI_AddDecisionTask_Handler, - }, - { - MethodName: "AddActivityTask", - Handler: _MatchingAPI_AddActivityTask_Handler, - }, - { - MethodName: "QueryWorkflow", - Handler: _MatchingAPI_QueryWorkflow_Handler, - }, - { - MethodName: "RespondQueryTaskCompleted", - Handler: _MatchingAPI_RespondQueryTaskCompleted_Handler, - }, - { - MethodName: "CancelOutstandingPoll", - Handler: _MatchingAPI_CancelOutstandingPoll_Handler, - }, - { - MethodName: "DescribeTaskList", - Handler: _MatchingAPI_DescribeTaskList_Handler, - }, - { - MethodName: "ListTaskListPartitions", - Handler: _MatchingAPI_ListTaskListPartitions_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "github.com/uber/cadence/.gen/proto/matching/v1/service.proto", -} - -func (m *PollForDecisionTaskRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PollForDecisionTaskRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PollForDecisionTaskRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ForwardedFrom) > 0 { - i -= len(m.ForwardedFrom) - copy(dAtA[i:], m.ForwardedFrom) - i = encodeVarintService(dAtA, i, uint64(len(m.ForwardedFrom))) - i-- - dAtA[i] = 0x22 - } - if len(m.PollerId) > 0 { - i -= len(m.PollerId) - copy(dAtA[i:], m.PollerId) - i = encodeVarintService(dAtA, i, uint64(len(m.PollerId))) - i-- - dAtA[i] = 0x1a - } - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintService(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0x12 - } - if m.Request != nil { - { - size, err := m.Request.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *PollForDecisionTaskResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PollForDecisionTaskResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PollForDecisionTaskResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Queries) > 0 { - for k := range m.Queries { - v := m.Queries[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintService(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintService(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x8a - } - } - if m.StartedTime != nil { - n3, err3 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.StartedTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.StartedTime):]) - if err3 != nil { - return 0, err3 - } - i -= n3 - i = encodeVarintService(dAtA, i, uint64(n3)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 - } - if m.ScheduledTime != nil { - n4, err4 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.ScheduledTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.ScheduledTime):]) - if err4 != nil { - return 0, err4 - } - i -= n4 - i = encodeVarintService(dAtA, i, uint64(n4)) - i-- - dAtA[i] = 0x7a - } - if len(m.BranchToken) > 0 { - i -= len(m.BranchToken) - copy(dAtA[i:], m.BranchToken) - i = encodeVarintService(dAtA, i, uint64(len(m.BranchToken))) - i-- - dAtA[i] = 0x72 - } - if m.EventStoreVersion != 0 { - i = encodeVarintService(dAtA, i, uint64(m.EventStoreVersion)) - i-- - dAtA[i] = 0x68 - } - if m.WorkflowExecutionTaskList != nil { - { - size, err := m.WorkflowExecutionTaskList.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x62 - } - if m.DecisionInfo != nil { - { - size, err := m.DecisionInfo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - } - if m.Query != nil { - { - size, err := m.Query.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - } - if m.StickyExecutionEnabled { - i-- - if m.StickyExecutionEnabled { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x48 - } - if m.BacklogCountHint != 0 { - i = encodeVarintService(dAtA, i, uint64(m.BacklogCountHint)) - i-- - dAtA[i] = 0x40 - } - if m.NextEventId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.NextEventId)) - i-- - dAtA[i] = 0x38 - } - if m.Attempt != 0 { - i = encodeVarintService(dAtA, i, uint64(m.Attempt)) - i-- - dAtA[i] = 0x30 - } - if m.StartedEventId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.StartedEventId)) - i-- - dAtA[i] = 0x28 - } - if m.PreviousStartedEventId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.PreviousStartedEventId)) - i-- - dAtA[i] = 0x20 - } - if m.WorkflowType != nil { - { - size, err := m.WorkflowType.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.TaskToken) > 0 { - i -= len(m.TaskToken) - copy(dAtA[i:], m.TaskToken) - i = encodeVarintService(dAtA, i, uint64(len(m.TaskToken))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *PollForActivityTaskRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PollForActivityTaskRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PollForActivityTaskRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ForwardedFrom) > 0 { - i -= len(m.ForwardedFrom) - copy(dAtA[i:], m.ForwardedFrom) - i = encodeVarintService(dAtA, i, uint64(len(m.ForwardedFrom))) - i-- - dAtA[i] = 0x22 - } - if len(m.PollerId) > 0 { - i -= len(m.PollerId) - copy(dAtA[i:], m.PollerId) - i = encodeVarintService(dAtA, i, uint64(len(m.PollerId))) - i-- - dAtA[i] = 0x1a - } - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintService(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0x12 - } - if m.Request != nil { - { - size, err := m.Request.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *PollForActivityTaskResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PollForActivityTaskResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PollForActivityTaskResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 - } - if len(m.WorkflowDomain) > 0 { - i -= len(m.WorkflowDomain) - copy(dAtA[i:], m.WorkflowDomain) - i = encodeVarintService(dAtA, i, uint64(len(m.WorkflowDomain))) - i-- - dAtA[i] = 0x7a - } - if m.WorkflowType != nil { - { - size, err := m.WorkflowType.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x72 - } - if m.HeartbeatDetails != nil { - { - size, err := m.HeartbeatDetails.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a - } - if m.ScheduledTimeOfThisAttempt != nil { - n14, err14 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.ScheduledTimeOfThisAttempt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.ScheduledTimeOfThisAttempt):]) - if err14 != nil { - return 0, err14 - } - i -= n14 - i = encodeVarintService(dAtA, i, uint64(n14)) - i-- - dAtA[i] = 0x62 - } - if m.Attempt != 0 { - i = encodeVarintService(dAtA, i, uint64(m.Attempt)) - i-- - dAtA[i] = 0x58 - } - if m.HeartbeatTimeout != nil { - n15, err15 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.HeartbeatTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.HeartbeatTimeout):]) - if err15 != nil { - return 0, err15 - } - i -= n15 - i = encodeVarintService(dAtA, i, uint64(n15)) - i-- - dAtA[i] = 0x52 - } - if m.StartToCloseTimeout != nil { - n16, err16 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.StartToCloseTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.StartToCloseTimeout):]) - if err16 != nil { - return 0, err16 - } - i -= n16 - i = encodeVarintService(dAtA, i, uint64(n16)) - i-- - dAtA[i] = 0x4a - } - if m.ScheduleToCloseTimeout != nil { - n17, err17 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.ScheduleToCloseTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ScheduleToCloseTimeout):]) - if err17 != nil { - return 0, err17 - } - i -= n17 - i = encodeVarintService(dAtA, i, uint64(n17)) - i-- - dAtA[i] = 0x42 - } - if m.StartedTime != nil { - n18, err18 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.StartedTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.StartedTime):]) - if err18 != nil { - return 0, err18 - } - i -= n18 - i = encodeVarintService(dAtA, i, uint64(n18)) - i-- - dAtA[i] = 0x3a - } - if m.ScheduledTime != nil { - n19, err19 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.ScheduledTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.ScheduledTime):]) - if err19 != nil { - return 0, err19 - } - i -= n19 - i = encodeVarintService(dAtA, i, uint64(n19)) - i-- - dAtA[i] = 0x32 - } - if m.Input != nil { - { - size, err := m.Input.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.ActivityType != nil { - { - size, err := m.ActivityType.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.ActivityId) > 0 { - i -= len(m.ActivityId) - copy(dAtA[i:], m.ActivityId) - i = encodeVarintService(dAtA, i, uint64(len(m.ActivityId))) - i-- - dAtA[i] = 0x1a - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.TaskToken) > 0 { - i -= len(m.TaskToken) - copy(dAtA[i:], m.TaskToken) - i = encodeVarintService(dAtA, i, uint64(len(m.TaskToken))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *AddDecisionTaskRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AddDecisionTaskRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AddDecisionTaskRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ForwardedFrom) > 0 { - i -= len(m.ForwardedFrom) - copy(dAtA[i:], m.ForwardedFrom) - i = encodeVarintService(dAtA, i, uint64(len(m.ForwardedFrom))) - i-- - dAtA[i] = 0x3a - } - if m.Source != 0 { - i = encodeVarintService(dAtA, i, uint64(m.Source)) - i-- - dAtA[i] = 0x30 - } - if m.ScheduleToStartTimeout != nil { - n23, err23 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.ScheduleToStartTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ScheduleToStartTimeout):]) - if err23 != nil { - return 0, err23 - } - i -= n23 - i = encodeVarintService(dAtA, i, uint64(n23)) - i-- - dAtA[i] = 0x2a - } - if m.ScheduleId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.ScheduleId)) - i-- - dAtA[i] = 0x20 - } - if m.TaskList != nil { - { - size, err := m.TaskList.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintService(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *AddDecisionTaskResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AddDecisionTaskResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AddDecisionTaskResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *AddActivityTaskRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AddActivityTaskRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AddActivityTaskRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ForwardedFrom) > 0 { - i -= len(m.ForwardedFrom) - copy(dAtA[i:], m.ForwardedFrom) - i = encodeVarintService(dAtA, i, uint64(len(m.ForwardedFrom))) - i-- - dAtA[i] = 0x42 - } - if m.Source != 0 { - i = encodeVarintService(dAtA, i, uint64(m.Source)) - i-- - dAtA[i] = 0x38 - } - if m.ScheduleToStartTimeout != nil { - n26, err26 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.ScheduleToStartTimeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ScheduleToStartTimeout):]) - if err26 != nil { - return 0, err26 - } - i -= n26 - i = encodeVarintService(dAtA, i, uint64(n26)) - i-- - dAtA[i] = 0x32 - } - if m.ScheduleId != 0 { - i = encodeVarintService(dAtA, i, uint64(m.ScheduleId)) - i-- - dAtA[i] = 0x28 - } - if m.TaskList != nil { - { - size, err := m.TaskList.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.SourceDomainId) > 0 { - i -= len(m.SourceDomainId) - copy(dAtA[i:], m.SourceDomainId) - i = encodeVarintService(dAtA, i, uint64(len(m.SourceDomainId))) - i-- - dAtA[i] = 0x1a - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintService(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *AddActivityTaskResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AddActivityTaskResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AddActivityTaskResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *QueryWorkflowRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryWorkflowRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryWorkflowRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ForwardedFrom) > 0 { - i -= len(m.ForwardedFrom) - copy(dAtA[i:], m.ForwardedFrom) - i = encodeVarintService(dAtA, i, uint64(len(m.ForwardedFrom))) - i-- - dAtA[i] = 0x22 - } - if m.TaskList != nil { - { - size, err := m.TaskList.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintService(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0x12 - } - if m.Request != nil { - { - size, err := m.Request.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryWorkflowResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryWorkflowResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryWorkflowResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.QueryRejected != nil { - { - size, err := m.QueryRejected.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.QueryResult != nil { - { - size, err := m.QueryResult.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RespondQueryTaskCompletedRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RespondQueryTaskCompletedRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RespondQueryTaskCompletedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.TaskId) > 0 { - i -= len(m.TaskId) - copy(dAtA[i:], m.TaskId) - i = encodeVarintService(dAtA, i, uint64(len(m.TaskId))) - i-- - dAtA[i] = 0x22 - } - if m.TaskList != nil { - { - size, err := m.TaskList.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintService(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0x12 - } - if m.Request != nil { - { - size, err := m.Request.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RespondQueryTaskCompletedResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RespondQueryTaskCompletedResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RespondQueryTaskCompletedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *CancelOutstandingPollRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CancelOutstandingPollRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CancelOutstandingPollRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.TaskList != nil { - { - size, err := m.TaskList.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.TaskListType != 0 { - i = encodeVarintService(dAtA, i, uint64(m.TaskListType)) - i-- - dAtA[i] = 0x18 - } - if len(m.PollerId) > 0 { - i -= len(m.PollerId) - copy(dAtA[i:], m.PollerId) - i = encodeVarintService(dAtA, i, uint64(len(m.PollerId))) - i-- - dAtA[i] = 0x12 - } - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintService(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *CancelOutstandingPollResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CancelOutstandingPollResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CancelOutstandingPollResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *DescribeTaskListRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DescribeTaskListRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DescribeTaskListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintService(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0x12 - } - if m.Request != nil { - { - size, err := m.Request.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DescribeTaskListResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DescribeTaskListResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DescribeTaskListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.TaskListStatus != nil { - { - size, err := m.TaskListStatus.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Pollers) > 0 { - for iNdEx := len(m.Pollers) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Pollers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ListTaskListPartitionsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ListTaskListPartitionsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListTaskListPartitionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.TaskList != nil { - { - size, err := m.TaskList.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintService(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ListTaskListPartitionsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ListTaskListPartitionsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListTaskListPartitionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.DecisionTaskListPartitions) > 0 { - for iNdEx := len(m.DecisionTaskListPartitions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.DecisionTaskListPartitions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.ActivityTaskListPartitions) > 0 { - for iNdEx := len(m.ActivityTaskListPartitions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ActivityTaskListPartitions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintService(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func encodeVarintService(dAtA []byte, offset int, v uint64) int { - offset -= sovService(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *PollForDecisionTaskRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Request != nil { - l = m.Request.Size() - n += 1 + l + sovService(uint64(l)) - } - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - l = len(m.PollerId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - l = len(m.ForwardedFrom) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *PollForDecisionTaskResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.TaskToken) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.WorkflowType != nil { - l = m.WorkflowType.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.PreviousStartedEventId != 0 { - n += 1 + sovService(uint64(m.PreviousStartedEventId)) - } - if m.StartedEventId != 0 { - n += 1 + sovService(uint64(m.StartedEventId)) - } - if m.Attempt != 0 { - n += 1 + sovService(uint64(m.Attempt)) - } - if m.NextEventId != 0 { - n += 1 + sovService(uint64(m.NextEventId)) - } - if m.BacklogCountHint != 0 { - n += 1 + sovService(uint64(m.BacklogCountHint)) - } - if m.StickyExecutionEnabled { - n += 2 - } - if m.Query != nil { - l = m.Query.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.DecisionInfo != nil { - l = m.DecisionInfo.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.WorkflowExecutionTaskList != nil { - l = m.WorkflowExecutionTaskList.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.EventStoreVersion != 0 { - n += 1 + sovService(uint64(m.EventStoreVersion)) - } - l = len(m.BranchToken) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.ScheduledTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.ScheduledTime) - n += 1 + l + sovService(uint64(l)) - } - if m.StartedTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.StartedTime) - n += 2 + l + sovService(uint64(l)) - } - if len(m.Queries) > 0 { - for k, v := range m.Queries { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovService(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovService(uint64(len(k))) + l - n += mapEntrySize + 2 + sovService(uint64(mapEntrySize)) - } - } - return n -} - -func (m *PollForActivityTaskRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Request != nil { - l = m.Request.Size() - n += 1 + l + sovService(uint64(l)) - } - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - l = len(m.PollerId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - l = len(m.ForwardedFrom) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *PollForActivityTaskResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.TaskToken) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovService(uint64(l)) - } - l = len(m.ActivityId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.ActivityType != nil { - l = m.ActivityType.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.Input != nil { - l = m.Input.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.ScheduledTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.ScheduledTime) - n += 1 + l + sovService(uint64(l)) - } - if m.StartedTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.StartedTime) - n += 1 + l + sovService(uint64(l)) - } - if m.ScheduleToCloseTimeout != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ScheduleToCloseTimeout) - n += 1 + l + sovService(uint64(l)) - } - if m.StartToCloseTimeout != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.StartToCloseTimeout) - n += 1 + l + sovService(uint64(l)) - } - if m.HeartbeatTimeout != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.HeartbeatTimeout) - n += 1 + l + sovService(uint64(l)) - } - if m.Attempt != 0 { - n += 1 + sovService(uint64(m.Attempt)) - } - if m.ScheduledTimeOfThisAttempt != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.ScheduledTimeOfThisAttempt) - n += 1 + l + sovService(uint64(l)) - } - if m.HeartbeatDetails != nil { - l = m.HeartbeatDetails.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.WorkflowType != nil { - l = m.WorkflowType.Size() - n += 1 + l + sovService(uint64(l)) - } - l = len(m.WorkflowDomain) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.Header != nil { - l = m.Header.Size() - n += 2 + l + sovService(uint64(l)) - } - return n -} - -func (m *AddDecisionTaskRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.TaskList != nil { - l = m.TaskList.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.ScheduleId != 0 { - n += 1 + sovService(uint64(m.ScheduleId)) - } - if m.ScheduleToStartTimeout != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ScheduleToStartTimeout) - n += 1 + l + sovService(uint64(l)) - } - if m.Source != 0 { - n += 1 + sovService(uint64(m.Source)) - } - l = len(m.ForwardedFrom) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *AddDecisionTaskResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *AddActivityTaskRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovService(uint64(l)) - } - l = len(m.SourceDomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.TaskList != nil { - l = m.TaskList.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.ScheduleId != 0 { - n += 1 + sovService(uint64(m.ScheduleId)) - } - if m.ScheduleToStartTimeout != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ScheduleToStartTimeout) - n += 1 + l + sovService(uint64(l)) - } - if m.Source != 0 { - n += 1 + sovService(uint64(m.Source)) - } - l = len(m.ForwardedFrom) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *AddActivityTaskResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *QueryWorkflowRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Request != nil { - l = m.Request.Size() - n += 1 + l + sovService(uint64(l)) - } - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.TaskList != nil { - l = m.TaskList.Size() - n += 1 + l + sovService(uint64(l)) - } - l = len(m.ForwardedFrom) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *QueryWorkflowResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.QueryResult != nil { - l = m.QueryResult.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.QueryRejected != nil { - l = m.QueryRejected.Size() - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *RespondQueryTaskCompletedRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Request != nil { - l = m.Request.Size() - n += 1 + l + sovService(uint64(l)) - } - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.TaskList != nil { - l = m.TaskList.Size() - n += 1 + l + sovService(uint64(l)) - } - l = len(m.TaskId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *RespondQueryTaskCompletedResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *CancelOutstandingPollRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - l = len(m.PollerId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.TaskListType != 0 { - n += 1 + sovService(uint64(m.TaskListType)) - } - if m.TaskList != nil { - l = m.TaskList.Size() - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *CancelOutstandingPollResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *DescribeTaskListRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Request != nil { - l = m.Request.Size() - n += 1 + l + sovService(uint64(l)) - } - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *DescribeTaskListResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Pollers) > 0 { - for _, e := range m.Pollers { - l = e.Size() - n += 1 + l + sovService(uint64(l)) - } - } - if m.TaskListStatus != nil { - l = m.TaskListStatus.Size() - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *ListTaskListPartitionsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.TaskList != nil { - l = m.TaskList.Size() - n += 1 + l + sovService(uint64(l)) - } - return n -} - -func (m *ListTaskListPartitionsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.ActivityTaskListPartitions) > 0 { - for _, e := range m.ActivityTaskListPartitions { - l = e.Size() - n += 1 + l + sovService(uint64(l)) - } - } - if len(m.DecisionTaskListPartitions) > 0 { - for _, e := range m.DecisionTaskListPartitions { - l = e.Size() - n += 1 + l + sovService(uint64(l)) - } - } - return n -} - -func sovService(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozService(x uint64) (n int) { - return sovService(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *PollForDecisionTaskRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PollForDecisionTaskRequest{`, - `Request:` + strings.Replace(fmt.Sprintf("%v", this.Request), "PollForDecisionTaskRequest", "v1.PollForDecisionTaskRequest", 1) + `,`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `PollerId:` + fmt.Sprintf("%v", this.PollerId) + `,`, - `ForwardedFrom:` + fmt.Sprintf("%v", this.ForwardedFrom) + `,`, - `}`, - }, "") - return s -} -func (this *PollForDecisionTaskResponse) String() string { - if this == nil { - return "nil" - } - keysForQueries := make([]string, 0, len(this.Queries)) - for k, _ := range this.Queries { - keysForQueries = append(keysForQueries, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForQueries) - mapStringForQueries := "map[string]*v1.WorkflowQuery{" - for _, k := range keysForQueries { - mapStringForQueries += fmt.Sprintf("%v: %v,", k, this.Queries[k]) - } - mapStringForQueries += "}" - s := strings.Join([]string{`&PollForDecisionTaskResponse{`, - `TaskToken:` + fmt.Sprintf("%v", this.TaskToken) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "v1.WorkflowExecution", 1) + `,`, - `WorkflowType:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowType), "WorkflowType", "v1.WorkflowType", 1) + `,`, - `PreviousStartedEventId:` + fmt.Sprintf("%v", this.PreviousStartedEventId) + `,`, - `StartedEventId:` + fmt.Sprintf("%v", this.StartedEventId) + `,`, - `Attempt:` + fmt.Sprintf("%v", this.Attempt) + `,`, - `NextEventId:` + fmt.Sprintf("%v", this.NextEventId) + `,`, - `BacklogCountHint:` + fmt.Sprintf("%v", this.BacklogCountHint) + `,`, - `StickyExecutionEnabled:` + fmt.Sprintf("%v", this.StickyExecutionEnabled) + `,`, - `Query:` + strings.Replace(fmt.Sprintf("%v", this.Query), "WorkflowQuery", "v1.WorkflowQuery", 1) + `,`, - `DecisionInfo:` + strings.Replace(fmt.Sprintf("%v", this.DecisionInfo), "TransientDecisionInfo", "v11.TransientDecisionInfo", 1) + `,`, - `WorkflowExecutionTaskList:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecutionTaskList), "TaskList", "v1.TaskList", 1) + `,`, - `EventStoreVersion:` + fmt.Sprintf("%v", this.EventStoreVersion) + `,`, - `BranchToken:` + fmt.Sprintf("%v", this.BranchToken) + `,`, - `ScheduledTime:` + strings.Replace(fmt.Sprintf("%v", this.ScheduledTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `StartedTime:` + strings.Replace(fmt.Sprintf("%v", this.StartedTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `Queries:` + mapStringForQueries + `,`, - `}`, - }, "") - return s -} -func (this *PollForActivityTaskRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PollForActivityTaskRequest{`, - `Request:` + strings.Replace(fmt.Sprintf("%v", this.Request), "PollForActivityTaskRequest", "v1.PollForActivityTaskRequest", 1) + `,`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `PollerId:` + fmt.Sprintf("%v", this.PollerId) + `,`, - `ForwardedFrom:` + fmt.Sprintf("%v", this.ForwardedFrom) + `,`, - `}`, - }, "") - return s -} -func (this *PollForActivityTaskResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PollForActivityTaskResponse{`, - `TaskToken:` + fmt.Sprintf("%v", this.TaskToken) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "v1.WorkflowExecution", 1) + `,`, - `ActivityId:` + fmt.Sprintf("%v", this.ActivityId) + `,`, - `ActivityType:` + strings.Replace(fmt.Sprintf("%v", this.ActivityType), "ActivityType", "v1.ActivityType", 1) + `,`, - `Input:` + strings.Replace(fmt.Sprintf("%v", this.Input), "Payload", "v1.Payload", 1) + `,`, - `ScheduledTime:` + strings.Replace(fmt.Sprintf("%v", this.ScheduledTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `StartedTime:` + strings.Replace(fmt.Sprintf("%v", this.StartedTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `ScheduleToCloseTimeout:` + strings.Replace(fmt.Sprintf("%v", this.ScheduleToCloseTimeout), "Duration", "duration.Duration", 1) + `,`, - `StartToCloseTimeout:` + strings.Replace(fmt.Sprintf("%v", this.StartToCloseTimeout), "Duration", "duration.Duration", 1) + `,`, - `HeartbeatTimeout:` + strings.Replace(fmt.Sprintf("%v", this.HeartbeatTimeout), "Duration", "duration.Duration", 1) + `,`, - `Attempt:` + fmt.Sprintf("%v", this.Attempt) + `,`, - `ScheduledTimeOfThisAttempt:` + strings.Replace(fmt.Sprintf("%v", this.ScheduledTimeOfThisAttempt), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `HeartbeatDetails:` + strings.Replace(fmt.Sprintf("%v", this.HeartbeatDetails), "Payload", "v1.Payload", 1) + `,`, - `WorkflowType:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowType), "WorkflowType", "v1.WorkflowType", 1) + `,`, - `WorkflowDomain:` + fmt.Sprintf("%v", this.WorkflowDomain) + `,`, - `Header:` + strings.Replace(fmt.Sprintf("%v", this.Header), "Header", "v1.Header", 1) + `,`, - `}`, - }, "") - return s -} -func (this *AddDecisionTaskRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&AddDecisionTaskRequest{`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "v1.WorkflowExecution", 1) + `,`, - `TaskList:` + strings.Replace(fmt.Sprintf("%v", this.TaskList), "TaskList", "v1.TaskList", 1) + `,`, - `ScheduleId:` + fmt.Sprintf("%v", this.ScheduleId) + `,`, - `ScheduleToStartTimeout:` + strings.Replace(fmt.Sprintf("%v", this.ScheduleToStartTimeout), "Duration", "duration.Duration", 1) + `,`, - `Source:` + fmt.Sprintf("%v", this.Source) + `,`, - `ForwardedFrom:` + fmt.Sprintf("%v", this.ForwardedFrom) + `,`, - `}`, - }, "") - return s -} -func (this *AddDecisionTaskResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&AddDecisionTaskResponse{`, - `}`, - }, "") - return s -} -func (this *AddActivityTaskRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&AddActivityTaskRequest{`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "v1.WorkflowExecution", 1) + `,`, - `SourceDomainId:` + fmt.Sprintf("%v", this.SourceDomainId) + `,`, - `TaskList:` + strings.Replace(fmt.Sprintf("%v", this.TaskList), "TaskList", "v1.TaskList", 1) + `,`, - `ScheduleId:` + fmt.Sprintf("%v", this.ScheduleId) + `,`, - `ScheduleToStartTimeout:` + strings.Replace(fmt.Sprintf("%v", this.ScheduleToStartTimeout), "Duration", "duration.Duration", 1) + `,`, - `Source:` + fmt.Sprintf("%v", this.Source) + `,`, - `ForwardedFrom:` + fmt.Sprintf("%v", this.ForwardedFrom) + `,`, - `}`, - }, "") - return s -} -func (this *AddActivityTaskResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&AddActivityTaskResponse{`, - `}`, - }, "") - return s -} -func (this *QueryWorkflowRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&QueryWorkflowRequest{`, - `Request:` + strings.Replace(fmt.Sprintf("%v", this.Request), "QueryWorkflowRequest", "v1.QueryWorkflowRequest", 1) + `,`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `TaskList:` + strings.Replace(fmt.Sprintf("%v", this.TaskList), "TaskList", "v1.TaskList", 1) + `,`, - `ForwardedFrom:` + fmt.Sprintf("%v", this.ForwardedFrom) + `,`, - `}`, - }, "") - return s -} -func (this *QueryWorkflowResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&QueryWorkflowResponse{`, - `QueryResult:` + strings.Replace(fmt.Sprintf("%v", this.QueryResult), "Payload", "v1.Payload", 1) + `,`, - `QueryRejected:` + strings.Replace(fmt.Sprintf("%v", this.QueryRejected), "QueryRejected", "v1.QueryRejected", 1) + `,`, - `}`, - }, "") - return s -} -func (this *RespondQueryTaskCompletedRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RespondQueryTaskCompletedRequest{`, - `Request:` + strings.Replace(fmt.Sprintf("%v", this.Request), "RespondQueryTaskCompletedRequest", "v1.RespondQueryTaskCompletedRequest", 1) + `,`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `TaskList:` + strings.Replace(fmt.Sprintf("%v", this.TaskList), "TaskList", "v1.TaskList", 1) + `,`, - `TaskId:` + fmt.Sprintf("%v", this.TaskId) + `,`, - `}`, - }, "") - return s -} -func (this *RespondQueryTaskCompletedResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RespondQueryTaskCompletedResponse{`, - `}`, - }, "") - return s -} -func (this *CancelOutstandingPollRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CancelOutstandingPollRequest{`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `PollerId:` + fmt.Sprintf("%v", this.PollerId) + `,`, - `TaskListType:` + fmt.Sprintf("%v", this.TaskListType) + `,`, - `TaskList:` + strings.Replace(fmt.Sprintf("%v", this.TaskList), "TaskList", "v1.TaskList", 1) + `,`, - `}`, - }, "") - return s -} -func (this *CancelOutstandingPollResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CancelOutstandingPollResponse{`, - `}`, - }, "") - return s -} -func (this *DescribeTaskListRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DescribeTaskListRequest{`, - `Request:` + strings.Replace(fmt.Sprintf("%v", this.Request), "DescribeTaskListRequest", "v1.DescribeTaskListRequest", 1) + `,`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `}`, - }, "") - return s -} -func (this *DescribeTaskListResponse) String() string { - if this == nil { - return "nil" - } - repeatedStringForPollers := "[]*PollerInfo{" - for _, f := range this.Pollers { - repeatedStringForPollers += strings.Replace(fmt.Sprintf("%v", f), "PollerInfo", "v1.PollerInfo", 1) + "," - } - repeatedStringForPollers += "}" - s := strings.Join([]string{`&DescribeTaskListResponse{`, - `Pollers:` + repeatedStringForPollers + `,`, - `TaskListStatus:` + strings.Replace(fmt.Sprintf("%v", this.TaskListStatus), "TaskListStatus", "v1.TaskListStatus", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ListTaskListPartitionsRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ListTaskListPartitionsRequest{`, - `Domain:` + fmt.Sprintf("%v", this.Domain) + `,`, - `TaskList:` + strings.Replace(fmt.Sprintf("%v", this.TaskList), "TaskList", "v1.TaskList", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ListTaskListPartitionsResponse) String() string { - if this == nil { - return "nil" - } - repeatedStringForActivityTaskListPartitions := "[]*TaskListPartitionMetadata{" - for _, f := range this.ActivityTaskListPartitions { - repeatedStringForActivityTaskListPartitions += strings.Replace(fmt.Sprintf("%v", f), "TaskListPartitionMetadata", "v1.TaskListPartitionMetadata", 1) + "," - } - repeatedStringForActivityTaskListPartitions += "}" - repeatedStringForDecisionTaskListPartitions := "[]*TaskListPartitionMetadata{" - for _, f := range this.DecisionTaskListPartitions { - repeatedStringForDecisionTaskListPartitions += strings.Replace(fmt.Sprintf("%v", f), "TaskListPartitionMetadata", "v1.TaskListPartitionMetadata", 1) + "," - } - repeatedStringForDecisionTaskListPartitions += "}" - s := strings.Join([]string{`&ListTaskListPartitionsResponse{`, - `ActivityTaskListPartitions:` + repeatedStringForActivityTaskListPartitions + `,`, - `DecisionTaskListPartitions:` + repeatedStringForDecisionTaskListPartitions + `,`, - `}`, - }, "") - return s -} -func valueToStringService(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *PollForDecisionTaskRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PollForDecisionTaskRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PollForDecisionTaskRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Request == nil { - m.Request = &v1.PollForDecisionTaskRequest{} - } - if err := m.Request.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PollerId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PollerId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ForwardedFrom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ForwardedFrom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PollForDecisionTaskResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PollForDecisionTaskResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PollForDecisionTaskResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TaskToken = append(m.TaskToken[:0], dAtA[iNdEx:postIndex]...) - if m.TaskToken == nil { - m.TaskToken = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &v1.WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowType", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowType == nil { - m.WorkflowType = &v1.WorkflowType{} - } - if err := m.WorkflowType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PreviousStartedEventId", wireType) - } - m.PreviousStartedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PreviousStartedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartedEventId", wireType) - } - m.StartedEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartedEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Attempt", wireType) - } - m.Attempt = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Attempt |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NextEventId", wireType) - } - m.NextEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NextEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BacklogCountHint", wireType) - } - m.BacklogCountHint = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.BacklogCountHint |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StickyExecutionEnabled", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.StickyExecutionEnabled = bool(v != 0) - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Query == nil { - m.Query = &v1.WorkflowQuery{} - } - if err := m.Query.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DecisionInfo", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DecisionInfo == nil { - m.DecisionInfo = &v11.TransientDecisionInfo{} - } - if err := m.DecisionInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecutionTaskList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecutionTaskList == nil { - m.WorkflowExecutionTaskList = &v1.TaskList{} - } - if err := m.WorkflowExecutionTaskList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 13: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EventStoreVersion", wireType) - } - m.EventStoreVersion = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EventStoreVersion |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BranchToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BranchToken = append(m.BranchToken[:0], dAtA[iNdEx:postIndex]...) - if m.BranchToken == nil { - m.BranchToken = []byte{} - } - iNdEx = postIndex - case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduledTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ScheduledTime == nil { - m.ScheduledTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.ScheduledTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 16: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartedTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StartedTime == nil { - m.StartedTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.StartedTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 17: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queries", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Queries == nil { - m.Queries = make(map[string]*v1.WorkflowQuery) - } - var mapkey string - var mapvalue *v1.WorkflowQuery - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthService - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthService - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthService - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthService - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &v1.WorkflowQuery{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Queries[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PollForActivityTaskRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PollForActivityTaskRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PollForActivityTaskRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Request == nil { - m.Request = &v1.PollForActivityTaskRequest{} - } - if err := m.Request.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PollerId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PollerId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ForwardedFrom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ForwardedFrom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PollForActivityTaskResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PollForActivityTaskResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PollForActivityTaskResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TaskToken = append(m.TaskToken[:0], dAtA[iNdEx:postIndex]...) - if m.TaskToken == nil { - m.TaskToken = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &v1.WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActivityId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ActivityId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActivityType", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ActivityType == nil { - m.ActivityType = &v1.ActivityType{} - } - if err := m.ActivityType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Input == nil { - m.Input = &v1.Payload{} - } - if err := m.Input.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduledTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ScheduledTime == nil { - m.ScheduledTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.ScheduledTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartedTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StartedTime == nil { - m.StartedTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.StartedTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduleToCloseTimeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ScheduleToCloseTimeout == nil { - m.ScheduleToCloseTimeout = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.ScheduleToCloseTimeout, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartToCloseTimeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StartToCloseTimeout == nil { - m.StartToCloseTimeout = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.StartToCloseTimeout, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HeartbeatTimeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.HeartbeatTimeout == nil { - m.HeartbeatTimeout = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.HeartbeatTimeout, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Attempt", wireType) - } - m.Attempt = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Attempt |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduledTimeOfThisAttempt", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ScheduledTimeOfThisAttempt == nil { - m.ScheduledTimeOfThisAttempt = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.ScheduledTimeOfThisAttempt, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HeartbeatDetails", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.HeartbeatDetails == nil { - m.HeartbeatDetails = &v1.Payload{} - } - if err := m.HeartbeatDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowType", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowType == nil { - m.WorkflowType = &v1.WorkflowType{} - } - if err := m.WorkflowType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowDomain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.WorkflowDomain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 16: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Header == nil { - m.Header = &v1.Header{} - } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AddDecisionTaskRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AddDecisionTaskRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AddDecisionTaskRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &v1.WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TaskList == nil { - m.TaskList = &v1.TaskList{} - } - if err := m.TaskList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduleId", wireType) - } - m.ScheduleId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ScheduleId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduleToStartTimeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ScheduleToStartTimeout == nil { - m.ScheduleToStartTimeout = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.ScheduleToStartTimeout, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) - } - m.Source = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Source |= v11.TaskSource(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ForwardedFrom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ForwardedFrom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AddDecisionTaskResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AddDecisionTaskResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AddDecisionTaskResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AddActivityTaskRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AddActivityTaskRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AddActivityTaskRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &v1.WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SourceDomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SourceDomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TaskList == nil { - m.TaskList = &v1.TaskList{} - } - if err := m.TaskList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduleId", wireType) - } - m.ScheduleId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ScheduleId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduleToStartTimeout", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ScheduleToStartTimeout == nil { - m.ScheduleToStartTimeout = new(time.Duration) - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.ScheduleToStartTimeout, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) - } - m.Source = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Source |= v11.TaskSource(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ForwardedFrom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ForwardedFrom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AddActivityTaskResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AddActivityTaskResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AddActivityTaskResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryWorkflowRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryWorkflowRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryWorkflowRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Request == nil { - m.Request = &v1.QueryWorkflowRequest{} - } - if err := m.Request.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TaskList == nil { - m.TaskList = &v1.TaskList{} - } - if err := m.TaskList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ForwardedFrom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ForwardedFrom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryWorkflowResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryWorkflowResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryWorkflowResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field QueryResult", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.QueryResult == nil { - m.QueryResult = &v1.Payload{} - } - if err := m.QueryResult.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field QueryRejected", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.QueryRejected == nil { - m.QueryRejected = &v1.QueryRejected{} - } - if err := m.QueryRejected.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RespondQueryTaskCompletedRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RespondQueryTaskCompletedRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RespondQueryTaskCompletedRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Request == nil { - m.Request = &v1.RespondQueryTaskCompletedRequest{} - } - if err := m.Request.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TaskList == nil { - m.TaskList = &v1.TaskList{} - } - if err := m.TaskList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TaskId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RespondQueryTaskCompletedResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RespondQueryTaskCompletedResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RespondQueryTaskCompletedResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CancelOutstandingPollRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CancelOutstandingPollRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CancelOutstandingPollRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PollerId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PollerId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskListType", wireType) - } - m.TaskListType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TaskListType |= v1.TaskListType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TaskList == nil { - m.TaskList = &v1.TaskList{} - } - if err := m.TaskList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CancelOutstandingPollResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CancelOutstandingPollResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CancelOutstandingPollResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DescribeTaskListRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DescribeTaskListRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DescribeTaskListRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Request == nil { - m.Request = &v1.DescribeTaskListRequest{} - } - if err := m.Request.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DescribeTaskListResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DescribeTaskListResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DescribeTaskListResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pollers", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Pollers = append(m.Pollers, &v1.PollerInfo{}) - if err := m.Pollers[len(m.Pollers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskListStatus", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TaskListStatus == nil { - m.TaskListStatus = &v1.TaskListStatus{} - } - if err := m.TaskListStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ListTaskListPartitionsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListTaskListPartitionsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListTaskListPartitionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TaskList == nil { - m.TaskList = &v1.TaskList{} - } - if err := m.TaskList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ListTaskListPartitionsResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListTaskListPartitionsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListTaskListPartitionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActivityTaskListPartitions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ActivityTaskListPartitions = append(m.ActivityTaskListPartitions, &v1.TaskListPartitionMetadata{}) - if err := m.ActivityTaskListPartitions[len(m.ActivityTaskListPartitions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DecisionTaskListPartitions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthService - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthService - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DecisionTaskListPartitions = append(m.DecisionTaskListPartitions, &v1.TaskListPartitionMetadata{}) - if err := m.DecisionTaskListPartitions[len(m.DecisionTaskListPartitions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipService(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthService - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipService(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowService - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowService - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowService - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthService - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupService - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthService - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF +var File_uber_cadence_matching_v1_service_proto protoreflect.FileDescriptor + +var file_uber_cadence_matching_v1_service_proto_rawDesc = []byte{ + 0x0a, 0x26, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x6d, + 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, + 0x76, 0x31, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x61, 0x73, 0x6b, + 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x75, 0x62, 0x65, 0x72, + 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x24, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x25, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x74, + 0x61, 0x73, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc8, 0x01, + 0x0a, 0x1a, 0x50, 0x6f, 0x6c, 0x6c, 0x46, 0x6f, 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, + 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x49, 0x0a, 0x07, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x6c, 0x46, 0x6f, 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, + 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x5f, 0x69, + 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x49, + 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x66, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x65, 0x64, 0x5f, 0x66, + 0x72, 0x6f, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x66, 0x6f, 0x72, 0x77, 0x61, + 0x72, 0x64, 0x65, 0x64, 0x46, 0x72, 0x6f, 0x6d, 0x22, 0xe7, 0x08, 0x0a, 0x1b, 0x50, 0x6f, 0x6c, + 0x6c, 0x46, 0x6f, 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x73, 0x6b, + 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x74, 0x61, + 0x73, 0x6b, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x46, + 0x0a, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x12, 0x39, 0x0a, 0x19, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, + 0x75, 0x73, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x16, 0x70, 0x72, 0x65, 0x76, 0x69, + 0x6f, 0x75, 0x73, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, + 0x64, 0x12, 0x28, 0x0a, 0x10, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x73, 0x74, 0x61, + 0x72, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, + 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x61, 0x74, + 0x74, 0x65, 0x6d, 0x70, 0x74, 0x12, 0x22, 0x0a, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x65, + 0x78, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x12, 0x62, 0x61, 0x63, + 0x6b, 0x6c, 0x6f, 0x67, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x68, 0x69, 0x6e, 0x74, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x62, 0x61, 0x63, 0x6b, 0x6c, 0x6f, 0x67, 0x43, 0x6f, + 0x75, 0x6e, 0x74, 0x48, 0x69, 0x6e, 0x74, 0x12, 0x38, 0x0a, 0x18, 0x73, 0x74, 0x69, 0x63, 0x6b, + 0x79, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x6e, 0x61, 0x62, + 0x6c, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x73, 0x74, 0x69, 0x63, 0x6b, + 0x79, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, + 0x64, 0x12, 0x38, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x22, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x52, 0x0a, 0x0d, 0x64, + 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x0b, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, + 0x73, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, + 0x6f, 0x52, 0x0c, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, + 0x5e, 0x0a, 0x1c, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, + 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, + 0x4c, 0x69, 0x73, 0x74, 0x52, 0x19, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, + 0x2e, 0x0a, 0x13, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, + 0x21, 0x0a, 0x0c, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, + 0x0e, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x12, 0x41, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x5f, + 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, + 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3d, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, + 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, + 0x54, 0x69, 0x6d, 0x65, 0x12, 0x5c, 0x0a, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, + 0x11, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x42, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, + 0x2e, 0x50, 0x6f, 0x6c, 0x6c, 0x46, 0x6f, 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, + 0x65, 0x73, 0x1a, 0x5e, 0x0a, 0x0c, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x6b, 0x65, 0x79, 0x12, 0x38, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, + 0x38, 0x01, 0x22, 0xc8, 0x01, 0x0a, 0x1a, 0x50, 0x6f, 0x6c, 0x6c, 0x46, 0x6f, 0x72, 0x41, 0x63, + 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x49, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x6c, 0x46, 0x6f, 0x72, + 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, + 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x6f, 0x6c, + 0x6c, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6f, + 0x6c, 0x6c, 0x65, 0x72, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x66, 0x6f, 0x72, 0x77, 0x61, 0x72, + 0x64, 0x65, 0x64, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, + 0x66, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x65, 0x64, 0x46, 0x72, 0x6f, 0x6d, 0x22, 0x8b, 0x08, + 0x0a, 0x1b, 0x50, 0x6f, 0x6c, 0x6c, 0x46, 0x6f, 0x72, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, + 0x79, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, + 0x0a, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x55, 0x0a, 0x12, + 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, + 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, + 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, + 0x74, 0x79, 0x49, 0x64, 0x12, 0x46, 0x0a, 0x0d, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, + 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x32, 0x0a, 0x05, + 0x69, 0x6e, 0x70, 0x75, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, + 0x12, 0x41, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x5f, 0x74, 0x69, + 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x54, + 0x69, 0x6d, 0x65, 0x12, 0x3d, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x74, + 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x54, 0x69, + 0x6d, 0x65, 0x12, 0x54, 0x0a, 0x19, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x74, + 0x6f, 0x5f, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x16, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x54, 0x6f, 0x43, 0x6c, 0x6f, 0x73, + 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x4e, 0x0a, 0x16, 0x73, 0x74, 0x61, 0x72, + 0x74, 0x5f, 0x74, 0x6f, 0x5f, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, + 0x75, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x6f, 0x43, 0x6c, 0x6f, 0x73, + 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x46, 0x0a, 0x11, 0x68, 0x65, 0x61, 0x72, + 0x74, 0x62, 0x65, 0x61, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x0a, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x10, + 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, + 0x12, 0x18, 0x0a, 0x07, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x07, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x12, 0x5e, 0x0a, 0x1e, 0x73, 0x63, + 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6f, 0x66, 0x5f, + 0x74, 0x68, 0x69, 0x73, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x18, 0x0c, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x1a, + 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x4f, 0x66, 0x54, + 0x68, 0x69, 0x73, 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x12, 0x49, 0x0a, 0x11, 0x68, 0x65, + 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, + 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, + 0x6f, 0x61, 0x64, 0x52, 0x10, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x44, 0x65, + 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x46, 0x0a, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x52, + 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x12, 0x27, 0x0a, + 0x0f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x33, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x22, 0xa2, 0x03, 0x0a, 0x16, + 0x41, 0x64, 0x64, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x49, 0x64, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, + 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3a, 0x0a, 0x09, 0x74, 0x61, + 0x73, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x08, 0x74, 0x61, + 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, + 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x73, 0x63, 0x68, + 0x65, 0x64, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x54, 0x0a, 0x19, 0x73, 0x63, 0x68, 0x65, 0x64, + 0x75, 0x6c, 0x65, 0x5f, 0x74, 0x6f, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, + 0x65, 0x6f, 0x75, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x16, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x54, + 0x6f, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x3a, 0x0a, + 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x66, 0x6f, 0x72, + 0x77, 0x61, 0x72, 0x64, 0x65, 0x64, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0d, 0x66, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x65, 0x64, 0x46, 0x72, 0x6f, 0x6d, + 0x22, 0x19, 0x0a, 0x17, 0x41, 0x64, 0x64, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, + 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xcc, 0x03, 0x0a, 0x16, + 0x41, 0x64, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x49, 0x64, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, + 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x28, 0x0a, 0x10, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x49, 0x64, 0x12, 0x3a, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6c, 0x69, 0x73, + 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, + 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, + 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x49, + 0x64, 0x12, 0x54, 0x0a, 0x19, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x74, 0x6f, + 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x16, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x54, 0x6f, 0x53, 0x74, 0x61, 0x72, 0x74, + 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x3a, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, + 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x06, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x66, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x65, 0x64, + 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x66, 0x6f, 0x72, + 0x77, 0x61, 0x72, 0x64, 0x65, 0x64, 0x46, 0x72, 0x6f, 0x6d, 0x22, 0x19, 0x0a, 0x17, 0x41, 0x64, + 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xdb, 0x01, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, + 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x29, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, + 0x12, 0x3a, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, + 0x73, 0x74, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x0e, + 0x66, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x65, 0x64, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x66, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x65, 0x64, 0x46, + 0x72, 0x6f, 0x6d, 0x22, 0xa3, 0x01, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, + 0x0c, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, + 0x64, 0x52, 0x0b, 0x71, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x49, + 0x0a, 0x0e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x72, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x65, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x0d, 0x71, 0x75, 0x65, 0x72, + 0x79, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x65, 0x64, 0x22, 0xe5, 0x01, 0x0a, 0x20, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, + 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4f, + 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x35, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x1b, 0x0a, 0x09, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x3a, 0x0a, 0x09, + 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1d, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x08, + 0x74, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x61, 0x73, 0x6b, + 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, + 0x64, 0x22, 0x23, 0x0a, 0x21, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xdd, 0x01, 0x0a, 0x1c, 0x43, 0x61, 0x6e, 0x63, 0x65, + 0x6c, 0x4f, 0x75, 0x74, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x6c, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x5f, 0x69, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x49, + 0x64, 0x12, 0x47, 0x0a, 0x0e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x74, 0x61, + 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3a, 0x0a, 0x09, 0x74, 0x61, + 0x73, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x08, 0x74, 0x61, + 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x1f, 0x0a, 0x1d, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, + 0x4f, 0x75, 0x74, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x6c, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7e, 0x0a, 0x17, 0x44, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x62, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x46, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x62, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, 0xa4, 0x01, 0x0a, 0x18, 0x44, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x62, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x07, 0x70, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x6c, + 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x07, 0x70, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x73, 0x12, + 0x4d, 0x0a, 0x10, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0e, + 0x74, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x73, + 0x0a, 0x1d, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, + 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x3a, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, + 0x6c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x4c, + 0x69, 0x73, 0x74, 0x22, 0x86, 0x02, 0x0a, 0x1e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x73, 0x6b, + 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x71, 0x0a, 0x1d, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, + 0x74, 0x79, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x70, 0x61, 0x72, + 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x72, 0x74, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x1a, 0x61, + 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x50, + 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x71, 0x0a, 0x1d, 0x64, 0x65, 0x63, + 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x5f, + 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x2e, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x50, + 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x52, 0x1a, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, + 0x73, 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x32, 0xa4, 0x09, 0x0a, + 0x0b, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x41, 0x50, 0x49, 0x12, 0x82, 0x01, 0x0a, + 0x13, 0x50, 0x6f, 0x6c, 0x6c, 0x46, 0x6f, 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x54, 0x61, 0x73, 0x6b, 0x12, 0x34, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, + 0x50, 0x6f, 0x6c, 0x6c, 0x46, 0x6f, 0x72, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, + 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, + 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x6c, 0x46, 0x6f, 0x72, 0x44, 0x65, 0x63, + 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x82, 0x01, 0x0a, 0x13, 0x50, 0x6f, 0x6c, 0x6c, 0x46, 0x6f, 0x72, 0x41, 0x63, 0x74, + 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x34, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, + 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x6c, 0x46, 0x6f, 0x72, 0x41, 0x63, 0x74, 0x69, + 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x35, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x6d, + 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x6c, 0x46, + 0x6f, 0x72, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x76, 0x0a, 0x0f, 0x41, 0x64, 0x64, 0x44, 0x65, 0x63, + 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x30, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, + 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, + 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, + 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x76, + 0x0a, 0x0f, 0x41, 0x64, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, + 0x6b, 0x12, 0x30, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, + 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x41, + 0x64, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x70, 0x0a, 0x0d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x2e, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, + 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, + 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x94, 0x01, 0x0a, 0x19, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, + 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x3a, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, + 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x61, + 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x3b, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, + 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x88, 0x01, 0x0a, 0x15, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4f, 0x75, 0x74, 0x73, 0x74, 0x61, + 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x6c, 0x12, 0x36, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, + 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4f, 0x75, 0x74, 0x73, 0x74, + 0x61, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x37, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6e, + 0x63, 0x65, 0x6c, 0x4f, 0x75, 0x74, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x50, 0x6f, + 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x79, 0x0a, 0x10, 0x44, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x31, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x6d, 0x61, + 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x62, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x32, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x62, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x8b, 0x01, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, + 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x12, 0x37, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, + 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, + 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, + 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x42, 0x3b, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x2e, + 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, + 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x76, 0x31, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - ErrInvalidLengthService = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowService = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupService = fmt.Errorf("proto: unexpected end of group") + file_uber_cadence_matching_v1_service_proto_rawDescOnce sync.Once + file_uber_cadence_matching_v1_service_proto_rawDescData = file_uber_cadence_matching_v1_service_proto_rawDesc ) + +func file_uber_cadence_matching_v1_service_proto_rawDescGZIP() []byte { + file_uber_cadence_matching_v1_service_proto_rawDescOnce.Do(func() { + file_uber_cadence_matching_v1_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_uber_cadence_matching_v1_service_proto_rawDescData) + }) + return file_uber_cadence_matching_v1_service_proto_rawDescData +} + +var file_uber_cadence_matching_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 19) +var file_uber_cadence_matching_v1_service_proto_goTypes = []interface{}{ + (*PollForDecisionTaskRequest)(nil), // 0: uber.cadence.matching.v1.PollForDecisionTaskRequest + (*PollForDecisionTaskResponse)(nil), // 1: uber.cadence.matching.v1.PollForDecisionTaskResponse + (*PollForActivityTaskRequest)(nil), // 2: uber.cadence.matching.v1.PollForActivityTaskRequest + (*PollForActivityTaskResponse)(nil), // 3: uber.cadence.matching.v1.PollForActivityTaskResponse + (*AddDecisionTaskRequest)(nil), // 4: uber.cadence.matching.v1.AddDecisionTaskRequest + (*AddDecisionTaskResponse)(nil), // 5: uber.cadence.matching.v1.AddDecisionTaskResponse + (*AddActivityTaskRequest)(nil), // 6: uber.cadence.matching.v1.AddActivityTaskRequest + (*AddActivityTaskResponse)(nil), // 7: uber.cadence.matching.v1.AddActivityTaskResponse + (*QueryWorkflowRequest)(nil), // 8: uber.cadence.matching.v1.QueryWorkflowRequest + (*QueryWorkflowResponse)(nil), // 9: uber.cadence.matching.v1.QueryWorkflowResponse + (*RespondQueryTaskCompletedRequest)(nil), // 10: uber.cadence.matching.v1.RespondQueryTaskCompletedRequest + (*RespondQueryTaskCompletedResponse)(nil), // 11: uber.cadence.matching.v1.RespondQueryTaskCompletedResponse + (*CancelOutstandingPollRequest)(nil), // 12: uber.cadence.matching.v1.CancelOutstandingPollRequest + (*CancelOutstandingPollResponse)(nil), // 13: uber.cadence.matching.v1.CancelOutstandingPollResponse + (*DescribeTaskListRequest)(nil), // 14: uber.cadence.matching.v1.DescribeTaskListRequest + (*DescribeTaskListResponse)(nil), // 15: uber.cadence.matching.v1.DescribeTaskListResponse + (*ListTaskListPartitionsRequest)(nil), // 16: uber.cadence.matching.v1.ListTaskListPartitionsRequest + (*ListTaskListPartitionsResponse)(nil), // 17: uber.cadence.matching.v1.ListTaskListPartitionsResponse + nil, // 18: uber.cadence.matching.v1.PollForDecisionTaskResponse.QueriesEntry + (*v1.PollForDecisionTaskRequest)(nil), // 19: uber.cadence.api.v1.PollForDecisionTaskRequest + (*v1.WorkflowExecution)(nil), // 20: uber.cadence.api.v1.WorkflowExecution + (*v1.WorkflowType)(nil), // 21: uber.cadence.api.v1.WorkflowType + (*v1.WorkflowQuery)(nil), // 22: uber.cadence.api.v1.WorkflowQuery + (*v11.TransientDecisionInfo)(nil), // 23: uber.cadence.shared.v1.TransientDecisionInfo + (*v1.TaskList)(nil), // 24: uber.cadence.api.v1.TaskList + (*timestamppb.Timestamp)(nil), // 25: google.protobuf.Timestamp + (*v1.PollForActivityTaskRequest)(nil), // 26: uber.cadence.api.v1.PollForActivityTaskRequest + (*v1.ActivityType)(nil), // 27: uber.cadence.api.v1.ActivityType + (*v1.Payload)(nil), // 28: uber.cadence.api.v1.Payload + (*durationpb.Duration)(nil), // 29: google.protobuf.Duration + (*v1.Header)(nil), // 30: uber.cadence.api.v1.Header + (v11.TaskSource)(0), // 31: uber.cadence.shared.v1.TaskSource + (*v1.QueryWorkflowRequest)(nil), // 32: uber.cadence.api.v1.QueryWorkflowRequest + (*v1.QueryRejected)(nil), // 33: uber.cadence.api.v1.QueryRejected + (*v1.RespondQueryTaskCompletedRequest)(nil), // 34: uber.cadence.api.v1.RespondQueryTaskCompletedRequest + (v1.TaskListType)(0), // 35: uber.cadence.api.v1.TaskListType + (*v1.DescribeTaskListRequest)(nil), // 36: uber.cadence.api.v1.DescribeTaskListRequest + (*v1.PollerInfo)(nil), // 37: uber.cadence.api.v1.PollerInfo + (*v1.TaskListStatus)(nil), // 38: uber.cadence.api.v1.TaskListStatus + (*v1.TaskListPartitionMetadata)(nil), // 39: uber.cadence.api.v1.TaskListPartitionMetadata +} +var file_uber_cadence_matching_v1_service_proto_depIdxs = []int32{ + 19, // 0: uber.cadence.matching.v1.PollForDecisionTaskRequest.request:type_name -> uber.cadence.api.v1.PollForDecisionTaskRequest + 20, // 1: uber.cadence.matching.v1.PollForDecisionTaskResponse.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 21, // 2: uber.cadence.matching.v1.PollForDecisionTaskResponse.workflow_type:type_name -> uber.cadence.api.v1.WorkflowType + 22, // 3: uber.cadence.matching.v1.PollForDecisionTaskResponse.query:type_name -> uber.cadence.api.v1.WorkflowQuery + 23, // 4: uber.cadence.matching.v1.PollForDecisionTaskResponse.decision_info:type_name -> uber.cadence.shared.v1.TransientDecisionInfo + 24, // 5: uber.cadence.matching.v1.PollForDecisionTaskResponse.workflow_execution_task_list:type_name -> uber.cadence.api.v1.TaskList + 25, // 6: uber.cadence.matching.v1.PollForDecisionTaskResponse.scheduled_time:type_name -> google.protobuf.Timestamp + 25, // 7: uber.cadence.matching.v1.PollForDecisionTaskResponse.started_time:type_name -> google.protobuf.Timestamp + 18, // 8: uber.cadence.matching.v1.PollForDecisionTaskResponse.queries:type_name -> uber.cadence.matching.v1.PollForDecisionTaskResponse.QueriesEntry + 26, // 9: uber.cadence.matching.v1.PollForActivityTaskRequest.request:type_name -> uber.cadence.api.v1.PollForActivityTaskRequest + 20, // 10: uber.cadence.matching.v1.PollForActivityTaskResponse.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 27, // 11: uber.cadence.matching.v1.PollForActivityTaskResponse.activity_type:type_name -> uber.cadence.api.v1.ActivityType + 28, // 12: uber.cadence.matching.v1.PollForActivityTaskResponse.input:type_name -> uber.cadence.api.v1.Payload + 25, // 13: uber.cadence.matching.v1.PollForActivityTaskResponse.scheduled_time:type_name -> google.protobuf.Timestamp + 25, // 14: uber.cadence.matching.v1.PollForActivityTaskResponse.started_time:type_name -> google.protobuf.Timestamp + 29, // 15: uber.cadence.matching.v1.PollForActivityTaskResponse.schedule_to_close_timeout:type_name -> google.protobuf.Duration + 29, // 16: uber.cadence.matching.v1.PollForActivityTaskResponse.start_to_close_timeout:type_name -> google.protobuf.Duration + 29, // 17: uber.cadence.matching.v1.PollForActivityTaskResponse.heartbeat_timeout:type_name -> google.protobuf.Duration + 25, // 18: uber.cadence.matching.v1.PollForActivityTaskResponse.scheduled_time_of_this_attempt:type_name -> google.protobuf.Timestamp + 28, // 19: uber.cadence.matching.v1.PollForActivityTaskResponse.heartbeat_details:type_name -> uber.cadence.api.v1.Payload + 21, // 20: uber.cadence.matching.v1.PollForActivityTaskResponse.workflow_type:type_name -> uber.cadence.api.v1.WorkflowType + 30, // 21: uber.cadence.matching.v1.PollForActivityTaskResponse.header:type_name -> uber.cadence.api.v1.Header + 20, // 22: uber.cadence.matching.v1.AddDecisionTaskRequest.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 24, // 23: uber.cadence.matching.v1.AddDecisionTaskRequest.task_list:type_name -> uber.cadence.api.v1.TaskList + 29, // 24: uber.cadence.matching.v1.AddDecisionTaskRequest.schedule_to_start_timeout:type_name -> google.protobuf.Duration + 31, // 25: uber.cadence.matching.v1.AddDecisionTaskRequest.source:type_name -> uber.cadence.shared.v1.TaskSource + 20, // 26: uber.cadence.matching.v1.AddActivityTaskRequest.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 24, // 27: uber.cadence.matching.v1.AddActivityTaskRequest.task_list:type_name -> uber.cadence.api.v1.TaskList + 29, // 28: uber.cadence.matching.v1.AddActivityTaskRequest.schedule_to_start_timeout:type_name -> google.protobuf.Duration + 31, // 29: uber.cadence.matching.v1.AddActivityTaskRequest.source:type_name -> uber.cadence.shared.v1.TaskSource + 32, // 30: uber.cadence.matching.v1.QueryWorkflowRequest.request:type_name -> uber.cadence.api.v1.QueryWorkflowRequest + 24, // 31: uber.cadence.matching.v1.QueryWorkflowRequest.task_list:type_name -> uber.cadence.api.v1.TaskList + 28, // 32: uber.cadence.matching.v1.QueryWorkflowResponse.query_result:type_name -> uber.cadence.api.v1.Payload + 33, // 33: uber.cadence.matching.v1.QueryWorkflowResponse.query_rejected:type_name -> uber.cadence.api.v1.QueryRejected + 34, // 34: uber.cadence.matching.v1.RespondQueryTaskCompletedRequest.request:type_name -> uber.cadence.api.v1.RespondQueryTaskCompletedRequest + 24, // 35: uber.cadence.matching.v1.RespondQueryTaskCompletedRequest.task_list:type_name -> uber.cadence.api.v1.TaskList + 35, // 36: uber.cadence.matching.v1.CancelOutstandingPollRequest.task_list_type:type_name -> uber.cadence.api.v1.TaskListType + 24, // 37: uber.cadence.matching.v1.CancelOutstandingPollRequest.task_list:type_name -> uber.cadence.api.v1.TaskList + 36, // 38: uber.cadence.matching.v1.DescribeTaskListRequest.request:type_name -> uber.cadence.api.v1.DescribeTaskListRequest + 37, // 39: uber.cadence.matching.v1.DescribeTaskListResponse.pollers:type_name -> uber.cadence.api.v1.PollerInfo + 38, // 40: uber.cadence.matching.v1.DescribeTaskListResponse.task_list_status:type_name -> uber.cadence.api.v1.TaskListStatus + 24, // 41: uber.cadence.matching.v1.ListTaskListPartitionsRequest.task_list:type_name -> uber.cadence.api.v1.TaskList + 39, // 42: uber.cadence.matching.v1.ListTaskListPartitionsResponse.activity_task_list_partitions:type_name -> uber.cadence.api.v1.TaskListPartitionMetadata + 39, // 43: uber.cadence.matching.v1.ListTaskListPartitionsResponse.decision_task_list_partitions:type_name -> uber.cadence.api.v1.TaskListPartitionMetadata + 22, // 44: uber.cadence.matching.v1.PollForDecisionTaskResponse.QueriesEntry.value:type_name -> uber.cadence.api.v1.WorkflowQuery + 0, // 45: uber.cadence.matching.v1.MatchingAPI.PollForDecisionTask:input_type -> uber.cadence.matching.v1.PollForDecisionTaskRequest + 2, // 46: uber.cadence.matching.v1.MatchingAPI.PollForActivityTask:input_type -> uber.cadence.matching.v1.PollForActivityTaskRequest + 4, // 47: uber.cadence.matching.v1.MatchingAPI.AddDecisionTask:input_type -> uber.cadence.matching.v1.AddDecisionTaskRequest + 6, // 48: uber.cadence.matching.v1.MatchingAPI.AddActivityTask:input_type -> uber.cadence.matching.v1.AddActivityTaskRequest + 8, // 49: uber.cadence.matching.v1.MatchingAPI.QueryWorkflow:input_type -> uber.cadence.matching.v1.QueryWorkflowRequest + 10, // 50: uber.cadence.matching.v1.MatchingAPI.RespondQueryTaskCompleted:input_type -> uber.cadence.matching.v1.RespondQueryTaskCompletedRequest + 12, // 51: uber.cadence.matching.v1.MatchingAPI.CancelOutstandingPoll:input_type -> uber.cadence.matching.v1.CancelOutstandingPollRequest + 14, // 52: uber.cadence.matching.v1.MatchingAPI.DescribeTaskList:input_type -> uber.cadence.matching.v1.DescribeTaskListRequest + 16, // 53: uber.cadence.matching.v1.MatchingAPI.ListTaskListPartitions:input_type -> uber.cadence.matching.v1.ListTaskListPartitionsRequest + 1, // 54: uber.cadence.matching.v1.MatchingAPI.PollForDecisionTask:output_type -> uber.cadence.matching.v1.PollForDecisionTaskResponse + 3, // 55: uber.cadence.matching.v1.MatchingAPI.PollForActivityTask:output_type -> uber.cadence.matching.v1.PollForActivityTaskResponse + 5, // 56: uber.cadence.matching.v1.MatchingAPI.AddDecisionTask:output_type -> uber.cadence.matching.v1.AddDecisionTaskResponse + 7, // 57: uber.cadence.matching.v1.MatchingAPI.AddActivityTask:output_type -> uber.cadence.matching.v1.AddActivityTaskResponse + 9, // 58: uber.cadence.matching.v1.MatchingAPI.QueryWorkflow:output_type -> uber.cadence.matching.v1.QueryWorkflowResponse + 11, // 59: uber.cadence.matching.v1.MatchingAPI.RespondQueryTaskCompleted:output_type -> uber.cadence.matching.v1.RespondQueryTaskCompletedResponse + 13, // 60: uber.cadence.matching.v1.MatchingAPI.CancelOutstandingPoll:output_type -> uber.cadence.matching.v1.CancelOutstandingPollResponse + 15, // 61: uber.cadence.matching.v1.MatchingAPI.DescribeTaskList:output_type -> uber.cadence.matching.v1.DescribeTaskListResponse + 17, // 62: uber.cadence.matching.v1.MatchingAPI.ListTaskListPartitions:output_type -> uber.cadence.matching.v1.ListTaskListPartitionsResponse + 54, // [54:63] is the sub-list for method output_type + 45, // [45:54] is the sub-list for method input_type + 45, // [45:45] is the sub-list for extension type_name + 45, // [45:45] is the sub-list for extension extendee + 0, // [0:45] is the sub-list for field type_name +} + +func init() { file_uber_cadence_matching_v1_service_proto_init() } +func file_uber_cadence_matching_v1_service_proto_init() { + if File_uber_cadence_matching_v1_service_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_uber_cadence_matching_v1_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PollForDecisionTaskRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_matching_v1_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PollForDecisionTaskResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_matching_v1_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PollForActivityTaskRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_matching_v1_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PollForActivityTaskResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_matching_v1_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddDecisionTaskRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_matching_v1_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddDecisionTaskResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_matching_v1_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddActivityTaskRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_matching_v1_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddActivityTaskResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_matching_v1_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryWorkflowRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_matching_v1_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryWorkflowResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_matching_v1_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RespondQueryTaskCompletedRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_matching_v1_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RespondQueryTaskCompletedResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_matching_v1_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CancelOutstandingPollRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_matching_v1_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CancelOutstandingPollResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_matching_v1_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DescribeTaskListRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_matching_v1_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DescribeTaskListResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_matching_v1_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListTaskListPartitionsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_matching_v1_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListTaskListPartitionsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_uber_cadence_matching_v1_service_proto_rawDesc, + NumEnums: 0, + NumMessages: 19, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_uber_cadence_matching_v1_service_proto_goTypes, + DependencyIndexes: file_uber_cadence_matching_v1_service_proto_depIdxs, + MessageInfos: file_uber_cadence_matching_v1_service_proto_msgTypes, + }.Build() + File_uber_cadence_matching_v1_service_proto = out.File + file_uber_cadence_matching_v1_service_proto_rawDesc = nil + file_uber_cadence_matching_v1_service_proto_goTypes = nil + file_uber_cadence_matching_v1_service_proto_depIdxs = nil +} diff --git a/.gen/proto/matching/v1/service_grpc.pb.go b/.gen/proto/matching/v1/service_grpc.pb.go new file mode 100644 index 00000000000..123a7c3e802 --- /dev/null +++ b/.gen/proto/matching/v1/service_grpc.pb.go @@ -0,0 +1,452 @@ +// The MIT License (MIT) + +// Copyright (c) 2017-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-go-grpc. DO NOT EDIT. + +package matchingv1 + +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 + +// MatchingAPIClient is the client API for MatchingAPI 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 MatchingAPIClient interface { + // PollForDecisionTask is called by frontend to process DecisionTask from a specific taskList. A + // DecisionTask is dispatched to callers for active workflow executions, with pending decisions. + PollForDecisionTask(ctx context.Context, in *PollForDecisionTaskRequest, opts ...grpc.CallOption) (*PollForDecisionTaskResponse, error) + // PollForActivityTask is called by frontend to process ActivityTask from a specific taskList. ActivityTask + // is dispatched to callers whenever a ScheduleTask decision is made for a workflow execution. + PollForActivityTask(ctx context.Context, in *PollForActivityTaskRequest, opts ...grpc.CallOption) (*PollForActivityTaskResponse, error) + // AddDecisionTask is called by the history service when a decision task is scheduled, so that it can be dispatched + // by the MatchingEngine. + AddDecisionTask(ctx context.Context, in *AddDecisionTaskRequest, opts ...grpc.CallOption) (*AddDecisionTaskResponse, error) + // AddActivityTask is called by the history service when a decision 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 everytime 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) + // DescribeTaskList returns information about the target tasklist, right now this API returns the + // pollers which polled this tasklist in last few minutes. + DescribeTaskList(ctx context.Context, in *DescribeTaskListRequest, opts ...grpc.CallOption) (*DescribeTaskListResponse, error) + // ListTaskListPartitions returns a map of partitionKey and hostAddress for a taskList + ListTaskListPartitions(ctx context.Context, in *ListTaskListPartitionsRequest, opts ...grpc.CallOption) (*ListTaskListPartitionsResponse, error) +} + +type matchingAPIClient struct { + cc grpc.ClientConnInterface +} + +func NewMatchingAPIClient(cc grpc.ClientConnInterface) MatchingAPIClient { + return &matchingAPIClient{cc} +} + +func (c *matchingAPIClient) PollForDecisionTask(ctx context.Context, in *PollForDecisionTaskRequest, opts ...grpc.CallOption) (*PollForDecisionTaskResponse, error) { + out := new(PollForDecisionTaskResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.matching.v1.MatchingAPI/PollForDecisionTask", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *matchingAPIClient) PollForActivityTask(ctx context.Context, in *PollForActivityTaskRequest, opts ...grpc.CallOption) (*PollForActivityTaskResponse, error) { + out := new(PollForActivityTaskResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.matching.v1.MatchingAPI/PollForActivityTask", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *matchingAPIClient) AddDecisionTask(ctx context.Context, in *AddDecisionTaskRequest, opts ...grpc.CallOption) (*AddDecisionTaskResponse, error) { + out := new(AddDecisionTaskResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.matching.v1.MatchingAPI/AddDecisionTask", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *matchingAPIClient) AddActivityTask(ctx context.Context, in *AddActivityTaskRequest, opts ...grpc.CallOption) (*AddActivityTaskResponse, error) { + out := new(AddActivityTaskResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.matching.v1.MatchingAPI/AddActivityTask", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *matchingAPIClient) QueryWorkflow(ctx context.Context, in *QueryWorkflowRequest, opts ...grpc.CallOption) (*QueryWorkflowResponse, error) { + out := new(QueryWorkflowResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.matching.v1.MatchingAPI/QueryWorkflow", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *matchingAPIClient) RespondQueryTaskCompleted(ctx context.Context, in *RespondQueryTaskCompletedRequest, opts ...grpc.CallOption) (*RespondQueryTaskCompletedResponse, error) { + out := new(RespondQueryTaskCompletedResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.matching.v1.MatchingAPI/RespondQueryTaskCompleted", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *matchingAPIClient) CancelOutstandingPoll(ctx context.Context, in *CancelOutstandingPollRequest, opts ...grpc.CallOption) (*CancelOutstandingPollResponse, error) { + out := new(CancelOutstandingPollResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.matching.v1.MatchingAPI/CancelOutstandingPoll", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *matchingAPIClient) DescribeTaskList(ctx context.Context, in *DescribeTaskListRequest, opts ...grpc.CallOption) (*DescribeTaskListResponse, error) { + out := new(DescribeTaskListResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.matching.v1.MatchingAPI/DescribeTaskList", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *matchingAPIClient) ListTaskListPartitions(ctx context.Context, in *ListTaskListPartitionsRequest, opts ...grpc.CallOption) (*ListTaskListPartitionsResponse, error) { + out := new(ListTaskListPartitionsResponse) + err := c.cc.Invoke(ctx, "/uber.cadence.matching.v1.MatchingAPI/ListTaskListPartitions", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// MatchingAPIServer is the server API for MatchingAPI service. +// All implementations must embed UnimplementedMatchingAPIServer +// for forward compatibility +type MatchingAPIServer interface { + // PollForDecisionTask is called by frontend to process DecisionTask from a specific taskList. A + // DecisionTask is dispatched to callers for active workflow executions, with pending decisions. + PollForDecisionTask(context.Context, *PollForDecisionTaskRequest) (*PollForDecisionTaskResponse, error) + // PollForActivityTask is called by frontend to process ActivityTask from a specific taskList. ActivityTask + // is dispatched to callers whenever a ScheduleTask decision is made for a workflow execution. + PollForActivityTask(context.Context, *PollForActivityTaskRequest) (*PollForActivityTaskResponse, error) + // AddDecisionTask is called by the history service when a decision task is scheduled, so that it can be dispatched + // by the MatchingEngine. + AddDecisionTask(context.Context, *AddDecisionTaskRequest) (*AddDecisionTaskResponse, error) + // AddActivityTask is called by the history service when a decision 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 everytime 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) + // DescribeTaskList returns information about the target tasklist, right now this API returns the + // pollers which polled this tasklist in last few minutes. + DescribeTaskList(context.Context, *DescribeTaskListRequest) (*DescribeTaskListResponse, error) + // ListTaskListPartitions returns a map of partitionKey and hostAddress for a taskList + ListTaskListPartitions(context.Context, *ListTaskListPartitionsRequest) (*ListTaskListPartitionsResponse, error) + mustEmbedUnimplementedMatchingAPIServer() +} + +// UnimplementedMatchingAPIServer must be embedded to have forward compatible implementations. +type UnimplementedMatchingAPIServer struct { +} + +func (UnimplementedMatchingAPIServer) PollForDecisionTask(context.Context, *PollForDecisionTaskRequest) (*PollForDecisionTaskResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PollForDecisionTask not implemented") +} +func (UnimplementedMatchingAPIServer) PollForActivityTask(context.Context, *PollForActivityTaskRequest) (*PollForActivityTaskResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PollForActivityTask not implemented") +} +func (UnimplementedMatchingAPIServer) AddDecisionTask(context.Context, *AddDecisionTaskRequest) (*AddDecisionTaskResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddDecisionTask not implemented") +} +func (UnimplementedMatchingAPIServer) AddActivityTask(context.Context, *AddActivityTaskRequest) (*AddActivityTaskResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddActivityTask not implemented") +} +func (UnimplementedMatchingAPIServer) QueryWorkflow(context.Context, *QueryWorkflowRequest) (*QueryWorkflowResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryWorkflow not implemented") +} +func (UnimplementedMatchingAPIServer) RespondQueryTaskCompleted(context.Context, *RespondQueryTaskCompletedRequest) (*RespondQueryTaskCompletedResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RespondQueryTaskCompleted not implemented") +} +func (UnimplementedMatchingAPIServer) CancelOutstandingPoll(context.Context, *CancelOutstandingPollRequest) (*CancelOutstandingPollResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CancelOutstandingPoll not implemented") +} +func (UnimplementedMatchingAPIServer) DescribeTaskList(context.Context, *DescribeTaskListRequest) (*DescribeTaskListResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DescribeTaskList not implemented") +} +func (UnimplementedMatchingAPIServer) ListTaskListPartitions(context.Context, *ListTaskListPartitionsRequest) (*ListTaskListPartitionsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListTaskListPartitions not implemented") +} +func (UnimplementedMatchingAPIServer) mustEmbedUnimplementedMatchingAPIServer() {} + +// UnsafeMatchingAPIServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to MatchingAPIServer will +// result in compilation errors. +type UnsafeMatchingAPIServer interface { + mustEmbedUnimplementedMatchingAPIServer() +} + +func RegisterMatchingAPIServer(s grpc.ServiceRegistrar, srv MatchingAPIServer) { + s.RegisterService(&MatchingAPI_ServiceDesc, srv) +} + +func _MatchingAPI_PollForDecisionTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PollForDecisionTaskRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MatchingAPIServer).PollForDecisionTask(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.matching.v1.MatchingAPI/PollForDecisionTask", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MatchingAPIServer).PollForDecisionTask(ctx, req.(*PollForDecisionTaskRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MatchingAPI_PollForActivityTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PollForActivityTaskRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MatchingAPIServer).PollForActivityTask(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.matching.v1.MatchingAPI/PollForActivityTask", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MatchingAPIServer).PollForActivityTask(ctx, req.(*PollForActivityTaskRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MatchingAPI_AddDecisionTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddDecisionTaskRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MatchingAPIServer).AddDecisionTask(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.matching.v1.MatchingAPI/AddDecisionTask", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MatchingAPIServer).AddDecisionTask(ctx, req.(*AddDecisionTaskRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MatchingAPI_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.(MatchingAPIServer).AddActivityTask(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.matching.v1.MatchingAPI/AddActivityTask", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MatchingAPIServer).AddActivityTask(ctx, req.(*AddActivityTaskRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MatchingAPI_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.(MatchingAPIServer).QueryWorkflow(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.matching.v1.MatchingAPI/QueryWorkflow", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MatchingAPIServer).QueryWorkflow(ctx, req.(*QueryWorkflowRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MatchingAPI_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.(MatchingAPIServer).RespondQueryTaskCompleted(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.matching.v1.MatchingAPI/RespondQueryTaskCompleted", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MatchingAPIServer).RespondQueryTaskCompleted(ctx, req.(*RespondQueryTaskCompletedRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MatchingAPI_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.(MatchingAPIServer).CancelOutstandingPoll(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.matching.v1.MatchingAPI/CancelOutstandingPoll", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MatchingAPIServer).CancelOutstandingPoll(ctx, req.(*CancelOutstandingPollRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MatchingAPI_DescribeTaskList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DescribeTaskListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MatchingAPIServer).DescribeTaskList(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.matching.v1.MatchingAPI/DescribeTaskList", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MatchingAPIServer).DescribeTaskList(ctx, req.(*DescribeTaskListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MatchingAPI_ListTaskListPartitions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListTaskListPartitionsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MatchingAPIServer).ListTaskListPartitions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/uber.cadence.matching.v1.MatchingAPI/ListTaskListPartitions", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MatchingAPIServer).ListTaskListPartitions(ctx, req.(*ListTaskListPartitionsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// MatchingAPI_ServiceDesc is the grpc.ServiceDesc for MatchingAPI service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var MatchingAPI_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "uber.cadence.matching.v1.MatchingAPI", + HandlerType: (*MatchingAPIServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "PollForDecisionTask", + Handler: _MatchingAPI_PollForDecisionTask_Handler, + }, + { + MethodName: "PollForActivityTask", + Handler: _MatchingAPI_PollForActivityTask_Handler, + }, + { + MethodName: "AddDecisionTask", + Handler: _MatchingAPI_AddDecisionTask_Handler, + }, + { + MethodName: "AddActivityTask", + Handler: _MatchingAPI_AddActivityTask_Handler, + }, + { + MethodName: "QueryWorkflow", + Handler: _MatchingAPI_QueryWorkflow_Handler, + }, + { + MethodName: "RespondQueryTaskCompleted", + Handler: _MatchingAPI_RespondQueryTaskCompleted_Handler, + }, + { + MethodName: "CancelOutstandingPoll", + Handler: _MatchingAPI_CancelOutstandingPoll_Handler, + }, + { + MethodName: "DescribeTaskList", + Handler: _MatchingAPI_DescribeTaskList_Handler, + }, + { + MethodName: "ListTaskListPartitions", + Handler: _MatchingAPI_ListTaskListPartitions_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "uber/cadence/matching/v1/service.proto", +} diff --git a/.gen/proto/shared/v1/cluster.pb.go b/.gen/proto/shared/v1/cluster.pb.go index 7871db7a4fa..8bd9db00fe6 100644 --- a/.gen/proto/shared/v1/cluster.pb.go +++ b/.gen/proto/shared/v1/cluster.pb.go @@ -1,1365 +1,425 @@ -// The MIT License (MIT) - -// Copyright (c) 2017-2020 Uber Technologies Inc. - +// 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 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. +// 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. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.14.0 // source: uber/cadence/shared/v1/cluster.proto package sharedv1 import ( - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" reflect "reflect" - strings "strings" + sync "sync" - proto "github.com/gogo/protobuf/proto" + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// 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 +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type HostInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` } -func (m *HostInfo) Reset() { *m = HostInfo{} } -func (*HostInfo) ProtoMessage() {} -func (*HostInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_31e4c5c03631024e, []int{0} -} -func (m *HostInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HostInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_HostInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *HostInfo) Reset() { + *x = HostInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_shared_v1_cluster_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *HostInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_HostInfo.Merge(m, src) -} -func (m *HostInfo) XXX_Size() int { - return m.Size() -} -func (m *HostInfo) XXX_DiscardUnknown() { - xxx_messageInfo_HostInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_HostInfo proto.InternalMessageInfo -func (m *HostInfo) GetIdentity() string { - if m != nil { - return m.Identity - } - return "" +func (x *HostInfo) String() string { + return protoimpl.X.MessageStringOf(x) } -type RingInfo struct { - Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` - MemberCount int32 `protobuf:"varint,2,opt,name=member_count,json=memberCount,proto3" json:"member_count,omitempty"` - Members []*HostInfo `protobuf:"bytes,3,rep,name=members,proto3" json:"members,omitempty"` -} +func (*HostInfo) ProtoMessage() {} -func (m *RingInfo) Reset() { *m = RingInfo{} } -func (*RingInfo) ProtoMessage() {} -func (*RingInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_31e4c5c03631024e, []int{1} -} -func (m *RingInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RingInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RingInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *HostInfo) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_shared_v1_cluster_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *RingInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_RingInfo.Merge(m, src) -} -func (m *RingInfo) XXX_Size() int { - return m.Size() -} -func (m *RingInfo) XXX_DiscardUnknown() { - xxx_messageInfo_RingInfo.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_RingInfo proto.InternalMessageInfo - -func (m *RingInfo) GetRole() string { - if m != nil { - return m.Role - } - return "" +// Deprecated: Use HostInfo.ProtoReflect.Descriptor instead. +func (*HostInfo) Descriptor() ([]byte, []int) { + return file_uber_cadence_shared_v1_cluster_proto_rawDescGZIP(), []int{0} } -func (m *RingInfo) GetMemberCount() int32 { - if m != nil { - return m.MemberCount +func (x *HostInfo) GetIdentity() string { + if x != nil { + return x.Identity } - return 0 + return "" } -func (m *RingInfo) GetMembers() []*HostInfo { - if m != nil { - return m.Members - } - return nil -} +type RingInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type MembershipInfo struct { - CurrentHost *HostInfo `protobuf:"bytes,1,opt,name=current_host,json=currentHost,proto3" json:"current_host,omitempty"` - ReachableMembers []string `protobuf:"bytes,2,rep,name=reachable_members,json=reachableMembers,proto3" json:"reachable_members,omitempty"` - Rings []*RingInfo `protobuf:"bytes,3,rep,name=rings,proto3" json:"rings,omitempty"` + Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` + MemberCount int32 `protobuf:"varint,2,opt,name=member_count,json=memberCount,proto3" json:"member_count,omitempty"` + Members []*HostInfo `protobuf:"bytes,3,rep,name=members,proto3" json:"members,omitempty"` } -func (m *MembershipInfo) Reset() { *m = MembershipInfo{} } -func (*MembershipInfo) ProtoMessage() {} -func (*MembershipInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_31e4c5c03631024e, []int{2} -} -func (m *MembershipInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MembershipInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MembershipInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RingInfo) Reset() { + *x = RingInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_shared_v1_cluster_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *MembershipInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_MembershipInfo.Merge(m, src) -} -func (m *MembershipInfo) XXX_Size() int { - return m.Size() -} -func (m *MembershipInfo) XXX_DiscardUnknown() { - xxx_messageInfo_MembershipInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_MembershipInfo proto.InternalMessageInfo -func (m *MembershipInfo) GetCurrentHost() *HostInfo { - if m != nil { - return m.CurrentHost - } - return nil +func (x *RingInfo) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MembershipInfo) GetReachableMembers() []string { - if m != nil { - return m.ReachableMembers - } - return nil -} +func (*RingInfo) ProtoMessage() {} -func (m *MembershipInfo) GetRings() []*RingInfo { - if m != nil { - return m.Rings +func (x *RingInfo) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_shared_v1_cluster_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -type DomainCacheInfo struct { - NumOfItemsInCacheById int64 `protobuf:"varint,1,opt,name=num_of_items_in_cache_by_id,json=numOfItemsInCacheById,proto3" json:"num_of_items_in_cache_by_id,omitempty"` - NumOfItemsInCacheByName int64 `protobuf:"varint,2,opt,name=num_of_items_in_cache_by_name,json=numOfItemsInCacheByName,proto3" json:"num_of_items_in_cache_by_name,omitempty"` +// Deprecated: Use RingInfo.ProtoReflect.Descriptor instead. +func (*RingInfo) Descriptor() ([]byte, []int) { + return file_uber_cadence_shared_v1_cluster_proto_rawDescGZIP(), []int{1} } -func (m *DomainCacheInfo) Reset() { *m = DomainCacheInfo{} } -func (*DomainCacheInfo) ProtoMessage() {} -func (*DomainCacheInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_31e4c5c03631024e, []int{3} -} -func (m *DomainCacheInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DomainCacheInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DomainCacheInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RingInfo) GetRole() string { + if x != nil { + return x.Role } + return "" } -func (m *DomainCacheInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_DomainCacheInfo.Merge(m, src) -} -func (m *DomainCacheInfo) XXX_Size() int { - return m.Size() -} -func (m *DomainCacheInfo) XXX_DiscardUnknown() { - xxx_messageInfo_DomainCacheInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_DomainCacheInfo proto.InternalMessageInfo -func (m *DomainCacheInfo) GetNumOfItemsInCacheById() int64 { - if m != nil { - return m.NumOfItemsInCacheById +func (x *RingInfo) GetMemberCount() int32 { + if x != nil { + return x.MemberCount } return 0 } -func (m *DomainCacheInfo) GetNumOfItemsInCacheByName() int64 { - if m != nil { - return m.NumOfItemsInCacheByName +func (x *RingInfo) GetMembers() []*HostInfo { + if x != nil { + return x.Members } - return 0 -} - -func init() { - proto.RegisterType((*HostInfo)(nil), "uber.cadence.shared.v1.HostInfo") - proto.RegisterType((*RingInfo)(nil), "uber.cadence.shared.v1.RingInfo") - proto.RegisterType((*MembershipInfo)(nil), "uber.cadence.shared.v1.MembershipInfo") - proto.RegisterType((*DomainCacheInfo)(nil), "uber.cadence.shared.v1.DomainCacheInfo") + return nil } -func init() { - proto.RegisterFile("github.com/uber/cadence/.gen/proto/shared/v1/cluster.proto", fileDescriptor_31e4c5c03631024e) -} +type MembershipInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -var fileDescriptor_31e4c5c03631024e = []byte{ - // 411 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0x4f, 0x8b, 0x13, 0x31, - 0x18, 0x87, 0x27, 0x3b, 0xae, 0x76, 0xd3, 0xc5, 0x3f, 0x01, 0xb5, 0x28, 0x86, 0xb1, 0x88, 0x14, - 0x84, 0x29, 0x55, 0xf0, 0xb0, 0x87, 0x3d, 0x6c, 0x3d, 0xd8, 0x83, 0x0a, 0x39, 0x7a, 0x09, 0x99, - 0xcc, 0xdb, 0x9d, 0x40, 0x93, 0x2c, 0x99, 0x4c, 0xa1, 0x07, 0xc1, 0x2f, 0x20, 0xf8, 0x31, 0xfc, - 0x0c, 0x7e, 0x02, 0x8f, 0x3d, 0xee, 0xd1, 0x4e, 0x2f, 0x1e, 0xf7, 0x23, 0xc8, 0x64, 0x3a, 0x7b, - 0xaa, 0xb8, 0xb7, 0xe4, 0x7d, 0x9f, 0xdf, 0xcc, 0xf3, 0xbe, 0x04, 0xbf, 0xa8, 0x32, 0x70, 0x63, - 0x29, 0x72, 0x30, 0x12, 0xc6, 0x65, 0x21, 0x1c, 0xe4, 0xe3, 0xe5, 0x64, 0x2c, 0x17, 0x55, 0xe9, - 0xc1, 0xa5, 0x17, 0xce, 0x7a, 0x4b, 0x1e, 0x35, 0x54, 0xba, 0xa3, 0xd2, 0x96, 0x4a, 0x97, 0x93, - 0xe1, 0x4b, 0xdc, 0x7b, 0x6f, 0x4b, 0x3f, 0x33, 0x73, 0x4b, 0x9e, 0xe0, 0x9e, 0xca, 0xc1, 0x78, - 0xe5, 0x57, 0x03, 0x94, 0xa0, 0xd1, 0x11, 0xbb, 0xbe, 0x0f, 0xbf, 0xe0, 0x1e, 0x53, 0xe6, 0x3c, - 0x70, 0x04, 0xdf, 0x72, 0x76, 0x01, 0x3b, 0x26, 0x9c, 0xc9, 0x73, 0x7c, 0xac, 0x41, 0x67, 0xe0, - 0xb8, 0xb4, 0x95, 0xf1, 0x83, 0x83, 0x04, 0x8d, 0x0e, 0x59, 0xbf, 0xad, 0x4d, 0x9b, 0x12, 0x39, - 0xc1, 0x77, 0xda, 0x6b, 0x39, 0x88, 0x93, 0x78, 0xd4, 0x7f, 0x9d, 0xa4, 0xfb, 0xa5, 0xd2, 0xce, - 0x88, 0x75, 0x81, 0xe1, 0x4f, 0x84, 0xef, 0x7e, 0x68, 0xcf, 0x85, 0xba, 0x08, 0x16, 0x53, 0x7c, - 0x2c, 0x2b, 0xe7, 0xc0, 0x78, 0x5e, 0xd8, 0xd2, 0x07, 0x9b, 0x9b, 0x7c, 0xb3, 0xbf, 0x4b, 0x35, - 0x05, 0xf2, 0x0a, 0x3f, 0x70, 0x20, 0x64, 0x21, 0xb2, 0x05, 0xf0, 0xce, 0xee, 0x20, 0x89, 0x47, - 0x47, 0xec, 0xfe, 0x75, 0x63, 0xf7, 0x63, 0xf2, 0x16, 0x1f, 0x3a, 0x65, 0xce, 0xff, 0xab, 0xdf, - 0x2d, 0x8a, 0xb5, 0xf8, 0xf0, 0x1b, 0xc2, 0xf7, 0xde, 0x59, 0x2d, 0x94, 0x99, 0x0a, 0x59, 0x40, - 0xb0, 0x3f, 0xc1, 0x4f, 0x4d, 0xa5, 0xb9, 0x9d, 0x73, 0xe5, 0x41, 0x97, 0x5c, 0x19, 0x2e, 0x9b, - 0x26, 0xcf, 0x56, 0x5c, 0xe5, 0x61, 0x98, 0x98, 0x3d, 0x34, 0x95, 0xfe, 0x34, 0x9f, 0x35, 0xc0, - 0xac, 0xcd, 0x9e, 0xad, 0x66, 0x39, 0x39, 0xc5, 0xcf, 0xfe, 0x99, 0x35, 0x42, 0x43, 0x58, 0x7e, - 0xcc, 0x1e, 0xef, 0x49, 0x7f, 0x14, 0x1a, 0xce, 0x4e, 0xd7, 0x1b, 0x1a, 0x5d, 0x6e, 0x68, 0x74, - 0xb5, 0xa1, 0xe8, 0x6b, 0x4d, 0xd1, 0x8f, 0x9a, 0xa2, 0x5f, 0x35, 0x45, 0xeb, 0x9a, 0xa2, 0xdf, - 0x35, 0x45, 0x7f, 0x6a, 0x1a, 0x5d, 0xd5, 0x14, 0x7d, 0xdf, 0xd2, 0x68, 0xbd, 0xa5, 0xd1, 0xe5, - 0x96, 0x46, 0x9f, 0x7b, 0xed, 0x80, 0xcb, 0x49, 0x76, 0x3b, 0x3c, 0xa9, 0x37, 0x7f, 0x03, 0x00, - 0x00, 0xff, 0xff, 0x43, 0xd2, 0xd5, 0x1b, 0x7a, 0x02, 0x00, 0x00, + CurrentHost *HostInfo `protobuf:"bytes,1,opt,name=current_host,json=currentHost,proto3" json:"current_host,omitempty"` + ReachableMembers []string `protobuf:"bytes,2,rep,name=reachable_members,json=reachableMembers,proto3" json:"reachable_members,omitempty"` + Rings []*RingInfo `protobuf:"bytes,3,rep,name=rings,proto3" json:"rings,omitempty"` } -func (this *HostInfo) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*HostInfo) - if !ok { - that2, ok := that.(HostInfo) - if ok { - that1 = &that2 - } else { - return false - } +func (x *MembershipInfo) Reset() { + *x = MembershipInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_shared_v1_cluster_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Identity != that1.Identity { - return false - } - return true } -func (this *RingInfo) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*RingInfo) - if !ok { - that2, ok := that.(RingInfo) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Role != that1.Role { - return false - } - if this.MemberCount != that1.MemberCount { - return false - } - if len(this.Members) != len(that1.Members) { - return false - } - for i := range this.Members { - if !this.Members[i].Equal(that1.Members[i]) { - return false - } - } - return true +func (x *MembershipInfo) String() string { + return protoimpl.X.MessageStringOf(x) } -func (this *MembershipInfo) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*MembershipInfo) - if !ok { - that2, ok := that.(MembershipInfo) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.CurrentHost.Equal(that1.CurrentHost) { - return false - } - if len(this.ReachableMembers) != len(that1.ReachableMembers) { - return false - } - for i := range this.ReachableMembers { - if this.ReachableMembers[i] != that1.ReachableMembers[i] { - return false - } - } - if len(this.Rings) != len(that1.Rings) { - return false - } - for i := range this.Rings { - if !this.Rings[i].Equal(that1.Rings[i]) { - return false - } - } - return true -} -func (this *DomainCacheInfo) Equal(that interface{}) bool { - if that == nil { - return this == nil - } +func (*MembershipInfo) ProtoMessage() {} - that1, ok := that.(*DomainCacheInfo) - if !ok { - that2, ok := that.(DomainCacheInfo) - if ok { - that1 = &that2 - } else { - return false +func (x *MembershipInfo) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_shared_v1_cluster_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.NumOfItemsInCacheById != that1.NumOfItemsInCacheById { - return false - } - if this.NumOfItemsInCacheByName != that1.NumOfItemsInCacheByName { - return false - } - return true -} -func (this *HostInfo) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&sharedv1.HostInfo{") - s = append(s, "Identity: "+fmt.Sprintf("%#v", this.Identity)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RingInfo) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&sharedv1.RingInfo{") - s = append(s, "Role: "+fmt.Sprintf("%#v", this.Role)+",\n") - s = append(s, "MemberCount: "+fmt.Sprintf("%#v", this.MemberCount)+",\n") - if this.Members != nil { - s = append(s, "Members: "+fmt.Sprintf("%#v", this.Members)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *MembershipInfo) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&sharedv1.MembershipInfo{") - if this.CurrentHost != nil { - s = append(s, "CurrentHost: "+fmt.Sprintf("%#v", this.CurrentHost)+",\n") - } - s = append(s, "ReachableMembers: "+fmt.Sprintf("%#v", this.ReachableMembers)+",\n") - if this.Rings != nil { - s = append(s, "Rings: "+fmt.Sprintf("%#v", this.Rings)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DomainCacheInfo) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&sharedv1.DomainCacheInfo{") - s = append(s, "NumOfItemsInCacheById: "+fmt.Sprintf("%#v", this.NumOfItemsInCacheById)+",\n") - s = append(s, "NumOfItemsInCacheByName: "+fmt.Sprintf("%#v", this.NumOfItemsInCacheByName)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func valueToGoStringCluster(v interface{}, typ string) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) -} -func (m *HostInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *HostInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HostInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Identity) > 0 { - i -= len(m.Identity) - copy(dAtA[i:], m.Identity) - i = encodeVarintCluster(dAtA, i, uint64(len(m.Identity))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return mi.MessageOf(x) } -func (m *RingInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RingInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use MembershipInfo.ProtoReflect.Descriptor instead. +func (*MembershipInfo) Descriptor() ([]byte, []int) { + return file_uber_cadence_shared_v1_cluster_proto_rawDescGZIP(), []int{2} } -func (m *RingInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Members) > 0 { - for iNdEx := len(m.Members) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Members[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCluster(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if m.MemberCount != 0 { - i = encodeVarintCluster(dAtA, i, uint64(m.MemberCount)) - i-- - dAtA[i] = 0x10 - } - if len(m.Role) > 0 { - i -= len(m.Role) - copy(dAtA[i:], m.Role) - i = encodeVarintCluster(dAtA, i, uint64(len(m.Role))) - i-- - dAtA[i] = 0xa +func (x *MembershipInfo) GetCurrentHost() *HostInfo { + if x != nil { + return x.CurrentHost } - return len(dAtA) - i, nil + return nil } -func (m *MembershipInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *MembershipInfo) GetReachableMembers() []string { + if x != nil { + return x.ReachableMembers } - return dAtA[:n], nil -} - -func (m *MembershipInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return nil } -func (m *MembershipInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Rings) > 0 { - for iNdEx := len(m.Rings) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Rings[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCluster(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.ReachableMembers) > 0 { - for iNdEx := len(m.ReachableMembers) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.ReachableMembers[iNdEx]) - copy(dAtA[i:], m.ReachableMembers[iNdEx]) - i = encodeVarintCluster(dAtA, i, uint64(len(m.ReachableMembers[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if m.CurrentHost != nil { - { - size, err := m.CurrentHost.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCluster(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa +func (x *MembershipInfo) GetRings() []*RingInfo { + if x != nil { + return x.Rings } - return len(dAtA) - i, nil + return nil } -func (m *DomainCacheInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} +type DomainCacheInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *DomainCacheInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + NumOfItemsInCacheById int64 `protobuf:"varint,1,opt,name=num_of_items_in_cache_by_id,json=numOfItemsInCacheById,proto3" json:"num_of_items_in_cache_by_id,omitempty"` + NumOfItemsInCacheByName int64 `protobuf:"varint,2,opt,name=num_of_items_in_cache_by_name,json=numOfItemsInCacheByName,proto3" json:"num_of_items_in_cache_by_name,omitempty"` } -func (m *DomainCacheInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.NumOfItemsInCacheByName != 0 { - i = encodeVarintCluster(dAtA, i, uint64(m.NumOfItemsInCacheByName)) - i-- - dAtA[i] = 0x10 - } - if m.NumOfItemsInCacheById != 0 { - i = encodeVarintCluster(dAtA, i, uint64(m.NumOfItemsInCacheById)) - i-- - dAtA[i] = 0x8 +func (x *DomainCacheInfo) Reset() { + *x = DomainCacheInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_shared_v1_cluster_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return len(dAtA) - i, nil } -func encodeVarintCluster(dAtA []byte, offset int, v uint64) int { - offset -= sovCluster(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *HostInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Identity) - if l > 0 { - n += 1 + l + sovCluster(uint64(l)) - } - return n +func (x *DomainCacheInfo) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RingInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Role) - if l > 0 { - n += 1 + l + sovCluster(uint64(l)) - } - if m.MemberCount != 0 { - n += 1 + sovCluster(uint64(m.MemberCount)) - } - if len(m.Members) > 0 { - for _, e := range m.Members { - l = e.Size() - n += 1 + l + sovCluster(uint64(l)) - } - } - return n -} +func (*DomainCacheInfo) ProtoMessage() {} -func (m *MembershipInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.CurrentHost != nil { - l = m.CurrentHost.Size() - n += 1 + l + sovCluster(uint64(l)) - } - if len(m.ReachableMembers) > 0 { - for _, s := range m.ReachableMembers { - l = len(s) - n += 1 + l + sovCluster(uint64(l)) +func (x *DomainCacheInfo) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_shared_v1_cluster_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if len(m.Rings) > 0 { - for _, e := range m.Rings { - l = e.Size() - n += 1 + l + sovCluster(uint64(l)) - } - } - return n -} - -func (m *DomainCacheInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.NumOfItemsInCacheById != 0 { - n += 1 + sovCluster(uint64(m.NumOfItemsInCacheById)) - } - if m.NumOfItemsInCacheByName != 0 { - n += 1 + sovCluster(uint64(m.NumOfItemsInCacheByName)) - } - return n + return mi.MessageOf(x) } -func sovCluster(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozCluster(x uint64) (n int) { - return sovCluster(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *HostInfo) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HostInfo{`, - `Identity:` + fmt.Sprintf("%v", this.Identity) + `,`, - `}`, - }, "") - return s -} -func (this *RingInfo) String() string { - if this == nil { - return "nil" - } - repeatedStringForMembers := "[]*HostInfo{" - for _, f := range this.Members { - repeatedStringForMembers += strings.Replace(f.String(), "HostInfo", "HostInfo", 1) + "," - } - repeatedStringForMembers += "}" - s := strings.Join([]string{`&RingInfo{`, - `Role:` + fmt.Sprintf("%v", this.Role) + `,`, - `MemberCount:` + fmt.Sprintf("%v", this.MemberCount) + `,`, - `Members:` + repeatedStringForMembers + `,`, - `}`, - }, "") - return s -} -func (this *MembershipInfo) String() string { - if this == nil { - return "nil" - } - repeatedStringForRings := "[]*RingInfo{" - for _, f := range this.Rings { - repeatedStringForRings += strings.Replace(f.String(), "RingInfo", "RingInfo", 1) + "," - } - repeatedStringForRings += "}" - s := strings.Join([]string{`&MembershipInfo{`, - `CurrentHost:` + strings.Replace(this.CurrentHost.String(), "HostInfo", "HostInfo", 1) + `,`, - `ReachableMembers:` + fmt.Sprintf("%v", this.ReachableMembers) + `,`, - `Rings:` + repeatedStringForRings + `,`, - `}`, - }, "") - return s -} -func (this *DomainCacheInfo) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DomainCacheInfo{`, - `NumOfItemsInCacheById:` + fmt.Sprintf("%v", this.NumOfItemsInCacheById) + `,`, - `NumOfItemsInCacheByName:` + fmt.Sprintf("%v", this.NumOfItemsInCacheByName) + `,`, - `}`, - }, "") - return s -} -func valueToStringCluster(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *HostInfo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCluster - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: HostInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HostInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCluster - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthCluster - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCluster - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identity = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCluster(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthCluster - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthCluster - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +// Deprecated: Use DomainCacheInfo.ProtoReflect.Descriptor instead. +func (*DomainCacheInfo) Descriptor() ([]byte, []int) { + return file_uber_cadence_shared_v1_cluster_proto_rawDescGZIP(), []int{3} } -func (m *RingInfo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCluster - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RingInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RingInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCluster - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthCluster - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCluster - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Role = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MemberCount", wireType) - } - m.MemberCount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCluster - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MemberCount |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCluster - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthCluster - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCluster - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Members = append(m.Members, &HostInfo{}) - if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCluster(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthCluster - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthCluster - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *DomainCacheInfo) GetNumOfItemsInCacheById() int64 { + if x != nil { + return x.NumOfItemsInCacheById } - return nil + return 0 } -func (m *MembershipInfo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCluster - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MembershipInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MembershipInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentHost", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCluster - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthCluster - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCluster - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CurrentHost == nil { - m.CurrentHost = &HostInfo{} - } - if err := m.CurrentHost.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReachableMembers", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCluster - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthCluster - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCluster - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ReachableMembers = append(m.ReachableMembers, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rings", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCluster - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthCluster - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCluster - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rings = append(m.Rings, &RingInfo{}) - if err := m.Rings[len(m.Rings)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCluster(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthCluster - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthCluster - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *DomainCacheInfo) GetNumOfItemsInCacheByName() int64 { + if x != nil { + return x.NumOfItemsInCacheByName } - return nil + return 0 } -func (m *DomainCacheInfo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCluster - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DomainCacheInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DomainCacheInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumOfItemsInCacheById", wireType) - } - m.NumOfItemsInCacheById = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCluster - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NumOfItemsInCacheById |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumOfItemsInCacheByName", wireType) - } - m.NumOfItemsInCacheByName = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCluster - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NumOfItemsInCacheByName |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipCluster(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthCluster - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthCluster - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipCluster(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowCluster - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowCluster - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowCluster - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthCluster - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupCluster - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthCluster - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF +var File_uber_cadence_shared_v1_cluster_proto protoreflect.FileDescriptor + +var file_uber_cadence_shared_v1_cluster_proto_rawDesc = []byte{ + 0x0a, 0x24, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x22, 0x26, + 0x0a, 0x08, 0x48, 0x6f, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0x7d, 0x0a, 0x08, 0x52, 0x69, 0x6e, 0x67, 0x49, 0x6e, + 0x66, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, + 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x6d, 0x65, + 0x6d, 0x62, 0x65, 0x72, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x3a, 0x0a, 0x07, 0x6d, 0x65, 0x6d, + 0x62, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, + 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x07, 0x6d, 0x65, + 0x6d, 0x62, 0x65, 0x72, 0x73, 0x22, 0xba, 0x01, 0x0a, 0x0e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, + 0x73, 0x68, 0x69, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x43, 0x0a, 0x0c, 0x63, 0x75, 0x72, 0x72, + 0x65, 0x6e, 0x74, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, + 0x52, 0x0b, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x2b, 0x0a, + 0x11, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6d, 0x65, 0x6d, 0x62, 0x65, + 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x10, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, + 0x62, 0x6c, 0x65, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, 0x36, 0x0a, 0x05, 0x72, 0x69, + 0x6e, 0x67, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, + 0x76, 0x31, 0x2e, 0x52, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05, 0x72, 0x69, 0x6e, + 0x67, 0x73, 0x22, 0x8d, 0x01, 0x0a, 0x0f, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x43, 0x61, 0x63, + 0x68, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x3a, 0x0a, 0x1b, 0x6e, 0x75, 0x6d, 0x5f, 0x6f, 0x66, + 0x5f, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x5f, 0x69, 0x6e, 0x5f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, + 0x62, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x15, 0x6e, 0x75, 0x6d, + 0x4f, 0x66, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x49, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x42, 0x79, + 0x49, 0x64, 0x12, 0x3e, 0x0a, 0x1d, 0x6e, 0x75, 0x6d, 0x5f, 0x6f, 0x66, 0x5f, 0x69, 0x74, 0x65, + 0x6d, 0x73, 0x5f, 0x69, 0x6e, 0x5f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x62, 0x79, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x17, 0x6e, 0x75, 0x6d, 0x4f, 0x66, + 0x49, 0x74, 0x65, 0x6d, 0x73, 0x49, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x42, 0x79, 0x4e, 0x61, + 0x6d, 0x65, 0x42, 0x37, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x2e, 0x67, + 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, + 0x76, 0x31, 0x3b, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( - ErrInvalidLengthCluster = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowCluster = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupCluster = fmt.Errorf("proto: unexpected end of group") + file_uber_cadence_shared_v1_cluster_proto_rawDescOnce sync.Once + file_uber_cadence_shared_v1_cluster_proto_rawDescData = file_uber_cadence_shared_v1_cluster_proto_rawDesc ) + +func file_uber_cadence_shared_v1_cluster_proto_rawDescGZIP() []byte { + file_uber_cadence_shared_v1_cluster_proto_rawDescOnce.Do(func() { + file_uber_cadence_shared_v1_cluster_proto_rawDescData = protoimpl.X.CompressGZIP(file_uber_cadence_shared_v1_cluster_proto_rawDescData) + }) + return file_uber_cadence_shared_v1_cluster_proto_rawDescData +} + +var file_uber_cadence_shared_v1_cluster_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_uber_cadence_shared_v1_cluster_proto_goTypes = []interface{}{ + (*HostInfo)(nil), // 0: uber.cadence.shared.v1.HostInfo + (*RingInfo)(nil), // 1: uber.cadence.shared.v1.RingInfo + (*MembershipInfo)(nil), // 2: uber.cadence.shared.v1.MembershipInfo + (*DomainCacheInfo)(nil), // 3: uber.cadence.shared.v1.DomainCacheInfo +} +var file_uber_cadence_shared_v1_cluster_proto_depIdxs = []int32{ + 0, // 0: uber.cadence.shared.v1.RingInfo.members:type_name -> uber.cadence.shared.v1.HostInfo + 0, // 1: uber.cadence.shared.v1.MembershipInfo.current_host:type_name -> uber.cadence.shared.v1.HostInfo + 1, // 2: uber.cadence.shared.v1.MembershipInfo.rings:type_name -> uber.cadence.shared.v1.RingInfo + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_uber_cadence_shared_v1_cluster_proto_init() } +func file_uber_cadence_shared_v1_cluster_proto_init() { + if File_uber_cadence_shared_v1_cluster_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_uber_cadence_shared_v1_cluster_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HostInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_shared_v1_cluster_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RingInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_shared_v1_cluster_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MembershipInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_shared_v1_cluster_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DomainCacheInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_uber_cadence_shared_v1_cluster_proto_rawDesc, + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_uber_cadence_shared_v1_cluster_proto_goTypes, + DependencyIndexes: file_uber_cadence_shared_v1_cluster_proto_depIdxs, + MessageInfos: file_uber_cadence_shared_v1_cluster_proto_msgTypes, + }.Build() + File_uber_cadence_shared_v1_cluster_proto = out.File + file_uber_cadence_shared_v1_cluster_proto_rawDesc = nil + file_uber_cadence_shared_v1_cluster_proto_goTypes = nil + file_uber_cadence_shared_v1_cluster_proto_depIdxs = nil +} diff --git a/.gen/proto/shared/v1/history.pb.go b/.gen/proto/shared/v1/history.pb.go index cee357922c6..488abf804e5 100644 --- a/.gen/proto/shared/v1/history.pb.go +++ b/.gen/proto/shared/v1/history.pb.go @@ -1,1317 +1,426 @@ -// The MIT License (MIT) - -// Copyright (c) 2017-2020 Uber Technologies Inc. - +// 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 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. +// 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. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.14.0 // source: uber/cadence/shared/v1/history.proto package sharedv1 import ( - bytes "bytes" - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" reflect "reflect" - strings "strings" + sync "sync" - proto "github.com/gogo/protobuf/proto" + proto "github.com/golang/protobuf/proto" v1 "github.com/uber/cadence/.gen/proto/api/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// 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 +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type TransientDecisionInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + ScheduledEvent *v1.HistoryEvent `protobuf:"bytes,1,opt,name=scheduled_event,json=scheduledEvent,proto3" json:"scheduled_event,omitempty"` StartedEvent *v1.HistoryEvent `protobuf:"bytes,2,opt,name=started_event,json=startedEvent,proto3" json:"started_event,omitempty"` } -func (m *TransientDecisionInfo) Reset() { *m = TransientDecisionInfo{} } -func (*TransientDecisionInfo) ProtoMessage() {} -func (*TransientDecisionInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_0370c4177fcc3ee8, []int{0} -} -func (m *TransientDecisionInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TransientDecisionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TransientDecisionInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *TransientDecisionInfo) Reset() { + *x = TransientDecisionInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_shared_v1_history_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *TransientDecisionInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_TransientDecisionInfo.Merge(m, src) -} -func (m *TransientDecisionInfo) XXX_Size() int { - return m.Size() -} -func (m *TransientDecisionInfo) XXX_DiscardUnknown() { - xxx_messageInfo_TransientDecisionInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_TransientDecisionInfo proto.InternalMessageInfo -func (m *TransientDecisionInfo) GetScheduledEvent() *v1.HistoryEvent { - if m != nil { - return m.ScheduledEvent - } - return nil -} - -func (m *TransientDecisionInfo) GetStartedEvent() *v1.HistoryEvent { - if m != nil { - return m.StartedEvent - } - return nil +func (x *TransientDecisionInfo) String() string { + return protoimpl.X.MessageStringOf(x) } -// VersionHistoryItem contains signal eventId and the corresponding version. -type VersionHistoryItem struct { - EventId int64 `protobuf:"varint,1,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"` - Version int64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` -} +func (*TransientDecisionInfo) ProtoMessage() {} -func (m *VersionHistoryItem) Reset() { *m = VersionHistoryItem{} } -func (*VersionHistoryItem) ProtoMessage() {} -func (*VersionHistoryItem) Descriptor() ([]byte, []int) { - return fileDescriptor_0370c4177fcc3ee8, []int{1} -} -func (m *VersionHistoryItem) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VersionHistoryItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_VersionHistoryItem.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *TransientDecisionInfo) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_shared_v1_history_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *VersionHistoryItem) XXX_Merge(src proto.Message) { - xxx_messageInfo_VersionHistoryItem.Merge(m, src) -} -func (m *VersionHistoryItem) XXX_Size() int { - return m.Size() -} -func (m *VersionHistoryItem) XXX_DiscardUnknown() { - xxx_messageInfo_VersionHistoryItem.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_VersionHistoryItem proto.InternalMessageInfo - -func (m *VersionHistoryItem) GetEventId() int64 { - if m != nil { - return m.EventId - } - return 0 -} - -func (m *VersionHistoryItem) GetVersion() int64 { - if m != nil { - return m.Version - } - return 0 -} - -// VersionHistory contains the version history of a branch. -type VersionHistory struct { - BranchToken []byte `protobuf:"bytes,1,opt,name=branch_token,json=branchToken,proto3" json:"branch_token,omitempty"` - Items []*VersionHistoryItem `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` +// Deprecated: Use TransientDecisionInfo.ProtoReflect.Descriptor instead. +func (*TransientDecisionInfo) Descriptor() ([]byte, []int) { + return file_uber_cadence_shared_v1_history_proto_rawDescGZIP(), []int{0} } -func (m *VersionHistory) Reset() { *m = VersionHistory{} } -func (*VersionHistory) ProtoMessage() {} -func (*VersionHistory) Descriptor() ([]byte, []int) { - return fileDescriptor_0370c4177fcc3ee8, []int{2} -} -func (m *VersionHistory) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VersionHistory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_VersionHistory.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *VersionHistory) XXX_Merge(src proto.Message) { - xxx_messageInfo_VersionHistory.Merge(m, src) -} -func (m *VersionHistory) XXX_Size() int { - return m.Size() -} -func (m *VersionHistory) XXX_DiscardUnknown() { - xxx_messageInfo_VersionHistory.DiscardUnknown(m) -} - -var xxx_messageInfo_VersionHistory proto.InternalMessageInfo - -func (m *VersionHistory) GetBranchToken() []byte { - if m != nil { - return m.BranchToken +func (x *TransientDecisionInfo) GetScheduledEvent() *v1.HistoryEvent { + if x != nil { + return x.ScheduledEvent } return nil } -func (m *VersionHistory) GetItems() []*VersionHistoryItem { - if m != nil { - return m.Items +func (x *TransientDecisionInfo) GetStartedEvent() *v1.HistoryEvent { + if x != nil { + return x.StartedEvent } return nil } -// VersionHistories contains all version histories from all branches. -type VersionHistories struct { - CurrentVersionHistoryIndex int32 `protobuf:"varint,1,opt,name=current_version_history_index,json=currentVersionHistoryIndex,proto3" json:"current_version_history_index,omitempty"` - Histories []*VersionHistory `protobuf:"bytes,2,rep,name=histories,proto3" json:"histories,omitempty"` -} - -func (m *VersionHistories) Reset() { *m = VersionHistories{} } -func (*VersionHistories) ProtoMessage() {} -func (*VersionHistories) Descriptor() ([]byte, []int) { - return fileDescriptor_0370c4177fcc3ee8, []int{3} -} -func (m *VersionHistories) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VersionHistories) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_VersionHistories.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *VersionHistories) XXX_Merge(src proto.Message) { - xxx_messageInfo_VersionHistories.Merge(m, src) -} -func (m *VersionHistories) XXX_Size() int { - return m.Size() -} -func (m *VersionHistories) XXX_DiscardUnknown() { - xxx_messageInfo_VersionHistories.DiscardUnknown(m) -} - -var xxx_messageInfo_VersionHistories proto.InternalMessageInfo +// VersionHistoryItem contains signal eventId and the corresponding version. +type VersionHistoryItem struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *VersionHistories) GetCurrentVersionHistoryIndex() int32 { - if m != nil { - return m.CurrentVersionHistoryIndex - } - return 0 + EventId int64 `protobuf:"varint,1,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"` + Version int64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` } -func (m *VersionHistories) GetHistories() []*VersionHistory { - if m != nil { - return m.Histories +func (x *VersionHistoryItem) Reset() { + *x = VersionHistoryItem{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_shared_v1_history_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func init() { - proto.RegisterType((*TransientDecisionInfo)(nil), "uber.cadence.shared.v1.TransientDecisionInfo") - proto.RegisterType((*VersionHistoryItem)(nil), "uber.cadence.shared.v1.VersionHistoryItem") - proto.RegisterType((*VersionHistory)(nil), "uber.cadence.shared.v1.VersionHistory") - proto.RegisterType((*VersionHistories)(nil), "uber.cadence.shared.v1.VersionHistories") +func (x *VersionHistoryItem) String() string { + return protoimpl.X.MessageStringOf(x) } -func init() { - proto.RegisterFile("github.com/uber/cadence/.gen/proto/shared/v1/history.proto", fileDescriptor_0370c4177fcc3ee8) -} - -var fileDescriptor_0370c4177fcc3ee8 = []byte{ - // 398 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xb1, 0x0e, 0xd2, 0x40, - 0x1c, 0xc6, 0x7b, 0x10, 0x04, 0x0f, 0x44, 0x73, 0x89, 0x06, 0x49, 0xbc, 0x40, 0x63, 0x0c, 0x71, - 0xb8, 0xa6, 0xb8, 0x1b, 0x35, 0x68, 0xac, 0x63, 0x43, 0x1c, 0x5c, 0x9a, 0xd2, 0xfe, 0x4d, 0x2f, - 0xca, 0x95, 0xdc, 0x5d, 0x1b, 0xdd, 0x7c, 0x04, 0x77, 0x5f, 0xc0, 0xc4, 0x17, 0x71, 0x64, 0x64, - 0x94, 0xb2, 0x38, 0xf2, 0x08, 0xa6, 0xd7, 0x82, 0xa9, 0x38, 0x30, 0x7e, 0xff, 0x7e, 0xdf, 0xef, - 0xff, 0xf5, 0xee, 0xf0, 0xc3, 0x6c, 0x05, 0xd2, 0x89, 0xc2, 0x18, 0x44, 0x04, 0x8e, 0x4a, 0x42, - 0x09, 0xb1, 0x93, 0xbb, 0x4e, 0xc2, 0x95, 0x4e, 0xe5, 0x67, 0xb6, 0x91, 0xa9, 0x4e, 0xc9, 0xbd, - 0xd2, 0xc5, 0x6a, 0x17, 0xab, 0x5c, 0x2c, 0x77, 0xc7, 0xd3, 0x46, 0x3a, 0xdc, 0xf0, 0x8b, 0xa8, - 0xfd, 0x03, 0xe1, 0xbb, 0x4b, 0x19, 0x0a, 0xc5, 0x41, 0xe8, 0x05, 0x44, 0x5c, 0xf1, 0x54, 0x78, - 0xe2, 0x7d, 0x4a, 0xde, 0xe0, 0xdb, 0x2a, 0x4a, 0x20, 0xce, 0x3e, 0x42, 0x1c, 0x40, 0x0e, 0x42, - 0x8f, 0xd0, 0x04, 0xcd, 0xfa, 0xf3, 0x29, 0x6b, 0xac, 0x0b, 0x37, 0x9c, 0xe5, 0x2e, 0x7b, 0x5d, - 0x61, 0x5f, 0x96, 0x46, 0x7f, 0x78, 0x4e, 0x1a, 0x4d, 0x5e, 0xe1, 0x5b, 0x4a, 0x87, 0x52, 0x9f, - 0x49, 0xad, 0x6b, 0x49, 0x83, 0x3a, 0x67, 0x94, 0xed, 0x61, 0xf2, 0x16, 0x64, 0x59, 0xb1, 0x36, - 0x79, 0x1a, 0xd6, 0xe4, 0x3e, 0xee, 0x19, 0x6a, 0xc0, 0x63, 0x53, 0xb1, 0xed, 0x77, 0x8d, 0xf6, - 0x62, 0x32, 0xc2, 0xdd, 0xbc, 0x0a, 0x98, 0x95, 0x6d, 0xff, 0x24, 0xed, 0x0c, 0x0f, 0x9b, 0x28, - 0x32, 0xc5, 0x83, 0x95, 0x0c, 0x45, 0x94, 0x04, 0x3a, 0xfd, 0x00, 0xc2, 0xa0, 0x06, 0x7e, 0xbf, - 0x9a, 0x2d, 0xcb, 0x11, 0x79, 0x86, 0x3b, 0x5c, 0xc3, 0x5a, 0x8d, 0x5a, 0x93, 0xf6, 0xac, 0x3f, - 0x7f, 0xcc, 0xfe, 0x7f, 0xf0, 0xec, 0xb2, 0xa4, 0x5f, 0x05, 0xed, 0x6f, 0x08, 0xdf, 0x69, 0x7c, - 0xe5, 0xa0, 0xc8, 0x73, 0xfc, 0x20, 0xca, 0xa4, 0x2c, 0x7f, 0xa1, 0xae, 0x17, 0xd4, 0xb7, 0x14, - 0x70, 0x11, 0xc3, 0x27, 0x53, 0xa5, 0xe3, 0x8f, 0x6b, 0xd3, 0x3f, 0xf4, 0xd2, 0x41, 0x16, 0xf8, - 0x66, 0x72, 0xe2, 0xd5, 0xed, 0x1e, 0x5d, 0xd7, 0xce, 0xff, 0x1b, 0x7c, 0xf1, 0x74, 0xbb, 0xa7, - 0xd6, 0x6e, 0x4f, 0xad, 0xe3, 0x9e, 0xa2, 0x2f, 0x05, 0x45, 0xdf, 0x0b, 0x8a, 0x7e, 0x16, 0x14, - 0x6d, 0x0b, 0x8a, 0x7e, 0x15, 0x14, 0xfd, 0x2e, 0xa8, 0x75, 0x2c, 0x28, 0xfa, 0x7a, 0xa0, 0xd6, - 0xf6, 0x40, 0xad, 0xdd, 0x81, 0x5a, 0xef, 0x7a, 0x15, 0x3a, 0x77, 0x57, 0x37, 0xcc, 0xa3, 0x7a, - 0xf2, 0x27, 0x00, 0x00, 0xff, 0xff, 0x2b, 0x1e, 0x2d, 0xef, 0xb7, 0x02, 0x00, 0x00, -} - -func (this *TransientDecisionInfo) Equal(that interface{}) bool { - if that == nil { - return this == nil - } +func (*VersionHistoryItem) ProtoMessage() {} - that1, ok := that.(*TransientDecisionInfo) - if !ok { - that2, ok := that.(TransientDecisionInfo) - if ok { - that1 = &that2 - } else { - return false +func (x *VersionHistoryItem) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_shared_v1_history_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.ScheduledEvent.Equal(that1.ScheduledEvent) { - return false - } - if !this.StartedEvent.Equal(that1.StartedEvent) { - return false - } - return true + return mi.MessageOf(x) } -func (this *VersionHistoryItem) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*VersionHistoryItem) - if !ok { - that2, ok := that.(VersionHistoryItem) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.EventId != that1.EventId { - return false - } - if this.Version != that1.Version { - return false - } - return true +// Deprecated: Use VersionHistoryItem.ProtoReflect.Descriptor instead. +func (*VersionHistoryItem) Descriptor() ([]byte, []int) { + return file_uber_cadence_shared_v1_history_proto_rawDescGZIP(), []int{1} } -func (this *VersionHistory) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*VersionHistory) - if !ok { - that2, ok := that.(VersionHistory) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !bytes.Equal(this.BranchToken, that1.BranchToken) { - return false +func (x *VersionHistoryItem) GetEventId() int64 { + if x != nil { + return x.EventId } - if len(this.Items) != len(that1.Items) { - return false - } - for i := range this.Items { - if !this.Items[i].Equal(that1.Items[i]) { - return false - } - } - return true + return 0 } -func (this *VersionHistories) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*VersionHistories) - if !ok { - that2, ok := that.(VersionHistories) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.CurrentVersionHistoryIndex != that1.CurrentVersionHistoryIndex { - return false - } - if len(this.Histories) != len(that1.Histories) { - return false - } - for i := range this.Histories { - if !this.Histories[i].Equal(that1.Histories[i]) { - return false - } +func (x *VersionHistoryItem) GetVersion() int64 { + if x != nil { + return x.Version } - return true -} -func (this *TransientDecisionInfo) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&sharedv1.TransientDecisionInfo{") - if this.ScheduledEvent != nil { - s = append(s, "ScheduledEvent: "+fmt.Sprintf("%#v", this.ScheduledEvent)+",\n") - } - if this.StartedEvent != nil { - s = append(s, "StartedEvent: "+fmt.Sprintf("%#v", this.StartedEvent)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *VersionHistoryItem) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&sharedv1.VersionHistoryItem{") - s = append(s, "EventId: "+fmt.Sprintf("%#v", this.EventId)+",\n") - s = append(s, "Version: "+fmt.Sprintf("%#v", this.Version)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *VersionHistory) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&sharedv1.VersionHistory{") - s = append(s, "BranchToken: "+fmt.Sprintf("%#v", this.BranchToken)+",\n") - if this.Items != nil { - s = append(s, "Items: "+fmt.Sprintf("%#v", this.Items)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *VersionHistories) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&sharedv1.VersionHistories{") - s = append(s, "CurrentVersionHistoryIndex: "+fmt.Sprintf("%#v", this.CurrentVersionHistoryIndex)+",\n") - if this.Histories != nil { - s = append(s, "Histories: "+fmt.Sprintf("%#v", this.Histories)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func valueToGoStringHistory(v interface{}, typ string) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) -} -func (m *TransientDecisionInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil + return 0 } -func (m *TransientDecisionInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +// VersionHistory contains the version history of a branch. +type VersionHistory struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *TransientDecisionInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.StartedEvent != nil { - { - size, err := m.StartedEvent.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.ScheduledEvent != nil { - { - size, err := m.ScheduledEvent.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + BranchToken []byte `protobuf:"bytes,1,opt,name=branch_token,json=branchToken,proto3" json:"branch_token,omitempty"` + Items []*VersionHistoryItem `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` } -func (m *VersionHistoryItem) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *VersionHistory) Reset() { + *x = VersionHistory{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_shared_v1_history_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return dAtA[:n], nil } -func (m *VersionHistoryItem) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *VersionHistory) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *VersionHistoryItem) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Version != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.Version)) - i-- - dAtA[i] = 0x10 - } - if m.EventId != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.EventId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} +func (*VersionHistory) ProtoMessage() {} -func (m *VersionHistory) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *VersionHistory) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_shared_v1_history_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return dAtA[:n], nil + return mi.MessageOf(x) } -func (m *VersionHistory) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use VersionHistory.ProtoReflect.Descriptor instead. +func (*VersionHistory) Descriptor() ([]byte, []int) { + return file_uber_cadence_shared_v1_history_proto_rawDescGZIP(), []int{2} } -func (m *VersionHistory) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.BranchToken) > 0 { - i -= len(m.BranchToken) - copy(dAtA[i:], m.BranchToken) - i = encodeVarintHistory(dAtA, i, uint64(len(m.BranchToken))) - i-- - dAtA[i] = 0xa +func (x *VersionHistory) GetBranchToken() []byte { + if x != nil { + return x.BranchToken } - return len(dAtA) - i, nil + return nil } -func (m *VersionHistories) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *VersionHistory) GetItems() []*VersionHistoryItem { + if x != nil { + return x.Items } - return dAtA[:n], nil + return nil } -func (m *VersionHistories) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +// VersionHistories contains all version histories from all branches. +type VersionHistories struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *VersionHistories) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Histories) > 0 { - for iNdEx := len(m.Histories) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Histories[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHistory(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if m.CurrentVersionHistoryIndex != 0 { - i = encodeVarintHistory(dAtA, i, uint64(m.CurrentVersionHistoryIndex)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + CurrentVersionHistoryIndex int32 `protobuf:"varint,1,opt,name=current_version_history_index,json=currentVersionHistoryIndex,proto3" json:"current_version_history_index,omitempty"` + Histories []*VersionHistory `protobuf:"bytes,2,rep,name=histories,proto3" json:"histories,omitempty"` } -func encodeVarintHistory(dAtA []byte, offset int, v uint64) int { - offset -= sovHistory(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *TransientDecisionInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ScheduledEvent != nil { - l = m.ScheduledEvent.Size() - n += 1 + l + sovHistory(uint64(l)) - } - if m.StartedEvent != nil { - l = m.StartedEvent.Size() - n += 1 + l + sovHistory(uint64(l)) +func (x *VersionHistories) Reset() { + *x = VersionHistories{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_shared_v1_history_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return n } -func (m *VersionHistoryItem) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.EventId != 0 { - n += 1 + sovHistory(uint64(m.EventId)) - } - if m.Version != 0 { - n += 1 + sovHistory(uint64(m.Version)) - } - return n +func (x *VersionHistories) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *VersionHistory) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.BranchToken) - if l > 0 { - n += 1 + l + sovHistory(uint64(l)) - } - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovHistory(uint64(l)) - } - } - return n -} +func (*VersionHistories) ProtoMessage() {} -func (m *VersionHistories) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.CurrentVersionHistoryIndex != 0 { - n += 1 + sovHistory(uint64(m.CurrentVersionHistoryIndex)) - } - if len(m.Histories) > 0 { - for _, e := range m.Histories { - l = e.Size() - n += 1 + l + sovHistory(uint64(l)) +func (x *VersionHistories) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_shared_v1_history_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return n + return mi.MessageOf(x) } -func sovHistory(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozHistory(x uint64) (n int) { - return sovHistory(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *TransientDecisionInfo) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TransientDecisionInfo{`, - `ScheduledEvent:` + strings.Replace(fmt.Sprintf("%v", this.ScheduledEvent), "HistoryEvent", "v1.HistoryEvent", 1) + `,`, - `StartedEvent:` + strings.Replace(fmt.Sprintf("%v", this.StartedEvent), "HistoryEvent", "v1.HistoryEvent", 1) + `,`, - `}`, - }, "") - return s -} -func (this *VersionHistoryItem) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&VersionHistoryItem{`, - `EventId:` + fmt.Sprintf("%v", this.EventId) + `,`, - `Version:` + fmt.Sprintf("%v", this.Version) + `,`, - `}`, - }, "") - return s -} -func (this *VersionHistory) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]*VersionHistoryItem{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(f.String(), "VersionHistoryItem", "VersionHistoryItem", 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&VersionHistory{`, - `BranchToken:` + fmt.Sprintf("%v", this.BranchToken) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *VersionHistories) String() string { - if this == nil { - return "nil" - } - repeatedStringForHistories := "[]*VersionHistory{" - for _, f := range this.Histories { - repeatedStringForHistories += strings.Replace(f.String(), "VersionHistory", "VersionHistory", 1) + "," - } - repeatedStringForHistories += "}" - s := strings.Join([]string{`&VersionHistories{`, - `CurrentVersionHistoryIndex:` + fmt.Sprintf("%v", this.CurrentVersionHistoryIndex) + `,`, - `Histories:` + repeatedStringForHistories + `,`, - `}`, - }, "") - return s -} -func valueToStringHistory(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) +// Deprecated: Use VersionHistories.ProtoReflect.Descriptor instead. +func (*VersionHistories) Descriptor() ([]byte, []int) { + return file_uber_cadence_shared_v1_history_proto_rawDescGZIP(), []int{3} } -func (m *TransientDecisionInfo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TransientDecisionInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TransientDecisionInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduledEvent", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ScheduledEvent == nil { - m.ScheduledEvent = &v1.HistoryEvent{} - } - if err := m.ScheduledEvent.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartedEvent", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StartedEvent == nil { - m.StartedEvent = &v1.HistoryEvent{} - } - if err := m.StartedEvent.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *VersionHistories) GetCurrentVersionHistoryIndex() int32 { + if x != nil { + return x.CurrentVersionHistoryIndex } - return nil -} -func (m *VersionHistoryItem) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VersionHistoryItem: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VersionHistoryItem: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EventId", wireType) - } - m.EventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) - } - m.Version = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Version |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil + return 0 } -func (m *VersionHistory) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VersionHistory: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VersionHistory: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BranchToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BranchToken = append(m.BranchToken[:0], dAtA[iNdEx:postIndex]...) - if m.BranchToken == nil { - m.BranchToken = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, &VersionHistoryItem{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *VersionHistories) GetHistories() []*VersionHistory { + if x != nil { + return x.Histories } return nil } -func (m *VersionHistories) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VersionHistories: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VersionHistories: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentVersionHistoryIndex", wireType) - } - m.CurrentVersionHistoryIndex = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CurrentVersionHistoryIndex |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Histories", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHistory - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHistory - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHistory - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Histories = append(m.Histories, &VersionHistory{}) - if err := m.Histories[len(m.Histories)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHistory(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthHistory - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipHistory(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowHistory - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowHistory - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowHistory - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthHistory - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupHistory - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthHistory - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF +var File_uber_cadence_shared_v1_history_proto protoreflect.FileDescriptor + +var file_uber_cadence_shared_v1_history_proto_rawDesc = []byte{ + 0x0a, 0x24, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, + 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x1a, 0x21, + 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x76, 0x31, 0x2f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x22, 0xab, 0x01, 0x0a, 0x15, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x65, 0x6e, 0x74, 0x44, + 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x4a, 0x0a, 0x0f, 0x73, + 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x69, 0x73, 0x74, 0x6f, + 0x72, 0x79, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, + 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x46, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x22, + 0x49, 0x0a, 0x12, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, + 0x79, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x19, 0x0a, 0x08, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, + 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x75, 0x0a, 0x0e, 0x56, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x21, 0x0a, 0x0c, + 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x0b, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, + 0x40, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x48, + 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, + 0x73, 0x22, 0x9b, 0x01, 0x0a, 0x10, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x69, 0x73, + 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x12, 0x41, 0x0a, 0x1d, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, + 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, + 0x79, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x1a, 0x63, + 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x69, 0x73, + 0x74, 0x6f, 0x72, 0x79, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x44, 0x0a, 0x09, 0x68, 0x69, 0x73, + 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x69, 0x73, + 0x74, 0x6f, 0x72, 0x79, 0x52, 0x09, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x42, + 0x37, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x62, + 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x2e, 0x67, 0x65, 0x6e, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x76, 0x31, 0x3b, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - ErrInvalidLengthHistory = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowHistory = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupHistory = fmt.Errorf("proto: unexpected end of group") + file_uber_cadence_shared_v1_history_proto_rawDescOnce sync.Once + file_uber_cadence_shared_v1_history_proto_rawDescData = file_uber_cadence_shared_v1_history_proto_rawDesc ) + +func file_uber_cadence_shared_v1_history_proto_rawDescGZIP() []byte { + file_uber_cadence_shared_v1_history_proto_rawDescOnce.Do(func() { + file_uber_cadence_shared_v1_history_proto_rawDescData = protoimpl.X.CompressGZIP(file_uber_cadence_shared_v1_history_proto_rawDescData) + }) + return file_uber_cadence_shared_v1_history_proto_rawDescData +} + +var file_uber_cadence_shared_v1_history_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_uber_cadence_shared_v1_history_proto_goTypes = []interface{}{ + (*TransientDecisionInfo)(nil), // 0: uber.cadence.shared.v1.TransientDecisionInfo + (*VersionHistoryItem)(nil), // 1: uber.cadence.shared.v1.VersionHistoryItem + (*VersionHistory)(nil), // 2: uber.cadence.shared.v1.VersionHistory + (*VersionHistories)(nil), // 3: uber.cadence.shared.v1.VersionHistories + (*v1.HistoryEvent)(nil), // 4: uber.cadence.api.v1.HistoryEvent +} +var file_uber_cadence_shared_v1_history_proto_depIdxs = []int32{ + 4, // 0: uber.cadence.shared.v1.TransientDecisionInfo.scheduled_event:type_name -> uber.cadence.api.v1.HistoryEvent + 4, // 1: uber.cadence.shared.v1.TransientDecisionInfo.started_event:type_name -> uber.cadence.api.v1.HistoryEvent + 1, // 2: uber.cadence.shared.v1.VersionHistory.items:type_name -> uber.cadence.shared.v1.VersionHistoryItem + 2, // 3: uber.cadence.shared.v1.VersionHistories.histories:type_name -> uber.cadence.shared.v1.VersionHistory + 4, // [4:4] is the sub-list for method output_type + 4, // [4:4] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name +} + +func init() { file_uber_cadence_shared_v1_history_proto_init() } +func file_uber_cadence_shared_v1_history_proto_init() { + if File_uber_cadence_shared_v1_history_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_uber_cadence_shared_v1_history_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TransientDecisionInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_shared_v1_history_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VersionHistoryItem); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_shared_v1_history_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VersionHistory); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_shared_v1_history_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VersionHistories); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_uber_cadence_shared_v1_history_proto_rawDesc, + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_uber_cadence_shared_v1_history_proto_goTypes, + DependencyIndexes: file_uber_cadence_shared_v1_history_proto_depIdxs, + MessageInfos: file_uber_cadence_shared_v1_history_proto_msgTypes, + }.Build() + File_uber_cadence_shared_v1_history_proto = out.File + file_uber_cadence_shared_v1_history_proto_rawDesc = nil + file_uber_cadence_shared_v1_history_proto_goTypes = nil + file_uber_cadence_shared_v1_history_proto_depIdxs = nil +} diff --git a/.gen/proto/shared/v1/queue.pb.go b/.gen/proto/shared/v1/queue.pb.go index 8aa26571eee..b90593e591f 100644 --- a/.gen/proto/shared/v1/queue.pb.go +++ b/.gen/proto/shared/v1/queue.pb.go @@ -1,106 +1,168 @@ -// The MIT License (MIT) - -// Copyright (c) 2017-2020 Uber Technologies Inc. - +// 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 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. +// 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. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.14.0 // source: uber/cadence/shared/v1/queue.proto package sharedv1 import ( - fmt "fmt" - math "math" - strconv "strconv" + reflect "reflect" + sync "sync" - proto "github.com/gogo/protobuf/proto" + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// 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 +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type TaskType int32 const ( - TASK_TYPE_INVALID TaskType = 0 - TASK_TYPE_TRANSFER TaskType = 1 - TASK_TYPE_TIMER TaskType = 2 - TASK_TYPE_REPLICATION TaskType = 3 + TaskType_TASK_TYPE_INVALID TaskType = 0 + TaskType_TASK_TYPE_TRANSFER TaskType = 1 + TaskType_TASK_TYPE_TIMER TaskType = 2 + TaskType_TASK_TYPE_REPLICATION TaskType = 3 +) + +// Enum value maps for TaskType. +var ( + TaskType_name = map[int32]string{ + 0: "TASK_TYPE_INVALID", + 1: "TASK_TYPE_TRANSFER", + 2: "TASK_TYPE_TIMER", + 3: "TASK_TYPE_REPLICATION", + } + TaskType_value = map[string]int32{ + "TASK_TYPE_INVALID": 0, + "TASK_TYPE_TRANSFER": 1, + "TASK_TYPE_TIMER": 2, + "TASK_TYPE_REPLICATION": 3, + } ) -var TaskType_name = map[int32]string{ - 0: "TASK_TYPE_INVALID", - 1: "TASK_TYPE_TRANSFER", - 2: "TASK_TYPE_TIMER", - 3: "TASK_TYPE_REPLICATION", +func (x TaskType) Enum() *TaskType { + p := new(TaskType) + *p = x + return p } -var TaskType_value = map[string]int32{ - "TASK_TYPE_INVALID": 0, - "TASK_TYPE_TRANSFER": 1, - "TASK_TYPE_TIMER": 2, - "TASK_TYPE_REPLICATION": 3, +func (x TaskType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (TaskType) Descriptor() protoreflect.EnumDescriptor { + return file_uber_cadence_shared_v1_queue_proto_enumTypes[0].Descriptor() +} + +func (TaskType) Type() protoreflect.EnumType { + return &file_uber_cadence_shared_v1_queue_proto_enumTypes[0] +} + +func (x TaskType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use TaskType.Descriptor instead. func (TaskType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8958fa454fc8f819, []int{0} + return file_uber_cadence_shared_v1_queue_proto_rawDescGZIP(), []int{0} } -func init() { - proto.RegisterEnum("uber.cadence.shared.v1.TaskType", TaskType_name, TaskType_value) +var File_uber_cadence_shared_v1_queue_proto protoreflect.FileDescriptor + +var file_uber_cadence_shared_v1_queue_proto_rawDesc = []byte{ + 0x0a, 0x22, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2a, 0x69, 0x0a, 0x08, + 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x41, 0x53, 0x4b, + 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, + 0x16, 0x0a, 0x12, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x52, 0x41, + 0x4e, 0x53, 0x46, 0x45, 0x52, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x54, 0x41, 0x53, 0x4b, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x52, 0x10, 0x02, 0x12, 0x19, 0x0a, 0x15, + 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x50, 0x4c, 0x49, 0x43, + 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x03, 0x42, 0x37, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2f, 0x2e, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x64, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x76, 0x31, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func init() { - proto.RegisterFile("github.com/uber/cadence/.gen/proto/shared/v1/queue.proto", fileDescriptor_8958fa454fc8f819) +var ( + file_uber_cadence_shared_v1_queue_proto_rawDescOnce sync.Once + file_uber_cadence_shared_v1_queue_proto_rawDescData = file_uber_cadence_shared_v1_queue_proto_rawDesc +) + +func file_uber_cadence_shared_v1_queue_proto_rawDescGZIP() []byte { + file_uber_cadence_shared_v1_queue_proto_rawDescOnce.Do(func() { + file_uber_cadence_shared_v1_queue_proto_rawDescData = protoimpl.X.CompressGZIP(file_uber_cadence_shared_v1_queue_proto_rawDescData) + }) + return file_uber_cadence_shared_v1_queue_proto_rawDescData } -var fileDescriptor_8958fa454fc8f819 = []byte{ - // 223 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2a, 0x4d, 0x4a, 0x2d, - 0xd2, 0x4f, 0x4e, 0x4c, 0x49, 0xcd, 0x4b, 0x4e, 0xd5, 0x2f, 0xce, 0x48, 0x2c, 0x4a, 0x4d, 0xd1, - 0x2f, 0x33, 0xd4, 0x2f, 0x2c, 0x4d, 0x2d, 0x4d, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, - 0x03, 0xa9, 0xd1, 0x83, 0xaa, 0xd1, 0x83, 0xa8, 0xd1, 0x2b, 0x33, 0xd4, 0xca, 0xe4, 0xe2, 0x08, - 0x49, 0x2c, 0xce, 0x0e, 0xa9, 0x2c, 0x48, 0x15, 0x12, 0xe5, 0x12, 0x0c, 0x71, 0x0c, 0xf6, 0x8e, - 0x0f, 0x89, 0x0c, 0x70, 0x8d, 0xf7, 0xf4, 0x0b, 0x73, 0xf4, 0xf1, 0x74, 0x11, 0x60, 0x10, 0x12, - 0xe3, 0x12, 0x42, 0x08, 0x87, 0x04, 0x39, 0xfa, 0x05, 0xbb, 0xb9, 0x06, 0x09, 0x30, 0x0a, 0x09, - 0x73, 0xf1, 0x23, 0x89, 0x7b, 0xfa, 0xba, 0x06, 0x09, 0x30, 0x09, 0x49, 0x72, 0x89, 0x22, 0x04, - 0x83, 0x5c, 0x03, 0x7c, 0x3c, 0x9d, 0x1d, 0x43, 0x3c, 0xfd, 0xfd, 0x04, 0x98, 0x9d, 0xec, 0x2e, - 0x3c, 0x94, 0x63, 0xb8, 0xf1, 0x50, 0x8e, 0xe1, 0xc3, 0x43, 0x39, 0xc6, 0x86, 0x47, 0x72, 0x8c, - 0x2b, 0x1e, 0xc9, 0x31, 0x9e, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, - 0x8c, 0x2f, 0x1e, 0xc9, 0x31, 0x7c, 0x78, 0x24, 0xc7, 0x38, 0xe1, 0xb1, 0x1c, 0xc3, 0x85, 0xc7, - 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0x71, 0x40, 0xdc, 0x5a, 0x66, 0x98, 0xc4, 0x06, 0xf6, - 0x89, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xdc, 0x43, 0x71, 0x2c, 0xef, 0x00, 0x00, 0x00, +var file_uber_cadence_shared_v1_queue_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_uber_cadence_shared_v1_queue_proto_goTypes = []interface{}{ + (TaskType)(0), // 0: uber.cadence.shared.v1.TaskType +} +var file_uber_cadence_shared_v1_queue_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name } -func (x TaskType) String() string { - s, ok := TaskType_name[int32(x)] - if ok { - return s +func init() { file_uber_cadence_shared_v1_queue_proto_init() } +func file_uber_cadence_shared_v1_queue_proto_init() { + if File_uber_cadence_shared_v1_queue_proto != nil { + return } - return strconv.Itoa(int(x)) + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_uber_cadence_shared_v1_queue_proto_rawDesc, + NumEnums: 1, + NumMessages: 0, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_uber_cadence_shared_v1_queue_proto_goTypes, + DependencyIndexes: file_uber_cadence_shared_v1_queue_proto_depIdxs, + EnumInfos: file_uber_cadence_shared_v1_queue_proto_enumTypes, + }.Build() + File_uber_cadence_shared_v1_queue_proto = out.File + file_uber_cadence_shared_v1_queue_proto_rawDesc = nil + file_uber_cadence_shared_v1_queue_proto_goTypes = nil + file_uber_cadence_shared_v1_queue_proto_depIdxs = nil } diff --git a/.gen/proto/shared/v1/replication.pb.go b/.gen/proto/shared/v1/replication.pb.go index 11dac8b6680..da4dc79bd52 100644 --- a/.gen/proto/shared/v1/replication.pb.go +++ b/.gen/proto/shared/v1/replication.pb.go @@ -1,147 +1,220 @@ -// The MIT License (MIT) - -// Copyright (c) 2017-2020 Uber Technologies Inc. - +// 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 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. +// 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. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.14.0 // source: uber/cadence/shared/v1/replication.proto package sharedv1 import ( - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" reflect "reflect" - strconv "strconv" - strings "strings" - time "time" - - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" - _ "github.com/golang/protobuf/ptypes/timestamp" + sync "sync" + + proto "github.com/golang/protobuf/proto" v1 "github.com/uber/cadence/.gen/proto/api/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf -var _ = time.Kitchen +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// 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 +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type ReplicationTaskType int32 const ( - REPLICATION_TASK_TYPE_INVALID ReplicationTaskType = 0 - REPLICATION_TASK_TYPE_DOMAIN ReplicationTaskType = 1 - REPLICATION_TASK_TYPE_HISTORY ReplicationTaskType = 2 - REPLICATION_TASK_TYPE_SYNC_SHARD_STATUS ReplicationTaskType = 3 - REPLICATION_TASK_TYPE_SYNC_ACTIVITY ReplicationTaskType = 4 - REPLICATION_TASK_TYPE_HISTORY_METADATA ReplicationTaskType = 5 - REPLICATION_TASK_TYPE_HISTORY_V2 ReplicationTaskType = 6 - REPLICATION_TASK_TYPE_FAILOVER_MARKER ReplicationTaskType = 7 + ReplicationTaskType_REPLICATION_TASK_TYPE_INVALID ReplicationTaskType = 0 + ReplicationTaskType_REPLICATION_TASK_TYPE_DOMAIN ReplicationTaskType = 1 + ReplicationTaskType_REPLICATION_TASK_TYPE_HISTORY ReplicationTaskType = 2 + ReplicationTaskType_REPLICATION_TASK_TYPE_SYNC_SHARD_STATUS ReplicationTaskType = 3 + ReplicationTaskType_REPLICATION_TASK_TYPE_SYNC_ACTIVITY ReplicationTaskType = 4 + ReplicationTaskType_REPLICATION_TASK_TYPE_HISTORY_METADATA ReplicationTaskType = 5 + ReplicationTaskType_REPLICATION_TASK_TYPE_HISTORY_V2 ReplicationTaskType = 6 + ReplicationTaskType_REPLICATION_TASK_TYPE_FAILOVER_MARKER ReplicationTaskType = 7 +) + +// Enum value maps for ReplicationTaskType. +var ( + ReplicationTaskType_name = map[int32]string{ + 0: "REPLICATION_TASK_TYPE_INVALID", + 1: "REPLICATION_TASK_TYPE_DOMAIN", + 2: "REPLICATION_TASK_TYPE_HISTORY", + 3: "REPLICATION_TASK_TYPE_SYNC_SHARD_STATUS", + 4: "REPLICATION_TASK_TYPE_SYNC_ACTIVITY", + 5: "REPLICATION_TASK_TYPE_HISTORY_METADATA", + 6: "REPLICATION_TASK_TYPE_HISTORY_V2", + 7: "REPLICATION_TASK_TYPE_FAILOVER_MARKER", + } + ReplicationTaskType_value = map[string]int32{ + "REPLICATION_TASK_TYPE_INVALID": 0, + "REPLICATION_TASK_TYPE_DOMAIN": 1, + "REPLICATION_TASK_TYPE_HISTORY": 2, + "REPLICATION_TASK_TYPE_SYNC_SHARD_STATUS": 3, + "REPLICATION_TASK_TYPE_SYNC_ACTIVITY": 4, + "REPLICATION_TASK_TYPE_HISTORY_METADATA": 5, + "REPLICATION_TASK_TYPE_HISTORY_V2": 6, + "REPLICATION_TASK_TYPE_FAILOVER_MARKER": 7, + } ) -var ReplicationTaskType_name = map[int32]string{ - 0: "REPLICATION_TASK_TYPE_INVALID", - 1: "REPLICATION_TASK_TYPE_DOMAIN", - 2: "REPLICATION_TASK_TYPE_HISTORY", - 3: "REPLICATION_TASK_TYPE_SYNC_SHARD_STATUS", - 4: "REPLICATION_TASK_TYPE_SYNC_ACTIVITY", - 5: "REPLICATION_TASK_TYPE_HISTORY_METADATA", - 6: "REPLICATION_TASK_TYPE_HISTORY_V2", - 7: "REPLICATION_TASK_TYPE_FAILOVER_MARKER", +func (x ReplicationTaskType) Enum() *ReplicationTaskType { + p := new(ReplicationTaskType) + *p = x + return p +} + +func (x ReplicationTaskType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ReplicationTaskType) Descriptor() protoreflect.EnumDescriptor { + return file_uber_cadence_shared_v1_replication_proto_enumTypes[0].Descriptor() +} + +func (ReplicationTaskType) Type() protoreflect.EnumType { + return &file_uber_cadence_shared_v1_replication_proto_enumTypes[0] } -var ReplicationTaskType_value = map[string]int32{ - "REPLICATION_TASK_TYPE_INVALID": 0, - "REPLICATION_TASK_TYPE_DOMAIN": 1, - "REPLICATION_TASK_TYPE_HISTORY": 2, - "REPLICATION_TASK_TYPE_SYNC_SHARD_STATUS": 3, - "REPLICATION_TASK_TYPE_SYNC_ACTIVITY": 4, - "REPLICATION_TASK_TYPE_HISTORY_METADATA": 5, - "REPLICATION_TASK_TYPE_HISTORY_V2": 6, - "REPLICATION_TASK_TYPE_FAILOVER_MARKER": 7, +func (x ReplicationTaskType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use ReplicationTaskType.Descriptor instead. func (ReplicationTaskType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_00df2ec6c2eaefe5, []int{0} + return file_uber_cadence_shared_v1_replication_proto_rawDescGZIP(), []int{0} } type DomainOperation int32 const ( - DOMAIN_OPERATION_INVALID DomainOperation = 0 - DOMAIN_OPERATION_CREATE DomainOperation = 1 - DOMAIN_OPERATION_UPDATE DomainOperation = 2 + DomainOperation_DOMAIN_OPERATION_INVALID DomainOperation = 0 + DomainOperation_DOMAIN_OPERATION_CREATE DomainOperation = 1 + DomainOperation_DOMAIN_OPERATION_UPDATE DomainOperation = 2 ) -var DomainOperation_name = map[int32]string{ - 0: "DOMAIN_OPERATION_INVALID", - 1: "DOMAIN_OPERATION_CREATE", - 2: "DOMAIN_OPERATION_UPDATE", +// Enum value maps for DomainOperation. +var ( + DomainOperation_name = map[int32]string{ + 0: "DOMAIN_OPERATION_INVALID", + 1: "DOMAIN_OPERATION_CREATE", + 2: "DOMAIN_OPERATION_UPDATE", + } + DomainOperation_value = map[string]int32{ + "DOMAIN_OPERATION_INVALID": 0, + "DOMAIN_OPERATION_CREATE": 1, + "DOMAIN_OPERATION_UPDATE": 2, + } +) + +func (x DomainOperation) Enum() *DomainOperation { + p := new(DomainOperation) + *p = x + return p +} + +func (x DomainOperation) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -var DomainOperation_value = map[string]int32{ - "DOMAIN_OPERATION_INVALID": 0, - "DOMAIN_OPERATION_CREATE": 1, - "DOMAIN_OPERATION_UPDATE": 2, +func (DomainOperation) Descriptor() protoreflect.EnumDescriptor { + return file_uber_cadence_shared_v1_replication_proto_enumTypes[1].Descriptor() } +func (DomainOperation) Type() protoreflect.EnumType { + return &file_uber_cadence_shared_v1_replication_proto_enumTypes[1] +} + +func (x DomainOperation) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use DomainOperation.Descriptor instead. func (DomainOperation) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_00df2ec6c2eaefe5, []int{1} + return file_uber_cadence_shared_v1_replication_proto_rawDescGZIP(), []int{1} } type DLQType int32 const ( - DLQ_TYPE_INVALID DLQType = 0 - DLQ_TYPE_REPLICATION DLQType = 1 - DLQ_TYPE_DOMAIN DLQType = 2 + DLQType_DLQ_TYPE_INVALID DLQType = 0 + DLQType_DLQ_TYPE_REPLICATION DLQType = 1 + DLQType_DLQ_TYPE_DOMAIN DLQType = 2 +) + +// Enum value maps for DLQType. +var ( + DLQType_name = map[int32]string{ + 0: "DLQ_TYPE_INVALID", + 1: "DLQ_TYPE_REPLICATION", + 2: "DLQ_TYPE_DOMAIN", + } + DLQType_value = map[string]int32{ + "DLQ_TYPE_INVALID": 0, + "DLQ_TYPE_REPLICATION": 1, + "DLQ_TYPE_DOMAIN": 2, + } ) -var DLQType_name = map[int32]string{ - 0: "DLQ_TYPE_INVALID", - 1: "DLQ_TYPE_REPLICATION", - 2: "DLQ_TYPE_DOMAIN", +func (x DLQType) Enum() *DLQType { + p := new(DLQType) + *p = x + return p +} + +func (x DLQType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (DLQType) Descriptor() protoreflect.EnumDescriptor { + return file_uber_cadence_shared_v1_replication_proto_enumTypes[2].Descriptor() +} + +func (DLQType) Type() protoreflect.EnumType { + return &file_uber_cadence_shared_v1_replication_proto_enumTypes[2] } -var DLQType_value = map[string]int32{ - "DLQ_TYPE_INVALID": 0, - "DLQ_TYPE_REPLICATION": 1, - "DLQ_TYPE_DOMAIN": 2, +func (x DLQType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use DLQType.Descriptor instead. func (DLQType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_00df2ec6c2eaefe5, []int{2} + return file_uber_cadence_shared_v1_replication_proto_rawDescGZIP(), []int{2} } type ReplicationMessages struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + ReplicationTasks []*ReplicationTask `protobuf:"bytes,1,rep,name=replication_tasks,json=replicationTasks,proto3" json:"replication_tasks,omitempty"` // This can be different than the last taskId in the above list, //because sender can decide to skip tasks (e.g. for completed workflows). @@ -151,71 +224,75 @@ type ReplicationMessages struct { SyncShardStatus *SyncShardStatus `protobuf:"bytes,4,opt,name=sync_shard_status,json=syncShardStatus,proto3" json:"sync_shard_status,omitempty"` } -func (m *ReplicationMessages) Reset() { *m = ReplicationMessages{} } -func (*ReplicationMessages) ProtoMessage() {} -func (*ReplicationMessages) Descriptor() ([]byte, []int) { - return fileDescriptor_00df2ec6c2eaefe5, []int{0} -} -func (m *ReplicationMessages) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicationMessages) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReplicationMessages.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ReplicationMessages) Reset() { + *x = ReplicationMessages{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_shared_v1_replication_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ReplicationMessages) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicationMessages.Merge(m, src) -} -func (m *ReplicationMessages) XXX_Size() int { - return m.Size() + +func (x *ReplicationMessages) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ReplicationMessages) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicationMessages.DiscardUnknown(m) + +func (*ReplicationMessages) ProtoMessage() {} + +func (x *ReplicationMessages) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_shared_v1_replication_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ReplicationMessages proto.InternalMessageInfo +// Deprecated: Use ReplicationMessages.ProtoReflect.Descriptor instead. +func (*ReplicationMessages) Descriptor() ([]byte, []int) { + return file_uber_cadence_shared_v1_replication_proto_rawDescGZIP(), []int{0} +} -func (m *ReplicationMessages) GetReplicationTasks() []*ReplicationTask { - if m != nil { - return m.ReplicationTasks +func (x *ReplicationMessages) GetReplicationTasks() []*ReplicationTask { + if x != nil { + return x.ReplicationTasks } return nil } -func (m *ReplicationMessages) GetLastRetrievedMessageId() int64 { - if m != nil { - return m.LastRetrievedMessageId +func (x *ReplicationMessages) GetLastRetrievedMessageId() int64 { + if x != nil { + return x.LastRetrievedMessageId } return 0 } -func (m *ReplicationMessages) GetHasMore() bool { - if m != nil { - return m.HasMore +func (x *ReplicationMessages) GetHasMore() bool { + if x != nil { + return x.HasMore } return false } -func (m *ReplicationMessages) GetSyncShardStatus() *SyncShardStatus { - if m != nil { - return m.SyncShardStatus +func (x *ReplicationMessages) GetSyncShardStatus() *SyncShardStatus { + if x != nil { + return x.SyncShardStatus } return nil } type ReplicationTask struct { - TaskType ReplicationTaskType `protobuf:"varint,1,opt,name=task_type,json=taskType,proto3,enum=uber.cadence.shared.v1.ReplicationTaskType" json:"task_type,omitempty"` - SourceTaskId int64 `protobuf:"varint,2,opt,name=source_task_id,json=sourceTaskId,proto3" json:"source_task_id,omitempty"` - CreationTime *time.Time `protobuf:"bytes,3,opt,name=creation_time,json=creationTime,proto3,stdtime" json:"creation_time,omitempty"` - // Types that are valid to be assigned to Attributes: + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TaskType ReplicationTaskType `protobuf:"varint,1,opt,name=task_type,json=taskType,proto3,enum=uber.cadence.shared.v1.ReplicationTaskType" json:"task_type,omitempty"` + SourceTaskId int64 `protobuf:"varint,2,opt,name=source_task_id,json=sourceTaskId,proto3" json:"source_task_id,omitempty"` + CreationTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"` + // Types that are assignable to Attributes: // *ReplicationTask_DomainTaskAttributes // *ReplicationTask_SyncShardStatusTaskAttributes // *ReplicationTask_SyncActivityTaskAttributes @@ -224,142 +301,140 @@ type ReplicationTask struct { Attributes isReplicationTask_Attributes `protobuf_oneof:"attributes"` } -func (m *ReplicationTask) Reset() { *m = ReplicationTask{} } -func (*ReplicationTask) ProtoMessage() {} -func (*ReplicationTask) Descriptor() ([]byte, []int) { - return fileDescriptor_00df2ec6c2eaefe5, []int{1} -} -func (m *ReplicationTask) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicationTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReplicationTask.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ReplicationTask) Reset() { + *x = ReplicationTask{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_shared_v1_replication_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ReplicationTask) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicationTask.Merge(m, src) -} -func (m *ReplicationTask) XXX_Size() int { - return m.Size() -} -func (m *ReplicationTask) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicationTask.DiscardUnknown(m) + +func (x *ReplicationTask) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ReplicationTask proto.InternalMessageInfo +func (*ReplicationTask) ProtoMessage() {} -type isReplicationTask_Attributes interface { - isReplicationTask_Attributes() - Equal(interface{}) bool - MarshalTo([]byte) (int, error) - Size() int +func (x *ReplicationTask) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_shared_v1_replication_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type ReplicationTask_DomainTaskAttributes struct { - DomainTaskAttributes *DomainTaskAttributes `protobuf:"bytes,4,opt,name=domain_task_attributes,json=domainTaskAttributes,proto3,oneof" json:"domain_task_attributes,omitempty"` -} -type ReplicationTask_SyncShardStatusTaskAttributes struct { - SyncShardStatusTaskAttributes *SyncShardStatusTaskAttributes `protobuf:"bytes,5,opt,name=sync_shard_status_task_attributes,json=syncShardStatusTaskAttributes,proto3,oneof" json:"sync_shard_status_task_attributes,omitempty"` -} -type ReplicationTask_SyncActivityTaskAttributes struct { - SyncActivityTaskAttributes *SyncActivityTaskAttributes `protobuf:"bytes,6,opt,name=sync_activity_task_attributes,json=syncActivityTaskAttributes,proto3,oneof" json:"sync_activity_task_attributes,omitempty"` -} -type ReplicationTask_HistoryTaskV2Attributes struct { - HistoryTaskV2Attributes *HistoryTaskV2Attributes `protobuf:"bytes,7,opt,name=history_task_v2_attributes,json=historyTaskV2Attributes,proto3,oneof" json:"history_task_v2_attributes,omitempty"` -} -type ReplicationTask_FailoverMarkerAttributes struct { - FailoverMarkerAttributes *FailoverMarkerAttributes `protobuf:"bytes,8,opt,name=failover_marker_attributes,json=failoverMarkerAttributes,proto3,oneof" json:"failover_marker_attributes,omitempty"` +// Deprecated: Use ReplicationTask.ProtoReflect.Descriptor instead. +func (*ReplicationTask) Descriptor() ([]byte, []int) { + return file_uber_cadence_shared_v1_replication_proto_rawDescGZIP(), []int{1} } -func (*ReplicationTask_DomainTaskAttributes) isReplicationTask_Attributes() {} -func (*ReplicationTask_SyncShardStatusTaskAttributes) isReplicationTask_Attributes() {} -func (*ReplicationTask_SyncActivityTaskAttributes) isReplicationTask_Attributes() {} -func (*ReplicationTask_HistoryTaskV2Attributes) isReplicationTask_Attributes() {} -func (*ReplicationTask_FailoverMarkerAttributes) isReplicationTask_Attributes() {} - -func (m *ReplicationTask) GetAttributes() isReplicationTask_Attributes { - if m != nil { - return m.Attributes +func (x *ReplicationTask) GetTaskType() ReplicationTaskType { + if x != nil { + return x.TaskType } - return nil + return ReplicationTaskType_REPLICATION_TASK_TYPE_INVALID } -func (m *ReplicationTask) GetTaskType() ReplicationTaskType { - if m != nil { - return m.TaskType +func (x *ReplicationTask) GetSourceTaskId() int64 { + if x != nil { + return x.SourceTaskId } - return REPLICATION_TASK_TYPE_INVALID + return 0 } -func (m *ReplicationTask) GetSourceTaskId() int64 { - if m != nil { - return m.SourceTaskId +func (x *ReplicationTask) GetCreationTime() *timestamppb.Timestamp { + if x != nil { + return x.CreationTime } - return 0 + return nil } -func (m *ReplicationTask) GetCreationTime() *time.Time { +func (m *ReplicationTask) GetAttributes() isReplicationTask_Attributes { if m != nil { - return m.CreationTime + return m.Attributes } return nil } -func (m *ReplicationTask) GetDomainTaskAttributes() *DomainTaskAttributes { - if x, ok := m.GetAttributes().(*ReplicationTask_DomainTaskAttributes); ok { +func (x *ReplicationTask) GetDomainTaskAttributes() *DomainTaskAttributes { + if x, ok := x.GetAttributes().(*ReplicationTask_DomainTaskAttributes); ok { return x.DomainTaskAttributes } return nil } -func (m *ReplicationTask) GetSyncShardStatusTaskAttributes() *SyncShardStatusTaskAttributes { - if x, ok := m.GetAttributes().(*ReplicationTask_SyncShardStatusTaskAttributes); ok { +func (x *ReplicationTask) GetSyncShardStatusTaskAttributes() *SyncShardStatusTaskAttributes { + if x, ok := x.GetAttributes().(*ReplicationTask_SyncShardStatusTaskAttributes); ok { return x.SyncShardStatusTaskAttributes } return nil } -func (m *ReplicationTask) GetSyncActivityTaskAttributes() *SyncActivityTaskAttributes { - if x, ok := m.GetAttributes().(*ReplicationTask_SyncActivityTaskAttributes); ok { +func (x *ReplicationTask) GetSyncActivityTaskAttributes() *SyncActivityTaskAttributes { + if x, ok := x.GetAttributes().(*ReplicationTask_SyncActivityTaskAttributes); ok { return x.SyncActivityTaskAttributes } return nil } -func (m *ReplicationTask) GetHistoryTaskV2Attributes() *HistoryTaskV2Attributes { - if x, ok := m.GetAttributes().(*ReplicationTask_HistoryTaskV2Attributes); ok { +func (x *ReplicationTask) GetHistoryTaskV2Attributes() *HistoryTaskV2Attributes { + if x, ok := x.GetAttributes().(*ReplicationTask_HistoryTaskV2Attributes); ok { return x.HistoryTaskV2Attributes } return nil } -func (m *ReplicationTask) GetFailoverMarkerAttributes() *FailoverMarkerAttributes { - if x, ok := m.GetAttributes().(*ReplicationTask_FailoverMarkerAttributes); ok { +func (x *ReplicationTask) GetFailoverMarkerAttributes() *FailoverMarkerAttributes { + if x, ok := x.GetAttributes().(*ReplicationTask_FailoverMarkerAttributes); ok { return x.FailoverMarkerAttributes } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*ReplicationTask) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*ReplicationTask_DomainTaskAttributes)(nil), - (*ReplicationTask_SyncShardStatusTaskAttributes)(nil), - (*ReplicationTask_SyncActivityTaskAttributes)(nil), - (*ReplicationTask_HistoryTaskV2Attributes)(nil), - (*ReplicationTask_FailoverMarkerAttributes)(nil), - } +type isReplicationTask_Attributes interface { + isReplicationTask_Attributes() +} + +type ReplicationTask_DomainTaskAttributes struct { + DomainTaskAttributes *DomainTaskAttributes `protobuf:"bytes,4,opt,name=domain_task_attributes,json=domainTaskAttributes,proto3,oneof"` +} + +type ReplicationTask_SyncShardStatusTaskAttributes struct { + SyncShardStatusTaskAttributes *SyncShardStatusTaskAttributes `protobuf:"bytes,5,opt,name=sync_shard_status_task_attributes,json=syncShardStatusTaskAttributes,proto3,oneof"` +} + +type ReplicationTask_SyncActivityTaskAttributes struct { + SyncActivityTaskAttributes *SyncActivityTaskAttributes `protobuf:"bytes,6,opt,name=sync_activity_task_attributes,json=syncActivityTaskAttributes,proto3,oneof"` +} + +type ReplicationTask_HistoryTaskV2Attributes struct { + HistoryTaskV2Attributes *HistoryTaskV2Attributes `protobuf:"bytes,7,opt,name=history_task_v2_attributes,json=historyTaskV2Attributes,proto3,oneof"` +} + +type ReplicationTask_FailoverMarkerAttributes struct { + FailoverMarkerAttributes *FailoverMarkerAttributes `protobuf:"bytes,8,opt,name=failover_marker_attributes,json=failoverMarkerAttributes,proto3,oneof"` } +func (*ReplicationTask_DomainTaskAttributes) isReplicationTask_Attributes() {} + +func (*ReplicationTask_SyncShardStatusTaskAttributes) isReplicationTask_Attributes() {} + +func (*ReplicationTask_SyncActivityTaskAttributes) isReplicationTask_Attributes() {} + +func (*ReplicationTask_HistoryTaskV2Attributes) isReplicationTask_Attributes() {} + +func (*ReplicationTask_FailoverMarkerAttributes) isReplicationTask_Attributes() {} + type DomainTaskAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + DomainOperation DomainOperation `protobuf:"varint,1,opt,name=domain_operation,json=domainOperation,proto3,enum=uber.cadence.shared.v1.DomainOperation" json:"domain_operation,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Info *v1.DomainInfo `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty"` @@ -370,293 +445,305 @@ type DomainTaskAttributes struct { PreviousFailoverVersion int64 `protobuf:"varint,8,opt,name=previous_failover_version,json=previousFailoverVersion,proto3" json:"previous_failover_version,omitempty"` } -func (m *DomainTaskAttributes) Reset() { *m = DomainTaskAttributes{} } -func (*DomainTaskAttributes) ProtoMessage() {} -func (*DomainTaskAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_00df2ec6c2eaefe5, []int{2} -} -func (m *DomainTaskAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DomainTaskAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DomainTaskAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *DomainTaskAttributes) Reset() { + *x = DomainTaskAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_shared_v1_replication_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *DomainTaskAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_DomainTaskAttributes.Merge(m, src) -} -func (m *DomainTaskAttributes) XXX_Size() int { - return m.Size() + +func (x *DomainTaskAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DomainTaskAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_DomainTaskAttributes.DiscardUnknown(m) + +func (*DomainTaskAttributes) ProtoMessage() {} + +func (x *DomainTaskAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_shared_v1_replication_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DomainTaskAttributes proto.InternalMessageInfo +// Deprecated: Use DomainTaskAttributes.ProtoReflect.Descriptor instead. +func (*DomainTaskAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_shared_v1_replication_proto_rawDescGZIP(), []int{2} +} -func (m *DomainTaskAttributes) GetDomainOperation() DomainOperation { - if m != nil { - return m.DomainOperation +func (x *DomainTaskAttributes) GetDomainOperation() DomainOperation { + if x != nil { + return x.DomainOperation } - return DOMAIN_OPERATION_INVALID + return DomainOperation_DOMAIN_OPERATION_INVALID } -func (m *DomainTaskAttributes) GetId() string { - if m != nil { - return m.Id +func (x *DomainTaskAttributes) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *DomainTaskAttributes) GetInfo() *v1.DomainInfo { - if m != nil { - return m.Info +func (x *DomainTaskAttributes) GetInfo() *v1.DomainInfo { + if x != nil { + return x.Info } return nil } -func (m *DomainTaskAttributes) GetConfig() *v1.DomainConfiguration { - if m != nil { - return m.Config +func (x *DomainTaskAttributes) GetConfig() *v1.DomainConfiguration { + if x != nil { + return x.Config } return nil } -func (m *DomainTaskAttributes) GetReplicationConfig() *v1.DomainReplicationConfiguration { - if m != nil { - return m.ReplicationConfig +func (x *DomainTaskAttributes) GetReplicationConfig() *v1.DomainReplicationConfiguration { + if x != nil { + return x.ReplicationConfig } return nil } -func (m *DomainTaskAttributes) GetConfigVersion() int64 { - if m != nil { - return m.ConfigVersion +func (x *DomainTaskAttributes) GetConfigVersion() int64 { + if x != nil { + return x.ConfigVersion } return 0 } -func (m *DomainTaskAttributes) GetFailoverVersion() int64 { - if m != nil { - return m.FailoverVersion +func (x *DomainTaskAttributes) GetFailoverVersion() int64 { + if x != nil { + return x.FailoverVersion } return 0 } -func (m *DomainTaskAttributes) GetPreviousFailoverVersion() int64 { - if m != nil { - return m.PreviousFailoverVersion +func (x *DomainTaskAttributes) GetPreviousFailoverVersion() int64 { + if x != nil { + return x.PreviousFailoverVersion } return 0 } type SyncShardStatusTaskAttributes struct { - SourceCluster string `protobuf:"bytes,1,opt,name=source_cluster,json=sourceCluster,proto3" json:"source_cluster,omitempty"` - ShardId int32 `protobuf:"varint,2,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"` - Timestamp *time.Time `protobuf:"bytes,3,opt,name=timestamp,proto3,stdtime" json:"timestamp,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SourceCluster string `protobuf:"bytes,1,opt,name=source_cluster,json=sourceCluster,proto3" json:"source_cluster,omitempty"` + ShardId int32 `protobuf:"varint,2,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"` + Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` } -func (m *SyncShardStatusTaskAttributes) Reset() { *m = SyncShardStatusTaskAttributes{} } -func (*SyncShardStatusTaskAttributes) ProtoMessage() {} -func (*SyncShardStatusTaskAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_00df2ec6c2eaefe5, []int{3} -} -func (m *SyncShardStatusTaskAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SyncShardStatusTaskAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SyncShardStatusTaskAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *SyncShardStatusTaskAttributes) Reset() { + *x = SyncShardStatusTaskAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_shared_v1_replication_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *SyncShardStatusTaskAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_SyncShardStatusTaskAttributes.Merge(m, src) -} -func (m *SyncShardStatusTaskAttributes) XXX_Size() int { - return m.Size() + +func (x *SyncShardStatusTaskAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SyncShardStatusTaskAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_SyncShardStatusTaskAttributes.DiscardUnknown(m) + +func (*SyncShardStatusTaskAttributes) ProtoMessage() {} + +func (x *SyncShardStatusTaskAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_shared_v1_replication_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SyncShardStatusTaskAttributes proto.InternalMessageInfo +// Deprecated: Use SyncShardStatusTaskAttributes.ProtoReflect.Descriptor instead. +func (*SyncShardStatusTaskAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_shared_v1_replication_proto_rawDescGZIP(), []int{3} +} -func (m *SyncShardStatusTaskAttributes) GetSourceCluster() string { - if m != nil { - return m.SourceCluster +func (x *SyncShardStatusTaskAttributes) GetSourceCluster() string { + if x != nil { + return x.SourceCluster } return "" } -func (m *SyncShardStatusTaskAttributes) GetShardId() int32 { - if m != nil { - return m.ShardId +func (x *SyncShardStatusTaskAttributes) GetShardId() int32 { + if x != nil { + return x.ShardId } return 0 } -func (m *SyncShardStatusTaskAttributes) GetTimestamp() *time.Time { - if m != nil { - return m.Timestamp +func (x *SyncShardStatusTaskAttributes) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp } return nil } type SyncActivityTaskAttributes struct { - DomainId string `protobuf:"bytes,1,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` - WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` - Version int64 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` - ScheduledId int64 `protobuf:"varint,4,opt,name=scheduled_id,json=scheduledId,proto3" json:"scheduled_id,omitempty"` - ScheduledTime *time.Time `protobuf:"bytes,5,opt,name=scheduled_time,json=scheduledTime,proto3,stdtime" json:"scheduled_time,omitempty"` - StartedId int64 `protobuf:"varint,6,opt,name=started_id,json=startedId,proto3" json:"started_id,omitempty"` - StartedTime *time.Time `protobuf:"bytes,7,opt,name=started_time,json=startedTime,proto3,stdtime" json:"started_time,omitempty"` - LastHeartbeatTime *time.Time `protobuf:"bytes,8,opt,name=last_heartbeat_time,json=lastHeartbeatTime,proto3,stdtime" json:"last_heartbeat_time,omitempty"` - Details *v1.Payload `protobuf:"bytes,9,opt,name=details,proto3" json:"details,omitempty"` - Attempt int32 `protobuf:"varint,10,opt,name=attempt,proto3" json:"attempt,omitempty"` - LastFailure *v1.Failure `protobuf:"bytes,11,opt,name=last_failure,json=lastFailure,proto3" json:"last_failure,omitempty"` - LastWorkerIdentity string `protobuf:"bytes,12,opt,name=last_worker_identity,json=lastWorkerIdentity,proto3" json:"last_worker_identity,omitempty"` - VersionHistory *VersionHistory `protobuf:"bytes,13,opt,name=version_history,json=versionHistory,proto3" json:"version_history,omitempty"` -} - -func (m *SyncActivityTaskAttributes) Reset() { *m = SyncActivityTaskAttributes{} } -func (*SyncActivityTaskAttributes) ProtoMessage() {} -func (*SyncActivityTaskAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_00df2ec6c2eaefe5, []int{4} -} -func (m *SyncActivityTaskAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SyncActivityTaskAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SyncActivityTaskAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DomainId string `protobuf:"bytes,1,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` + WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` + Version int64 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` + ScheduledId int64 `protobuf:"varint,4,opt,name=scheduled_id,json=scheduledId,proto3" json:"scheduled_id,omitempty"` + ScheduledTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=scheduled_time,json=scheduledTime,proto3" json:"scheduled_time,omitempty"` + StartedId int64 `protobuf:"varint,6,opt,name=started_id,json=startedId,proto3" json:"started_id,omitempty"` + StartedTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=started_time,json=startedTime,proto3" json:"started_time,omitempty"` + LastHeartbeatTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=last_heartbeat_time,json=lastHeartbeatTime,proto3" json:"last_heartbeat_time,omitempty"` + Details *v1.Payload `protobuf:"bytes,9,opt,name=details,proto3" json:"details,omitempty"` + Attempt int32 `protobuf:"varint,10,opt,name=attempt,proto3" json:"attempt,omitempty"` + LastFailure *v1.Failure `protobuf:"bytes,11,opt,name=last_failure,json=lastFailure,proto3" json:"last_failure,omitempty"` + LastWorkerIdentity string `protobuf:"bytes,12,opt,name=last_worker_identity,json=lastWorkerIdentity,proto3" json:"last_worker_identity,omitempty"` + VersionHistory *VersionHistory `protobuf:"bytes,13,opt,name=version_history,json=versionHistory,proto3" json:"version_history,omitempty"` } -func (m *SyncActivityTaskAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_SyncActivityTaskAttributes.Merge(m, src) + +func (x *SyncActivityTaskAttributes) Reset() { + *x = SyncActivityTaskAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_shared_v1_replication_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SyncActivityTaskAttributes) XXX_Size() int { - return m.Size() + +func (x *SyncActivityTaskAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SyncActivityTaskAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_SyncActivityTaskAttributes.DiscardUnknown(m) + +func (*SyncActivityTaskAttributes) ProtoMessage() {} + +func (x *SyncActivityTaskAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_shared_v1_replication_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SyncActivityTaskAttributes proto.InternalMessageInfo +// Deprecated: Use SyncActivityTaskAttributes.ProtoReflect.Descriptor instead. +func (*SyncActivityTaskAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_shared_v1_replication_proto_rawDescGZIP(), []int{4} +} -func (m *SyncActivityTaskAttributes) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *SyncActivityTaskAttributes) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } -func (m *SyncActivityTaskAttributes) GetWorkflowExecution() *v1.WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *SyncActivityTaskAttributes) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *SyncActivityTaskAttributes) GetVersion() int64 { - if m != nil { - return m.Version +func (x *SyncActivityTaskAttributes) GetVersion() int64 { + if x != nil { + return x.Version } return 0 } -func (m *SyncActivityTaskAttributes) GetScheduledId() int64 { - if m != nil { - return m.ScheduledId +func (x *SyncActivityTaskAttributes) GetScheduledId() int64 { + if x != nil { + return x.ScheduledId } return 0 } -func (m *SyncActivityTaskAttributes) GetScheduledTime() *time.Time { - if m != nil { - return m.ScheduledTime +func (x *SyncActivityTaskAttributes) GetScheduledTime() *timestamppb.Timestamp { + if x != nil { + return x.ScheduledTime } return nil } -func (m *SyncActivityTaskAttributes) GetStartedId() int64 { - if m != nil { - return m.StartedId +func (x *SyncActivityTaskAttributes) GetStartedId() int64 { + if x != nil { + return x.StartedId } return 0 } -func (m *SyncActivityTaskAttributes) GetStartedTime() *time.Time { - if m != nil { - return m.StartedTime +func (x *SyncActivityTaskAttributes) GetStartedTime() *timestamppb.Timestamp { + if x != nil { + return x.StartedTime } return nil } -func (m *SyncActivityTaskAttributes) GetLastHeartbeatTime() *time.Time { - if m != nil { - return m.LastHeartbeatTime +func (x *SyncActivityTaskAttributes) GetLastHeartbeatTime() *timestamppb.Timestamp { + if x != nil { + return x.LastHeartbeatTime } return nil } -func (m *SyncActivityTaskAttributes) GetDetails() *v1.Payload { - if m != nil { - return m.Details +func (x *SyncActivityTaskAttributes) GetDetails() *v1.Payload { + if x != nil { + return x.Details } return nil } -func (m *SyncActivityTaskAttributes) GetAttempt() int32 { - if m != nil { - return m.Attempt +func (x *SyncActivityTaskAttributes) GetAttempt() int32 { + if x != nil { + return x.Attempt } return 0 } -func (m *SyncActivityTaskAttributes) GetLastFailure() *v1.Failure { - if m != nil { - return m.LastFailure +func (x *SyncActivityTaskAttributes) GetLastFailure() *v1.Failure { + if x != nil { + return x.LastFailure } return nil } -func (m *SyncActivityTaskAttributes) GetLastWorkerIdentity() string { - if m != nil { - return m.LastWorkerIdentity +func (x *SyncActivityTaskAttributes) GetLastWorkerIdentity() string { + if x != nil { + return x.LastWorkerIdentity } return "" } -func (m *SyncActivityTaskAttributes) GetVersionHistory() *VersionHistory { - if m != nil { - return m.VersionHistory +func (x *SyncActivityTaskAttributes) GetVersionHistory() *VersionHistory { + if x != nil { + return x.VersionHistory } return nil } type HistoryTaskV2Attributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + TaskId int64 `protobuf:"varint,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` DomainId string `protobuf:"bytes,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` @@ -666,191 +753,203 @@ type HistoryTaskV2Attributes struct { NewRunEvents *v1.DataBlob `protobuf:"bytes,6,opt,name=new_run_events,json=newRunEvents,proto3" json:"new_run_events,omitempty"` } -func (m *HistoryTaskV2Attributes) Reset() { *m = HistoryTaskV2Attributes{} } -func (*HistoryTaskV2Attributes) ProtoMessage() {} -func (*HistoryTaskV2Attributes) Descriptor() ([]byte, []int) { - return fileDescriptor_00df2ec6c2eaefe5, []int{5} -} -func (m *HistoryTaskV2Attributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HistoryTaskV2Attributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_HistoryTaskV2Attributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *HistoryTaskV2Attributes) Reset() { + *x = HistoryTaskV2Attributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_shared_v1_replication_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *HistoryTaskV2Attributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_HistoryTaskV2Attributes.Merge(m, src) -} -func (m *HistoryTaskV2Attributes) XXX_Size() int { - return m.Size() + +func (x *HistoryTaskV2Attributes) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *HistoryTaskV2Attributes) XXX_DiscardUnknown() { - xxx_messageInfo_HistoryTaskV2Attributes.DiscardUnknown(m) + +func (*HistoryTaskV2Attributes) ProtoMessage() {} + +func (x *HistoryTaskV2Attributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_shared_v1_replication_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_HistoryTaskV2Attributes proto.InternalMessageInfo +// Deprecated: Use HistoryTaskV2Attributes.ProtoReflect.Descriptor instead. +func (*HistoryTaskV2Attributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_shared_v1_replication_proto_rawDescGZIP(), []int{5} +} -func (m *HistoryTaskV2Attributes) GetTaskId() int64 { - if m != nil { - return m.TaskId +func (x *HistoryTaskV2Attributes) GetTaskId() int64 { + if x != nil { + return x.TaskId } return 0 } -func (m *HistoryTaskV2Attributes) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *HistoryTaskV2Attributes) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } -func (m *HistoryTaskV2Attributes) GetWorkflowExecution() *v1.WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *HistoryTaskV2Attributes) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *HistoryTaskV2Attributes) GetVersionHistoryItems() []*VersionHistoryItem { - if m != nil { - return m.VersionHistoryItems +func (x *HistoryTaskV2Attributes) GetVersionHistoryItems() []*VersionHistoryItem { + if x != nil { + return x.VersionHistoryItems } return nil } -func (m *HistoryTaskV2Attributes) GetEvents() *v1.DataBlob { - if m != nil { - return m.Events +func (x *HistoryTaskV2Attributes) GetEvents() *v1.DataBlob { + if x != nil { + return x.Events } return nil } -func (m *HistoryTaskV2Attributes) GetNewRunEvents() *v1.DataBlob { - if m != nil { - return m.NewRunEvents +func (x *HistoryTaskV2Attributes) GetNewRunEvents() *v1.DataBlob { + if x != nil { + return x.NewRunEvents } return nil } type FailoverMarkerAttributes struct { - DomainId string `protobuf:"bytes,1,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` - FailoverVersion int64 `protobuf:"varint,2,opt,name=failover_version,json=failoverVersion,proto3" json:"failover_version,omitempty"` - CreationTime *time.Time `protobuf:"bytes,3,opt,name=creation_time,json=creationTime,proto3,stdtime" json:"creation_time,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DomainId string `protobuf:"bytes,1,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` + FailoverVersion int64 `protobuf:"varint,2,opt,name=failover_version,json=failoverVersion,proto3" json:"failover_version,omitempty"` + CreationTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"` } -func (m *FailoverMarkerAttributes) Reset() { *m = FailoverMarkerAttributes{} } -func (*FailoverMarkerAttributes) ProtoMessage() {} -func (*FailoverMarkerAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_00df2ec6c2eaefe5, []int{6} -} -func (m *FailoverMarkerAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *FailoverMarkerAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_FailoverMarkerAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *FailoverMarkerAttributes) Reset() { + *x = FailoverMarkerAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_shared_v1_replication_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *FailoverMarkerAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_FailoverMarkerAttributes.Merge(m, src) -} -func (m *FailoverMarkerAttributes) XXX_Size() int { - return m.Size() + +func (x *FailoverMarkerAttributes) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FailoverMarkerAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_FailoverMarkerAttributes.DiscardUnknown(m) + +func (*FailoverMarkerAttributes) ProtoMessage() {} + +func (x *FailoverMarkerAttributes) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_shared_v1_replication_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FailoverMarkerAttributes proto.InternalMessageInfo +// Deprecated: Use FailoverMarkerAttributes.ProtoReflect.Descriptor instead. +func (*FailoverMarkerAttributes) Descriptor() ([]byte, []int) { + return file_uber_cadence_shared_v1_replication_proto_rawDescGZIP(), []int{6} +} -func (m *FailoverMarkerAttributes) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *FailoverMarkerAttributes) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } -func (m *FailoverMarkerAttributes) GetFailoverVersion() int64 { - if m != nil { - return m.FailoverVersion +func (x *FailoverMarkerAttributes) GetFailoverVersion() int64 { + if x != nil { + return x.FailoverVersion } return 0 } -func (m *FailoverMarkerAttributes) GetCreationTime() *time.Time { - if m != nil { - return m.CreationTime +func (x *FailoverMarkerAttributes) GetCreationTime() *timestamppb.Timestamp { + if x != nil { + return x.CreationTime } return nil } type FailoverMarkerToken struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + ShardIds []int32 `protobuf:"varint,1,rep,packed,name=shard_ids,json=shardIds,proto3" json:"shard_ids,omitempty"` FailoverMarker *FailoverMarkerAttributes `protobuf:"bytes,2,opt,name=failover_marker,json=failoverMarker,proto3" json:"failover_marker,omitempty"` } -func (m *FailoverMarkerToken) Reset() { *m = FailoverMarkerToken{} } -func (*FailoverMarkerToken) ProtoMessage() {} -func (*FailoverMarkerToken) Descriptor() ([]byte, []int) { - return fileDescriptor_00df2ec6c2eaefe5, []int{7} -} -func (m *FailoverMarkerToken) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *FailoverMarkerToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_FailoverMarkerToken.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *FailoverMarkerToken) Reset() { + *x = FailoverMarkerToken{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_shared_v1_replication_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *FailoverMarkerToken) XXX_Merge(src proto.Message) { - xxx_messageInfo_FailoverMarkerToken.Merge(m, src) -} -func (m *FailoverMarkerToken) XXX_Size() int { - return m.Size() + +func (x *FailoverMarkerToken) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FailoverMarkerToken) XXX_DiscardUnknown() { - xxx_messageInfo_FailoverMarkerToken.DiscardUnknown(m) + +func (*FailoverMarkerToken) ProtoMessage() {} + +func (x *FailoverMarkerToken) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_shared_v1_replication_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FailoverMarkerToken proto.InternalMessageInfo +// Deprecated: Use FailoverMarkerToken.ProtoReflect.Descriptor instead. +func (*FailoverMarkerToken) Descriptor() ([]byte, []int) { + return file_uber_cadence_shared_v1_replication_proto_rawDescGZIP(), []int{7} +} -func (m *FailoverMarkerToken) GetShardIds() []int32 { - if m != nil { - return m.ShardIds +func (x *FailoverMarkerToken) GetShardIds() []int32 { + if x != nil { + return x.ShardIds } return nil } -func (m *FailoverMarkerToken) GetFailoverMarker() *FailoverMarkerAttributes { - if m != nil { - return m.FailoverMarker +func (x *FailoverMarkerToken) GetFailoverMarker() *FailoverMarkerAttributes { + if x != nil { + return x.FailoverMarker } return nil } type ReplicationTaskInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + DomainId string `protobuf:"bytes,1,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` TaskType int32 `protobuf:"varint,3,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` @@ -861,95 +960,99 @@ type ReplicationTaskInfo struct { ScheduledId int64 `protobuf:"varint,8,opt,name=scheduled_id,json=scheduledId,proto3" json:"scheduled_id,omitempty"` } -func (m *ReplicationTaskInfo) Reset() { *m = ReplicationTaskInfo{} } -func (*ReplicationTaskInfo) ProtoMessage() {} -func (*ReplicationTaskInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_00df2ec6c2eaefe5, []int{8} -} -func (m *ReplicationTaskInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicationTaskInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReplicationTaskInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ReplicationTaskInfo) Reset() { + *x = ReplicationTaskInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_shared_v1_replication_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ReplicationTaskInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicationTaskInfo.Merge(m, src) -} -func (m *ReplicationTaskInfo) XXX_Size() int { - return m.Size() + +func (x *ReplicationTaskInfo) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ReplicationTaskInfo) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicationTaskInfo.DiscardUnknown(m) + +func (*ReplicationTaskInfo) ProtoMessage() {} + +func (x *ReplicationTaskInfo) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_shared_v1_replication_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ReplicationTaskInfo proto.InternalMessageInfo +// Deprecated: Use ReplicationTaskInfo.ProtoReflect.Descriptor instead. +func (*ReplicationTaskInfo) Descriptor() ([]byte, []int) { + return file_uber_cadence_shared_v1_replication_proto_rawDescGZIP(), []int{8} +} -func (m *ReplicationTaskInfo) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *ReplicationTaskInfo) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } -func (m *ReplicationTaskInfo) GetWorkflowExecution() *v1.WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *ReplicationTaskInfo) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *ReplicationTaskInfo) GetTaskType() int32 { - if m != nil { - return m.TaskType +func (x *ReplicationTaskInfo) GetTaskType() int32 { + if x != nil { + return x.TaskType } return 0 } -func (m *ReplicationTaskInfo) GetTaskId() int64 { - if m != nil { - return m.TaskId +func (x *ReplicationTaskInfo) GetTaskId() int64 { + if x != nil { + return x.TaskId } return 0 } -func (m *ReplicationTaskInfo) GetVersion() int64 { - if m != nil { - return m.Version +func (x *ReplicationTaskInfo) GetVersion() int64 { + if x != nil { + return x.Version } return 0 } -func (m *ReplicationTaskInfo) GetFirstEventId() int64 { - if m != nil { - return m.FirstEventId +func (x *ReplicationTaskInfo) GetFirstEventId() int64 { + if x != nil { + return x.FirstEventId } return 0 } -func (m *ReplicationTaskInfo) GetNextEventId() int64 { - if m != nil { - return m.NextEventId +func (x *ReplicationTaskInfo) GetNextEventId() int64 { + if x != nil { + return x.NextEventId } return 0 } -func (m *ReplicationTaskInfo) GetScheduledId() int64 { - if m != nil { - return m.ScheduledId +func (x *ReplicationTaskInfo) GetScheduledId() int64 { + if x != nil { + return x.ScheduledId } return 0 } type ReplicationToken struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + ShardId int32 `protobuf:"varint,1,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"` // lastRetrievedMessageId is where the next fetch should begin with. LastRetrievedMessageId int64 `protobuf:"varint,2,opt,name=last_retrieved_message_id,json=lastRetrievedMessageId,proto3" json:"last_retrieved_message_id,omitempty"` @@ -958,4846 +1061,634 @@ type ReplicationToken struct { LastProcessedMessageId int64 `protobuf:"varint,3,opt,name=last_processed_message_id,json=lastProcessedMessageId,proto3" json:"last_processed_message_id,omitempty"` } -func (m *ReplicationToken) Reset() { *m = ReplicationToken{} } -func (*ReplicationToken) ProtoMessage() {} -func (*ReplicationToken) Descriptor() ([]byte, []int) { - return fileDescriptor_00df2ec6c2eaefe5, []int{9} -} -func (m *ReplicationToken) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicationToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReplicationToken.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ReplicationToken) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicationToken.Merge(m, src) -} -func (m *ReplicationToken) XXX_Size() int { - return m.Size() -} -func (m *ReplicationToken) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicationToken.DiscardUnknown(m) -} - -var xxx_messageInfo_ReplicationToken proto.InternalMessageInfo - -func (m *ReplicationToken) GetShardId() int32 { - if m != nil { - return m.ShardId - } - return 0 -} - -func (m *ReplicationToken) GetLastRetrievedMessageId() int64 { - if m != nil { - return m.LastRetrievedMessageId - } - return 0 -} - -func (m *ReplicationToken) GetLastProcessedMessageId() int64 { - if m != nil { - return m.LastProcessedMessageId - } - return 0 -} - -type SyncShardStatus struct { - Timestamp *time.Time `protobuf:"bytes,1,opt,name=timestamp,proto3,stdtime" json:"timestamp,omitempty"` -} - -func (m *SyncShardStatus) Reset() { *m = SyncShardStatus{} } -func (*SyncShardStatus) ProtoMessage() {} -func (*SyncShardStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_00df2ec6c2eaefe5, []int{10} -} -func (m *SyncShardStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SyncShardStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SyncShardStatus.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *SyncShardStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_SyncShardStatus.Merge(m, src) -} -func (m *SyncShardStatus) XXX_Size() int { - return m.Size() -} -func (m *SyncShardStatus) XXX_DiscardUnknown() { - xxx_messageInfo_SyncShardStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_SyncShardStatus proto.InternalMessageInfo - -func (m *SyncShardStatus) GetTimestamp() *time.Time { - if m != nil { - return m.Timestamp - } - return nil -} - -func init() { - proto.RegisterEnum("uber.cadence.shared.v1.ReplicationTaskType", ReplicationTaskType_name, ReplicationTaskType_value) - proto.RegisterEnum("uber.cadence.shared.v1.DomainOperation", DomainOperation_name, DomainOperation_value) - proto.RegisterEnum("uber.cadence.shared.v1.DLQType", DLQType_name, DLQType_value) - proto.RegisterType((*ReplicationMessages)(nil), "uber.cadence.shared.v1.ReplicationMessages") - proto.RegisterType((*ReplicationTask)(nil), "uber.cadence.shared.v1.ReplicationTask") - proto.RegisterType((*DomainTaskAttributes)(nil), "uber.cadence.shared.v1.DomainTaskAttributes") - proto.RegisterType((*SyncShardStatusTaskAttributes)(nil), "uber.cadence.shared.v1.SyncShardStatusTaskAttributes") - proto.RegisterType((*SyncActivityTaskAttributes)(nil), "uber.cadence.shared.v1.SyncActivityTaskAttributes") - proto.RegisterType((*HistoryTaskV2Attributes)(nil), "uber.cadence.shared.v1.HistoryTaskV2Attributes") - proto.RegisterType((*FailoverMarkerAttributes)(nil), "uber.cadence.shared.v1.FailoverMarkerAttributes") - proto.RegisterType((*FailoverMarkerToken)(nil), "uber.cadence.shared.v1.FailoverMarkerToken") - proto.RegisterType((*ReplicationTaskInfo)(nil), "uber.cadence.shared.v1.ReplicationTaskInfo") - proto.RegisterType((*ReplicationToken)(nil), "uber.cadence.shared.v1.ReplicationToken") - proto.RegisterType((*SyncShardStatus)(nil), "uber.cadence.shared.v1.SyncShardStatus") -} - -func init() { - proto.RegisterFile("github.com/uber/cadence/.gen/proto/shared/v1/replication.proto", fileDescriptor_00df2ec6c2eaefe5) -} - -var fileDescriptor_00df2ec6c2eaefe5 = []byte{ - // 1602 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x57, 0xcf, 0x6f, 0x22, 0xc9, - 0x15, 0xa6, 0xc1, 0x06, 0xfc, 0x8c, 0x81, 0x29, 0x3b, 0x63, 0xc6, 0x63, 0x33, 0x0c, 0xf1, 0xae, - 0xbd, 0xde, 0x08, 0x76, 0x3c, 0xda, 0x48, 0xc9, 0x61, 0x13, 0x0c, 0x38, 0x6e, 0xad, 0x7f, 0x4d, - 0xd1, 0xe3, 0x95, 0x73, 0x48, 0xab, 0x4d, 0x17, 0x76, 0xcb, 0xd0, 0x8d, 0xba, 0x0a, 0xbc, 0xdc, - 0x92, 0xdc, 0x23, 0xed, 0x29, 0x97, 0x9c, 0xa2, 0x5c, 0x92, 0x7f, 0x24, 0xca, 0xd1, 0xc7, 0xbd, - 0x25, 0x83, 0x2f, 0x39, 0xee, 0x9f, 0x10, 0x75, 0x55, 0x35, 0xd0, 0xfc, 0x12, 0xab, 0x8d, 0xb4, - 0x37, 0xfa, 0xbd, 0xef, 0x7b, 0x5f, 0x55, 0xbd, 0x57, 0xaf, 0x1e, 0xb0, 0xdf, 0xb9, 0x21, 0x6e, - 0xb1, 0x6e, 0x98, 0xc4, 0xae, 0x93, 0x22, 0xbd, 0x33, 0x5c, 0x62, 0x16, 0xbb, 0x6f, 0x8a, 0x2e, - 0x69, 0x37, 0xad, 0xba, 0xc1, 0x2c, 0xc7, 0x2e, 0xb4, 0x5d, 0x87, 0x39, 0xe8, 0xb9, 0x87, 0x2c, - 0x48, 0x64, 0x41, 0x20, 0x0b, 0xdd, 0x37, 0x5b, 0xaf, 0x6e, 0x1d, 0xe7, 0xb6, 0x49, 0x8a, 0x1c, - 0x75, 0xd3, 0x69, 0x14, 0x99, 0xd5, 0x22, 0x94, 0x19, 0xad, 0xb6, 0x20, 0x6e, 0x6d, 0x9b, 0xa4, - 0x4d, 0x6c, 0x8f, 0x66, 0x11, 0x5a, 0xbc, 0x75, 0x6e, 0x1d, 0x6e, 0x97, 0xde, 0x5c, 0x60, 0x01, - 0x46, 0xdb, 0xf2, 0xd4, 0xeb, 0x4e, 0xab, 0xe5, 0x0b, 0x4f, 0x47, 0x98, 0x4e, 0xcb, 0xb0, 0x7c, - 0xc4, 0xee, 0x8c, 0x4d, 0xdc, 0x59, 0x94, 0x39, 0x6e, 0x4f, 0xa0, 0xf2, 0x7f, 0x0e, 0xc3, 0x3a, - 0x1e, 0x6e, 0xeb, 0x8c, 0x50, 0x6a, 0xdc, 0x12, 0x8a, 0x34, 0x78, 0x36, 0xb2, 0x5b, 0x9d, 0x19, - 0xf4, 0x9e, 0x66, 0x94, 0x5c, 0x64, 0x7f, 0xf5, 0x70, 0xaf, 0x30, 0x7d, 0xd3, 0x85, 0x91, 0x38, - 0x9a, 0x41, 0xef, 0x71, 0xda, 0x0d, 0x1a, 0x28, 0xfa, 0x05, 0xbc, 0x68, 0x1a, 0x94, 0xe9, 0x2e, - 0x61, 0xae, 0x45, 0xba, 0xc4, 0xd4, 0x5b, 0x42, 0x50, 0xb7, 0xcc, 0x4c, 0x38, 0xa7, 0xec, 0x47, - 0xf0, 0x73, 0x0f, 0x80, 0x7d, 0xbf, 0x5c, 0x8f, 0x6a, 0xa2, 0x17, 0x10, 0xbf, 0x33, 0xa8, 0xde, - 0x72, 0x5c, 0x92, 0x89, 0xe4, 0x94, 0xfd, 0x38, 0x8e, 0xdd, 0x19, 0xf4, 0xcc, 0x71, 0x09, 0xaa, - 0xc1, 0x33, 0xda, 0xb3, 0xeb, 0xba, 0xb7, 0x12, 0x53, 0xa7, 0xcc, 0x60, 0x1d, 0x9a, 0x59, 0xca, - 0x29, 0xf3, 0xd6, 0x5a, 0xeb, 0xd9, 0xf5, 0x9a, 0x87, 0xaf, 0x71, 0x38, 0x4e, 0xd1, 0xa0, 0x21, - 0xff, 0x97, 0x28, 0xa4, 0xc6, 0x36, 0x84, 0x4e, 0x60, 0xc5, 0x3b, 0x08, 0x9d, 0xf5, 0xda, 0x24, - 0xa3, 0xe4, 0x94, 0xfd, 0xe4, 0xe1, 0xa7, 0x0b, 0x1e, 0x86, 0xd6, 0x6b, 0x13, 0x1c, 0x67, 0xf2, - 0x17, 0xda, 0x85, 0x24, 0x75, 0x3a, 0x6e, 0x9d, 0xf0, 0x93, 0x1d, 0xee, 0x3e, 0x21, 0xac, 0x1e, - 0x43, 0x35, 0x51, 0x15, 0xd6, 0xea, 0x2e, 0x91, 0x19, 0xb0, 0x5a, 0x62, 0xe3, 0xab, 0x87, 0x5b, - 0x05, 0x51, 0x5d, 0x05, 0xbf, 0xba, 0x0a, 0x9a, 0x5f, 0x5d, 0x47, 0x4b, 0xdf, 0xfc, 0xfb, 0x95, - 0x82, 0x13, 0x3e, 0xcd, 0x73, 0x20, 0x13, 0x9e, 0x8b, 0xca, 0x10, 0x62, 0x06, 0x63, 0xae, 0x75, - 0xd3, 0x61, 0xc4, 0x3f, 0xa4, 0x9f, 0xcd, 0xda, 0x43, 0x85, 0xb3, 0xbc, 0xc5, 0x94, 0x06, 0x9c, - 0x93, 0x10, 0xde, 0x30, 0xa7, 0xd8, 0xd1, 0x1f, 0x14, 0x78, 0x3d, 0x91, 0x86, 0x09, 0xc5, 0x65, - 0xae, 0xf8, 0xf9, 0x82, 0x69, 0x99, 0x90, 0xde, 0xa1, 0xf3, 0x00, 0xe8, 0x01, 0x38, 0x40, 0x37, - 0xea, 0xcc, 0xea, 0x5a, 0xac, 0x37, 0x21, 0x1f, 0xe5, 0xf2, 0x87, 0xf3, 0xe4, 0x4b, 0x92, 0x3b, - 0xa1, 0xbd, 0x45, 0x67, 0x7a, 0x91, 0x0d, 0x5b, 0xf2, 0x5e, 0x09, 0xc9, 0xee, 0xe1, 0xa8, 0x6a, - 0x8c, 0xab, 0x16, 0x67, 0xa9, 0x9e, 0x08, 0xa6, 0x17, 0xf2, 0xea, 0x30, 0x20, 0xb9, 0x79, 0x37, - 0xdd, 0x85, 0xda, 0xb0, 0xd5, 0x30, 0xac, 0xa6, 0xd3, 0x25, 0xae, 0xde, 0x32, 0xdc, 0x7b, 0xe2, - 0x8e, 0xea, 0xc5, 0xb9, 0xde, 0x67, 0xb3, 0xf4, 0x8e, 0x25, 0xf3, 0x8c, 0x13, 0x03, 0x82, 0x99, - 0xc6, 0x0c, 0xdf, 0x51, 0x02, 0x60, 0xa8, 0x90, 0x7f, 0x8a, 0xc0, 0xc6, 0xb4, 0xea, 0x40, 0x18, - 0xd2, 0xb2, 0xd6, 0x9c, 0x36, 0x71, 0x79, 0x0d, 0xca, 0x9b, 0xb2, 0x37, 0xbf, 0xca, 0x2e, 0x7c, - 0x38, 0x4e, 0x99, 0x41, 0x03, 0x4a, 0x42, 0x58, 0x5e, 0x90, 0x15, 0x1c, 0xb6, 0x4c, 0xf4, 0x16, - 0x96, 0x2c, 0xbb, 0xe1, 0xc8, 0xdb, 0xf0, 0x2a, 0x18, 0xd7, 0x68, 0x5b, 0xc3, 0xa0, 0xaa, 0xdd, - 0x70, 0x30, 0x07, 0xa3, 0x5f, 0x43, 0xb4, 0xee, 0xd8, 0x0d, 0xeb, 0x56, 0x16, 0xfd, 0xfe, 0x1c, - 0x5a, 0x99, 0x03, 0x3b, 0x72, 0x3d, 0x92, 0x87, 0x6e, 0x00, 0x8d, 0xb6, 0x44, 0x19, 0x4d, 0x14, - 0xf4, 0xdb, 0x39, 0xd1, 0x46, 0x3a, 0x41, 0x30, 0xf0, 0x68, 0x87, 0x15, 0x1e, 0xf4, 0x11, 0x24, - 0x45, 0x5c, 0xbd, 0x4b, 0x5c, 0xea, 0x1d, 0x5e, 0x94, 0xf7, 0x85, 0x35, 0x61, 0xbd, 0x12, 0x46, - 0xf4, 0x09, 0xa4, 0x07, 0xe9, 0xf7, 0x81, 0x31, 0x0e, 0x4c, 0xf9, 0x76, 0x1f, 0xfa, 0x4b, 0x78, - 0xd1, 0x76, 0x49, 0xd7, 0x72, 0x3a, 0x54, 0x9f, 0xe0, 0xc4, 0x39, 0x67, 0xd3, 0x07, 0x1c, 0x07, - 0xb9, 0xf9, 0xbf, 0x2a, 0xb0, 0x33, 0xf7, 0x46, 0x7a, 0xeb, 0x95, 0x7d, 0xac, 0xde, 0xec, 0x50, - 0x46, 0x5c, 0x9e, 0xec, 0x15, 0xbc, 0x26, 0xac, 0x65, 0x61, 0xf4, 0x9a, 0xb7, 0xe8, 0x0a, 0x32, - 0x8f, 0xcb, 0x38, 0xc6, 0xbf, 0x55, 0x13, 0x7d, 0x01, 0x2b, 0x83, 0xb7, 0x71, 0xe1, 0xfe, 0x36, - 0xa4, 0xe4, 0xfb, 0xcb, 0xb0, 0x35, 0xfb, 0xda, 0xa2, 0x97, 0xb0, 0x22, 0xeb, 0xd1, 0x32, 0xe5, - 0xda, 0xe2, 0xc2, 0xa0, 0x9a, 0xe8, 0x3d, 0xa0, 0x07, 0xc7, 0xbd, 0x6f, 0x34, 0x9d, 0x07, 0x9d, - 0x7c, 0x4d, 0xea, 0x1d, 0x5e, 0xae, 0x61, 0xbe, 0x88, 0x8f, 0xa7, 0x66, 0xf4, 0x2b, 0x09, 0xaf, - 0xfa, 0x68, 0xfc, 0xec, 0x61, 0xdc, 0x84, 0x32, 0x10, 0xf3, 0x0f, 0x38, 0xc2, 0x0f, 0xd8, 0xff, - 0x44, 0xaf, 0x21, 0x41, 0xeb, 0x77, 0xc4, 0xec, 0x34, 0x09, 0x3f, 0x8b, 0x25, 0xee, 0x5e, 0x1d, - 0xd8, 0x54, 0x13, 0xfd, 0x06, 0x92, 0x43, 0x08, 0x6f, 0xfa, 0xcb, 0x0b, 0x1e, 0xca, 0xda, 0x80, - 0xc7, 0xbb, 0xfe, 0x0e, 0x00, 0x65, 0x86, 0xcb, 0x84, 0x92, 0x28, 0xa3, 0x15, 0x69, 0x51, 0x4d, - 0x54, 0x86, 0x84, 0xef, 0xe6, 0x2a, 0xb1, 0x05, 0x55, 0x56, 0x25, 0x8b, 0x6b, 0x5c, 0xc2, 0x3a, - 0x7f, 0xcf, 0xef, 0x88, 0xe1, 0xb2, 0x1b, 0x62, 0x30, 0x11, 0x2b, 0xbe, 0x60, 0xac, 0x67, 0x1e, - 0xf9, 0xc4, 0xe7, 0xf2, 0x88, 0x3f, 0x87, 0x98, 0x49, 0x98, 0x61, 0x35, 0x69, 0x66, 0x85, 0x47, - 0xd9, 0x9e, 0x9a, 0x87, 0x4b, 0xa3, 0xd7, 0x74, 0x0c, 0x13, 0xfb, 0x60, 0xef, 0xcc, 0x0d, 0xc6, - 0x48, 0xab, 0xcd, 0x32, 0x20, 0x0a, 0x4c, 0x7e, 0xa2, 0x5f, 0x41, 0x82, 0xaf, 0xd1, 0x2b, 0xfe, - 0x8e, 0x4b, 0x32, 0xab, 0x73, 0xc2, 0x1e, 0x0b, 0x0c, 0x5e, 0xf5, 0x18, 0xf2, 0x03, 0x7d, 0x06, - 0x1b, 0x3c, 0x80, 0x97, 0x68, 0xe2, 0xea, 0x96, 0x49, 0x6c, 0x66, 0xb1, 0x5e, 0x26, 0xc1, 0xab, - 0x09, 0x79, 0xbe, 0xaf, 0xb8, 0x4b, 0x95, 0x1e, 0x74, 0x01, 0x29, 0x99, 0x71, 0x5d, 0x36, 0xf0, - 0xcc, 0xda, 0xb4, 0xa2, 0x1a, 0xf6, 0x40, 0x79, 0xe3, 0xe4, 0x4b, 0x80, 0x93, 0xdd, 0xc0, 0x77, - 0xfe, 0x8f, 0x11, 0xd8, 0x9c, 0xf1, 0x4a, 0xa0, 0x4d, 0x88, 0xf9, 0x33, 0x84, 0xc2, 0x93, 0x1c, - 0x65, 0x62, 0x7a, 0x08, 0x94, 0x7e, 0x78, 0xa1, 0xd2, 0x8f, 0xfc, 0xd0, 0xd2, 0xff, 0x1d, 0xfc, - 0x64, 0x6c, 0xe7, 0xba, 0xc5, 0x48, 0xcb, 0x9b, 0x34, 0xbc, 0xd1, 0xf1, 0x60, 0xb1, 0xfd, 0xab, - 0x8c, 0xb4, 0xf0, 0x7a, 0x77, 0xc2, 0x46, 0xd1, 0xe7, 0x10, 0x25, 0x5d, 0x62, 0x33, 0x7f, 0x90, - 0xd8, 0x99, 0xde, 0x77, 0x0d, 0x66, 0x1c, 0x35, 0x9d, 0x1b, 0x2c, 0xc1, 0xa8, 0x0c, 0x49, 0x9b, - 0x3c, 0xe8, 0x6e, 0xc7, 0xd6, 0x25, 0x3d, 0xba, 0x08, 0x3d, 0x61, 0x93, 0x07, 0xdc, 0xb1, 0xab, - 0x9c, 0x92, 0xff, 0x87, 0x02, 0x99, 0x59, 0x4f, 0xe7, 0xfc, 0x3e, 0x33, 0xad, 0x5d, 0x87, 0xa7, - 0xb7, 0xeb, 0xff, 0xcf, 0xc8, 0x97, 0xff, 0x93, 0x02, 0xeb, 0xc1, 0xb5, 0x6a, 0xce, 0x3d, 0xb1, - 0xbd, 0x65, 0xfa, 0x8d, 0x58, 0x8c, 0xf3, 0xcb, 0x38, 0x2e, 0x3b, 0x31, 0x45, 0xd7, 0x90, 0x1a, - 0x1b, 0x2a, 0x64, 0x2f, 0xfc, 0xde, 0x93, 0x04, 0x4e, 0x06, 0xe7, 0x88, 0xfc, 0x3f, 0x83, 0x7f, - 0x33, 0xf8, 0x7c, 0xeb, 0xbd, 0xca, 0x3f, 0x46, 0x7b, 0x7e, 0x39, 0x3a, 0xc5, 0x47, 0x78, 0xb3, - 0x18, 0x0e, 0xe6, 0x23, 0xb7, 0x69, 0x29, 0x70, 0x9b, 0x46, 0x9a, 0xfa, 0x72, 0xb0, 0xa9, 0xef, - 0x42, 0xb2, 0x61, 0xb9, 0x94, 0x89, 0xd2, 0x1a, 0x36, 0xdb, 0x04, 0xb7, 0xf2, 0xe2, 0x51, 0x4d, - 0x94, 0x87, 0x35, 0x9b, 0x7c, 0x3d, 0x02, 0x12, 0xef, 0xf5, 0xaa, 0x67, 0xf4, 0x31, 0xe3, 0xcf, - 0x43, 0x7c, 0xe2, 0x79, 0xc8, 0xff, 0x4d, 0x81, 0xf4, 0xe8, 0x41, 0xf2, 0xac, 0x8e, 0x3e, 0xaf, - 0x4a, 0xf0, 0x79, 0xfd, 0x01, 0xff, 0xb8, 0x7c, 0x6a, 0xdb, 0x75, 0xea, 0x84, 0xd2, 0x20, 0x35, - 0x32, 0xa4, 0x5e, 0xfa, 0xfe, 0x01, 0x35, 0xff, 0x0e, 0x52, 0x63, 0x73, 0x43, 0xf0, 0x9d, 0x57, - 0xbe, 0xf7, 0x3b, 0x7f, 0xf0, 0x38, 0x59, 0x41, 0x3c, 0x61, 0xaf, 0x61, 0x07, 0x57, 0x2f, 0x4f, - 0xd5, 0x72, 0x49, 0x53, 0x2f, 0xce, 0x75, 0xad, 0x54, 0xfb, 0x52, 0xd7, 0xae, 0x2f, 0xab, 0xba, - 0x7a, 0x7e, 0x55, 0x3a, 0x55, 0x2b, 0xe9, 0x10, 0xca, 0xc1, 0xf6, 0x74, 0x48, 0xe5, 0xe2, 0xac, - 0xa4, 0x9e, 0xa7, 0x95, 0xd9, 0x41, 0x4e, 0xd4, 0x9a, 0x76, 0x81, 0xaf, 0xd3, 0x61, 0xf4, 0x29, - 0xec, 0x4d, 0x87, 0xd4, 0xae, 0xcf, 0xcb, 0x7a, 0xed, 0xa4, 0x84, 0x2b, 0x7a, 0x4d, 0x2b, 0x69, - 0xef, 0x6b, 0xe9, 0x08, 0xda, 0x83, 0x9f, 0xce, 0x01, 0x97, 0xca, 0x9a, 0x7a, 0xa5, 0x6a, 0xd7, - 0xe9, 0x25, 0x74, 0x00, 0x1f, 0xcf, 0x15, 0xd6, 0xcf, 0xaa, 0x5a, 0xa9, 0x52, 0xd2, 0x4a, 0xe9, - 0x65, 0xb4, 0x0b, 0xb9, 0xf9, 0xd8, 0xab, 0xc3, 0x74, 0x14, 0x7d, 0x02, 0x1f, 0x4d, 0x47, 0x1d, - 0x97, 0xd4, 0xd3, 0x8b, 0xab, 0x2a, 0xd6, 0xcf, 0x4a, 0xf8, 0xcb, 0x2a, 0x4e, 0xc7, 0x0e, 0x2c, - 0x48, 0x8d, 0xcd, 0xde, 0x68, 0x1b, 0x32, 0xe2, 0x50, 0xf4, 0x8b, 0xcb, 0x2a, 0x16, 0x21, 0x86, - 0x07, 0xf9, 0x12, 0x36, 0x27, 0xbc, 0x65, 0x5c, 0x2d, 0x69, 0xd5, 0xb4, 0x32, 0xd5, 0xf9, 0xfe, - 0xb2, 0xe2, 0x39, 0xc3, 0x07, 0xe7, 0x10, 0xab, 0x9c, 0xbe, 0xe3, 0x09, 0xdb, 0x80, 0x74, 0xe5, - 0xf4, 0xdd, 0x78, 0x8e, 0x32, 0xb0, 0x31, 0xb0, 0x8e, 0xac, 0x3f, 0xad, 0xa0, 0x75, 0x48, 0x0d, - 0x3c, 0x32, 0x61, 0xe1, 0xa3, 0x2f, 0x1e, 0x3f, 0x64, 0x43, 0xdf, 0x7e, 0xc8, 0x86, 0xbe, 0xfb, - 0x90, 0x55, 0x7e, 0xdf, 0xcf, 0x2a, 0x7f, 0xef, 0x67, 0x95, 0x7f, 0xf5, 0xb3, 0xca, 0x63, 0x3f, - 0xab, 0xfc, 0xa7, 0x9f, 0x55, 0xfe, 0xdb, 0xcf, 0x86, 0xbe, 0xeb, 0x67, 0x95, 0x6f, 0x9e, 0xb2, - 0xa1, 0xc7, 0xa7, 0x6c, 0xe8, 0xdb, 0xa7, 0x6c, 0xe8, 0xb7, 0x71, 0xd1, 0xb9, 0xba, 0x6f, 0x6e, - 0xa2, 0xbc, 0xe4, 0xde, 0xfe, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x9e, 0x7a, 0xee, 0x31, 0xea, 0x11, - 0x00, 0x00, -} - -func (x ReplicationTaskType) String() string { - s, ok := ReplicationTaskType_name[int32(x)] - if ok { - return s - } - return strconv.Itoa(int(x)) -} -func (x DomainOperation) String() string { - s, ok := DomainOperation_name[int32(x)] - if ok { - return s - } - return strconv.Itoa(int(x)) -} -func (x DLQType) String() string { - s, ok := DLQType_name[int32(x)] - if ok { - return s +func (x *ReplicationToken) Reset() { + *x = ReplicationToken{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_shared_v1_replication_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return strconv.Itoa(int(x)) } -func (this *ReplicationMessages) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*ReplicationMessages) - if !ok { - that2, ok := that.(ReplicationMessages) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if len(this.ReplicationTasks) != len(that1.ReplicationTasks) { - return false - } - for i := range this.ReplicationTasks { - if !this.ReplicationTasks[i].Equal(that1.ReplicationTasks[i]) { - return false - } - } - if this.LastRetrievedMessageId != that1.LastRetrievedMessageId { - return false - } - if this.HasMore != that1.HasMore { - return false - } - if !this.SyncShardStatus.Equal(that1.SyncShardStatus) { - return false - } - return true +func (x *ReplicationToken) String() string { + return protoimpl.X.MessageStringOf(x) } -func (this *ReplicationTask) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*ReplicationTask) - if !ok { - that2, ok := that.(ReplicationTask) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.TaskType != that1.TaskType { - return false - } - if this.SourceTaskId != that1.SourceTaskId { - return false - } - if that1.CreationTime == nil { - if this.CreationTime != nil { - return false - } - } else if !this.CreationTime.Equal(*that1.CreationTime) { - return false - } - if that1.Attributes == nil { - if this.Attributes != nil { - return false - } - } else if this.Attributes == nil { - return false - } else if !this.Attributes.Equal(that1.Attributes) { - return false - } - return true -} -func (this *ReplicationTask_DomainTaskAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } +func (*ReplicationToken) ProtoMessage() {} - that1, ok := that.(*ReplicationTask_DomainTaskAttributes) - if !ok { - that2, ok := that.(ReplicationTask_DomainTaskAttributes) - if ok { - that1 = &that2 - } else { - return false +func (x *ReplicationToken) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_shared_v1_replication_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.DomainTaskAttributes.Equal(that1.DomainTaskAttributes) { - return false - } - return true + return mi.MessageOf(x) } -func (this *ReplicationTask_SyncShardStatusTaskAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*ReplicationTask_SyncShardStatusTaskAttributes) - if !ok { - that2, ok := that.(ReplicationTask_SyncShardStatusTaskAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.SyncShardStatusTaskAttributes.Equal(that1.SyncShardStatusTaskAttributes) { - return false - } - return true +// Deprecated: Use ReplicationToken.ProtoReflect.Descriptor instead. +func (*ReplicationToken) Descriptor() ([]byte, []int) { + return file_uber_cadence_shared_v1_replication_proto_rawDescGZIP(), []int{9} } -func (this *ReplicationTask_SyncActivityTaskAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*ReplicationTask_SyncActivityTaskAttributes) - if !ok { - that2, ok := that.(ReplicationTask_SyncActivityTaskAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.SyncActivityTaskAttributes.Equal(that1.SyncActivityTaskAttributes) { - return false +func (x *ReplicationToken) GetShardId() int32 { + if x != nil { + return x.ShardId } - return true + return 0 } -func (this *ReplicationTask_HistoryTaskV2Attributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*ReplicationTask_HistoryTaskV2Attributes) - if !ok { - that2, ok := that.(ReplicationTask_HistoryTaskV2Attributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false +func (x *ReplicationToken) GetLastRetrievedMessageId() int64 { + if x != nil { + return x.LastRetrievedMessageId } - if !this.HistoryTaskV2Attributes.Equal(that1.HistoryTaskV2Attributes) { - return false - } - return true + return 0 } -func (this *ReplicationTask_FailoverMarkerAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*ReplicationTask_FailoverMarkerAttributes) - if !ok { - that2, ok := that.(ReplicationTask_FailoverMarkerAttributes) - if ok { - that1 = &that2 - } else { - return false - } +func (x *ReplicationToken) GetLastProcessedMessageId() int64 { + if x != nil { + return x.LastProcessedMessageId } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.FailoverMarkerAttributes.Equal(that1.FailoverMarkerAttributes) { - return false - } - return true + return 0 } -func (this *DomainTaskAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*DomainTaskAttributes) - if !ok { - that2, ok := that.(DomainTaskAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.DomainOperation != that1.DomainOperation { - return false - } - if this.Id != that1.Id { - return false - } - if !this.Info.Equal(that1.Info) { - return false - } - if !this.Config.Equal(that1.Config) { - return false - } - if !this.ReplicationConfig.Equal(that1.ReplicationConfig) { - return false - } - if this.ConfigVersion != that1.ConfigVersion { - return false - } - if this.FailoverVersion != that1.FailoverVersion { - return false - } - if this.PreviousFailoverVersion != that1.PreviousFailoverVersion { - return false - } - return true -} -func (this *SyncShardStatusTaskAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } +type SyncShardStatus struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields - that1, ok := that.(*SyncShardStatusTaskAttributes) - if !ok { - that2, ok := that.(SyncShardStatusTaskAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.SourceCluster != that1.SourceCluster { - return false - } - if this.ShardId != that1.ShardId { - return false - } - if that1.Timestamp == nil { - if this.Timestamp != nil { - return false - } - } else if !this.Timestamp.Equal(*that1.Timestamp) { - return false - } - return true + Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` } -func (this *SyncActivityTaskAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*SyncActivityTaskAttributes) - if !ok { - that2, ok := that.(SyncActivityTaskAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.DomainId != that1.DomainId { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if this.Version != that1.Version { - return false - } - if this.ScheduledId != that1.ScheduledId { - return false +func (x *SyncShardStatus) Reset() { + *x = SyncShardStatus{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_shared_v1_replication_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if that1.ScheduledTime == nil { - if this.ScheduledTime != nil { - return false - } - } else if !this.ScheduledTime.Equal(*that1.ScheduledTime) { - return false - } - if this.StartedId != that1.StartedId { - return false - } - if that1.StartedTime == nil { - if this.StartedTime != nil { - return false - } - } else if !this.StartedTime.Equal(*that1.StartedTime) { - return false - } - if that1.LastHeartbeatTime == nil { - if this.LastHeartbeatTime != nil { - return false - } - } else if !this.LastHeartbeatTime.Equal(*that1.LastHeartbeatTime) { - return false - } - if !this.Details.Equal(that1.Details) { - return false - } - if this.Attempt != that1.Attempt { - return false - } - if !this.LastFailure.Equal(that1.LastFailure) { - return false - } - if this.LastWorkerIdentity != that1.LastWorkerIdentity { - return false - } - if !this.VersionHistory.Equal(that1.VersionHistory) { - return false - } - return true } -func (this *HistoryTaskV2Attributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*HistoryTaskV2Attributes) - if !ok { - that2, ok := that.(HistoryTaskV2Attributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.TaskId != that1.TaskId { - return false - } - if this.DomainId != that1.DomainId { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if len(this.VersionHistoryItems) != len(that1.VersionHistoryItems) { - return false - } - for i := range this.VersionHistoryItems { - if !this.VersionHistoryItems[i].Equal(that1.VersionHistoryItems[i]) { - return false - } - } - if !this.Events.Equal(that1.Events) { - return false - } - if !this.NewRunEvents.Equal(that1.NewRunEvents) { - return false - } - return true +func (x *SyncShardStatus) String() string { + return protoimpl.X.MessageStringOf(x) } -func (this *FailoverMarkerAttributes) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*FailoverMarkerAttributes) - if !ok { - that2, ok := that.(FailoverMarkerAttributes) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.DomainId != that1.DomainId { - return false - } - if this.FailoverVersion != that1.FailoverVersion { - return false - } - if that1.CreationTime == nil { - if this.CreationTime != nil { - return false - } - } else if !this.CreationTime.Equal(*that1.CreationTime) { - return false - } - return true -} -func (this *FailoverMarkerToken) Equal(that interface{}) bool { - if that == nil { - return this == nil - } +func (*SyncShardStatus) ProtoMessage() {} - that1, ok := that.(*FailoverMarkerToken) - if !ok { - that2, ok := that.(FailoverMarkerToken) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if len(this.ShardIds) != len(that1.ShardIds) { - return false - } - for i := range this.ShardIds { - if this.ShardIds[i] != that1.ShardIds[i] { - return false +func (x *SyncShardStatus) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_shared_v1_replication_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if !this.FailoverMarker.Equal(that1.FailoverMarker) { - return false - } - return true + return mi.MessageOf(x) } -func (this *ReplicationTaskInfo) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*ReplicationTaskInfo) - if !ok { - that2, ok := that.(ReplicationTaskInfo) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.DomainId != that1.DomainId { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if this.TaskType != that1.TaskType { - return false - } - if this.TaskId != that1.TaskId { - return false - } - if this.Version != that1.Version { - return false - } - if this.FirstEventId != that1.FirstEventId { - return false - } - if this.NextEventId != that1.NextEventId { - return false - } - if this.ScheduledId != that1.ScheduledId { - return false - } - return true +// Deprecated: Use SyncShardStatus.ProtoReflect.Descriptor instead. +func (*SyncShardStatus) Descriptor() ([]byte, []int) { + return file_uber_cadence_shared_v1_replication_proto_rawDescGZIP(), []int{10} } -func (this *ReplicationToken) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*ReplicationToken) - if !ok { - that2, ok := that.(ReplicationToken) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false +func (x *SyncShardStatus) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp } - if this.ShardId != that1.ShardId { - return false - } - if this.LastRetrievedMessageId != that1.LastRetrievedMessageId { - return false - } - if this.LastProcessedMessageId != that1.LastProcessedMessageId { - return false - } - return true + return nil } -func (this *SyncShardStatus) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*SyncShardStatus) - if !ok { - that2, ok := that.(SyncShardStatus) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if that1.Timestamp == nil { - if this.Timestamp != nil { - return false - } - } else if !this.Timestamp.Equal(*that1.Timestamp) { - return false - } - return true -} -func (this *ReplicationMessages) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 8) - s = append(s, "&sharedv1.ReplicationMessages{") - if this.ReplicationTasks != nil { - s = append(s, "ReplicationTasks: "+fmt.Sprintf("%#v", this.ReplicationTasks)+",\n") - } - s = append(s, "LastRetrievedMessageId: "+fmt.Sprintf("%#v", this.LastRetrievedMessageId)+",\n") - s = append(s, "HasMore: "+fmt.Sprintf("%#v", this.HasMore)+",\n") - if this.SyncShardStatus != nil { - s = append(s, "SyncShardStatus: "+fmt.Sprintf("%#v", this.SyncShardStatus)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ReplicationTask) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 12) - s = append(s, "&sharedv1.ReplicationTask{") - s = append(s, "TaskType: "+fmt.Sprintf("%#v", this.TaskType)+",\n") - s = append(s, "SourceTaskId: "+fmt.Sprintf("%#v", this.SourceTaskId)+",\n") - s = append(s, "CreationTime: "+fmt.Sprintf("%#v", this.CreationTime)+",\n") - if this.Attributes != nil { - s = append(s, "Attributes: "+fmt.Sprintf("%#v", this.Attributes)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ReplicationTask_DomainTaskAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&sharedv1.ReplicationTask_DomainTaskAttributes{` + - `DomainTaskAttributes:` + fmt.Sprintf("%#v", this.DomainTaskAttributes) + `}`}, ", ") - return s -} -func (this *ReplicationTask_SyncShardStatusTaskAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&sharedv1.ReplicationTask_SyncShardStatusTaskAttributes{` + - `SyncShardStatusTaskAttributes:` + fmt.Sprintf("%#v", this.SyncShardStatusTaskAttributes) + `}`}, ", ") - return s -} -func (this *ReplicationTask_SyncActivityTaskAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&sharedv1.ReplicationTask_SyncActivityTaskAttributes{` + - `SyncActivityTaskAttributes:` + fmt.Sprintf("%#v", this.SyncActivityTaskAttributes) + `}`}, ", ") - return s -} -func (this *ReplicationTask_HistoryTaskV2Attributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&sharedv1.ReplicationTask_HistoryTaskV2Attributes{` + - `HistoryTaskV2Attributes:` + fmt.Sprintf("%#v", this.HistoryTaskV2Attributes) + `}`}, ", ") - return s -} -func (this *ReplicationTask_FailoverMarkerAttributes) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&sharedv1.ReplicationTask_FailoverMarkerAttributes{` + - `FailoverMarkerAttributes:` + fmt.Sprintf("%#v", this.FailoverMarkerAttributes) + `}`}, ", ") - return s -} -func (this *DomainTaskAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 12) - s = append(s, "&sharedv1.DomainTaskAttributes{") - s = append(s, "DomainOperation: "+fmt.Sprintf("%#v", this.DomainOperation)+",\n") - s = append(s, "Id: "+fmt.Sprintf("%#v", this.Id)+",\n") - if this.Info != nil { - s = append(s, "Info: "+fmt.Sprintf("%#v", this.Info)+",\n") - } - if this.Config != nil { - s = append(s, "Config: "+fmt.Sprintf("%#v", this.Config)+",\n") - } - if this.ReplicationConfig != nil { - s = append(s, "ReplicationConfig: "+fmt.Sprintf("%#v", this.ReplicationConfig)+",\n") - } - s = append(s, "ConfigVersion: "+fmt.Sprintf("%#v", this.ConfigVersion)+",\n") - s = append(s, "FailoverVersion: "+fmt.Sprintf("%#v", this.FailoverVersion)+",\n") - s = append(s, "PreviousFailoverVersion: "+fmt.Sprintf("%#v", this.PreviousFailoverVersion)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *SyncShardStatusTaskAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&sharedv1.SyncShardStatusTaskAttributes{") - s = append(s, "SourceCluster: "+fmt.Sprintf("%#v", this.SourceCluster)+",\n") - s = append(s, "ShardId: "+fmt.Sprintf("%#v", this.ShardId)+",\n") - s = append(s, "Timestamp: "+fmt.Sprintf("%#v", this.Timestamp)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *SyncActivityTaskAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 17) - s = append(s, "&sharedv1.SyncActivityTaskAttributes{") - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "Version: "+fmt.Sprintf("%#v", this.Version)+",\n") - s = append(s, "ScheduledId: "+fmt.Sprintf("%#v", this.ScheduledId)+",\n") - s = append(s, "ScheduledTime: "+fmt.Sprintf("%#v", this.ScheduledTime)+",\n") - s = append(s, "StartedId: "+fmt.Sprintf("%#v", this.StartedId)+",\n") - s = append(s, "StartedTime: "+fmt.Sprintf("%#v", this.StartedTime)+",\n") - s = append(s, "LastHeartbeatTime: "+fmt.Sprintf("%#v", this.LastHeartbeatTime)+",\n") - if this.Details != nil { - s = append(s, "Details: "+fmt.Sprintf("%#v", this.Details)+",\n") - } - s = append(s, "Attempt: "+fmt.Sprintf("%#v", this.Attempt)+",\n") - if this.LastFailure != nil { - s = append(s, "LastFailure: "+fmt.Sprintf("%#v", this.LastFailure)+",\n") - } - s = append(s, "LastWorkerIdentity: "+fmt.Sprintf("%#v", this.LastWorkerIdentity)+",\n") - if this.VersionHistory != nil { - s = append(s, "VersionHistory: "+fmt.Sprintf("%#v", this.VersionHistory)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *HistoryTaskV2Attributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 10) - s = append(s, "&sharedv1.HistoryTaskV2Attributes{") - s = append(s, "TaskId: "+fmt.Sprintf("%#v", this.TaskId)+",\n") - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - if this.VersionHistoryItems != nil { - s = append(s, "VersionHistoryItems: "+fmt.Sprintf("%#v", this.VersionHistoryItems)+",\n") - } - if this.Events != nil { - s = append(s, "Events: "+fmt.Sprintf("%#v", this.Events)+",\n") - } - if this.NewRunEvents != nil { - s = append(s, "NewRunEvents: "+fmt.Sprintf("%#v", this.NewRunEvents)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *FailoverMarkerAttributes) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&sharedv1.FailoverMarkerAttributes{") - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - s = append(s, "FailoverVersion: "+fmt.Sprintf("%#v", this.FailoverVersion)+",\n") - s = append(s, "CreationTime: "+fmt.Sprintf("%#v", this.CreationTime)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *FailoverMarkerToken) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&sharedv1.FailoverMarkerToken{") - s = append(s, "ShardIds: "+fmt.Sprintf("%#v", this.ShardIds)+",\n") - if this.FailoverMarker != nil { - s = append(s, "FailoverMarker: "+fmt.Sprintf("%#v", this.FailoverMarker)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ReplicationTaskInfo) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 12) - s = append(s, "&sharedv1.ReplicationTaskInfo{") - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "TaskType: "+fmt.Sprintf("%#v", this.TaskType)+",\n") - s = append(s, "TaskId: "+fmt.Sprintf("%#v", this.TaskId)+",\n") - s = append(s, "Version: "+fmt.Sprintf("%#v", this.Version)+",\n") - s = append(s, "FirstEventId: "+fmt.Sprintf("%#v", this.FirstEventId)+",\n") - s = append(s, "NextEventId: "+fmt.Sprintf("%#v", this.NextEventId)+",\n") - s = append(s, "ScheduledId: "+fmt.Sprintf("%#v", this.ScheduledId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ReplicationToken) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&sharedv1.ReplicationToken{") - s = append(s, "ShardId: "+fmt.Sprintf("%#v", this.ShardId)+",\n") - s = append(s, "LastRetrievedMessageId: "+fmt.Sprintf("%#v", this.LastRetrievedMessageId)+",\n") - s = append(s, "LastProcessedMessageId: "+fmt.Sprintf("%#v", this.LastProcessedMessageId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *SyncShardStatus) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&sharedv1.SyncShardStatus{") - s = append(s, "Timestamp: "+fmt.Sprintf("%#v", this.Timestamp)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func valueToGoStringReplication(v interface{}, typ string) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) -} -func (m *ReplicationMessages) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +var File_uber_cadence_shared_v1_replication_proto protoreflect.FileDescriptor + +var file_uber_cadence_shared_v1_replication_proto_rawDesc = []byte{ + 0x0a, 0x28, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, + 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, + 0x6e, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x76, 0x31, 0x2f, + 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x96, 0x02, + 0x0a, 0x13, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x54, 0x0a, 0x11, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x27, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x10, 0x72, 0x65, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x39, 0x0a, 0x19, 0x6c, + 0x61, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x64, 0x5f, 0x6d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x16, + 0x6c, 0x61, 0x73, 0x74, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x64, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x68, 0x61, 0x73, 0x5f, 0x6d, 0x6f, + 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x68, 0x61, 0x73, 0x4d, 0x6f, 0x72, + 0x65, 0x12, 0x53, 0x0a, 0x11, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x68, 0x61, 0x72, 0x64, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0f, 0x73, 0x79, 0x6e, 0x63, 0x53, 0x68, 0x61, 0x72, 0x64, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x95, 0x06, 0x0a, 0x0f, 0x52, 0x65, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x48, 0x0a, 0x09, 0x74, 0x61, + 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, + 0x61, 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x64, 0x0a, 0x16, 0x64, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x75, 0x62, + 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x14, 0x64, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x73, 0x12, 0x81, 0x01, 0x0a, 0x21, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x64, + 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x61, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x68, 0x61, 0x72, 0x64, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x54, 0x61, 0x73, 0x6b, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x1d, 0x73, 0x79, 0x6e, 0x63, 0x53, 0x68, 0x61, 0x72, + 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x54, 0x61, 0x73, 0x6b, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x77, 0x0a, 0x1d, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x61, 0x63, + 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x61, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x75, + 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, + 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, + 0x48, 0x00, 0x52, 0x1a, 0x73, 0x79, 0x6e, 0x63, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, + 0x54, 0x61, 0x73, 0x6b, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x6e, + 0x0a, 0x1a, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x76, + 0x32, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x69, 0x73, 0x74, + 0x6f, 0x72, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x56, 0x32, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x17, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x61, + 0x73, 0x6b, 0x56, 0x32, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x70, + 0x0a, 0x1a, 0x66, 0x61, 0x69, 0x6c, 0x6f, 0x76, 0x65, 0x72, 0x5f, 0x6d, 0x61, 0x72, 0x6b, 0x65, + 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, + 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x61, 0x69, 0x6c, + 0x6f, 0x76, 0x65, 0x72, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x18, 0x66, 0x61, 0x69, 0x6c, 0x6f, 0x76, 0x65, 0x72, + 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, + 0x42, 0x0c, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x22, 0xe3, + 0x03, 0x0a, 0x14, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x52, 0x0a, 0x10, 0x64, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x5f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x27, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x64, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x33, 0x0a, 0x04, 0x69, + 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x75, 0x62, 0x65, 0x72, + 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, + 0x12, 0x40, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x28, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x12, 0x62, 0x0a, 0x12, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, + 0x10, 0x66, 0x61, 0x69, 0x6c, 0x6f, 0x76, 0x65, 0x72, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x66, 0x61, 0x69, 0x6c, 0x6f, 0x76, 0x65, + 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3a, 0x0a, 0x19, 0x70, 0x72, 0x65, 0x76, + 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x6f, 0x76, 0x65, 0x72, 0x5f, 0x76, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x17, 0x70, 0x72, 0x65, + 0x76, 0x69, 0x6f, 0x75, 0x73, 0x46, 0x61, 0x69, 0x6c, 0x6f, 0x76, 0x65, 0x72, 0x56, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x9b, 0x01, 0x0a, 0x1d, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x68, 0x61, + 0x72, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x54, 0x61, 0x73, 0x6b, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x19, 0x0a, + 0x08, 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x07, 0x73, 0x68, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x22, 0xd0, 0x05, 0x0a, 0x1a, 0x53, 0x79, 0x6e, 0x63, 0x41, 0x63, 0x74, 0x69, 0x76, + 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x55, + 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, + 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, + 0x21, 0x0a, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, + 0x49, 0x64, 0x12, 0x41, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x5f, + 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, + 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, + 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x65, 0x64, 0x49, 0x64, 0x12, 0x3d, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, + 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x54, + 0x69, 0x6d, 0x65, 0x12, 0x4a, 0x0a, 0x13, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x68, 0x65, 0x61, 0x72, + 0x74, 0x62, 0x65, 0x61, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x11, 0x6c, 0x61, + 0x73, 0x74, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, + 0x36, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x07, + 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x74, 0x74, 0x65, 0x6d, + 0x70, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, + 0x74, 0x12, 0x3f, 0x0a, 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, + 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x61, + 0x69, 0x6c, 0x75, 0x72, 0x65, 0x52, 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x46, 0x61, 0x69, 0x6c, 0x75, + 0x72, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x65, + 0x72, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x12, 0x6c, 0x61, 0x73, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x74, 0x79, 0x12, 0x4f, 0x0a, 0x0f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, + 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x69, + 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x0e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x69, + 0x73, 0x74, 0x6f, 0x72, 0x79, 0x22, 0x82, 0x03, 0x0a, 0x17, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, + 0x79, 0x54, 0x61, 0x73, 0x6b, 0x56, 0x32, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x73, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x5e, + 0x0a, 0x15, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, + 0x79, 0x5f, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x69, + 0x73, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x13, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x35, + 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x42, 0x6c, 0x6f, 0x62, 0x52, 0x06, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x43, 0x0a, 0x0e, 0x6e, 0x65, 0x77, 0x5f, 0x72, 0x75, 0x6e, + 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, + 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x42, 0x6c, 0x6f, 0x62, 0x52, 0x0c, 0x6e, 0x65, + 0x77, 0x52, 0x75, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xa3, 0x01, 0x0a, 0x18, 0x46, + 0x61, 0x69, 0x6c, 0x6f, 0x76, 0x65, 0x72, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x72, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x49, 0x64, 0x12, 0x29, 0x0a, 0x10, 0x66, 0x61, 0x69, 0x6c, 0x6f, 0x76, 0x65, 0x72, + 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, + 0x66, 0x61, 0x69, 0x6c, 0x6f, 0x76, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, + 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x52, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, + 0x22, 0x8d, 0x01, 0x0a, 0x13, 0x46, 0x61, 0x69, 0x6c, 0x6f, 0x76, 0x65, 0x72, 0x4d, 0x61, 0x72, + 0x6b, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x68, 0x61, 0x72, + 0x64, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x52, 0x08, 0x73, 0x68, 0x61, + 0x72, 0x64, 0x49, 0x64, 0x73, 0x12, 0x59, 0x0a, 0x0f, 0x66, 0x61, 0x69, 0x6c, 0x6f, 0x76, 0x65, + 0x72, 0x5f, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, + 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x61, 0x69, 0x6c, 0x6f, 0x76, 0x65, 0x72, + 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, + 0x52, 0x0e, 0x66, 0x61, 0x69, 0x6c, 0x6f, 0x76, 0x65, 0x72, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x72, + 0x22, 0xc6, 0x02, 0x0a, 0x13, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x54, 0x61, 0x73, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, + 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x61, 0x73, + 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, + 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x0a, 0x0e, + 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x66, 0x69, 0x72, 0x73, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x65, 0x78, 0x74, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, + 0x6c, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x73, 0x63, + 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x49, 0x64, 0x22, 0xa3, 0x01, 0x0a, 0x10, 0x52, 0x65, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x19, + 0x0a, 0x08, 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x07, 0x73, 0x68, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x19, 0x6c, 0x61, 0x73, + 0x74, 0x5f, 0x72, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x16, 0x6c, 0x61, + 0x73, 0x74, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x19, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x70, 0x72, 0x6f, + 0x63, 0x65, 0x73, 0x73, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, + 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x16, 0x6c, 0x61, 0x73, 0x74, 0x50, 0x72, 0x6f, + 0x63, 0x65, 0x73, 0x73, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x22, + 0x4b, 0x0a, 0x0f, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x68, 0x61, 0x72, 0x64, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2a, 0xd0, 0x02, 0x0a, + 0x13, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x73, 0x6b, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x21, 0x0a, 0x1d, 0x52, 0x45, 0x50, 0x4c, 0x49, 0x43, 0x41, 0x54, + 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, + 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x20, 0x0a, 0x1c, 0x52, 0x45, 0x50, 0x4c, 0x49, + 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x44, 0x4f, 0x4d, 0x41, 0x49, 0x4e, 0x10, 0x01, 0x12, 0x21, 0x0a, 0x1d, 0x52, 0x45, 0x50, + 0x4c, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x48, 0x49, 0x53, 0x54, 0x4f, 0x52, 0x59, 0x10, 0x02, 0x12, 0x2b, 0x0a, 0x27, + 0x52, 0x45, 0x50, 0x4c, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x41, 0x53, 0x4b, + 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x53, 0x48, 0x41, 0x52, 0x44, + 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x10, 0x03, 0x12, 0x27, 0x0a, 0x23, 0x52, 0x45, 0x50, + 0x4c, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, 0x49, 0x54, 0x59, + 0x10, 0x04, 0x12, 0x2a, 0x0a, 0x26, 0x52, 0x45, 0x50, 0x4c, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, + 0x4e, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x48, 0x49, 0x53, 0x54, + 0x4f, 0x52, 0x59, 0x5f, 0x4d, 0x45, 0x54, 0x41, 0x44, 0x41, 0x54, 0x41, 0x10, 0x05, 0x12, 0x24, + 0x0a, 0x20, 0x52, 0x45, 0x50, 0x4c, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x41, + 0x53, 0x4b, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x48, 0x49, 0x53, 0x54, 0x4f, 0x52, 0x59, 0x5f, + 0x56, 0x32, 0x10, 0x06, 0x12, 0x29, 0x0a, 0x25, 0x52, 0x45, 0x50, 0x4c, 0x49, 0x43, 0x41, 0x54, + 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x41, + 0x49, 0x4c, 0x4f, 0x56, 0x45, 0x52, 0x5f, 0x4d, 0x41, 0x52, 0x4b, 0x45, 0x52, 0x10, 0x07, 0x2a, + 0x69, 0x0a, 0x0f, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x18, 0x44, 0x4f, 0x4d, 0x41, 0x49, 0x4e, 0x5f, 0x4f, 0x50, 0x45, + 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, + 0x12, 0x1b, 0x0a, 0x17, 0x44, 0x4f, 0x4d, 0x41, 0x49, 0x4e, 0x5f, 0x4f, 0x50, 0x45, 0x52, 0x41, + 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x10, 0x01, 0x12, 0x1b, 0x0a, + 0x17, 0x44, 0x4f, 0x4d, 0x41, 0x49, 0x4e, 0x5f, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, + 0x4e, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x02, 0x2a, 0x4e, 0x0a, 0x07, 0x44, 0x4c, + 0x51, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x44, 0x4c, 0x51, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x44, + 0x4c, 0x51, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x50, 0x4c, 0x49, 0x43, 0x41, 0x54, + 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x44, 0x4c, 0x51, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x44, 0x4f, 0x4d, 0x41, 0x49, 0x4e, 0x10, 0x02, 0x42, 0x37, 0x5a, 0x35, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x2e, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x64, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func (m *ReplicationMessages) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +var ( + file_uber_cadence_shared_v1_replication_proto_rawDescOnce sync.Once + file_uber_cadence_shared_v1_replication_proto_rawDescData = file_uber_cadence_shared_v1_replication_proto_rawDesc +) -func (m *ReplicationMessages) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.SyncShardStatus != nil { - { - size, err := m.SyncShardStatus.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintReplication(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.HasMore { - i-- - if m.HasMore { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if m.LastRetrievedMessageId != 0 { - i = encodeVarintReplication(dAtA, i, uint64(m.LastRetrievedMessageId)) - i-- - dAtA[i] = 0x10 - } - if len(m.ReplicationTasks) > 0 { - for iNdEx := len(m.ReplicationTasks) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ReplicationTasks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintReplication(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } +func file_uber_cadence_shared_v1_replication_proto_rawDescGZIP() []byte { + file_uber_cadence_shared_v1_replication_proto_rawDescOnce.Do(func() { + file_uber_cadence_shared_v1_replication_proto_rawDescData = protoimpl.X.CompressGZIP(file_uber_cadence_shared_v1_replication_proto_rawDescData) + }) + return file_uber_cadence_shared_v1_replication_proto_rawDescData +} + +var file_uber_cadence_shared_v1_replication_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_uber_cadence_shared_v1_replication_proto_msgTypes = make([]protoimpl.MessageInfo, 11) +var file_uber_cadence_shared_v1_replication_proto_goTypes = []interface{}{ + (ReplicationTaskType)(0), // 0: uber.cadence.shared.v1.ReplicationTaskType + (DomainOperation)(0), // 1: uber.cadence.shared.v1.DomainOperation + (DLQType)(0), // 2: uber.cadence.shared.v1.DLQType + (*ReplicationMessages)(nil), // 3: uber.cadence.shared.v1.ReplicationMessages + (*ReplicationTask)(nil), // 4: uber.cadence.shared.v1.ReplicationTask + (*DomainTaskAttributes)(nil), // 5: uber.cadence.shared.v1.DomainTaskAttributes + (*SyncShardStatusTaskAttributes)(nil), // 6: uber.cadence.shared.v1.SyncShardStatusTaskAttributes + (*SyncActivityTaskAttributes)(nil), // 7: uber.cadence.shared.v1.SyncActivityTaskAttributes + (*HistoryTaskV2Attributes)(nil), // 8: uber.cadence.shared.v1.HistoryTaskV2Attributes + (*FailoverMarkerAttributes)(nil), // 9: uber.cadence.shared.v1.FailoverMarkerAttributes + (*FailoverMarkerToken)(nil), // 10: uber.cadence.shared.v1.FailoverMarkerToken + (*ReplicationTaskInfo)(nil), // 11: uber.cadence.shared.v1.ReplicationTaskInfo + (*ReplicationToken)(nil), // 12: uber.cadence.shared.v1.ReplicationToken + (*SyncShardStatus)(nil), // 13: uber.cadence.shared.v1.SyncShardStatus + (*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp + (*v1.DomainInfo)(nil), // 15: uber.cadence.api.v1.DomainInfo + (*v1.DomainConfiguration)(nil), // 16: uber.cadence.api.v1.DomainConfiguration + (*v1.DomainReplicationConfiguration)(nil), // 17: uber.cadence.api.v1.DomainReplicationConfiguration + (*v1.WorkflowExecution)(nil), // 18: uber.cadence.api.v1.WorkflowExecution + (*v1.Payload)(nil), // 19: uber.cadence.api.v1.Payload + (*v1.Failure)(nil), // 20: uber.cadence.api.v1.Failure + (*VersionHistory)(nil), // 21: uber.cadence.shared.v1.VersionHistory + (*VersionHistoryItem)(nil), // 22: uber.cadence.shared.v1.VersionHistoryItem + (*v1.DataBlob)(nil), // 23: uber.cadence.api.v1.DataBlob +} +var file_uber_cadence_shared_v1_replication_proto_depIdxs = []int32{ + 4, // 0: uber.cadence.shared.v1.ReplicationMessages.replication_tasks:type_name -> uber.cadence.shared.v1.ReplicationTask + 13, // 1: uber.cadence.shared.v1.ReplicationMessages.sync_shard_status:type_name -> uber.cadence.shared.v1.SyncShardStatus + 0, // 2: uber.cadence.shared.v1.ReplicationTask.task_type:type_name -> uber.cadence.shared.v1.ReplicationTaskType + 14, // 3: uber.cadence.shared.v1.ReplicationTask.creation_time:type_name -> google.protobuf.Timestamp + 5, // 4: uber.cadence.shared.v1.ReplicationTask.domain_task_attributes:type_name -> uber.cadence.shared.v1.DomainTaskAttributes + 6, // 5: uber.cadence.shared.v1.ReplicationTask.sync_shard_status_task_attributes:type_name -> uber.cadence.shared.v1.SyncShardStatusTaskAttributes + 7, // 6: uber.cadence.shared.v1.ReplicationTask.sync_activity_task_attributes:type_name -> uber.cadence.shared.v1.SyncActivityTaskAttributes + 8, // 7: uber.cadence.shared.v1.ReplicationTask.history_task_v2_attributes:type_name -> uber.cadence.shared.v1.HistoryTaskV2Attributes + 9, // 8: uber.cadence.shared.v1.ReplicationTask.failover_marker_attributes:type_name -> uber.cadence.shared.v1.FailoverMarkerAttributes + 1, // 9: uber.cadence.shared.v1.DomainTaskAttributes.domain_operation:type_name -> uber.cadence.shared.v1.DomainOperation + 15, // 10: uber.cadence.shared.v1.DomainTaskAttributes.info:type_name -> uber.cadence.api.v1.DomainInfo + 16, // 11: uber.cadence.shared.v1.DomainTaskAttributes.config:type_name -> uber.cadence.api.v1.DomainConfiguration + 17, // 12: uber.cadence.shared.v1.DomainTaskAttributes.replication_config:type_name -> uber.cadence.api.v1.DomainReplicationConfiguration + 14, // 13: uber.cadence.shared.v1.SyncShardStatusTaskAttributes.timestamp:type_name -> google.protobuf.Timestamp + 18, // 14: uber.cadence.shared.v1.SyncActivityTaskAttributes.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 14, // 15: uber.cadence.shared.v1.SyncActivityTaskAttributes.scheduled_time:type_name -> google.protobuf.Timestamp + 14, // 16: uber.cadence.shared.v1.SyncActivityTaskAttributes.started_time:type_name -> google.protobuf.Timestamp + 14, // 17: uber.cadence.shared.v1.SyncActivityTaskAttributes.last_heartbeat_time:type_name -> google.protobuf.Timestamp + 19, // 18: uber.cadence.shared.v1.SyncActivityTaskAttributes.details:type_name -> uber.cadence.api.v1.Payload + 20, // 19: uber.cadence.shared.v1.SyncActivityTaskAttributes.last_failure:type_name -> uber.cadence.api.v1.Failure + 21, // 20: uber.cadence.shared.v1.SyncActivityTaskAttributes.version_history:type_name -> uber.cadence.shared.v1.VersionHistory + 18, // 21: uber.cadence.shared.v1.HistoryTaskV2Attributes.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 22, // 22: uber.cadence.shared.v1.HistoryTaskV2Attributes.version_history_items:type_name -> uber.cadence.shared.v1.VersionHistoryItem + 23, // 23: uber.cadence.shared.v1.HistoryTaskV2Attributes.events:type_name -> uber.cadence.api.v1.DataBlob + 23, // 24: uber.cadence.shared.v1.HistoryTaskV2Attributes.new_run_events:type_name -> uber.cadence.api.v1.DataBlob + 14, // 25: uber.cadence.shared.v1.FailoverMarkerAttributes.creation_time:type_name -> google.protobuf.Timestamp + 9, // 26: uber.cadence.shared.v1.FailoverMarkerToken.failover_marker:type_name -> uber.cadence.shared.v1.FailoverMarkerAttributes + 18, // 27: uber.cadence.shared.v1.ReplicationTaskInfo.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 14, // 28: uber.cadence.shared.v1.SyncShardStatus.timestamp:type_name -> google.protobuf.Timestamp + 29, // [29:29] is the sub-list for method output_type + 29, // [29:29] is the sub-list for method input_type + 29, // [29:29] is the sub-list for extension type_name + 29, // [29:29] is the sub-list for extension extendee + 0, // [0:29] is the sub-list for field type_name +} + +func init() { file_uber_cadence_shared_v1_replication_proto_init() } +func file_uber_cadence_shared_v1_replication_proto_init() { + if File_uber_cadence_shared_v1_replication_proto != nil { + return + } + file_uber_cadence_shared_v1_history_proto_init() + if !protoimpl.UnsafeEnabled { + file_uber_cadence_shared_v1_replication_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReplicationMessages); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_shared_v1_replication_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReplicationTask); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_shared_v1_replication_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DomainTaskAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_shared_v1_replication_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SyncShardStatusTaskAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_shared_v1_replication_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SyncActivityTaskAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_shared_v1_replication_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HistoryTaskV2Attributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_shared_v1_replication_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FailoverMarkerAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_shared_v1_replication_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FailoverMarkerToken); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_shared_v1_replication_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReplicationTaskInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_shared_v1_replication_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReplicationToken); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_uber_cadence_shared_v1_replication_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SyncShardStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_uber_cadence_shared_v1_replication_proto_msgTypes[1].OneofWrappers = []interface{}{ + (*ReplicationTask_DomainTaskAttributes)(nil), + (*ReplicationTask_SyncShardStatusTaskAttributes)(nil), + (*ReplicationTask_SyncActivityTaskAttributes)(nil), + (*ReplicationTask_HistoryTaskV2Attributes)(nil), + (*ReplicationTask_FailoverMarkerAttributes)(nil), } - return len(dAtA) - i, nil + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_uber_cadence_shared_v1_replication_proto_rawDesc, + NumEnums: 3, + NumMessages: 11, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_uber_cadence_shared_v1_replication_proto_goTypes, + DependencyIndexes: file_uber_cadence_shared_v1_replication_proto_depIdxs, + EnumInfos: file_uber_cadence_shared_v1_replication_proto_enumTypes, + MessageInfos: file_uber_cadence_shared_v1_replication_proto_msgTypes, + }.Build() + File_uber_cadence_shared_v1_replication_proto = out.File + file_uber_cadence_shared_v1_replication_proto_rawDesc = nil + file_uber_cadence_shared_v1_replication_proto_goTypes = nil + file_uber_cadence_shared_v1_replication_proto_depIdxs = nil } - -func (m *ReplicationTask) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReplicationTask) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicationTask) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Attributes != nil { - { - size := m.Attributes.Size() - i -= size - if _, err := m.Attributes.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - if m.CreationTime != nil { - n2, err2 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.CreationTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.CreationTime):]) - if err2 != nil { - return 0, err2 - } - i -= n2 - i = encodeVarintReplication(dAtA, i, uint64(n2)) - i-- - dAtA[i] = 0x1a - } - if m.SourceTaskId != 0 { - i = encodeVarintReplication(dAtA, i, uint64(m.SourceTaskId)) - i-- - dAtA[i] = 0x10 - } - if m.TaskType != 0 { - i = encodeVarintReplication(dAtA, i, uint64(m.TaskType)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ReplicationTask_DomainTaskAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicationTask_DomainTaskAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.DomainTaskAttributes != nil { - { - size, err := m.DomainTaskAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintReplication(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - return len(dAtA) - i, nil -} -func (m *ReplicationTask_SyncShardStatusTaskAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicationTask_SyncShardStatusTaskAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.SyncShardStatusTaskAttributes != nil { - { - size, err := m.SyncShardStatusTaskAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintReplication(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - return len(dAtA) - i, nil -} -func (m *ReplicationTask_SyncActivityTaskAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicationTask_SyncActivityTaskAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.SyncActivityTaskAttributes != nil { - { - size, err := m.SyncActivityTaskAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintReplication(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - return len(dAtA) - i, nil -} -func (m *ReplicationTask_HistoryTaskV2Attributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicationTask_HistoryTaskV2Attributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.HistoryTaskV2Attributes != nil { - { - size, err := m.HistoryTaskV2Attributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintReplication(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - return len(dAtA) - i, nil -} -func (m *ReplicationTask_FailoverMarkerAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicationTask_FailoverMarkerAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.FailoverMarkerAttributes != nil { - { - size, err := m.FailoverMarkerAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintReplication(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } - return len(dAtA) - i, nil -} -func (m *DomainTaskAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DomainTaskAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DomainTaskAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.PreviousFailoverVersion != 0 { - i = encodeVarintReplication(dAtA, i, uint64(m.PreviousFailoverVersion)) - i-- - dAtA[i] = 0x40 - } - if m.FailoverVersion != 0 { - i = encodeVarintReplication(dAtA, i, uint64(m.FailoverVersion)) - i-- - dAtA[i] = 0x38 - } - if m.ConfigVersion != 0 { - i = encodeVarintReplication(dAtA, i, uint64(m.ConfigVersion)) - i-- - dAtA[i] = 0x30 - } - if m.ReplicationConfig != nil { - { - size, err := m.ReplicationConfig.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintReplication(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.Config != nil { - { - size, err := m.Config.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintReplication(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.Info != nil { - { - size, err := m.Info.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintReplication(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintReplication(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0x12 - } - if m.DomainOperation != 0 { - i = encodeVarintReplication(dAtA, i, uint64(m.DomainOperation)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *SyncShardStatusTaskAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SyncShardStatusTaskAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SyncShardStatusTaskAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Timestamp != nil { - n11, err11 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.Timestamp, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.Timestamp):]) - if err11 != nil { - return 0, err11 - } - i -= n11 - i = encodeVarintReplication(dAtA, i, uint64(n11)) - i-- - dAtA[i] = 0x1a - } - if m.ShardId != 0 { - i = encodeVarintReplication(dAtA, i, uint64(m.ShardId)) - i-- - dAtA[i] = 0x10 - } - if len(m.SourceCluster) > 0 { - i -= len(m.SourceCluster) - copy(dAtA[i:], m.SourceCluster) - i = encodeVarintReplication(dAtA, i, uint64(len(m.SourceCluster))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *SyncActivityTaskAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SyncActivityTaskAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SyncActivityTaskAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.VersionHistory != nil { - { - size, err := m.VersionHistory.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintReplication(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a - } - if len(m.LastWorkerIdentity) > 0 { - i -= len(m.LastWorkerIdentity) - copy(dAtA[i:], m.LastWorkerIdentity) - i = encodeVarintReplication(dAtA, i, uint64(len(m.LastWorkerIdentity))) - i-- - dAtA[i] = 0x62 - } - if m.LastFailure != nil { - { - size, err := m.LastFailure.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintReplication(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - } - if m.Attempt != 0 { - i = encodeVarintReplication(dAtA, i, uint64(m.Attempt)) - i-- - dAtA[i] = 0x50 - } - if m.Details != nil { - { - size, err := m.Details.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintReplication(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - } - if m.LastHeartbeatTime != nil { - n15, err15 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.LastHeartbeatTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.LastHeartbeatTime):]) - if err15 != nil { - return 0, err15 - } - i -= n15 - i = encodeVarintReplication(dAtA, i, uint64(n15)) - i-- - dAtA[i] = 0x42 - } - if m.StartedTime != nil { - n16, err16 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.StartedTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.StartedTime):]) - if err16 != nil { - return 0, err16 - } - i -= n16 - i = encodeVarintReplication(dAtA, i, uint64(n16)) - i-- - dAtA[i] = 0x3a - } - if m.StartedId != 0 { - i = encodeVarintReplication(dAtA, i, uint64(m.StartedId)) - i-- - dAtA[i] = 0x30 - } - if m.ScheduledTime != nil { - n17, err17 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.ScheduledTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.ScheduledTime):]) - if err17 != nil { - return 0, err17 - } - i -= n17 - i = encodeVarintReplication(dAtA, i, uint64(n17)) - i-- - dAtA[i] = 0x2a - } - if m.ScheduledId != 0 { - i = encodeVarintReplication(dAtA, i, uint64(m.ScheduledId)) - i-- - dAtA[i] = 0x20 - } - if m.Version != 0 { - i = encodeVarintReplication(dAtA, i, uint64(m.Version)) - i-- - dAtA[i] = 0x18 - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintReplication(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintReplication(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *HistoryTaskV2Attributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *HistoryTaskV2Attributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoryTaskV2Attributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.NewRunEvents != nil { - { - size, err := m.NewRunEvents.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintReplication(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if m.Events != nil { - { - size, err := m.Events.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintReplication(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if len(m.VersionHistoryItems) > 0 { - for iNdEx := len(m.VersionHistoryItems) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.VersionHistoryItems[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintReplication(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintReplication(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintReplication(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0x12 - } - if m.TaskId != 0 { - i = encodeVarintReplication(dAtA, i, uint64(m.TaskId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *FailoverMarkerAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *FailoverMarkerAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FailoverMarkerAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.CreationTime != nil { - n22, err22 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.CreationTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.CreationTime):]) - if err22 != nil { - return 0, err22 - } - i -= n22 - i = encodeVarintReplication(dAtA, i, uint64(n22)) - i-- - dAtA[i] = 0x1a - } - if m.FailoverVersion != 0 { - i = encodeVarintReplication(dAtA, i, uint64(m.FailoverVersion)) - i-- - dAtA[i] = 0x10 - } - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintReplication(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *FailoverMarkerToken) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *FailoverMarkerToken) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FailoverMarkerToken) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.FailoverMarker != nil { - { - size, err := m.FailoverMarker.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintReplication(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.ShardIds) > 0 { - dAtA25 := make([]byte, len(m.ShardIds)*10) - var j24 int - for _, num1 := range m.ShardIds { - num := uint64(num1) - for num >= 1<<7 { - dAtA25[j24] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j24++ - } - dAtA25[j24] = uint8(num) - j24++ - } - i -= j24 - copy(dAtA[i:], dAtA25[:j24]) - i = encodeVarintReplication(dAtA, i, uint64(j24)) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ReplicationTaskInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReplicationTaskInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicationTaskInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ScheduledId != 0 { - i = encodeVarintReplication(dAtA, i, uint64(m.ScheduledId)) - i-- - dAtA[i] = 0x40 - } - if m.NextEventId != 0 { - i = encodeVarintReplication(dAtA, i, uint64(m.NextEventId)) - i-- - dAtA[i] = 0x38 - } - if m.FirstEventId != 0 { - i = encodeVarintReplication(dAtA, i, uint64(m.FirstEventId)) - i-- - dAtA[i] = 0x30 - } - if m.Version != 0 { - i = encodeVarintReplication(dAtA, i, uint64(m.Version)) - i-- - dAtA[i] = 0x28 - } - if m.TaskId != 0 { - i = encodeVarintReplication(dAtA, i, uint64(m.TaskId)) - i-- - dAtA[i] = 0x20 - } - if m.TaskType != 0 { - i = encodeVarintReplication(dAtA, i, uint64(m.TaskType)) - i-- - dAtA[i] = 0x18 - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintReplication(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintReplication(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ReplicationToken) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReplicationToken) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicationToken) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.LastProcessedMessageId != 0 { - i = encodeVarintReplication(dAtA, i, uint64(m.LastProcessedMessageId)) - i-- - dAtA[i] = 0x18 - } - if m.LastRetrievedMessageId != 0 { - i = encodeVarintReplication(dAtA, i, uint64(m.LastRetrievedMessageId)) - i-- - dAtA[i] = 0x10 - } - if m.ShardId != 0 { - i = encodeVarintReplication(dAtA, i, uint64(m.ShardId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *SyncShardStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SyncShardStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SyncShardStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Timestamp != nil { - n27, err27 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.Timestamp, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.Timestamp):]) - if err27 != nil { - return 0, err27 - } - i -= n27 - i = encodeVarintReplication(dAtA, i, uint64(n27)) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintReplication(dAtA []byte, offset int, v uint64) int { - offset -= sovReplication(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *ReplicationMessages) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.ReplicationTasks) > 0 { - for _, e := range m.ReplicationTasks { - l = e.Size() - n += 1 + l + sovReplication(uint64(l)) - } - } - if m.LastRetrievedMessageId != 0 { - n += 1 + sovReplication(uint64(m.LastRetrievedMessageId)) - } - if m.HasMore { - n += 2 - } - if m.SyncShardStatus != nil { - l = m.SyncShardStatus.Size() - n += 1 + l + sovReplication(uint64(l)) - } - return n -} - -func (m *ReplicationTask) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.TaskType != 0 { - n += 1 + sovReplication(uint64(m.TaskType)) - } - if m.SourceTaskId != 0 { - n += 1 + sovReplication(uint64(m.SourceTaskId)) - } - if m.CreationTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.CreationTime) - n += 1 + l + sovReplication(uint64(l)) - } - if m.Attributes != nil { - n += m.Attributes.Size() - } - return n -} - -func (m *ReplicationTask_DomainTaskAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.DomainTaskAttributes != nil { - l = m.DomainTaskAttributes.Size() - n += 1 + l + sovReplication(uint64(l)) - } - return n -} -func (m *ReplicationTask_SyncShardStatusTaskAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.SyncShardStatusTaskAttributes != nil { - l = m.SyncShardStatusTaskAttributes.Size() - n += 1 + l + sovReplication(uint64(l)) - } - return n -} -func (m *ReplicationTask_SyncActivityTaskAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.SyncActivityTaskAttributes != nil { - l = m.SyncActivityTaskAttributes.Size() - n += 1 + l + sovReplication(uint64(l)) - } - return n -} -func (m *ReplicationTask_HistoryTaskV2Attributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.HistoryTaskV2Attributes != nil { - l = m.HistoryTaskV2Attributes.Size() - n += 1 + l + sovReplication(uint64(l)) - } - return n -} -func (m *ReplicationTask_FailoverMarkerAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.FailoverMarkerAttributes != nil { - l = m.FailoverMarkerAttributes.Size() - n += 1 + l + sovReplication(uint64(l)) - } - return n -} -func (m *DomainTaskAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.DomainOperation != 0 { - n += 1 + sovReplication(uint64(m.DomainOperation)) - } - l = len(m.Id) - if l > 0 { - n += 1 + l + sovReplication(uint64(l)) - } - if m.Info != nil { - l = m.Info.Size() - n += 1 + l + sovReplication(uint64(l)) - } - if m.Config != nil { - l = m.Config.Size() - n += 1 + l + sovReplication(uint64(l)) - } - if m.ReplicationConfig != nil { - l = m.ReplicationConfig.Size() - n += 1 + l + sovReplication(uint64(l)) - } - if m.ConfigVersion != 0 { - n += 1 + sovReplication(uint64(m.ConfigVersion)) - } - if m.FailoverVersion != 0 { - n += 1 + sovReplication(uint64(m.FailoverVersion)) - } - if m.PreviousFailoverVersion != 0 { - n += 1 + sovReplication(uint64(m.PreviousFailoverVersion)) - } - return n -} - -func (m *SyncShardStatusTaskAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.SourceCluster) - if l > 0 { - n += 1 + l + sovReplication(uint64(l)) - } - if m.ShardId != 0 { - n += 1 + sovReplication(uint64(m.ShardId)) - } - if m.Timestamp != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.Timestamp) - n += 1 + l + sovReplication(uint64(l)) - } - return n -} - -func (m *SyncActivityTaskAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovReplication(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovReplication(uint64(l)) - } - if m.Version != 0 { - n += 1 + sovReplication(uint64(m.Version)) - } - if m.ScheduledId != 0 { - n += 1 + sovReplication(uint64(m.ScheduledId)) - } - if m.ScheduledTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.ScheduledTime) - n += 1 + l + sovReplication(uint64(l)) - } - if m.StartedId != 0 { - n += 1 + sovReplication(uint64(m.StartedId)) - } - if m.StartedTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.StartedTime) - n += 1 + l + sovReplication(uint64(l)) - } - if m.LastHeartbeatTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.LastHeartbeatTime) - n += 1 + l + sovReplication(uint64(l)) - } - if m.Details != nil { - l = m.Details.Size() - n += 1 + l + sovReplication(uint64(l)) - } - if m.Attempt != 0 { - n += 1 + sovReplication(uint64(m.Attempt)) - } - if m.LastFailure != nil { - l = m.LastFailure.Size() - n += 1 + l + sovReplication(uint64(l)) - } - l = len(m.LastWorkerIdentity) - if l > 0 { - n += 1 + l + sovReplication(uint64(l)) - } - if m.VersionHistory != nil { - l = m.VersionHistory.Size() - n += 1 + l + sovReplication(uint64(l)) - } - return n -} - -func (m *HistoryTaskV2Attributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.TaskId != 0 { - n += 1 + sovReplication(uint64(m.TaskId)) - } - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovReplication(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovReplication(uint64(l)) - } - if len(m.VersionHistoryItems) > 0 { - for _, e := range m.VersionHistoryItems { - l = e.Size() - n += 1 + l + sovReplication(uint64(l)) - } - } - if m.Events != nil { - l = m.Events.Size() - n += 1 + l + sovReplication(uint64(l)) - } - if m.NewRunEvents != nil { - l = m.NewRunEvents.Size() - n += 1 + l + sovReplication(uint64(l)) - } - return n -} - -func (m *FailoverMarkerAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovReplication(uint64(l)) - } - if m.FailoverVersion != 0 { - n += 1 + sovReplication(uint64(m.FailoverVersion)) - } - if m.CreationTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.CreationTime) - n += 1 + l + sovReplication(uint64(l)) - } - return n -} - -func (m *FailoverMarkerToken) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.ShardIds) > 0 { - l = 0 - for _, e := range m.ShardIds { - l += sovReplication(uint64(e)) - } - n += 1 + sovReplication(uint64(l)) + l - } - if m.FailoverMarker != nil { - l = m.FailoverMarker.Size() - n += 1 + l + sovReplication(uint64(l)) - } - return n -} - -func (m *ReplicationTaskInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovReplication(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovReplication(uint64(l)) - } - if m.TaskType != 0 { - n += 1 + sovReplication(uint64(m.TaskType)) - } - if m.TaskId != 0 { - n += 1 + sovReplication(uint64(m.TaskId)) - } - if m.Version != 0 { - n += 1 + sovReplication(uint64(m.Version)) - } - if m.FirstEventId != 0 { - n += 1 + sovReplication(uint64(m.FirstEventId)) - } - if m.NextEventId != 0 { - n += 1 + sovReplication(uint64(m.NextEventId)) - } - if m.ScheduledId != 0 { - n += 1 + sovReplication(uint64(m.ScheduledId)) - } - return n -} - -func (m *ReplicationToken) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ShardId != 0 { - n += 1 + sovReplication(uint64(m.ShardId)) - } - if m.LastRetrievedMessageId != 0 { - n += 1 + sovReplication(uint64(m.LastRetrievedMessageId)) - } - if m.LastProcessedMessageId != 0 { - n += 1 + sovReplication(uint64(m.LastProcessedMessageId)) - } - return n -} - -func (m *SyncShardStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Timestamp != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.Timestamp) - n += 1 + l + sovReplication(uint64(l)) - } - return n -} - -func sovReplication(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozReplication(x uint64) (n int) { - return sovReplication(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *ReplicationMessages) String() string { - if this == nil { - return "nil" - } - repeatedStringForReplicationTasks := "[]*ReplicationTask{" - for _, f := range this.ReplicationTasks { - repeatedStringForReplicationTasks += strings.Replace(f.String(), "ReplicationTask", "ReplicationTask", 1) + "," - } - repeatedStringForReplicationTasks += "}" - s := strings.Join([]string{`&ReplicationMessages{`, - `ReplicationTasks:` + repeatedStringForReplicationTasks + `,`, - `LastRetrievedMessageId:` + fmt.Sprintf("%v", this.LastRetrievedMessageId) + `,`, - `HasMore:` + fmt.Sprintf("%v", this.HasMore) + `,`, - `SyncShardStatus:` + strings.Replace(this.SyncShardStatus.String(), "SyncShardStatus", "SyncShardStatus", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ReplicationTask) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ReplicationTask{`, - `TaskType:` + fmt.Sprintf("%v", this.TaskType) + `,`, - `SourceTaskId:` + fmt.Sprintf("%v", this.SourceTaskId) + `,`, - `CreationTime:` + strings.Replace(fmt.Sprintf("%v", this.CreationTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `Attributes:` + fmt.Sprintf("%v", this.Attributes) + `,`, - `}`, - }, "") - return s -} -func (this *ReplicationTask_DomainTaskAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ReplicationTask_DomainTaskAttributes{`, - `DomainTaskAttributes:` + strings.Replace(fmt.Sprintf("%v", this.DomainTaskAttributes), "DomainTaskAttributes", "DomainTaskAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ReplicationTask_SyncShardStatusTaskAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ReplicationTask_SyncShardStatusTaskAttributes{`, - `SyncShardStatusTaskAttributes:` + strings.Replace(fmt.Sprintf("%v", this.SyncShardStatusTaskAttributes), "SyncShardStatusTaskAttributes", "SyncShardStatusTaskAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ReplicationTask_SyncActivityTaskAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ReplicationTask_SyncActivityTaskAttributes{`, - `SyncActivityTaskAttributes:` + strings.Replace(fmt.Sprintf("%v", this.SyncActivityTaskAttributes), "SyncActivityTaskAttributes", "SyncActivityTaskAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ReplicationTask_HistoryTaskV2Attributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ReplicationTask_HistoryTaskV2Attributes{`, - `HistoryTaskV2Attributes:` + strings.Replace(fmt.Sprintf("%v", this.HistoryTaskV2Attributes), "HistoryTaskV2Attributes", "HistoryTaskV2Attributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ReplicationTask_FailoverMarkerAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ReplicationTask_FailoverMarkerAttributes{`, - `FailoverMarkerAttributes:` + strings.Replace(fmt.Sprintf("%v", this.FailoverMarkerAttributes), "FailoverMarkerAttributes", "FailoverMarkerAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *DomainTaskAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DomainTaskAttributes{`, - `DomainOperation:` + fmt.Sprintf("%v", this.DomainOperation) + `,`, - `Id:` + fmt.Sprintf("%v", this.Id) + `,`, - `Info:` + strings.Replace(fmt.Sprintf("%v", this.Info), "DomainInfo", "v1.DomainInfo", 1) + `,`, - `Config:` + strings.Replace(fmt.Sprintf("%v", this.Config), "DomainConfiguration", "v1.DomainConfiguration", 1) + `,`, - `ReplicationConfig:` + strings.Replace(fmt.Sprintf("%v", this.ReplicationConfig), "DomainReplicationConfiguration", "v1.DomainReplicationConfiguration", 1) + `,`, - `ConfigVersion:` + fmt.Sprintf("%v", this.ConfigVersion) + `,`, - `FailoverVersion:` + fmt.Sprintf("%v", this.FailoverVersion) + `,`, - `PreviousFailoverVersion:` + fmt.Sprintf("%v", this.PreviousFailoverVersion) + `,`, - `}`, - }, "") - return s -} -func (this *SyncShardStatusTaskAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SyncShardStatusTaskAttributes{`, - `SourceCluster:` + fmt.Sprintf("%v", this.SourceCluster) + `,`, - `ShardId:` + fmt.Sprintf("%v", this.ShardId) + `,`, - `Timestamp:` + strings.Replace(fmt.Sprintf("%v", this.Timestamp), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `}`, - }, "") - return s -} -func (this *SyncActivityTaskAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SyncActivityTaskAttributes{`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "v1.WorkflowExecution", 1) + `,`, - `Version:` + fmt.Sprintf("%v", this.Version) + `,`, - `ScheduledId:` + fmt.Sprintf("%v", this.ScheduledId) + `,`, - `ScheduledTime:` + strings.Replace(fmt.Sprintf("%v", this.ScheduledTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `StartedId:` + fmt.Sprintf("%v", this.StartedId) + `,`, - `StartedTime:` + strings.Replace(fmt.Sprintf("%v", this.StartedTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `LastHeartbeatTime:` + strings.Replace(fmt.Sprintf("%v", this.LastHeartbeatTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `Details:` + strings.Replace(fmt.Sprintf("%v", this.Details), "Payload", "v1.Payload", 1) + `,`, - `Attempt:` + fmt.Sprintf("%v", this.Attempt) + `,`, - `LastFailure:` + strings.Replace(fmt.Sprintf("%v", this.LastFailure), "Failure", "v1.Failure", 1) + `,`, - `LastWorkerIdentity:` + fmt.Sprintf("%v", this.LastWorkerIdentity) + `,`, - `VersionHistory:` + strings.Replace(fmt.Sprintf("%v", this.VersionHistory), "VersionHistory", "VersionHistory", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HistoryTaskV2Attributes) String() string { - if this == nil { - return "nil" - } - repeatedStringForVersionHistoryItems := "[]*VersionHistoryItem{" - for _, f := range this.VersionHistoryItems { - repeatedStringForVersionHistoryItems += strings.Replace(fmt.Sprintf("%v", f), "VersionHistoryItem", "VersionHistoryItem", 1) + "," - } - repeatedStringForVersionHistoryItems += "}" - s := strings.Join([]string{`&HistoryTaskV2Attributes{`, - `TaskId:` + fmt.Sprintf("%v", this.TaskId) + `,`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "v1.WorkflowExecution", 1) + `,`, - `VersionHistoryItems:` + repeatedStringForVersionHistoryItems + `,`, - `Events:` + strings.Replace(fmt.Sprintf("%v", this.Events), "DataBlob", "v1.DataBlob", 1) + `,`, - `NewRunEvents:` + strings.Replace(fmt.Sprintf("%v", this.NewRunEvents), "DataBlob", "v1.DataBlob", 1) + `,`, - `}`, - }, "") - return s -} -func (this *FailoverMarkerAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&FailoverMarkerAttributes{`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `FailoverVersion:` + fmt.Sprintf("%v", this.FailoverVersion) + `,`, - `CreationTime:` + strings.Replace(fmt.Sprintf("%v", this.CreationTime), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `}`, - }, "") - return s -} -func (this *FailoverMarkerToken) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&FailoverMarkerToken{`, - `ShardIds:` + fmt.Sprintf("%v", this.ShardIds) + `,`, - `FailoverMarker:` + strings.Replace(this.FailoverMarker.String(), "FailoverMarkerAttributes", "FailoverMarkerAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ReplicationTaskInfo) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ReplicationTaskInfo{`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "v1.WorkflowExecution", 1) + `,`, - `TaskType:` + fmt.Sprintf("%v", this.TaskType) + `,`, - `TaskId:` + fmt.Sprintf("%v", this.TaskId) + `,`, - `Version:` + fmt.Sprintf("%v", this.Version) + `,`, - `FirstEventId:` + fmt.Sprintf("%v", this.FirstEventId) + `,`, - `NextEventId:` + fmt.Sprintf("%v", this.NextEventId) + `,`, - `ScheduledId:` + fmt.Sprintf("%v", this.ScheduledId) + `,`, - `}`, - }, "") - return s -} -func (this *ReplicationToken) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ReplicationToken{`, - `ShardId:` + fmt.Sprintf("%v", this.ShardId) + `,`, - `LastRetrievedMessageId:` + fmt.Sprintf("%v", this.LastRetrievedMessageId) + `,`, - `LastProcessedMessageId:` + fmt.Sprintf("%v", this.LastProcessedMessageId) + `,`, - `}`, - }, "") - return s -} -func (this *SyncShardStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SyncShardStatus{`, - `Timestamp:` + strings.Replace(fmt.Sprintf("%v", this.Timestamp), "Timestamp", "timestamp.Timestamp", 1) + `,`, - `}`, - }, "") - return s -} -func valueToStringReplication(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *ReplicationMessages) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReplicationMessages: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicationMessages: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReplicationTasks", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthReplication - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthReplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ReplicationTasks = append(m.ReplicationTasks, &ReplicationTask{}) - if err := m.ReplicationTasks[len(m.ReplicationTasks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastRetrievedMessageId", wireType) - } - m.LastRetrievedMessageId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.LastRetrievedMessageId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HasMore", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.HasMore = bool(v != 0) - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SyncShardStatus", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthReplication - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthReplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SyncShardStatus == nil { - m.SyncShardStatus = &SyncShardStatus{} - } - if err := m.SyncShardStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipReplication(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthReplication - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthReplication - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReplicationTask) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReplicationTask: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicationTask: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskType", wireType) - } - m.TaskType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TaskType |= ReplicationTaskType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SourceTaskId", wireType) - } - m.SourceTaskId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.SourceTaskId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreationTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthReplication - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthReplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CreationTime == nil { - m.CreationTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.CreationTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainTaskAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthReplication - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthReplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &DomainTaskAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &ReplicationTask_DomainTaskAttributes{v} - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SyncShardStatusTaskAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthReplication - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthReplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &SyncShardStatusTaskAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &ReplicationTask_SyncShardStatusTaskAttributes{v} - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SyncActivityTaskAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthReplication - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthReplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &SyncActivityTaskAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &ReplicationTask_SyncActivityTaskAttributes{v} - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HistoryTaskV2Attributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthReplication - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthReplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &HistoryTaskV2Attributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &ReplicationTask_HistoryTaskV2Attributes{v} - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FailoverMarkerAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthReplication - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthReplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &FailoverMarkerAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Attributes = &ReplicationTask_FailoverMarkerAttributes{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipReplication(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthReplication - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthReplication - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DomainTaskAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DomainTaskAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DomainTaskAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainOperation", wireType) - } - m.DomainOperation = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DomainOperation |= DomainOperation(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthReplication - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthReplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthReplication - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthReplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Info == nil { - m.Info = &v1.DomainInfo{} - } - if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Config", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthReplication - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthReplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Config == nil { - m.Config = &v1.DomainConfiguration{} - } - if err := m.Config.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReplicationConfig", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthReplication - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthReplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ReplicationConfig == nil { - m.ReplicationConfig = &v1.DomainReplicationConfiguration{} - } - if err := m.ReplicationConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ConfigVersion", wireType) - } - m.ConfigVersion = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ConfigVersion |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field FailoverVersion", wireType) - } - m.FailoverVersion = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.FailoverVersion |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PreviousFailoverVersion", wireType) - } - m.PreviousFailoverVersion = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PreviousFailoverVersion |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipReplication(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthReplication - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthReplication - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SyncShardStatusTaskAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SyncShardStatusTaskAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SyncShardStatusTaskAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SourceCluster", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthReplication - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthReplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SourceCluster = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ShardId", wireType) - } - m.ShardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ShardId |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthReplication - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthReplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Timestamp == nil { - m.Timestamp = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipReplication(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthReplication - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthReplication - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SyncActivityTaskAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SyncActivityTaskAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SyncActivityTaskAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthReplication - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthReplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthReplication - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthReplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &v1.WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) - } - m.Version = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Version |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduledId", wireType) - } - m.ScheduledId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ScheduledId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduledTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthReplication - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthReplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ScheduledTime == nil { - m.ScheduledTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.ScheduledTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartedId", wireType) - } - m.StartedId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartedId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartedTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthReplication - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthReplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StartedTime == nil { - m.StartedTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.StartedTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastHeartbeatTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthReplication - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthReplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LastHeartbeatTime == nil { - m.LastHeartbeatTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.LastHeartbeatTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Details", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthReplication - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthReplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Details == nil { - m.Details = &v1.Payload{} - } - if err := m.Details.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Attempt", wireType) - } - m.Attempt = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Attempt |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastFailure", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthReplication - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthReplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LastFailure == nil { - m.LastFailure = &v1.Failure{} - } - if err := m.LastFailure.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastWorkerIdentity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthReplication - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthReplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LastWorkerIdentity = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VersionHistory", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthReplication - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthReplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.VersionHistory == nil { - m.VersionHistory = &VersionHistory{} - } - if err := m.VersionHistory.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipReplication(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthReplication - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthReplication - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *HistoryTaskV2Attributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: HistoryTaskV2Attributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HistoryTaskV2Attributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskId", wireType) - } - m.TaskId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TaskId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthReplication - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthReplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthReplication - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthReplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &v1.WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VersionHistoryItems", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthReplication - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthReplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VersionHistoryItems = append(m.VersionHistoryItems, &VersionHistoryItem{}) - if err := m.VersionHistoryItems[len(m.VersionHistoryItems)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthReplication - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthReplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Events == nil { - m.Events = &v1.DataBlob{} - } - if err := m.Events.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NewRunEvents", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthReplication - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthReplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.NewRunEvents == nil { - m.NewRunEvents = &v1.DataBlob{} - } - if err := m.NewRunEvents.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipReplication(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthReplication - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthReplication - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *FailoverMarkerAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: FailoverMarkerAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: FailoverMarkerAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthReplication - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthReplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field FailoverVersion", wireType) - } - m.FailoverVersion = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.FailoverVersion |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreationTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthReplication - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthReplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CreationTime == nil { - m.CreationTime = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.CreationTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipReplication(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthReplication - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthReplication - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *FailoverMarkerToken) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: FailoverMarkerToken: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: FailoverMarkerToken: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType == 0 { - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ShardIds = append(m.ShardIds, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthReplication - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthReplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(m.ShardIds) == 0 { - m.ShardIds = make([]int32, 0, elementCount) - } - for iNdEx < postIndex { - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ShardIds = append(m.ShardIds, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field ShardIds", wireType) - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FailoverMarker", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthReplication - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthReplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.FailoverMarker == nil { - m.FailoverMarker = &FailoverMarkerAttributes{} - } - if err := m.FailoverMarker.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipReplication(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthReplication - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthReplication - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReplicationTaskInfo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReplicationTaskInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicationTaskInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthReplication - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthReplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthReplication - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthReplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &v1.WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskType", wireType) - } - m.TaskType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TaskType |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskId", wireType) - } - m.TaskId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TaskId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) - } - m.Version = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Version |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field FirstEventId", wireType) - } - m.FirstEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.FirstEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NextEventId", wireType) - } - m.NextEventId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NextEventId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduledId", wireType) - } - m.ScheduledId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ScheduledId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipReplication(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthReplication - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthReplication - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReplicationToken) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReplicationToken: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicationToken: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ShardId", wireType) - } - m.ShardId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ShardId |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastRetrievedMessageId", wireType) - } - m.LastRetrievedMessageId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.LastRetrievedMessageId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastProcessedMessageId", wireType) - } - m.LastProcessedMessageId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.LastProcessedMessageId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipReplication(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthReplication - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthReplication - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SyncShardStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SyncShardStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SyncShardStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthReplication - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthReplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Timestamp == nil { - m.Timestamp = new(time.Time) - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipReplication(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthReplication - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthReplication - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipReplication(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowReplication - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowReplication - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowReplication - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthReplication - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupReplication - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthReplication - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthReplication = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowReplication = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupReplication = fmt.Errorf("proto: unexpected end of group") -) diff --git a/.gen/proto/shared/v1/tasklist.pb.go b/.gen/proto/shared/v1/tasklist.pb.go index 2a733bbabd6..2facdfc2463 100644 --- a/.gen/proto/shared/v1/tasklist.pb.go +++ b/.gen/proto/shared/v1/tasklist.pb.go @@ -1,106 +1,167 @@ -// The MIT License (MIT) - -// Copyright (c) 2017-2020 Uber Technologies Inc. - +// 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 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. +// 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. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.14.0 // source: uber/cadence/shared/v1/tasklist.proto package sharedv1 import ( - fmt "fmt" - math "math" - strconv "strconv" + reflect "reflect" + sync "sync" - proto "github.com/gogo/protobuf/proto" + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// 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 +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 // TaskSource is the source from which a task was produced. type TaskSource int32 const ( - TASK_SOURCE_INVALID TaskSource = 0 + TaskSource_TASK_SOURCE_INVALID TaskSource = 0 // Task produced by history service. - TASK_SOURCE_HISTORY TaskSource = 1 + TaskSource_TASK_SOURCE_HISTORY TaskSource = 1 // Task produced from matching db backlog. - TASK_SOURCE_DB_BACKLOG TaskSource = 2 + TaskSource_TASK_SOURCE_DB_BACKLOG TaskSource = 2 +) + +// Enum value maps for TaskSource. +var ( + TaskSource_name = map[int32]string{ + 0: "TASK_SOURCE_INVALID", + 1: "TASK_SOURCE_HISTORY", + 2: "TASK_SOURCE_DB_BACKLOG", + } + TaskSource_value = map[string]int32{ + "TASK_SOURCE_INVALID": 0, + "TASK_SOURCE_HISTORY": 1, + "TASK_SOURCE_DB_BACKLOG": 2, + } ) -var TaskSource_name = map[int32]string{ - 0: "TASK_SOURCE_INVALID", - 1: "TASK_SOURCE_HISTORY", - 2: "TASK_SOURCE_DB_BACKLOG", +func (x TaskSource) Enum() *TaskSource { + p := new(TaskSource) + *p = x + return p } -var TaskSource_value = map[string]int32{ - "TASK_SOURCE_INVALID": 0, - "TASK_SOURCE_HISTORY": 1, - "TASK_SOURCE_DB_BACKLOG": 2, +func (x TaskSource) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (TaskSource) Descriptor() protoreflect.EnumDescriptor { + return file_uber_cadence_shared_v1_tasklist_proto_enumTypes[0].Descriptor() +} + +func (TaskSource) Type() protoreflect.EnumType { + return &file_uber_cadence_shared_v1_tasklist_proto_enumTypes[0] +} + +func (x TaskSource) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use TaskSource.Descriptor instead. func (TaskSource) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_e97215b1a3d16713, []int{0} + return file_uber_cadence_shared_v1_tasklist_proto_rawDescGZIP(), []int{0} } -func init() { - proto.RegisterEnum("uber.cadence.shared.v1.TaskSource", TaskSource_name, TaskSource_value) +var File_uber_cadence_shared_v1_tasklist_proto protoreflect.FileDescriptor + +var file_uber_cadence_shared_v1_tasklist_proto_rawDesc = []byte{ + 0x0a, 0x25, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x6c, 0x69, 0x73, + 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x2a, + 0x5a, 0x0a, 0x0a, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x17, 0x0a, + 0x13, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x49, 0x4e, 0x56, + 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, + 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x48, 0x49, 0x53, 0x54, 0x4f, 0x52, 0x59, 0x10, 0x01, 0x12, + 0x1a, 0x0a, 0x16, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x44, + 0x42, 0x5f, 0x42, 0x41, 0x43, 0x4b, 0x4c, 0x4f, 0x47, 0x10, 0x02, 0x42, 0x37, 0x5a, 0x35, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, + 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x2e, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x64, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func init() { - proto.RegisterFile("github.com/uber/cadence/.gen/proto/shared/v1/tasklist.proto", fileDescriptor_e97215b1a3d16713) +var ( + file_uber_cadence_shared_v1_tasklist_proto_rawDescOnce sync.Once + file_uber_cadence_shared_v1_tasklist_proto_rawDescData = file_uber_cadence_shared_v1_tasklist_proto_rawDesc +) + +func file_uber_cadence_shared_v1_tasklist_proto_rawDescGZIP() []byte { + file_uber_cadence_shared_v1_tasklist_proto_rawDescOnce.Do(func() { + file_uber_cadence_shared_v1_tasklist_proto_rawDescData = protoimpl.X.CompressGZIP(file_uber_cadence_shared_v1_tasklist_proto_rawDescData) + }) + return file_uber_cadence_shared_v1_tasklist_proto_rawDescData } -var fileDescriptor_e97215b1a3d16713 = []byte{ - // 213 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2d, 0x4d, 0x4a, 0x2d, - 0xd2, 0x4f, 0x4e, 0x4c, 0x49, 0xcd, 0x4b, 0x4e, 0xd5, 0x2f, 0xce, 0x48, 0x2c, 0x4a, 0x4d, 0xd1, - 0x2f, 0x33, 0xd4, 0x2f, 0x49, 0x2c, 0xce, 0xce, 0xc9, 0x2c, 0x2e, 0xd1, 0x2b, 0x28, 0xca, 0x2f, - 0xc9, 0x17, 0x12, 0x03, 0x29, 0xd3, 0x83, 0x2a, 0xd3, 0x83, 0x28, 0xd3, 0x2b, 0x33, 0xd4, 0x8a, - 0xe2, 0xe2, 0x0a, 0x49, 0x2c, 0xce, 0x0e, 0xce, 0x2f, 0x2d, 0x4a, 0x4e, 0x15, 0x12, 0xe7, 0x12, - 0x0e, 0x71, 0x0c, 0xf6, 0x8e, 0x0f, 0xf6, 0x0f, 0x0d, 0x72, 0x76, 0x8d, 0xf7, 0xf4, 0x0b, 0x73, - 0xf4, 0xf1, 0x74, 0x11, 0x60, 0x40, 0x97, 0xf0, 0xf0, 0x0c, 0x0e, 0xf1, 0x0f, 0x8a, 0x14, 0x60, - 0x14, 0x92, 0xe2, 0x12, 0x43, 0x96, 0x70, 0x71, 0x8a, 0x77, 0x72, 0x74, 0xf6, 0xf6, 0xf1, 0x77, - 0x17, 0x60, 0x72, 0xb2, 0xbb, 0xf0, 0x50, 0x8e, 0xe1, 0xc6, 0x43, 0x39, 0x86, 0x0f, 0x0f, 0xe5, - 0x18, 0x1b, 0x1e, 0xc9, 0x31, 0xae, 0x78, 0x24, 0xc7, 0x78, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, - 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0xbe, 0x78, 0x24, 0xc7, 0xf0, 0xe1, 0x91, 0x1c, 0xe3, 0x84, - 0xc7, 0x72, 0x0c, 0x17, 0x1e, 0xcb, 0x31, 0xdc, 0x78, 0x2c, 0xc7, 0x10, 0xc5, 0x01, 0x71, 0x5c, - 0x99, 0x61, 0x12, 0x1b, 0xd8, 0xe9, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x3a, 0x41, 0x61, - 0xf4, 0xe3, 0x00, 0x00, 0x00, +var file_uber_cadence_shared_v1_tasklist_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_uber_cadence_shared_v1_tasklist_proto_goTypes = []interface{}{ + (TaskSource)(0), // 0: uber.cadence.shared.v1.TaskSource +} +var file_uber_cadence_shared_v1_tasklist_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name } -func (x TaskSource) String() string { - s, ok := TaskSource_name[int32(x)] - if ok { - return s +func init() { file_uber_cadence_shared_v1_tasklist_proto_init() } +func file_uber_cadence_shared_v1_tasklist_proto_init() { + if File_uber_cadence_shared_v1_tasklist_proto != nil { + return } - return strconv.Itoa(int(x)) + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_uber_cadence_shared_v1_tasklist_proto_rawDesc, + NumEnums: 1, + NumMessages: 0, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_uber_cadence_shared_v1_tasklist_proto_goTypes, + DependencyIndexes: file_uber_cadence_shared_v1_tasklist_proto_depIdxs, + EnumInfos: file_uber_cadence_shared_v1_tasklist_proto_enumTypes, + }.Build() + File_uber_cadence_shared_v1_tasklist_proto = out.File + file_uber_cadence_shared_v1_tasklist_proto_rawDesc = nil + file_uber_cadence_shared_v1_tasklist_proto_goTypes = nil + file_uber_cadence_shared_v1_tasklist_proto_depIdxs = nil } diff --git a/.gen/proto/shared/v1/workflow.pb.go b/.gen/proto/shared/v1/workflow.pb.go index bd85d138fc2..11bfc717704 100644 --- a/.gen/proto/shared/v1/workflow.pb.go +++ b/.gen/proto/shared/v1/workflow.pb.go @@ -1,628 +1,290 @@ -// The MIT License (MIT) - -// Copyright (c) 2017-2020 Uber Technologies Inc. - +// 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 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. +// 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. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.14.0 // source: uber/cadence/shared/v1/workflow.proto package sharedv1 import ( - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" reflect "reflect" - strconv "strconv" - strings "strings" + sync "sync" - proto "github.com/gogo/protobuf/proto" + proto "github.com/golang/protobuf/proto" v1 "github.com/uber/cadence/.gen/proto/api/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// 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 +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type WorkflowState int32 const ( - WORKFLOW_STATE_INVALID WorkflowState = 0 - WORKFLOW_STATE_CREATED WorkflowState = 1 - WORKFLOW_STATE_RUNNING WorkflowState = 2 - WORKFLOW_STATE_COMPLETED WorkflowState = 3 - WORKFLOW_STATE_ZOMBIE WorkflowState = 4 - WORKFLOW_STATE_VOID WorkflowState = 5 - WORKFLOW_STATE_CORRUPTED WorkflowState = 6 + WorkflowState_WORKFLOW_STATE_INVALID WorkflowState = 0 + WorkflowState_WORKFLOW_STATE_CREATED WorkflowState = 1 + WorkflowState_WORKFLOW_STATE_RUNNING WorkflowState = 2 + WorkflowState_WORKFLOW_STATE_COMPLETED WorkflowState = 3 + WorkflowState_WORKFLOW_STATE_ZOMBIE WorkflowState = 4 + WorkflowState_WORKFLOW_STATE_VOID WorkflowState = 5 + WorkflowState_WORKFLOW_STATE_CORRUPTED WorkflowState = 6 +) + +// Enum value maps for WorkflowState. +var ( + WorkflowState_name = map[int32]string{ + 0: "WORKFLOW_STATE_INVALID", + 1: "WORKFLOW_STATE_CREATED", + 2: "WORKFLOW_STATE_RUNNING", + 3: "WORKFLOW_STATE_COMPLETED", + 4: "WORKFLOW_STATE_ZOMBIE", + 5: "WORKFLOW_STATE_VOID", + 6: "WORKFLOW_STATE_CORRUPTED", + } + WorkflowState_value = map[string]int32{ + "WORKFLOW_STATE_INVALID": 0, + "WORKFLOW_STATE_CREATED": 1, + "WORKFLOW_STATE_RUNNING": 2, + "WORKFLOW_STATE_COMPLETED": 3, + "WORKFLOW_STATE_ZOMBIE": 4, + "WORKFLOW_STATE_VOID": 5, + "WORKFLOW_STATE_CORRUPTED": 6, + } ) -var WorkflowState_name = map[int32]string{ - 0: "WORKFLOW_STATE_INVALID", - 1: "WORKFLOW_STATE_CREATED", - 2: "WORKFLOW_STATE_RUNNING", - 3: "WORKFLOW_STATE_COMPLETED", - 4: "WORKFLOW_STATE_ZOMBIE", - 5: "WORKFLOW_STATE_VOID", - 6: "WORKFLOW_STATE_CORRUPTED", +func (x WorkflowState) Enum() *WorkflowState { + p := new(WorkflowState) + *p = x + return p } -var WorkflowState_value = map[string]int32{ - "WORKFLOW_STATE_INVALID": 0, - "WORKFLOW_STATE_CREATED": 1, - "WORKFLOW_STATE_RUNNING": 2, - "WORKFLOW_STATE_COMPLETED": 3, - "WORKFLOW_STATE_ZOMBIE": 4, - "WORKFLOW_STATE_VOID": 5, - "WORKFLOW_STATE_CORRUPTED": 6, +func (x WorkflowState) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (WorkflowState) Descriptor() protoreflect.EnumDescriptor { + return file_uber_cadence_shared_v1_workflow_proto_enumTypes[0].Descriptor() +} + +func (WorkflowState) Type() protoreflect.EnumType { + return &file_uber_cadence_shared_v1_workflow_proto_enumTypes[0] +} + +func (x WorkflowState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use WorkflowState.Descriptor instead. func (WorkflowState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_7ca73ea33aecbb95, []int{0} + return file_uber_cadence_shared_v1_workflow_proto_rawDescGZIP(), []int{0} } type ParentExecutionInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + DomainId string `protobuf:"bytes,1,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` DomainName string `protobuf:"bytes,2,opt,name=domain_name,json=domainName,proto3" json:"domain_name,omitempty"` WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` InitiatedId int64 `protobuf:"varint,4,opt,name=initiated_id,json=initiatedId,proto3" json:"initiated_id,omitempty"` } -func (m *ParentExecutionInfo) Reset() { *m = ParentExecutionInfo{} } -func (*ParentExecutionInfo) ProtoMessage() {} -func (*ParentExecutionInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_7ca73ea33aecbb95, []int{0} +func (x *ParentExecutionInfo) Reset() { + *x = ParentExecutionInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_uber_cadence_shared_v1_workflow_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ParentExecutionInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ParentExecutionInfo) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ParentExecutionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ParentExecutionInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ParentExecutionInfo) ProtoMessage() {} + +func (x *ParentExecutionInfo) ProtoReflect() protoreflect.Message { + mi := &file_uber_cadence_shared_v1_workflow_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ParentExecutionInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_ParentExecutionInfo.Merge(m, src) -} -func (m *ParentExecutionInfo) XXX_Size() int { - return m.Size() -} -func (m *ParentExecutionInfo) XXX_DiscardUnknown() { - xxx_messageInfo_ParentExecutionInfo.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ParentExecutionInfo proto.InternalMessageInfo +// Deprecated: Use ParentExecutionInfo.ProtoReflect.Descriptor instead. +func (*ParentExecutionInfo) Descriptor() ([]byte, []int) { + return file_uber_cadence_shared_v1_workflow_proto_rawDescGZIP(), []int{0} +} -func (m *ParentExecutionInfo) GetDomainId() string { - if m != nil { - return m.DomainId +func (x *ParentExecutionInfo) GetDomainId() string { + if x != nil { + return x.DomainId } return "" } -func (m *ParentExecutionInfo) GetDomainName() string { - if m != nil { - return m.DomainName +func (x *ParentExecutionInfo) GetDomainName() string { + if x != nil { + return x.DomainName } return "" } -func (m *ParentExecutionInfo) GetWorkflowExecution() *v1.WorkflowExecution { - if m != nil { - return m.WorkflowExecution +func (x *ParentExecutionInfo) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (m *ParentExecutionInfo) GetInitiatedId() int64 { - if m != nil { - return m.InitiatedId +func (x *ParentExecutionInfo) GetInitiatedId() int64 { + if x != nil { + return x.InitiatedId } return 0 } -func init() { - proto.RegisterEnum("uber.cadence.shared.v1.WorkflowState", WorkflowState_name, WorkflowState_value) - proto.RegisterType((*ParentExecutionInfo)(nil), "uber.cadence.shared.v1.ParentExecutionInfo") -} - -func init() { - proto.RegisterFile("github.com/uber/cadence/.gen/proto/shared/v1/workflow.proto", fileDescriptor_7ca73ea33aecbb95) -} +var File_uber_cadence_shared_v1_workflow_proto protoreflect.FileDescriptor -var fileDescriptor_7ca73ea33aecbb95 = []byte{ - // 404 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0x41, 0x8b, 0xd3, 0x40, - 0x1c, 0xc5, 0x33, 0xdb, 0x75, 0xd9, 0x9d, 0x2a, 0xc4, 0x59, 0x5c, 0xe3, 0x2a, 0x63, 0x14, 0x94, - 0xe2, 0x21, 0x21, 0x7a, 0x17, 0xba, 0x36, 0xca, 0x60, 0x37, 0x29, 0xb3, 0xed, 0x16, 0x7a, 0x09, - 0xd3, 0x64, 0x8a, 0x83, 0x66, 0xa6, 0xc4, 0x34, 0xf5, 0xe8, 0x47, 0xf0, 0x63, 0xf8, 0x51, 0xbc, - 0x08, 0x05, 0x2f, 0x3d, 0xda, 0xf4, 0xe2, 0xb1, 0x1f, 0x41, 0xd2, 0xb4, 0x85, 0x86, 0x5e, 0xdf, - 0xef, 0xbd, 0xc7, 0x83, 0xff, 0x1f, 0xbe, 0x98, 0x0c, 0x79, 0x62, 0x87, 0x2c, 0xe2, 0x32, 0xe4, - 0xf6, 0xd7, 0x4f, 0x2c, 0xe1, 0x91, 0x9d, 0x39, 0xf6, 0x54, 0x25, 0x9f, 0x47, 0x5f, 0xd4, 0xd4, - 0x1a, 0x27, 0x2a, 0x55, 0xe8, 0xa2, 0xb0, 0x59, 0x1b, 0x9b, 0x55, 0xda, 0xac, 0xcc, 0xb9, 0x34, - 0xf7, 0xe2, 0x6c, 0x2c, 0x8a, 0x6c, 0xa8, 0xe2, 0x58, 0xc9, 0x32, 0xf9, 0xfc, 0x37, 0x80, 0xe7, - 0x1d, 0x96, 0x70, 0x99, 0xba, 0xdf, 0x78, 0x38, 0x49, 0x85, 0x92, 0x44, 0x8e, 0x14, 0x7a, 0x0c, - 0xcf, 0x22, 0x15, 0x33, 0x21, 0x03, 0x11, 0x19, 0xc0, 0x04, 0x8d, 0x33, 0x7a, 0x5a, 0x0a, 0x24, - 0x42, 0x4f, 0x61, 0x7d, 0x03, 0x25, 0x8b, 0xb9, 0x71, 0xb4, 0xc6, 0xb0, 0x94, 0x3c, 0x16, 0x73, - 0xd4, 0x83, 0x68, 0xbb, 0x30, 0xe0, 0xdb, 0x5e, 0xa3, 0x66, 0x82, 0x46, 0xfd, 0xf5, 0x4b, 0x6b, - 0x6f, 0x2c, 0x1b, 0x0b, 0x2b, 0x73, 0xac, 0xfe, 0xc6, 0xbe, 0x5b, 0x41, 0xef, 0x4f, 0xab, 0x12, - 0x7a, 0x06, 0xef, 0x0a, 0x29, 0x52, 0xc1, 0x52, 0x1e, 0x15, 0xbb, 0x8e, 0x4d, 0xd0, 0xa8, 0xd1, - 0xfa, 0x4e, 0x23, 0xd1, 0xab, 0x3f, 0x00, 0xde, 0xdb, 0x76, 0xdd, 0xa4, 0x2c, 0xe5, 0xe8, 0x12, - 0x5e, 0xf4, 0x7d, 0xfa, 0xf1, 0x7d, 0xdb, 0xef, 0x07, 0x37, 0xdd, 0x66, 0xd7, 0x0d, 0x88, 0x77, - 0xdb, 0x6c, 0x93, 0x96, 0xae, 0x1d, 0x60, 0xef, 0xa8, 0xdb, 0xec, 0xba, 0x2d, 0x1d, 0x1c, 0x60, - 0xb4, 0xe7, 0x79, 0xc4, 0xfb, 0xa0, 0x1f, 0xa1, 0x27, 0xd0, 0xa8, 0xe6, 0xfc, 0xeb, 0x4e, 0xdb, - 0x2d, 0x92, 0x35, 0xf4, 0x08, 0x3e, 0xa8, 0xd0, 0x81, 0x7f, 0x7d, 0x45, 0x5c, 0xfd, 0x18, 0x3d, - 0x84, 0xe7, 0x15, 0x74, 0xeb, 0x93, 0x96, 0x7e, 0xe7, 0x60, 0x23, 0xa5, 0xbd, 0x4e, 0xd1, 0x78, - 0x72, 0xf5, 0x76, 0xb6, 0xc0, 0xda, 0x7c, 0x81, 0xb5, 0xd5, 0x02, 0x83, 0xef, 0x39, 0x06, 0x3f, - 0x73, 0x0c, 0x7e, 0xe5, 0x18, 0xcc, 0x72, 0x0c, 0xfe, 0xe6, 0x18, 0xfc, 0xcb, 0xb1, 0xb6, 0xca, - 0x31, 0xf8, 0xb1, 0xc4, 0xda, 0x6c, 0x89, 0xb5, 0xf9, 0x12, 0x6b, 0x83, 0xd3, 0xf2, 0x11, 0x32, - 0x67, 0x78, 0xb2, 0x3e, 0xf6, 0x9b, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0x45, 0x3e, 0x52, 0x7d, - 0x4f, 0x02, 0x00, 0x00, +var file_uber_cadence_shared_v1_workflow_proto_rawDesc = []byte{ + 0x0a, 0x25, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x1a, + 0x20, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x22, 0xcd, 0x01, 0x0a, 0x13, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x55, 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x75, 0x62, 0x65, 0x72, 0x2e, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x77, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, + 0x0a, 0x0c, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x49, + 0x64, 0x2a, 0xd3, 0x01, 0x0a, 0x0d, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x12, 0x1a, 0x0a, 0x16, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, + 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, + 0x1a, 0x0a, 0x16, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x53, 0x54, 0x41, 0x54, + 0x45, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x57, + 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x52, 0x55, + 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x1c, 0x0a, 0x18, 0x57, 0x4f, 0x52, 0x4b, 0x46, + 0x4c, 0x4f, 0x57, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, + 0x54, 0x45, 0x44, 0x10, 0x03, 0x12, 0x19, 0x0a, 0x15, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, + 0x57, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x5a, 0x4f, 0x4d, 0x42, 0x49, 0x45, 0x10, 0x04, + 0x12, 0x17, 0x0a, 0x13, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x53, 0x54, 0x41, + 0x54, 0x45, 0x5f, 0x56, 0x4f, 0x49, 0x44, 0x10, 0x05, 0x12, 0x1c, 0x0a, 0x18, 0x57, 0x4f, 0x52, + 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x43, 0x4f, 0x52, 0x52, + 0x55, 0x50, 0x54, 0x45, 0x44, 0x10, 0x06, 0x42, 0x37, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x64, 0x65, 0x6e, + 0x63, 0x65, 0x2f, 0x2e, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x64, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x76, 0x31, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func (x WorkflowState) String() string { - s, ok := WorkflowState_name[int32(x)] - if ok { - return s - } - return strconv.Itoa(int(x)) -} -func (this *ParentExecutionInfo) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ParentExecutionInfo) - if !ok { - that2, ok := that.(ParentExecutionInfo) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.DomainId != that1.DomainId { - return false - } - if this.DomainName != that1.DomainName { - return false - } - if !this.WorkflowExecution.Equal(that1.WorkflowExecution) { - return false - } - if this.InitiatedId != that1.InitiatedId { - return false - } - return true -} -func (this *ParentExecutionInfo) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 8) - s = append(s, "&sharedv1.ParentExecutionInfo{") - s = append(s, "DomainId: "+fmt.Sprintf("%#v", this.DomainId)+",\n") - s = append(s, "DomainName: "+fmt.Sprintf("%#v", this.DomainName)+",\n") - if this.WorkflowExecution != nil { - s = append(s, "WorkflowExecution: "+fmt.Sprintf("%#v", this.WorkflowExecution)+",\n") - } - s = append(s, "InitiatedId: "+fmt.Sprintf("%#v", this.InitiatedId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func valueToGoStringWorkflow(v interface{}, typ string) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) -} -func (m *ParentExecutionInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ParentExecutionInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ParentExecutionInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.InitiatedId != 0 { - i = encodeVarintWorkflow(dAtA, i, uint64(m.InitiatedId)) - i-- - dAtA[i] = 0x20 - } - if m.WorkflowExecution != nil { - { - size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintWorkflow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.DomainName) > 0 { - i -= len(m.DomainName) - copy(dAtA[i:], m.DomainName) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.DomainName))) - i-- - dAtA[i] = 0x12 - } - if len(m.DomainId) > 0 { - i -= len(m.DomainId) - copy(dAtA[i:], m.DomainId) - i = encodeVarintWorkflow(dAtA, i, uint64(len(m.DomainId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} +var ( + file_uber_cadence_shared_v1_workflow_proto_rawDescOnce sync.Once + file_uber_cadence_shared_v1_workflow_proto_rawDescData = file_uber_cadence_shared_v1_workflow_proto_rawDesc +) -func encodeVarintWorkflow(dAtA []byte, offset int, v uint64) int { - offset -= sovWorkflow(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *ParentExecutionInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - l = len(m.DomainName) - if l > 0 { - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.WorkflowExecution != nil { - l = m.WorkflowExecution.Size() - n += 1 + l + sovWorkflow(uint64(l)) - } - if m.InitiatedId != 0 { - n += 1 + sovWorkflow(uint64(m.InitiatedId)) - } - return n +func file_uber_cadence_shared_v1_workflow_proto_rawDescGZIP() []byte { + file_uber_cadence_shared_v1_workflow_proto_rawDescOnce.Do(func() { + file_uber_cadence_shared_v1_workflow_proto_rawDescData = protoimpl.X.CompressGZIP(file_uber_cadence_shared_v1_workflow_proto_rawDescData) + }) + return file_uber_cadence_shared_v1_workflow_proto_rawDescData } -func sovWorkflow(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozWorkflow(x uint64) (n int) { - return sovWorkflow(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *ParentExecutionInfo) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ParentExecutionInfo{`, - `DomainId:` + fmt.Sprintf("%v", this.DomainId) + `,`, - `DomainName:` + fmt.Sprintf("%v", this.DomainName) + `,`, - `WorkflowExecution:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecution), "WorkflowExecution", "v1.WorkflowExecution", 1) + `,`, - `InitiatedId:` + fmt.Sprintf("%v", this.InitiatedId) + `,`, - `}`, - }, "") - return s +var file_uber_cadence_shared_v1_workflow_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_uber_cadence_shared_v1_workflow_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_uber_cadence_shared_v1_workflow_proto_goTypes = []interface{}{ + (WorkflowState)(0), // 0: uber.cadence.shared.v1.WorkflowState + (*ParentExecutionInfo)(nil), // 1: uber.cadence.shared.v1.ParentExecutionInfo + (*v1.WorkflowExecution)(nil), // 2: uber.cadence.api.v1.WorkflowExecution +} +var file_uber_cadence_shared_v1_workflow_proto_depIdxs = []int32{ + 2, // 0: uber.cadence.shared.v1.ParentExecutionInfo.workflow_execution:type_name -> uber.cadence.api.v1.WorkflowExecution + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name } -func valueToStringWorkflow(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *ParentExecutionInfo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ParentExecutionInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ParentExecutionInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthWorkflow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthWorkflow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WorkflowExecution == nil { - m.WorkflowExecution = &v1.WorkflowExecution{} - } - if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field InitiatedId", wireType) - } - m.InitiatedId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowWorkflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.InitiatedId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipWorkflow(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthWorkflow - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthWorkflow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipWorkflow(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowWorkflow - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break +func init() { file_uber_cadence_shared_v1_workflow_proto_init() } +func file_uber_cadence_shared_v1_workflow_proto_init() { + if File_uber_cadence_shared_v1_workflow_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_uber_cadence_shared_v1_workflow_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ParentExecutionInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil } } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowWorkflow - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowWorkflow - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthWorkflow - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupWorkflow - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthWorkflow - } - if depth == 0 { - return iNdEx, nil - } } - return 0, io.ErrUnexpectedEOF + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_uber_cadence_shared_v1_workflow_proto_rawDesc, + NumEnums: 1, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_uber_cadence_shared_v1_workflow_proto_goTypes, + DependencyIndexes: file_uber_cadence_shared_v1_workflow_proto_depIdxs, + EnumInfos: file_uber_cadence_shared_v1_workflow_proto_enumTypes, + MessageInfos: file_uber_cadence_shared_v1_workflow_proto_msgTypes, + }.Build() + File_uber_cadence_shared_v1_workflow_proto = out.File + file_uber_cadence_shared_v1_workflow_proto_rawDesc = nil + file_uber_cadence_shared_v1_workflow_proto_goTypes = nil + file_uber_cadence_shared_v1_workflow_proto_depIdxs = nil } - -var ( - ErrInvalidLengthWorkflow = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowWorkflow = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupWorkflow = fmt.Errorf("proto: unexpected end of group") -) diff --git a/.gitignore b/.gitignore index 79e2e001efe..eee0809d282 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ .gobincache/ .tmp/ .vscode/ +.build/ /vendor /_vendor-* /cadence diff --git a/Makefile b/Makefile index dbbbf68c81c..e0a1dfcbf39 100644 --- a/Makefile +++ b/Makefile @@ -127,36 +127,61 @@ define NEWLINE endef -proto: proto-lint proto-compile proto-fix-path proto-fix-imports proto-go-imports copyright +proto: proto-lint proto-compile proto-go-imports copyright PROTO_ROOT := proto PROTO_OUT := .gen/proto PROTO_FILES = $(shell find ./$(PROTO_ROOT) -name "*.proto" | grep -v "persistenceblobs") PROTO_DIRS = $(sort $(dir $(PROTO_FILES))) -proto-lint: +BUILD_BIN = .build/bin +$(BUILD_BIN): + mkdir -p $(BUILD_BIN) + +OS = $(shell uname -s) +ARCH = $(shell uname -m) + +# https://docs.buf.build/ +BUF_BIN = $(BUILD_BIN)/buf +BUF_VERSION = 0.36.0 +BUF_URL = https://github.com/bufbuild/buf/releases/download/v$(BUF_VERSION)/buf-$(OS)-$(ARCH) +$(BUF_BIN): | $(BUILD_BIN) + @echo "Getting buf $(BUF_VERSION)" + curl -sSL $(BUF_URL) -o $(BUF_BIN) + chmod +x $(BUF_BIN) + +# https://www.grpc.io/docs/languages/go/quickstart/ +PROTOC_BIN = $(BUILD_BIN)/protoc +PROTOC_VERSION = 3.14.0 +PROTOC_GEN_GO_VERSION = 1.25.0 +PROTOC_GEN_GO_GRPC_VERSION = 1.1.0 +PROTOC_URL = https://github.com/protocolbuffers/protobuf/releases/download/v$(PROTOC_VERSION)/protoc-$(PROTOC_VERSION)-$(subst Darwin,osx,$(OS))-$(ARCH).zip +$(PROTOC_BIN): | $(BUILD_BIN) + @echo "Getting protoc $(PROTOC_VERSION)" + curl -sSL $(PROTOC_URL) -o $(PROTOC_BIN).zip + unzip $(PROTOC_BIN).zip -d $(PROTOC_BIN)-files + cp $(PROTOC_BIN)-files/bin/protoc $(PROTOC_BIN) + rm $(PROTOC_BIN).zip + +proto-lint: $(BUF_BIN) cd $(PROTO_ROOT) && buf check lint -proto-compile: +proto-compile: $(PROTOC_BIN) + GOOS= GOARCH= gobin -mod=readonly google.golang.org/protobuf/cmd/protoc-gen-go@v$(PROTOC_GEN_GO_VERSION) + GOOS= GOARCH= gobin -mod=readonly google.golang.org/grpc/cmd/protoc-gen-go-grpc@v$(PROTOC_GEN_GO_GRPC_VERSION) mkdir -p $(PROTO_OUT) $(foreach PROTO_DIR, $(PROTO_DIRS), \ - protoc \ - -I=$(PROTO_ROOT)/public -I=$(PROTO_ROOT)/internal \ - --gogoslick_out=Mgoogle/protobuf/wrappers.proto=github.com/gogo/protobuf/types,plugins=grpc,paths=source_relative:$(PROTO_OUT) \ + $(PROTOC_BIN) \ + -I=$(PROTO_ROOT)/public \ + -I=$(PROTO_ROOT)/internal \ + -I=$(PROTOC_BIN)-files/include \ + --go_out=. \ + --go_opt=module=$(PROJECT_ROOT) \ + --go-grpc_out=. \ + --go-grpc_opt=module=$(PROJECT_ROOT) \ $(PROTO_DIR)*.proto \ $(NEWLINE)) -# Proto compiler puts generated files based on proto package. -# As all proto package have uber.cadence prefix, this make final package to be: -# github.com/uber/cadence/.gen/proto/uber/cadence/ -# Next two fixes removes extra uber/cadence within file path and fixes import paths accordingly. - -proto-fix-path: - cp -r $(PROTO_OUT)/uber/cadence/* $(PROTO_OUT) && rm -rf $(PROTO_OUT)/uber - -proto-fix-imports: - find ./$(PROTO_OUT) -name "*.pb.go" | xargs sed -i '' -e 's;"uber/cadence;"$(PROJECT_ROOT)/$(PROTO_OUT);g' - proto-go-imports: goimports -w $(PROTO_OUT) diff --git a/cmd/tools/copyright/licensegen.go b/cmd/tools/copyright/licensegen.go index 0e586eee9af..0ac95a87bff 100644 --- a/cmd/tools/copyright/licensegen.go +++ b/cmd/tools/copyright/licensegen.go @@ -157,11 +157,10 @@ func (task *addLicenseHeaderTask) handleFile(path string, fileInfo os.FileInfo, return err } - if fileInfo.IsDir() && strings.HasPrefix(fileInfo.Name(), "_vendor-") { - return filepath.SkipDir - } - if fileInfo.IsDir() { + if strings.HasPrefix(fileInfo.Name(), "_vendor-") || fileInfo.Name() == ".build" { + return filepath.SkipDir + } return nil } diff --git a/go.mod b/go.mod index 225c45f45cd..984838be815 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/uber/cadence go 1.12 require ( - cloud.google.com/go v0.38.0 + cloud.google.com/go/storage v1.10.0 github.com/DataDog/zstd v1.4.0 // indirect github.com/Shopify/sarama v1.23.0 github.com/apache/thrift v0.0.0-20161221203622-b2a4d4ae21c7 @@ -21,8 +21,8 @@ require ( github.com/fatih/structtag v1.1.0 // indirect github.com/go-sql-driver/mysql v1.5.0 github.com/gocql/gocql v0.0.0-20191126110522-1982a06ad6b9 - github.com/golang/mock v1.3.1 - github.com/google/uuid v1.1.1 + github.com/golang/mock v1.4.4 + github.com/google/uuid v1.1.2 github.com/hashicorp/go-version v1.2.0 github.com/iancoleman/strcase v0.0.0-20190422225806-e506e3ef7365 github.com/jcmturner/gofork v1.0.0 // indirect @@ -64,14 +64,13 @@ require ( go.uber.org/thriftrw v1.20.2 go.uber.org/yarpc v1.42.0 go.uber.org/zap v1.12.0 - golang.org/x/net v0.0.0-20200822124328-c89045814202 - golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 - golang.org/x/time v0.0.0-20190308202827-9d24e82272b4 - golang.org/x/tools v0.0.0-20200917161530-60aba8ac75fb + golang.org/x/net v0.0.0-20201031054903-ff519b6c9102 + golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58 + golang.org/x/time v0.0.0-20191024005414-555d28b269f0 + golang.org/x/tools v0.1.0 gonum.org/v1/gonum v0.7.0 - google.golang.org/api v0.14.0 - google.golang.org/appengine v1.6.1 // indirect - google.golang.org/protobuf v1.25.0 // indirect + google.golang.org/api v0.36.0 + google.golang.org/grpc v1.35.0 // indirect gopkg.in/jcmturner/goidentity.v3 v3.0.0 // indirect gopkg.in/jcmturner/gokrb5.v7 v7.3.0 // indirect gopkg.in/validator.v2 v2.0.0-20180514200540-135c24b11c19 diff --git a/go.sum b/go.sum index c6f2bd2a943..ff4def6b75e 100644 --- a/go.sum +++ b/go.sum @@ -2,9 +2,43 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMT cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.38.0 h1:ROfEUZz+Gh5pa62DJWXSaonyu3StP6EA6lPEXPI6mCo= cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= +cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= +cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= +cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= +cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= +cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= +cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= +cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= +cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= +cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= +cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= +cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= +cloud.google.com/go v0.72.0 h1:eWRCuwubtDrCJG0oSUMgnsbD4CmPFQF2ei4OFbXvwww= +cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= +cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= +cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= +cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= +cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= +cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= +cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= +cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= +cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= +cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= +cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= +cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= +cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= +cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= +cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= +cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= +cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= +cloud.google.com/go/storage v1.10.0 h1:STgFzyU5/8miMl0//zKh2aQeTyeaUH3WN9bSUiJ09bA= +cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= code.cloudfoundry.org/bytefmt v0.0.0-20180906201452-2aa6f33b730c/go.mod h1:wN/zk7mhREp/oviagqUXY3EwuHhWyOvAdsn5Y4CzOrc= +dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/DataDog/zstd v1.3.6-0.20190409195224-796139022798/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo= github.com/DataDog/zstd v1.4.0 h1:vhoV+DUHnRZdKW1i5UMjAk2G4JY8wN4ayRfYDNdEhwo= github.com/DataDog/zstd v1.4.0/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo= @@ -42,7 +76,12 @@ github.com/cch123/elasticsql v0.0.0-20190321073543-a1a440758eb9/go.mod h1:h4Tt1A github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/cespare/xxhash/v2 v2.1.0 h1:yTUvW7Vhb89inJ+8irsUqiWjh8iT6sQPZiQzI6ReGkA= github.com/cespare/xxhash/v2 v2.1.0/go.mod h1:dgIUBU3pDso/gPgZ1osOZ0iQf77oPR28Tjxl5dIMyVM= +github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= +github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= +github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= +github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd h1:qMd81Ts1T2OTKmB4acZcyKaMtRnY5Y44NuXGX2GFJ1w= github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d h1:U+s90UTSYgptZMwQh2aRr3LuazLJIa+Pg3Kc1ylSYVY= @@ -65,7 +104,10 @@ github.com/eapache/queue v1.1.0 h1:YOEu7KNc61ntiQlcEeUIoDTJ2o8mQznoNvUhiigpIqc= github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= github.com/emirpasic/gods v0.0.0-20190624094223-e689965507ab h1:eTc1vwMHNg4WtS95PtYi3FFCKwlPjtN/Lw9IALTRtd8= github.com/emirpasic/gods v0.0.0-20190624094223-e689965507ab/go.mod h1:YfzfFFoVP/catgzJb4IKIqXjX78Ha8FMSDh3ymbK86o= +github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= +github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/facebookgo/clock v0.0.0-20150410010913-600d898af40a h1:yDWHCSQ40h88yih2JAcL6Ls/kVkSE8GFACTGVnMPruw= github.com/facebookgo/clock v0.0.0-20150410010913-600d898af40a/go.mod h1:7Ga40egUymuWXxAe151lTNnCv97MddSOVsjpPPkityA= @@ -83,6 +125,9 @@ github.com/frankban/quicktest v1.4.0 h1:rCSCih1FnSWJEel/eub9wclBSqpF2F/PuvxUWGWn github.com/frankban/quicktest v1.4.0/go.mod h1:36zfPVQyHxymz4cH7wlDmVwDrJuljRB60qkgn7rorfQ= github.com/fsnotify/fsnotify v1.4.7 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV9I= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= +github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= @@ -106,13 +151,24 @@ github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekf github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6 h1:ZgQEtGgCBiWRM39fZuwSd1LwSqqSW0hOdXCYYDX0R3I= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e h1:1r7pUrabqp18hOBcwBwiTsbnFeTZHV9eER/QT5JVZxY= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= github.com/golang/mock v1.3.1 h1:qGJ6qTW+x6xX/my+8YUVl4WNpX9B7+/l2tRsHGZ7f2s= github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= +github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.4 h1:l75CXGRSwbaYNpl/Z2X1XIIAMSCquvXgpVZDhwEIJsc= +github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= @@ -120,24 +176,43 @@ github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:W github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= github.com/golang/protobuf v1.4.1 h1:ZFgWrT+bLgsYPirOnRfKLYJLvssAegOj/hgyMFdJZe0= github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= +github.com/golang/protobuf v1.4.2 h1:+Z5KGCizgyZCbGh1KZqA0fcLLkwbsjIzS4aV2v7wJX0= +github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.4.3 h1:JjCZWpVbqXDqFVmTfYWEVTMIYrL/NPdPSCHPJ0T/raM= +github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/golang/snappy v0.0.0-20170215233205-553a64147049/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.1 h1:Qgr9rKW7uDUkrbSmQeiDsGa8SjGyCOGtuasMWwvp2P4= github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.2 h1:X2ev0eStA3AbceY54o37/0PQ/UWqKEiiO2dKL5OPaFM= github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.4 h1:L8R9j+yAqZuZjsqh/z+F1NCffTKKLShY6zXTItVIZ8M= +github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no= github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= +github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/martian/v3 v3.1.0 h1:wCKgOCHuUEVfsaQLpPSJb7VdYCdTVZQAuOdYm1yc/60= +github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= -github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY= -github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.1.2 h1:EVhdT+1Kseyi1/pUmXKaFxYsDNy9RQYkMWRH68J/W7Y= +github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5 h1:sjZBwGj9Jlw33ImPtvFviGYvseOtDM7hkSKB7+Tv3SM= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= @@ -153,6 +228,8 @@ github.com/hpcloud/tail v1.0.0 h1:nfCOvKYfkgYP8hkirhJocXT2+zOD8yUNjXaWfTlyFKI= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/iancoleman/strcase v0.0.0-20190422225806-e506e3ef7365 h1:ECW73yc9MY7935nNYXUkK7Dz17YuSUI9yqRqYS8aBww= github.com/iancoleman/strcase v0.0.0-20190422225806-e506e3ef7365/go.mod h1:SK73tn/9oHe+/Y0h39VT4UCxmurVJkR5NA7kMEAOgSE= +github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/jcmturner/gofork v0.0.0-20190328161633-dc7c13fece03/go.mod h1:MK8+TM0La+2rjBD4jE12Kj1pCCxK7d2LK/UM3ncEo0o= github.com/jcmturner/gofork v1.0.0 h1:J7uCkflzTEhUZ64xqKnkDxq3kzc96ajM1Gli5ktUem8= github.com/jcmturner/gofork v1.0.0/go.mod h1:MK8+TM0La+2rjBD4jE12Kj1pCCxK7d2LK/UM3ncEo0o= @@ -169,6 +246,8 @@ github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFF github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= +github.com/jstemmer/go-junit-report v0.9.1 h1:6QPYqodiu3GuPL+7mfx+NwDdp2eTkp9IfEUpgAwUN0o= +github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/jung-kurt/gofpdf v1.0.3-0.20190309125859-24315acbbda5/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes= github.com/kisielk/errcheck v1.2.0 h1:reN85Pxc5larApoH1keMBiu2GWtPqXQ1nc9gx+jOU+E= @@ -326,10 +405,18 @@ github.com/xdg/stringprep v1.0.0 h1:d9X0esnoa3dFsV0FG35rAT0RIhYFlPq7MiP+DW89La0= github.com/xdg/stringprep v1.0.0/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y= github.com/xwb1989/sqlparser v0.0.0-20180606152119-120387863bf2 h1:zzrxE1FKn5ryBNl9eKOeqQ58Y/Qpo3Q9QNxKHX5uzzQ= github.com/xwb1989/sqlparser v0.0.0-20180606152119-120387863bf2/go.mod h1:hzfGeIUDq/j97IG+FhNqkowIyEcD88LrW6fyU3K3WqY= +github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= +go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= +go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.4 h1:LYy1Hy3MJdrCdMwwzxA/dRok4ejH+RwNGbuoD9fCjto= go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.5 h1:dntmOdLpSpHlVqbW5Eay97DelsZHe+55D+xC6i0dDS0= +go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= go.uber.org/atomic v1.5.1 h1:rsqfU5vBkVknbhUGbAUwQKR2H4ItV8tjJ+6kJX4cxHM= go.uber.org/atomic v1.5.1/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= @@ -370,17 +457,38 @@ golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2 h1:y102fOLFqhV41b+4GPiJoa0k/x+pJcEi2/HB1Y5T6fU= golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= +golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= +golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= +golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= +golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6 h1:QE6XYQK6naiK1EPAe1g/ILLxN5RBoH5xkJk3CqlMI/Y= +golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs= +golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= +golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f h1:J5lckAjkw6qYlOZNj90mLYNTEKDvWeuc1yieZ8qUzUE= golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= +golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20200302205851-738671d3881b h1:Wh+f8QHJXR411sJR8/vRBTZ7YapZaRvUcLFFJhusH0k= +golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= +golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= +golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0 h1:RM4zey1++hCTbCVQfnWeKs9/IEsaBLA8vTkd0WVtmH4= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -391,47 +499,103 @@ golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73r golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200822124328-c89045814202 h1:VvcQYSHwXgi7W+TpUR6A9g6Up98WAHf3f/ulnJ62IyA= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20201021035429-f5854403a974 h1:IX6qOQeG5uLjB/hjjwjedwfjND0hgjPMMyO1RoIXQNI= +golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201031054903-ff519b6c9102 h1:42cLlJJdEh+ySyeUUbEQ5bsTiq8voBeTuweGVkY6Puw= +golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 h1:SVwTIAaPC2U/AvvLNZ2a7OVsmBpC8L5BlwK1whH3hm0= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58 h1:Mj83v+wSRNEar42a/MQgxk9X42TdEmrOl9i+y8WbxLo= +golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190403152447-81d4e9dc473e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191010194322-b09406accb47/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd h1:xhmwyvizuTgC2qz7ZlMluP20uW+C3Rm0FD/WLDX8884= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4 h1:myAQVi0cGEoqQVR5POX+8RR2mrocKqNN1hmeMqhX27k= +golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.4 h1:0YWbFKbhXG/wIiuHDSKpS0Iy7FSA+u45VtBMfQcFTTc= +golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/time v0.0.0-20170927054726-6dc17368e09b/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4 h1:SvFZT6jyqRaOeXpc5h/JSfZenJ2O330aBsf7JfSUXmQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20191024005414-555d28b269f0 h1:/5xXl8Y5W96D+TtHSlonuFqGHIWVuyCkGJLwGh9JJFs= +golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180525024113-a5b4c53f6e8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -439,20 +603,51 @@ golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGm golang.org/x/tools v0.0.0-20190206041539-40960b6deb8e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200127195909-ed30b9180dd3/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200221224223-e1da425f72fd/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200917161530-60aba8ac75fb h1:MFXedTy7VQbGgq8X8eb+cVL9+jvyzwPk3Ub7ug4cnEQ= -golang.org/x/tools v0.0.0-20200917161530-60aba8ac75fb/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU= +golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= +golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= +golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.1.0 h1:po9/4sTYwZU9lPhi1tOrb4hCv3qrhiQ77LZfGa2OjwY= +golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -465,36 +660,97 @@ gonum.org/v1/netlib v0.0.0-20190313105609-8cb42192e0e0 h1:OE9mWmgKkjJyEmDAAtGMPj gonum.org/v1/netlib v0.0.0-20190313105609-8cb42192e0e0/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw= gonum.org/v1/plot v0.0.0-20190515093506-e2840ee46a6b/go.mod h1:Wt8AAjI+ypCyYX3nZBvf6cAIx93T+c/OS2HFAYskSZc= google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= +google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= +google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= google.golang.org/api v0.14.0 h1:uMf5uLi4eQMRrMKhCplNik4U4H8Z6C1br3zOtAa/aDE= google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= +google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= +google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= +google.golang.org/api v0.36.0 h1:l2Nfbl2GPXdWorv+dT2XfinX2jOOw4zv1VhLstx+6rE= +google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.6.1 h1:QzqyMA1tlu6CgqCDUtU9V+ZKhLFT2dkJuANu5QaxI3I= google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= +google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= +google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= google.golang.org/genproto v0.0.0-20180518175338-11a468237815/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= +google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= +google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 h1:+kGHl1aib/qcwaRi1CbqBZ1rk19r85MNUf8HaBghugY= google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= +google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= +google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e h1:wYR00/Ht+i/79g/gzhdehBgLIJCklKoc8Q/NebdzzpY= +google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/grpc v1.12.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= +google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.23.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= +google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= google.golang.org/grpc v1.27.0 h1:rRYRFMVgRv6E0D70Skyfsr28tDXIuuPZyWGMPdMcnXg= google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= +google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= +google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= +google.golang.org/grpc v1.35.0 h1:TwIQcH3es+MojMVojxxfQ3l3OF2KzlRxML2xZq0kRo8= +google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c= google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= @@ -530,4 +786,10 @@ honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWh honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.1-2019.2.3 h1:3JgtbtFHMiCmsznwGVTUWbgGov+pVqnlf1dEJTNAXeM= honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= +honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +honnef.co/go/tools v0.0.1-2020.1.4 h1:UoveltGrhghAA7ePc+e+QYDHXrBps2PqFZiHkGR/xK8= +honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4= +rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= +rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= diff --git a/proto/buf.yaml b/proto/buf.yaml index d0ccded8658..5c2bfcbd71a 100644 --- a/proto/buf.yaml +++ b/proto/buf.yaml @@ -8,5 +8,3 @@ lint: # Uber style rules: https://docs.buf.build/migration-prototool/#uber1-uber - DEFAULT enum_zero_value_suffix: _INVALID service_suffix: API - ignore: - - dependencies diff --git a/proto/internal/uber/cadence/admin/v1/service.proto b/proto/internal/uber/cadence/admin/v1/service.proto index 61be92f4b77..eb9354721f2 100644 --- a/proto/internal/uber/cadence/admin/v1/service.proto +++ b/proto/internal/uber/cadence/admin/v1/service.proto @@ -22,10 +22,9 @@ syntax = "proto3"; package uber.cadence.admin.v1; -option go_package = "adminv1"; +option go_package = "github.com/uber/cadence/.gen/proto/admin/v1;adminv1"; import "google/protobuf/timestamp.proto"; -import "dependencies/gogoproto.proto"; import "uber/cadence/api/v1/common.proto"; import "uber/cadence/api/v1/visibility.proto"; import "uber/cadence/shared/v1/cluster.proto"; @@ -130,7 +129,7 @@ message RemoveTaskRequest { int32 shard_id = 1; shared.v1.TaskType task_type = 2; int64 task_id = 3; - google.protobuf.Timestamp visibility_time = 4 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp visibility_time = 4; } message RemoveTaskResponse { diff --git a/proto/internal/uber/cadence/history/v1/service.proto b/proto/internal/uber/cadence/history/v1/service.proto index 04c6100db0f..28a96ea5dc3 100644 --- a/proto/internal/uber/cadence/history/v1/service.proto +++ b/proto/internal/uber/cadence/history/v1/service.proto @@ -22,11 +22,10 @@ syntax = "proto3"; package uber.cadence.history.v1; -option go_package = "historyv1"; +option go_package = "github.com/uber/cadence/.gen/proto/history/v1;historyv1"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; -import "dependencies/gogoproto.proto"; import "uber/cadence/api/v1/common.proto"; import "uber/cadence/api/v1/history.proto"; import "uber/cadence/api/v1/query.proto"; @@ -223,11 +222,11 @@ message StartWorkflowExecutionRequest { string domain_id = 2; shared.v1.ParentExecutionInfo parent_execution_info = 3; int32 attempt = 4; - google.protobuf.Timestamp expiration_time = 5 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp expiration_time = 5; api.v1.ContinueAsNewInitiator continue_as_new_initiator = 6; api.v1.Failure continued_failure = 7; api.v1.Payload last_completion_result = 8; - google.protobuf.Duration first_decision_task_backoff = 9 [(gogoproto.stdduration) = true]; + google.protobuf.Duration first_decision_task_backoff = 9; } message StartWorkflowExecutionResponse { @@ -319,7 +318,7 @@ message GetMutableStateResponse { string client_library_version = 8; string client_feature_version = 9; string client_impl = 10; - google.protobuf.Duration sticky_task_list_schedule_to_start_timeout = 11 [(gogoproto.stdduration) = true]; + google.protobuf.Duration sticky_task_list_schedule_to_start_timeout = 11; int32 event_store_version = 12; bytes current_branch_token = 13; shared.v1.WorkflowState workflow_state = 14; @@ -346,7 +345,7 @@ message PollMutableStateResponse { string client_library_version = 8; string client_feature_version = 9; string client_impl = 10; - google.protobuf.Duration sticky_task_list_schedule_to_start_timeout = 11 [(gogoproto.stdduration) = true]; + google.protobuf.Duration sticky_task_list_schedule_to_start_timeout = 11; bytes current_branch_token = 12; shared.v1.VersionHistories version_histories = 13; shared.v1.WorkflowState workflow_state = 14; @@ -375,8 +374,8 @@ message RecordDecisionTaskStartedResponse { api.v1.TaskList workflow_execution_task_list = 9; int32 event_store_version = 10; bytes branch_token = 11; - google.protobuf.Timestamp scheduled_time = 12 [(gogoproto.stdtime) = true]; - google.protobuf.Timestamp started_time = 13 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp scheduled_time = 12; + google.protobuf.Timestamp started_time = 13; map queries = 14; } @@ -392,9 +391,9 @@ message RecordActivityTaskStartedRequest { message RecordActivityTaskStartedResponse { api.v1.HistoryEvent scheduled_event = 1; - google.protobuf.Timestamp started_time = 2 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp started_time = 2; int32 attempt = 3; - google.protobuf.Timestamp scheduled_time_of_this_attempt = 4 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp scheduled_time_of_this_attempt = 4; api.v1.Payload heartbeat_details = 5; api.v1.WorkflowType workflow_type = 6; string workflow_domain = 7; @@ -511,7 +510,7 @@ message ReplicateEventsV2Response { message SyncShardStatusRequest { string source_cluster = 1; int32 shard_id = 2; - google.protobuf.Timestamp time = 3 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp time = 3; } message SyncShardStatusResponse { @@ -522,10 +521,10 @@ message SyncActivityRequest { api.v1.WorkflowExecution workflow_execution = 2; int64 version = 3; int64 scheduled_id = 4; - google.protobuf.Timestamp scheduled_time = 5 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp scheduled_time = 5; int64 started_id = 6; - google.protobuf.Timestamp started_time = 7 [(gogoproto.stdtime) = true]; - google.protobuf.Timestamp last_heartbeat_time = 8 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp started_time = 7; + google.protobuf.Timestamp last_heartbeat_time = 8; api.v1.Payload details = 9; int32 attempt = 10; api.v1.Failure last_failure = 11; @@ -571,7 +570,7 @@ message RemoveTaskRequest { int32 shard_id = 1; shared.v1.TaskType task_type = 2; int64 task_id = 3; - google.protobuf.Timestamp visibility_time = 4 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp visibility_time = 4; } message RemoveTaskResponse { diff --git a/proto/internal/uber/cadence/indexer/v1/messages.proto b/proto/internal/uber/cadence/indexer/v1/messages.proto index b771a7e3293..9d4f0a2ebea 100644 --- a/proto/internal/uber/cadence/indexer/v1/messages.proto +++ b/proto/internal/uber/cadence/indexer/v1/messages.proto @@ -22,7 +22,7 @@ syntax = "proto3"; package uber.cadence.indexer.v1; -option go_package = "indexerv1"; +option go_package = "github.com/uber/cadence/.gen/proto/indexer/v1;indexerv1"; import "uber/cadence/api/v1/common.proto"; diff --git a/proto/internal/uber/cadence/matching/v1/service.proto b/proto/internal/uber/cadence/matching/v1/service.proto index adb19d7066d..c5d80a69037 100644 --- a/proto/internal/uber/cadence/matching/v1/service.proto +++ b/proto/internal/uber/cadence/matching/v1/service.proto @@ -22,11 +22,10 @@ syntax = "proto3"; package uber.cadence.matching.v1; -option go_package = "matchingv1"; +option go_package = "github.com/uber/cadence/.gen/proto/matching/v1;matchingv1"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; -import "dependencies/gogoproto.proto"; import "uber/cadence/api/v1/common.proto"; import "uber/cadence/api/v1/query.proto"; import "uber/cadence/api/v1/tasklist.proto"; @@ -103,8 +102,8 @@ message PollForDecisionTaskResponse { api.v1.TaskList workflow_execution_task_list = 12; int32 event_store_version = 13; bytes branch_token = 14; - google.protobuf.Timestamp scheduled_time = 15 [(gogoproto.stdtime) = true]; - google.protobuf.Timestamp started_time = 16 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp scheduled_time = 15; + google.protobuf.Timestamp started_time = 16; map queries = 17; } @@ -121,13 +120,13 @@ message PollForActivityTaskResponse { string activity_id = 3; api.v1.ActivityType activity_type = 4; api.v1.Payload input = 5; - google.protobuf.Timestamp scheduled_time = 6 [(gogoproto.stdtime) = true]; - google.protobuf.Timestamp started_time = 7 [(gogoproto.stdtime) = true]; - google.protobuf.Duration schedule_to_close_timeout = 8 [(gogoproto.stdduration) = true]; - google.protobuf.Duration start_to_close_timeout = 9 [(gogoproto.stdduration) = true]; - google.protobuf.Duration heartbeat_timeout = 10 [(gogoproto.stdduration) = true]; + google.protobuf.Timestamp scheduled_time = 6; + google.protobuf.Timestamp started_time = 7; + google.protobuf.Duration schedule_to_close_timeout = 8; + google.protobuf.Duration start_to_close_timeout = 9; + google.protobuf.Duration heartbeat_timeout = 10; int32 attempt = 11; - google.protobuf.Timestamp scheduled_time_of_this_attempt = 12 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp scheduled_time_of_this_attempt = 12; api.v1.Payload heartbeat_details = 13; api.v1.WorkflowType workflow_type = 14; string workflow_domain = 15; @@ -139,7 +138,7 @@ message AddDecisionTaskRequest { api.v1.WorkflowExecution workflow_execution = 2; api.v1.TaskList task_list = 3; int64 schedule_id = 4; - google.protobuf.Duration schedule_to_start_timeout = 5 [(gogoproto.stdduration) = true]; + google.protobuf.Duration schedule_to_start_timeout = 5; shared.v1.TaskSource source = 6; string forwarded_from = 7; } @@ -153,7 +152,7 @@ message AddActivityTaskRequest { string source_domain_id = 3; api.v1.TaskList task_list = 4; int64 schedule_id = 5; - google.protobuf.Duration schedule_to_start_timeout = 6 [(gogoproto.stdduration) = true]; + google.protobuf.Duration schedule_to_start_timeout = 6; shared.v1.TaskSource source = 7; string forwarded_from = 8; } diff --git a/proto/internal/uber/cadence/shared/v1/cluster.proto b/proto/internal/uber/cadence/shared/v1/cluster.proto index e1dae4bfc03..a28221ef9ae 100644 --- a/proto/internal/uber/cadence/shared/v1/cluster.proto +++ b/proto/internal/uber/cadence/shared/v1/cluster.proto @@ -22,7 +22,7 @@ syntax = "proto3"; package uber.cadence.shared.v1; -option go_package = "sharedv1"; +option go_package = "github.com/uber/cadence/.gen/proto/shared/v1;sharedv1"; message HostInfo { string identity = 1; diff --git a/proto/internal/uber/cadence/shared/v1/history.proto b/proto/internal/uber/cadence/shared/v1/history.proto index 97d549e7501..a6e0c7a75aa 100644 --- a/proto/internal/uber/cadence/shared/v1/history.proto +++ b/proto/internal/uber/cadence/shared/v1/history.proto @@ -22,7 +22,7 @@ syntax = "proto3"; package uber.cadence.shared.v1; -option go_package = "sharedv1"; +option go_package = "github.com/uber/cadence/.gen/proto/shared/v1;sharedv1"; import "uber/cadence/api/v1/history.proto"; diff --git a/proto/internal/uber/cadence/shared/v1/queue.proto b/proto/internal/uber/cadence/shared/v1/queue.proto index 57dcb8f1f63..e884e1de276 100644 --- a/proto/internal/uber/cadence/shared/v1/queue.proto +++ b/proto/internal/uber/cadence/shared/v1/queue.proto @@ -22,7 +22,7 @@ syntax = "proto3"; package uber.cadence.shared.v1; -option go_package = "sharedv1"; +option go_package = "github.com/uber/cadence/.gen/proto/shared/v1;sharedv1"; enum TaskType { TASK_TYPE_INVALID = 0; diff --git a/proto/internal/uber/cadence/shared/v1/replication.proto b/proto/internal/uber/cadence/shared/v1/replication.proto index 35308c0e5b2..594a68528c7 100644 --- a/proto/internal/uber/cadence/shared/v1/replication.proto +++ b/proto/internal/uber/cadence/shared/v1/replication.proto @@ -22,10 +22,9 @@ syntax = "proto3"; package uber.cadence.shared.v1; -option go_package = "sharedv1"; +option go_package = "github.com/uber/cadence/.gen/proto/shared/v1;sharedv1"; import "google/protobuf/timestamp.proto"; -import "dependencies/gogoproto.proto"; import "uber/cadence/api/v1/common.proto"; import "uber/cadence/api/v1/domain.proto"; import "uber/cadence/shared/v1/history.proto"; @@ -46,7 +45,7 @@ message ReplicationMessages { message ReplicationTask { ReplicationTaskType task_type = 1; int64 source_task_id = 2; - google.protobuf.Timestamp creation_time = 3 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp creation_time = 3; oneof attributes { DomainTaskAttributes domain_task_attributes = 4; SyncShardStatusTaskAttributes sync_shard_status_task_attributes = 5; @@ -70,7 +69,7 @@ message DomainTaskAttributes { message SyncShardStatusTaskAttributes { string source_cluster = 1; int32 shard_id = 2; - google.protobuf.Timestamp timestamp = 3 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp timestamp = 3; } message SyncActivityTaskAttributes { @@ -78,10 +77,10 @@ message SyncActivityTaskAttributes { api.v1.WorkflowExecution workflow_execution = 2; int64 version = 3; int64 scheduled_id = 4; - google.protobuf.Timestamp scheduled_time = 5 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp scheduled_time = 5; int64 started_id = 6; - google.protobuf.Timestamp started_time = 7 [(gogoproto.stdtime) = true]; - google.protobuf.Timestamp last_heartbeat_time = 8 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp started_time = 7; + google.protobuf.Timestamp last_heartbeat_time = 8; api.v1.Payload details = 9; int32 attempt = 10; api.v1.Failure last_failure = 11; @@ -102,7 +101,7 @@ message HistoryTaskV2Attributes { message FailoverMarkerAttributes { string domain_id = 1; int64 failover_version = 2; - google.protobuf.Timestamp creation_time = 3 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp creation_time = 3; } message FailoverMarkerToken { @@ -148,7 +147,7 @@ message ReplicationToken { } message SyncShardStatus { - google.protobuf.Timestamp timestamp = 1 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp timestamp = 1; } enum DLQType { diff --git a/proto/internal/uber/cadence/shared/v1/tasklist.proto b/proto/internal/uber/cadence/shared/v1/tasklist.proto index 1f44ba0c81e..1218c4d962d 100644 --- a/proto/internal/uber/cadence/shared/v1/tasklist.proto +++ b/proto/internal/uber/cadence/shared/v1/tasklist.proto @@ -22,7 +22,7 @@ syntax = "proto3"; package uber.cadence.shared.v1; -option go_package = "sharedv1"; +option go_package = "github.com/uber/cadence/.gen/proto/shared/v1;sharedv1"; // TaskSource is the source from which a task was produced. enum TaskSource { diff --git a/proto/internal/uber/cadence/shared/v1/workflow.proto b/proto/internal/uber/cadence/shared/v1/workflow.proto index 2fc99f763e4..6b1a3cf6155 100644 --- a/proto/internal/uber/cadence/shared/v1/workflow.proto +++ b/proto/internal/uber/cadence/shared/v1/workflow.proto @@ -22,7 +22,7 @@ syntax = "proto3"; package uber.cadence.shared.v1; -option go_package = "sharedv1"; +option go_package = "github.com/uber/cadence/.gen/proto/shared/v1;sharedv1"; import "uber/cadence/api/v1/common.proto"; diff --git a/proto/public/dependencies/gogoproto.proto b/proto/public/dependencies/gogoproto.proto deleted file mode 100644 index d0951740209..00000000000 --- a/proto/public/dependencies/gogoproto.proto +++ /dev/null @@ -1,144 +0,0 @@ -// Protocol Buffers for Go with Gadgets -// -// Copyright (c) 2013, The GoGo Authors. All rights reserved. -// http://github.com/gogo/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -syntax = "proto2"; -package gogoproto; - -import "google/protobuf/descriptor.proto"; - -option java_package = "com.google.protobuf"; -option java_outer_classname = "GoGoProtos"; -option go_package = "github.com/gogo/protobuf/gogoproto"; - -extend google.protobuf.EnumOptions { - optional bool goproto_enum_prefix = 62001; - optional bool goproto_enum_stringer = 62021; - optional bool enum_stringer = 62022; - optional string enum_customname = 62023; - optional bool enumdecl = 62024; -} - -extend google.protobuf.EnumValueOptions { - optional string enumvalue_customname = 66001; -} - -extend google.protobuf.FileOptions { - optional bool goproto_getters_all = 63001; - optional bool goproto_enum_prefix_all = 63002; - optional bool goproto_stringer_all = 63003; - optional bool verbose_equal_all = 63004; - optional bool face_all = 63005; - optional bool gostring_all = 63006; - optional bool populate_all = 63007; - optional bool stringer_all = 63008; - optional bool onlyone_all = 63009; - - optional bool equal_all = 63013; - optional bool description_all = 63014; - optional bool testgen_all = 63015; - optional bool benchgen_all = 63016; - optional bool marshaler_all = 63017; - optional bool unmarshaler_all = 63018; - optional bool stable_marshaler_all = 63019; - - optional bool sizer_all = 63020; - - optional bool goproto_enum_stringer_all = 63021; - optional bool enum_stringer_all = 63022; - - optional bool unsafe_marshaler_all = 63023; - optional bool unsafe_unmarshaler_all = 63024; - - optional bool goproto_extensions_map_all = 63025; - optional bool goproto_unrecognized_all = 63026; - optional bool gogoproto_import = 63027; - optional bool protosizer_all = 63028; - optional bool compare_all = 63029; - optional bool typedecl_all = 63030; - optional bool enumdecl_all = 63031; - - optional bool goproto_registration = 63032; - optional bool messagename_all = 63033; - - optional bool goproto_sizecache_all = 63034; - optional bool goproto_unkeyed_all = 63035; -} - -extend google.protobuf.MessageOptions { - optional bool goproto_getters = 64001; - optional bool goproto_stringer = 64003; - optional bool verbose_equal = 64004; - optional bool face = 64005; - optional bool gostring = 64006; - optional bool populate = 64007; - optional bool stringer = 67008; - optional bool onlyone = 64009; - - optional bool equal = 64013; - optional bool description = 64014; - optional bool testgen = 64015; - optional bool benchgen = 64016; - optional bool marshaler = 64017; - optional bool unmarshaler = 64018; - optional bool stable_marshaler = 64019; - - optional bool sizer = 64020; - - optional bool unsafe_marshaler = 64023; - optional bool unsafe_unmarshaler = 64024; - - optional bool goproto_extensions_map = 64025; - optional bool goproto_unrecognized = 64026; - - optional bool protosizer = 64028; - optional bool compare = 64029; - - optional bool typedecl = 64030; - - optional bool messagename = 64033; - - optional bool goproto_sizecache = 64034; - optional bool goproto_unkeyed = 64035; -} - -extend google.protobuf.FieldOptions { - optional bool nullable = 65001; - optional bool embed = 65002; - optional string customtype = 65003; - optional string customname = 65004; - optional string jsontag = 65005; - optional string moretags = 65006; - optional string casttype = 65007; - optional string castkey = 65008; - optional string castvalue = 65009; - - optional bool stdtime = 65010; - optional bool stdduration = 65011; - optional bool wktpointer = 65012; - -} diff --git a/proto/public/uber/cadence/api/v1/common.proto b/proto/public/uber/cadence/api/v1/common.proto index eb0bc9b8ead..ecc893a30a2 100644 --- a/proto/public/uber/cadence/api/v1/common.proto +++ b/proto/public/uber/cadence/api/v1/common.proto @@ -22,13 +22,12 @@ syntax = "proto3"; package uber.cadence.api.v1; -option go_package = "apiv1"; +option go_package = "github.com/uber/cadence/.gen/proto/api/v1;apiv1"; option java_multiple_files = true; option java_outer_classname = "ApiProto"; option java_package = "com.uber.cadence.api.v1"; import "google/protobuf/duration.proto"; -import "dependencies/gogoproto.proto"; message WorkflowExecution { string workflow_id = 1; @@ -90,7 +89,7 @@ message SupportedClientVersions { message RetryPolicy { // Interval of the first retry. If backoffCoefficient is 1.0 then it is used for all retries. - google.protobuf.Duration initial_interval = 1 [(gogoproto.stdduration) = true]; + google.protobuf.Duration initial_interval = 1; // Coefficient used to calculate the next retry interval. // The next retry interval is previous interval multiplied by the coefficient. @@ -99,7 +98,7 @@ message RetryPolicy { // Maximum interval between retries. Exponential backoff leads to interval increase. // This value is the cap of the increase. Default is 100x of initial interval. - google.protobuf.Duration maximum_interval = 3 [(gogoproto.stdduration) = true]; + google.protobuf.Duration maximum_interval = 3; // Maximum number of attempts. When exceeded the retries stop even if not expired yet. // Must be 1 or bigger. Default is unlimited. @@ -109,5 +108,5 @@ message RetryPolicy { repeated string non_retryable_error_reasons = 5; // Expiration time for the whole retry process. - google.protobuf.Duration expiration_interval = 6 [(gogoproto.stdduration) = true]; + google.protobuf.Duration expiration_interval = 6; } diff --git a/proto/public/uber/cadence/api/v1/decision.proto b/proto/public/uber/cadence/api/v1/decision.proto index 7c1fa5a59dc..1b5e7e0cfa6 100644 --- a/proto/public/uber/cadence/api/v1/decision.proto +++ b/proto/public/uber/cadence/api/v1/decision.proto @@ -22,13 +22,12 @@ syntax = "proto3"; package uber.cadence.api.v1; -option go_package = "apiv1"; +option go_package = "github.com/uber/cadence/.gen/proto/api/v1;apiv1"; option java_multiple_files = true; option java_outer_classname = "ApiProto"; option java_package = "com.uber.cadence.api.v1"; import "google/protobuf/duration.proto"; -import "dependencies/gogoproto.proto"; import "uber/cadence/api/v1/common.proto"; import "uber/cadence/api/v1/tasklist.proto"; import "uber/cadence/api/v1/workflow.proto"; @@ -57,10 +56,10 @@ message ScheduleActivityTaskDecisionAttributes { string domain = 3; TaskList task_list = 4; Payload input = 5; - google.protobuf.Duration schedule_to_close_timeout = 6 [(gogoproto.stdduration) = true]; - google.protobuf.Duration schedule_to_start_timeout = 7 [(gogoproto.stdduration) = true]; - google.protobuf.Duration start_to_close_timeout = 8 [(gogoproto.stdduration) = true]; - google.protobuf.Duration heartbeat_timeout = 9 [(gogoproto.stdduration) = true]; + google.protobuf.Duration schedule_to_close_timeout = 6; + google.protobuf.Duration schedule_to_start_timeout = 7; + google.protobuf.Duration start_to_close_timeout = 8; + google.protobuf.Duration heartbeat_timeout = 9; RetryPolicy retry_policy = 11; Header header = 12; bool request_local_dispatch = 13; @@ -68,7 +67,7 @@ message ScheduleActivityTaskDecisionAttributes { message StartTimerDecisionAttributes { string timer_id = 1; - google.protobuf.Duration start_to_fire_timeout = 2 [(gogoproto.stdduration) = true]; + google.protobuf.Duration start_to_fire_timeout = 2; } message CompleteWorkflowExecutionDecisionAttributes { @@ -108,9 +107,9 @@ message ContinueAsNewWorkflowExecutionDecisionAttributes { WorkflowType workflow_type = 1; TaskList task_list = 2; Payload input = 3; - google.protobuf.Duration execution_start_to_close_timeout = 4 [(gogoproto.stdduration) = true]; - google.protobuf.Duration task_start_to_close_timeout = 5 [(gogoproto.stdduration) = true]; - google.protobuf.Duration backoff_start_interval = 6 [(gogoproto.stdduration) = true]; + google.protobuf.Duration execution_start_to_close_timeout = 4; + google.protobuf.Duration task_start_to_close_timeout = 5; + google.protobuf.Duration backoff_start_interval = 6; RetryPolicy retry_policy = 7; ContinueAsNewInitiator initiator = 8; Failure failure = 9; @@ -127,8 +126,8 @@ message StartChildWorkflowExecutionDecisionAttributes { WorkflowType workflow_type = 3; TaskList task_list = 4; Payload input = 5; - google.protobuf.Duration execution_start_to_close_timeout = 6 [(gogoproto.stdduration) = true]; - google.protobuf.Duration task_start_to_close_timeout = 7 [(gogoproto.stdduration) = true]; + google.protobuf.Duration execution_start_to_close_timeout = 6; + google.protobuf.Duration task_start_to_close_timeout = 7; ParentClosePolicy parent_close_policy = 8; bytes control = 9; WorkflowIdReusePolicy workflow_id_reuse_policy = 10; diff --git a/proto/public/uber/cadence/api/v1/domain.proto b/proto/public/uber/cadence/api/v1/domain.proto index ec273ab38b2..6276fe1e121 100644 --- a/proto/public/uber/cadence/api/v1/domain.proto +++ b/proto/public/uber/cadence/api/v1/domain.proto @@ -22,14 +22,13 @@ syntax = "proto3"; package uber.cadence.api.v1; -option go_package = "apiv1"; +option go_package = "github.com/uber/cadence/.gen/proto/api/v1;apiv1"; option java_multiple_files = true; option java_outer_classname = "ApiProto"; option java_package = "com.uber.cadence.api.v1"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; -import "dependencies/gogoproto.proto"; message DomainInfo { string id = 1; @@ -41,7 +40,7 @@ message DomainInfo { } message DomainConfiguration { - google.protobuf.Duration workflow_execution_retention_period = 1 [(gogoproto.stdduration) = true]; + google.protobuf.Duration workflow_execution_retention_period = 1; BadBinaries bad_binaries = 2; ArchivalStatus history_archival_status = 3; string history_archival_uri = 4; @@ -65,7 +64,7 @@ message BadBinaries { message BadBinaryInfo { string reason = 1; string operator = 2; - google.protobuf.Timestamp created_time = 3 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp created_time = 3; } enum DomainStatus { diff --git a/proto/public/uber/cadence/api/v1/error.proto b/proto/public/uber/cadence/api/v1/error.proto index 070309f3e9c..efd066f82a2 100644 --- a/proto/public/uber/cadence/api/v1/error.proto +++ b/proto/public/uber/cadence/api/v1/error.proto @@ -22,7 +22,7 @@ syntax = "proto3"; package uber.cadence.api.v1; -option go_package = "apiv1"; +option go_package = "github.com/uber/cadence/.gen/proto/api/v1;apiv1"; option java_multiple_files = true; option java_outer_classname = "ApiProto"; option java_package = "com.uber.cadence.api.v1"; diff --git a/proto/public/uber/cadence/api/v1/history.proto b/proto/public/uber/cadence/api/v1/history.proto index 2388bb8cccc..09183d6862a 100644 --- a/proto/public/uber/cadence/api/v1/history.proto +++ b/proto/public/uber/cadence/api/v1/history.proto @@ -22,14 +22,13 @@ syntax = "proto3"; package uber.cadence.api.v1; -option go_package = "apiv1"; +option go_package = "github.com/uber/cadence/.gen/proto/api/v1;apiv1"; option java_multiple_files = true; option java_outer_classname = "ApiProto"; option java_package = "com.uber.cadence.api.v1"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; -import "dependencies/gogoproto.proto"; import "uber/cadence/api/v1/common.proto"; import "uber/cadence/api/v1/tasklist.proto"; import "uber/cadence/api/v1/workflow.proto"; @@ -40,7 +39,7 @@ message History { message HistoryEvent { int64 event_id = 1; - google.protobuf.Timestamp event_time = 2 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp event_time = 2; int64 version = 3; int64 task_id = 4; oneof attributes { @@ -96,8 +95,8 @@ message WorkflowExecutionStartedEventAttributes { int64 parent_initiated_event_id = 4; TaskList task_list = 5; Payload input = 6; - google.protobuf.Duration execution_start_to_close_timeout = 7 [(gogoproto.stdduration) = true]; - google.protobuf.Duration task_start_to_close_timeout = 8 [(gogoproto.stdduration) = true]; + google.protobuf.Duration execution_start_to_close_timeout = 7; + google.protobuf.Duration task_start_to_close_timeout = 8; string continued_execution_run_id = 9; ContinueAsNewInitiator initiator = 10; Failure continued_failure = 11; @@ -109,9 +108,9 @@ message WorkflowExecutionStartedEventAttributes { string first_execution_run_id = 15; RetryPolicy retry_policy = 16; int32 attempt = 17; - google.protobuf.Timestamp expiration_time = 19 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp expiration_time = 19; string cron_schedule = 20; - google.protobuf.Duration first_decision_task_backoff = 21 [(gogoproto.stdduration) = true]; + google.protobuf.Duration first_decision_task_backoff = 21; Memo memo = 22; SearchAttributes search_attributes = 23; ResetPoints prev_auto_reset_points = 24; @@ -134,7 +133,7 @@ message WorkflowExecutionTimedOutEventAttributes { message DecisionTaskScheduledEventAttributes { TaskList task_list = 1; - google.protobuf.Duration start_to_close_timeout = 2 [(gogoproto.stdduration) = true]; + google.protobuf.Duration start_to_close_timeout = 2; int32 attempt = 3; } @@ -177,10 +176,10 @@ message ActivityTaskScheduledEventAttributes { string domain = 3; TaskList task_list = 4; Payload input = 6; - google.protobuf.Duration schedule_to_close_timeout = 7 [(gogoproto.stdduration) = true]; - google.protobuf.Duration schedule_to_start_timeout = 8 [(gogoproto.stdduration) = true]; - google.protobuf.Duration start_to_close_timeout = 9 [(gogoproto.stdduration) = true]; - google.protobuf.Duration heartbeat_timeout = 10 [(gogoproto.stdduration) = true]; + google.protobuf.Duration schedule_to_close_timeout = 7; + google.protobuf.Duration schedule_to_start_timeout = 8; + google.protobuf.Duration start_to_close_timeout = 9; + google.protobuf.Duration heartbeat_timeout = 10; int64 decision_task_completed_event_id = 11; RetryPolicy retry_policy = 12; Header header = 13; @@ -239,7 +238,7 @@ message ActivityTaskCanceledEventAttributes { message TimerStartedEventAttributes { string timer_id = 1; - google.protobuf.Duration start_to_fire_timeout = 2 [(gogoproto.stdduration) = true]; + google.protobuf.Duration start_to_fire_timeout = 2; int64 decision_task_completed_event_id = 3; } @@ -267,10 +266,10 @@ message WorkflowExecutionContinuedAsNewEventAttributes { WorkflowType workflow_type = 2; TaskList task_list = 3; Payload input = 4; - google.protobuf.Duration execution_start_to_close_timeout = 5 [(gogoproto.stdduration) = true]; - google.protobuf.Duration task_start_to_close_timeout = 6 [(gogoproto.stdduration) = true]; + google.protobuf.Duration execution_start_to_close_timeout = 5; + google.protobuf.Duration task_start_to_close_timeout = 6; int64 decision_task_completed_event_id = 7; - google.protobuf.Duration backoff_start_interval = 8 [(gogoproto.stdduration) = true]; + google.protobuf.Duration backoff_start_interval = 8; ContinueAsNewInitiator initiator = 9; Failure failure = 10; Payload last_completion_result = 11; @@ -370,8 +369,8 @@ message StartChildWorkflowExecutionInitiatedEventAttributes { WorkflowType workflow_type = 3; TaskList task_list = 4; Payload input = 5; - google.protobuf.Duration execution_start_to_close_timeout = 6 [(gogoproto.stdduration) = true]; - google.protobuf.Duration task_start_to_close_timeout = 7 [(gogoproto.stdduration) = true]; + google.protobuf.Duration execution_start_to_close_timeout = 6; + google.protobuf.Duration task_start_to_close_timeout = 7; ParentClosePolicy parent_close_policy = 8; bytes control = 9; int64 decision_task_completed_event_id = 10; diff --git a/proto/public/uber/cadence/api/v1/query.proto b/proto/public/uber/cadence/api/v1/query.proto index f2dd1e180c8..176c3bf5901 100644 --- a/proto/public/uber/cadence/api/v1/query.proto +++ b/proto/public/uber/cadence/api/v1/query.proto @@ -22,7 +22,7 @@ syntax = "proto3"; package uber.cadence.api.v1; -option go_package = "apiv1"; +option go_package = "github.com/uber/cadence/.gen/proto/api/v1;apiv1"; option java_multiple_files = true; option java_outer_classname = "ApiProto"; option java_package = "com.uber.cadence.api.v1"; diff --git a/proto/public/uber/cadence/api/v1/service_domain.proto b/proto/public/uber/cadence/api/v1/service_domain.proto index e08d776c993..49130a33f77 100644 --- a/proto/public/uber/cadence/api/v1/service_domain.proto +++ b/proto/public/uber/cadence/api/v1/service_domain.proto @@ -22,13 +22,12 @@ syntax = "proto3"; package uber.cadence.api.v1; -option go_package = "apiv1"; +option go_package = "github.com/uber/cadence/.gen/proto/api/v1;apiv1"; option java_multiple_files = true; option java_outer_classname = "ApiProto"; option java_package = "com.uber.cadence.api.v1"; import "google/protobuf/duration.proto"; -import "dependencies/gogoproto.proto"; import "uber/cadence/api/v1/domain.proto"; service DomainAPI { @@ -57,7 +56,7 @@ message RegisterDomainRequest { string name = 1; string description = 2; string owner_email = 3; - google.protobuf.Duration workflow_execution_retention_period = 4 [(gogoproto.stdduration) = true]; + google.protobuf.Duration workflow_execution_retention_period = 4; repeated ClusterReplicationConfiguration clusters = 5; string active_cluster_name = 6; map data = 7; @@ -110,7 +109,7 @@ message UpdateDomainRequest { DomainReplicationConfiguration replication_configuration = 4; string security_token = 5; string delete_bad_binary = 6; - google.protobuf.Duration failover_timeout = 7 [(gogoproto.stdduration) = true]; + google.protobuf.Duration failover_timeout = 7; } message UpdateDomainResponse { diff --git a/proto/public/uber/cadence/api/v1/service_meta.proto b/proto/public/uber/cadence/api/v1/service_meta.proto index 756e80b1313..3bc42e288fa 100644 --- a/proto/public/uber/cadence/api/v1/service_meta.proto +++ b/proto/public/uber/cadence/api/v1/service_meta.proto @@ -22,7 +22,7 @@ syntax = "proto3"; package uber.cadence.api.v1; -option go_package = "apiv1"; +option go_package = "github.com/uber/cadence/.gen/proto/api/v1;apiv1"; option java_multiple_files = true; option java_outer_classname = "ApiProto"; option java_package = "com.uber.cadence.api.v1"; diff --git a/proto/public/uber/cadence/api/v1/service_visibility.proto b/proto/public/uber/cadence/api/v1/service_visibility.proto index 7575d282330..6720b608c87 100644 --- a/proto/public/uber/cadence/api/v1/service_visibility.proto +++ b/proto/public/uber/cadence/api/v1/service_visibility.proto @@ -22,7 +22,7 @@ syntax = "proto3"; package uber.cadence.api.v1; -option go_package = "apiv1"; +option go_package = "github.com/uber/cadence/.gen/proto/api/v1;apiv1"; option java_multiple_files = true; option java_outer_classname = "ApiProto"; option java_package = "com.uber.cadence.api.v1"; diff --git a/proto/public/uber/cadence/api/v1/service_worker.proto b/proto/public/uber/cadence/api/v1/service_worker.proto index 07a1edd4dc2..b59cff5e026 100644 --- a/proto/public/uber/cadence/api/v1/service_worker.proto +++ b/proto/public/uber/cadence/api/v1/service_worker.proto @@ -22,14 +22,13 @@ syntax = "proto3"; package uber.cadence.api.v1; -option go_package = "apiv1"; +option go_package = "github.com/uber/cadence/.gen/proto/api/v1;apiv1"; option java_multiple_files = true; option java_outer_classname = "ApiProto"; option java_package = "com.uber.cadence.api.v1"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; -import "dependencies/gogoproto.proto"; import "uber/cadence/api/v1/common.proto"; import "uber/cadence/api/v1/decision.proto"; import "uber/cadence/api/v1/history.proto"; @@ -162,8 +161,8 @@ message PollForDecisionTaskResponse { bytes next_page_token = 9; WorkflowQuery query = 10; TaskList workflow_execution_task_list = 11; - google.protobuf.Timestamp scheduled_time = 12 [(gogoproto.stdtime) = true]; - google.protobuf.Timestamp started_time = 13 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp scheduled_time = 12; + google.protobuf.Timestamp started_time = 13; map queries = 14; } @@ -208,13 +207,13 @@ message PollForActivityTaskResponse { string activity_id = 3; ActivityType activity_type = 4; Payload input = 5; - google.protobuf.Timestamp scheduled_time = 6 [(gogoproto.stdtime) = true]; - google.protobuf.Timestamp started_time = 7 [(gogoproto.stdtime) = true]; - google.protobuf.Duration schedule_to_close_timeout = 8 [(gogoproto.stdduration) = true]; - google.protobuf.Duration start_to_close_timeout = 9 [(gogoproto.stdduration) = true]; - google.protobuf.Duration heartbeat_timeout = 10 [(gogoproto.stdduration) = true]; + google.protobuf.Timestamp scheduled_time = 6; + google.protobuf.Timestamp started_time = 7; + google.protobuf.Duration schedule_to_close_timeout = 8; + google.protobuf.Duration start_to_close_timeout = 9; + google.protobuf.Duration heartbeat_timeout = 10; int32 attempt = 11; - google.protobuf.Timestamp scheduled_time_of_this_attempt = 12 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp scheduled_time_of_this_attempt = 12; Payload heartbeat_details = 13; WorkflowType workflow_type = 14; string workflow_domain = 15; diff --git a/proto/public/uber/cadence/api/v1/service_workflow.proto b/proto/public/uber/cadence/api/v1/service_workflow.proto index c660f9837f9..d6017cfa4ab 100644 --- a/proto/public/uber/cadence/api/v1/service_workflow.proto +++ b/proto/public/uber/cadence/api/v1/service_workflow.proto @@ -22,13 +22,12 @@ syntax = "proto3"; package uber.cadence.api.v1; -option go_package = "apiv1"; +option go_package = "github.com/uber/cadence/.gen/proto/api/v1;apiv1"; option java_multiple_files = true; option java_outer_classname = "ApiProto"; option java_package = "com.uber.cadence.api.v1"; import "google/protobuf/duration.proto"; -import "dependencies/gogoproto.proto"; import "uber/cadence/api/v1/common.proto"; import "uber/cadence/api/v1/history.proto"; import "uber/cadence/api/v1/query.proto"; @@ -97,8 +96,8 @@ message StartWorkflowExecutionRequest { WorkflowType workflow_type = 3; TaskList task_list = 4; Payload input = 5; - google.protobuf.Duration execution_start_to_close_timeout = 6 [(gogoproto.stdduration) = true]; - google.protobuf.Duration task_start_to_close_timeout = 7 [(gogoproto.stdduration) = true]; + google.protobuf.Duration execution_start_to_close_timeout = 6; + google.protobuf.Duration task_start_to_close_timeout = 7; string identity = 8; string request_id = 9; WorkflowIdReusePolicy workflow_id_reuse_policy = 10; diff --git a/proto/public/uber/cadence/api/v1/tasklist.proto b/proto/public/uber/cadence/api/v1/tasklist.proto index 038aa019a8b..052263b30e2 100644 --- a/proto/public/uber/cadence/api/v1/tasklist.proto +++ b/proto/public/uber/cadence/api/v1/tasklist.proto @@ -22,7 +22,7 @@ syntax = "proto3"; package uber.cadence.api.v1; -option go_package = "apiv1"; +option go_package = "github.com/uber/cadence/.gen/proto/api/v1;apiv1"; option java_multiple_files = true; option java_outer_classname = "ApiProto"; option java_package = "com.uber.cadence.api.v1"; @@ -30,7 +30,6 @@ option java_package = "com.uber.cadence.api.v1"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; import "google/protobuf/wrappers.proto"; -import "dependencies/gogoproto.proto"; message TaskList { string name = 1; @@ -72,12 +71,12 @@ message TaskIDBlock { } message PollerInfo { - google.protobuf.Timestamp last_access_time = 1 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp last_access_time = 1; string identity = 2; double rate_per_second = 3; } message StickyExecutionAttributes { TaskList worker_task_list = 1; - google.protobuf.Duration schedule_to_start_timeout = 2 [(gogoproto.stdduration) = true]; + google.protobuf.Duration schedule_to_start_timeout = 2; } diff --git a/proto/public/uber/cadence/api/v1/visibility.proto b/proto/public/uber/cadence/api/v1/visibility.proto index b225210ba21..2d6677df8cd 100644 --- a/proto/public/uber/cadence/api/v1/visibility.proto +++ b/proto/public/uber/cadence/api/v1/visibility.proto @@ -22,13 +22,12 @@ syntax = "proto3"; package uber.cadence.api.v1; -option go_package = "apiv1"; +option go_package = "github.com/uber/cadence/.gen/proto/api/v1;apiv1"; option java_multiple_files = true; option java_outer_classname = "ApiProto"; option java_package = "com.uber.cadence.api.v1"; import "google/protobuf/timestamp.proto"; -import "dependencies/gogoproto.proto"; import "uber/cadence/api/v1/workflow.proto"; message WorkflowExecutionFilter { @@ -41,8 +40,8 @@ message WorkflowTypeFilter { } message StartTimeFilter { - google.protobuf.Timestamp earliest_time = 1 [(gogoproto.stdtime) = true]; - google.protobuf.Timestamp latest_time = 2 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp earliest_time = 1; + google.protobuf.Timestamp latest_time = 2; } message StatusFilter { diff --git a/proto/public/uber/cadence/api/v1/workflow.proto b/proto/public/uber/cadence/api/v1/workflow.proto index eb16c928689..16e807efe3f 100644 --- a/proto/public/uber/cadence/api/v1/workflow.proto +++ b/proto/public/uber/cadence/api/v1/workflow.proto @@ -22,27 +22,26 @@ syntax = "proto3"; package uber.cadence.api.v1; -option go_package = "apiv1"; +option go_package = "github.com/uber/cadence/.gen/proto/api/v1;apiv1"; option java_multiple_files = true; option java_outer_classname = "ApiProto"; option java_package = "com.uber.cadence.api.v1"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; -import "dependencies/gogoproto.proto"; import "uber/cadence/api/v1/common.proto"; import "uber/cadence/api/v1/tasklist.proto"; message WorkflowExecutionInfo { WorkflowExecution workflow_execution = 1; WorkflowType type = 2; - google.protobuf.Timestamp start_time = 3 [(gogoproto.stdtime) = true]; - google.protobuf.Timestamp close_time = 4 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp start_time = 3; + google.protobuf.Timestamp close_time = 4; WorkflowExecutionCloseStatus close_status = 5; int64 history_length = 6; string parent_domain_id = 7; WorkflowExecution parent_execution = 8; - google.protobuf.Timestamp execution_time = 9 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp execution_time = 9; Memo memo = 10; SearchAttributes search_attributes = 11; ResetPoints auto_reset_points = 12; @@ -51,8 +50,8 @@ message WorkflowExecutionInfo { message WorkflowExecutionConfiguration { TaskList task_list = 1; - google.protobuf.Duration execution_start_to_close_timeout = 2 [(gogoproto.stdduration) = true]; - google.protobuf.Duration task_start_to_close_timeout = 3 [(gogoproto.stdduration) = true]; + google.protobuf.Duration execution_start_to_close_timeout = 2; + google.protobuf.Duration task_start_to_close_timeout = 3; } message PendingActivityInfo { @@ -60,12 +59,12 @@ message PendingActivityInfo { ActivityType activity_type = 2; PendingActivityState state = 3; Payload heartbeat_details = 4; - google.protobuf.Timestamp last_heartbeat_time = 5 [(gogoproto.stdtime) = true]; - google.protobuf.Timestamp last_started_time = 6 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp last_heartbeat_time = 5; + google.protobuf.Timestamp last_started_time = 6; int32 attempt = 7; int32 maximum_attempts = 8; - google.protobuf.Timestamp scheduled_time = 9 [(gogoproto.stdtime) = true]; - google.protobuf.Timestamp expiration_time = 10 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp scheduled_time = 9; + google.protobuf.Timestamp expiration_time = 10; Failure last_failure = 11; string last_worker_identity = 12; } @@ -79,17 +78,17 @@ message PendingChildExecutionInfo { message PendingDecisionInfo { PendingDecisionState state = 1; - google.protobuf.Timestamp scheduled_time = 2 [(gogoproto.stdtime) = true]; - google.protobuf.Timestamp started_time = 3 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp scheduled_time = 2; + google.protobuf.Timestamp started_time = 3; int32 attempt = 4; - google.protobuf.Timestamp original_scheduled_time = 5 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp original_scheduled_time = 5; } message ActivityLocalDispatchInfo { string activity_id = 1; - google.protobuf.Timestamp scheduled_time = 2 [(gogoproto.stdtime) = true]; - google.protobuf.Timestamp started_time = 3 [(gogoproto.stdtime) = true]; - google.protobuf.Timestamp scheduled_time_of_this_attempt = 4 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp scheduled_time = 2; + google.protobuf.Timestamp started_time = 3; + google.protobuf.Timestamp scheduled_time_of_this_attempt = 4; bytes task_token = 5; } @@ -101,8 +100,8 @@ message ResetPointInfo { string binary_checksum = 1; string run_id = 2; int64 first_decision_completed_id = 3; - google.protobuf.Timestamp created_time = 4 [(gogoproto.stdtime) = true]; - google.protobuf.Timestamp expiring_time = 5 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp created_time = 4; + google.protobuf.Timestamp expiring_time = 5; bool resettable = 6; }