From e84aded3fb1d0e8a4ff73c8fc2b4a94fab03ad89 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Tue, 15 Sep 2026 11:24:57 +1000 Subject: [PATCH] refactor(state): delete the dead IncrementRetryCount RPC (breaking change, accepted) IncrementRetryCount had zero production callers -- only tests and the staterpc plumbing referenced it. taskactions.Service.applyRetry already uses the atomic RetryTask exclusively, which increments retry_count and requeues in one transaction. Unlike ListCaptures/ListUndispatchedCaptures (kept as declared-unconsumed compatibility surfaces because a rolling deploy could have an old client/server pairing mid-flight), this repo has one production consumer (see AGENTS.md's solo-project note), so the breaking removal is accepted outright rather than deprecated-and-kept. Deleted the Go method, the storecontract interface entry, the staterpc server/client methods, and the RPC/messages from state.proto, regenerating the .pb.go/_grpc.pb.go pair. Test fixtures that used IncrementRetryCount as a setup helper now drive retry_count through the real path instead: queries_test.go bumps it via direct SQL (same package, no contract to route through), and api_tasks_actions_test.go now loops RetryTask+Transition, which exercises production code instead of a deleted one. --- internal/contracts/state/v1/state.pb.go | 714 ++++++++---------- internal/contracts/state/v1/state_grpc.pb.go | 38 - .../domain/storecontract/storecontract.go | 1 - internal/infrastructure/staterpc/client.go | 5 - .../staterpc/conformance_test.go | 3 - internal/infrastructure/staterpc/server.go | 7 - internal/store/queries_test.go | 8 +- internal/store/store.go | 9 - internal/store/store_test.go | 33 - internal/webui/api_tasks_actions_test.go | 8 +- proto/state/v1/state.proto | 4 - 11 files changed, 325 insertions(+), 505 deletions(-) diff --git a/internal/contracts/state/v1/state.pb.go b/internal/contracts/state/v1/state.pb.go index a1b36fdc6..5f72d6d25 100644 --- a/internal/contracts/state/v1/state.pb.go +++ b/internal/contracts/state/v1/state.pb.go @@ -2787,86 +2787,6 @@ func (x *StatusCountsResponse) GetCounts() map[string]int64 { return nil } -type IncrementRetryCountRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - TaskId int64 `protobuf:"varint,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *IncrementRetryCountRequest) Reset() { - *x = IncrementRetryCountRequest{} - mi := &file_state_v1_state_proto_msgTypes[46] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *IncrementRetryCountRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IncrementRetryCountRequest) ProtoMessage() {} - -func (x *IncrementRetryCountRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[46] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IncrementRetryCountRequest.ProtoReflect.Descriptor instead. -func (*IncrementRetryCountRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{46} -} - -func (x *IncrementRetryCountRequest) GetTaskId() int64 { - if x != nil { - return x.TaskId - } - return 0 -} - -type IncrementRetryCountResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *IncrementRetryCountResponse) Reset() { - *x = IncrementRetryCountResponse{} - mi := &file_state_v1_state_proto_msgTypes[47] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *IncrementRetryCountResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IncrementRetryCountResponse) ProtoMessage() {} - -func (x *IncrementRetryCountResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[47] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IncrementRetryCountResponse.ProtoReflect.Descriptor instead. -func (*IncrementRetryCountResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{47} -} - type InsertEventRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Event *Event `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"` @@ -2876,7 +2796,7 @@ type InsertEventRequest struct { func (x *InsertEventRequest) Reset() { *x = InsertEventRequest{} - mi := &file_state_v1_state_proto_msgTypes[48] + mi := &file_state_v1_state_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2888,7 +2808,7 @@ func (x *InsertEventRequest) String() string { func (*InsertEventRequest) ProtoMessage() {} func (x *InsertEventRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[48] + mi := &file_state_v1_state_proto_msgTypes[46] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2901,7 +2821,7 @@ func (x *InsertEventRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use InsertEventRequest.ProtoReflect.Descriptor instead. func (*InsertEventRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{48} + return file_state_v1_state_proto_rawDescGZIP(), []int{46} } func (x *InsertEventRequest) GetEvent() *Event { @@ -2920,7 +2840,7 @@ type InsertEventResponse struct { func (x *InsertEventResponse) Reset() { *x = InsertEventResponse{} - mi := &file_state_v1_state_proto_msgTypes[49] + mi := &file_state_v1_state_proto_msgTypes[47] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2932,7 +2852,7 @@ func (x *InsertEventResponse) String() string { func (*InsertEventResponse) ProtoMessage() {} func (x *InsertEventResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[49] + mi := &file_state_v1_state_proto_msgTypes[47] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2945,7 +2865,7 @@ func (x *InsertEventResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use InsertEventResponse.ProtoReflect.Descriptor instead. func (*InsertEventResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{49} + return file_state_v1_state_proto_rawDescGZIP(), []int{47} } func (x *InsertEventResponse) GetId() int64 { @@ -2965,7 +2885,7 @@ type EventsSinceRequest struct { func (x *EventsSinceRequest) Reset() { *x = EventsSinceRequest{} - mi := &file_state_v1_state_proto_msgTypes[50] + mi := &file_state_v1_state_proto_msgTypes[48] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2977,7 +2897,7 @@ func (x *EventsSinceRequest) String() string { func (*EventsSinceRequest) ProtoMessage() {} func (x *EventsSinceRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[50] + mi := &file_state_v1_state_proto_msgTypes[48] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2990,7 +2910,7 @@ func (x *EventsSinceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use EventsSinceRequest.ProtoReflect.Descriptor instead. func (*EventsSinceRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{50} + return file_state_v1_state_proto_rawDescGZIP(), []int{48} } func (x *EventsSinceRequest) GetSinceId() int64 { @@ -3016,7 +2936,7 @@ type EventsSinceResponse struct { func (x *EventsSinceResponse) Reset() { *x = EventsSinceResponse{} - mi := &file_state_v1_state_proto_msgTypes[51] + mi := &file_state_v1_state_proto_msgTypes[49] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3028,7 +2948,7 @@ func (x *EventsSinceResponse) String() string { func (*EventsSinceResponse) ProtoMessage() {} func (x *EventsSinceResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[51] + mi := &file_state_v1_state_proto_msgTypes[49] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3041,7 +2961,7 @@ func (x *EventsSinceResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use EventsSinceResponse.ProtoReflect.Descriptor instead. func (*EventsSinceResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{51} + return file_state_v1_state_proto_rawDescGZIP(), []int{49} } func (x *EventsSinceResponse) GetEvents() []*Event { @@ -3060,7 +2980,7 @@ type TaskEventsRequest struct { func (x *TaskEventsRequest) Reset() { *x = TaskEventsRequest{} - mi := &file_state_v1_state_proto_msgTypes[52] + mi := &file_state_v1_state_proto_msgTypes[50] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3072,7 +2992,7 @@ func (x *TaskEventsRequest) String() string { func (*TaskEventsRequest) ProtoMessage() {} func (x *TaskEventsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[52] + mi := &file_state_v1_state_proto_msgTypes[50] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3085,7 +3005,7 @@ func (x *TaskEventsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use TaskEventsRequest.ProtoReflect.Descriptor instead. func (*TaskEventsRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{52} + return file_state_v1_state_proto_rawDescGZIP(), []int{50} } func (x *TaskEventsRequest) GetTaskId() int64 { @@ -3104,7 +3024,7 @@ type TaskEventsResponse struct { func (x *TaskEventsResponse) Reset() { *x = TaskEventsResponse{} - mi := &file_state_v1_state_proto_msgTypes[53] + mi := &file_state_v1_state_proto_msgTypes[51] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3116,7 +3036,7 @@ func (x *TaskEventsResponse) String() string { func (*TaskEventsResponse) ProtoMessage() {} func (x *TaskEventsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[53] + mi := &file_state_v1_state_proto_msgTypes[51] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3129,7 +3049,7 @@ func (x *TaskEventsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use TaskEventsResponse.ProtoReflect.Descriptor instead. func (*TaskEventsResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{53} + return file_state_v1_state_proto_rawDescGZIP(), []int{51} } func (x *TaskEventsResponse) GetEvents() []*Event { @@ -3147,7 +3067,7 @@ type WorkflowStatsRequest struct { func (x *WorkflowStatsRequest) Reset() { *x = WorkflowStatsRequest{} - mi := &file_state_v1_state_proto_msgTypes[54] + mi := &file_state_v1_state_proto_msgTypes[52] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3159,7 +3079,7 @@ func (x *WorkflowStatsRequest) String() string { func (*WorkflowStatsRequest) ProtoMessage() {} func (x *WorkflowStatsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[54] + mi := &file_state_v1_state_proto_msgTypes[52] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3172,7 +3092,7 @@ func (x *WorkflowStatsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkflowStatsRequest.ProtoReflect.Descriptor instead. func (*WorkflowStatsRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{54} + return file_state_v1_state_proto_rawDescGZIP(), []int{52} } type WorkflowStatsResponse struct { @@ -3184,7 +3104,7 @@ type WorkflowStatsResponse struct { func (x *WorkflowStatsResponse) Reset() { *x = WorkflowStatsResponse{} - mi := &file_state_v1_state_proto_msgTypes[55] + mi := &file_state_v1_state_proto_msgTypes[53] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3196,7 +3116,7 @@ func (x *WorkflowStatsResponse) String() string { func (*WorkflowStatsResponse) ProtoMessage() {} func (x *WorkflowStatsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[55] + mi := &file_state_v1_state_proto_msgTypes[53] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3209,7 +3129,7 @@ func (x *WorkflowStatsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkflowStatsResponse.ProtoReflect.Descriptor instead. func (*WorkflowStatsResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{55} + return file_state_v1_state_proto_rawDescGZIP(), []int{53} } func (x *WorkflowStatsResponse) GetStats() []*WorkflowStat { @@ -3227,7 +3147,7 @@ type StageStatsRequest struct { func (x *StageStatsRequest) Reset() { *x = StageStatsRequest{} - mi := &file_state_v1_state_proto_msgTypes[56] + mi := &file_state_v1_state_proto_msgTypes[54] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3239,7 +3159,7 @@ func (x *StageStatsRequest) String() string { func (*StageStatsRequest) ProtoMessage() {} func (x *StageStatsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[56] + mi := &file_state_v1_state_proto_msgTypes[54] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3252,7 +3172,7 @@ func (x *StageStatsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use StageStatsRequest.ProtoReflect.Descriptor instead. func (*StageStatsRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{56} + return file_state_v1_state_proto_rawDescGZIP(), []int{54} } type StageStatsResponse struct { @@ -3264,7 +3184,7 @@ type StageStatsResponse struct { func (x *StageStatsResponse) Reset() { *x = StageStatsResponse{} - mi := &file_state_v1_state_proto_msgTypes[57] + mi := &file_state_v1_state_proto_msgTypes[55] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3276,7 +3196,7 @@ func (x *StageStatsResponse) String() string { func (*StageStatsResponse) ProtoMessage() {} func (x *StageStatsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[57] + mi := &file_state_v1_state_proto_msgTypes[55] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3289,7 +3209,7 @@ func (x *StageStatsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use StageStatsResponse.ProtoReflect.Descriptor instead. func (*StageStatsResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{57} + return file_state_v1_state_proto_rawDescGZIP(), []int{55} } func (x *StageStatsResponse) GetStats() []*StageStat { @@ -3308,7 +3228,7 @@ type TokensByDayRequest struct { func (x *TokensByDayRequest) Reset() { *x = TokensByDayRequest{} - mi := &file_state_v1_state_proto_msgTypes[58] + mi := &file_state_v1_state_proto_msgTypes[56] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3320,7 +3240,7 @@ func (x *TokensByDayRequest) String() string { func (*TokensByDayRequest) ProtoMessage() {} func (x *TokensByDayRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[58] + mi := &file_state_v1_state_proto_msgTypes[56] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3333,7 +3253,7 @@ func (x *TokensByDayRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use TokensByDayRequest.ProtoReflect.Descriptor instead. func (*TokensByDayRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{58} + return file_state_v1_state_proto_rawDescGZIP(), []int{56} } func (x *TokensByDayRequest) GetDays() int64 { @@ -3352,7 +3272,7 @@ type TokensByDayResponse struct { func (x *TokensByDayResponse) Reset() { *x = TokensByDayResponse{} - mi := &file_state_v1_state_proto_msgTypes[59] + mi := &file_state_v1_state_proto_msgTypes[57] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3364,7 +3284,7 @@ func (x *TokensByDayResponse) String() string { func (*TokensByDayResponse) ProtoMessage() {} func (x *TokensByDayResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[59] + mi := &file_state_v1_state_proto_msgTypes[57] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3377,7 +3297,7 @@ func (x *TokensByDayResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use TokensByDayResponse.ProtoReflect.Descriptor instead. func (*TokensByDayResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{59} + return file_state_v1_state_proto_rawDescGZIP(), []int{57} } func (x *TokensByDayResponse) GetTokens() []*DayTokens { @@ -3404,7 +3324,7 @@ type ConfigSnapshot struct { func (x *ConfigSnapshot) Reset() { *x = ConfigSnapshot{} - mi := &file_state_v1_state_proto_msgTypes[60] + mi := &file_state_v1_state_proto_msgTypes[58] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3416,7 +3336,7 @@ func (x *ConfigSnapshot) String() string { func (*ConfigSnapshot) ProtoMessage() {} func (x *ConfigSnapshot) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[60] + mi := &file_state_v1_state_proto_msgTypes[58] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3429,7 +3349,7 @@ func (x *ConfigSnapshot) ProtoReflect() protoreflect.Message { // Deprecated: Use ConfigSnapshot.ProtoReflect.Descriptor instead. func (*ConfigSnapshot) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{60} + return file_state_v1_state_proto_rawDescGZIP(), []int{58} } func (x *ConfigSnapshot) GetSchema() string { @@ -3462,7 +3382,7 @@ type PutConfigSnapshotRequest struct { func (x *PutConfigSnapshotRequest) Reset() { *x = PutConfigSnapshotRequest{} - mi := &file_state_v1_state_proto_msgTypes[61] + mi := &file_state_v1_state_proto_msgTypes[59] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3474,7 +3394,7 @@ func (x *PutConfigSnapshotRequest) String() string { func (*PutConfigSnapshotRequest) ProtoMessage() {} func (x *PutConfigSnapshotRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[61] + mi := &file_state_v1_state_proto_msgTypes[59] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3487,7 +3407,7 @@ func (x *PutConfigSnapshotRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use PutConfigSnapshotRequest.ProtoReflect.Descriptor instead. func (*PutConfigSnapshotRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{61} + return file_state_v1_state_proto_rawDescGZIP(), []int{59} } func (x *PutConfigSnapshotRequest) GetSnapshot() *ConfigSnapshot { @@ -3505,7 +3425,7 @@ type PutConfigSnapshotResponse struct { func (x *PutConfigSnapshotResponse) Reset() { *x = PutConfigSnapshotResponse{} - mi := &file_state_v1_state_proto_msgTypes[62] + mi := &file_state_v1_state_proto_msgTypes[60] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3517,7 +3437,7 @@ func (x *PutConfigSnapshotResponse) String() string { func (*PutConfigSnapshotResponse) ProtoMessage() {} func (x *PutConfigSnapshotResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[62] + mi := &file_state_v1_state_proto_msgTypes[60] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3530,7 +3450,7 @@ func (x *PutConfigSnapshotResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use PutConfigSnapshotResponse.ProtoReflect.Descriptor instead. func (*PutConfigSnapshotResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{62} + return file_state_v1_state_proto_rawDescGZIP(), []int{60} } type GetConfigSnapshotRequest struct { @@ -3541,7 +3461,7 @@ type GetConfigSnapshotRequest struct { func (x *GetConfigSnapshotRequest) Reset() { *x = GetConfigSnapshotRequest{} - mi := &file_state_v1_state_proto_msgTypes[63] + mi := &file_state_v1_state_proto_msgTypes[61] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3553,7 +3473,7 @@ func (x *GetConfigSnapshotRequest) String() string { func (*GetConfigSnapshotRequest) ProtoMessage() {} func (x *GetConfigSnapshotRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[63] + mi := &file_state_v1_state_proto_msgTypes[61] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3566,7 +3486,7 @@ func (x *GetConfigSnapshotRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetConfigSnapshotRequest.ProtoReflect.Descriptor instead. func (*GetConfigSnapshotRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{63} + return file_state_v1_state_proto_rawDescGZIP(), []int{61} } type GetConfigSnapshotResponse struct { @@ -3579,7 +3499,7 @@ type GetConfigSnapshotResponse struct { func (x *GetConfigSnapshotResponse) Reset() { *x = GetConfigSnapshotResponse{} - mi := &file_state_v1_state_proto_msgTypes[64] + mi := &file_state_v1_state_proto_msgTypes[62] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3591,7 +3511,7 @@ func (x *GetConfigSnapshotResponse) String() string { func (*GetConfigSnapshotResponse) ProtoMessage() {} func (x *GetConfigSnapshotResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[64] + mi := &file_state_v1_state_proto_msgTypes[62] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3604,7 +3524,7 @@ func (x *GetConfigSnapshotResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetConfigSnapshotResponse.ProtoReflect.Descriptor instead. func (*GetConfigSnapshotResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{64} + return file_state_v1_state_proto_rawDescGZIP(), []int{62} } func (x *GetConfigSnapshotResponse) GetSnapshot() *ConfigSnapshot { @@ -3632,7 +3552,7 @@ type InsertCaptureRequest struct { func (x *InsertCaptureRequest) Reset() { *x = InsertCaptureRequest{} - mi := &file_state_v1_state_proto_msgTypes[65] + mi := &file_state_v1_state_proto_msgTypes[63] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3644,7 +3564,7 @@ func (x *InsertCaptureRequest) String() string { func (*InsertCaptureRequest) ProtoMessage() {} func (x *InsertCaptureRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[65] + mi := &file_state_v1_state_proto_msgTypes[63] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3657,7 +3577,7 @@ func (x *InsertCaptureRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use InsertCaptureRequest.ProtoReflect.Descriptor instead. func (*InsertCaptureRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{65} + return file_state_v1_state_proto_rawDescGZIP(), []int{63} } func (x *InsertCaptureRequest) GetCapture() *CapturedEvent { @@ -3690,7 +3610,7 @@ type InsertCaptureResponse struct { func (x *InsertCaptureResponse) Reset() { *x = InsertCaptureResponse{} - mi := &file_state_v1_state_proto_msgTypes[66] + mi := &file_state_v1_state_proto_msgTypes[64] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3702,7 +3622,7 @@ func (x *InsertCaptureResponse) String() string { func (*InsertCaptureResponse) ProtoMessage() {} func (x *InsertCaptureResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[66] + mi := &file_state_v1_state_proto_msgTypes[64] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3715,7 +3635,7 @@ func (x *InsertCaptureResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use InsertCaptureResponse.ProtoReflect.Descriptor instead. func (*InsertCaptureResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{66} + return file_state_v1_state_proto_rawDescGZIP(), []int{64} } func (x *InsertCaptureResponse) GetId() int64 { @@ -3734,7 +3654,7 @@ type ListCapturesRequest struct { func (x *ListCapturesRequest) Reset() { *x = ListCapturesRequest{} - mi := &file_state_v1_state_proto_msgTypes[67] + mi := &file_state_v1_state_proto_msgTypes[65] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3746,7 +3666,7 @@ func (x *ListCapturesRequest) String() string { func (*ListCapturesRequest) ProtoMessage() {} func (x *ListCapturesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[67] + mi := &file_state_v1_state_proto_msgTypes[65] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3759,7 +3679,7 @@ func (x *ListCapturesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListCapturesRequest.ProtoReflect.Descriptor instead. func (*ListCapturesRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{67} + return file_state_v1_state_proto_rawDescGZIP(), []int{65} } func (x *ListCapturesRequest) GetLimit() int64 { @@ -3778,7 +3698,7 @@ type ListCapturesResponse struct { func (x *ListCapturesResponse) Reset() { *x = ListCapturesResponse{} - mi := &file_state_v1_state_proto_msgTypes[68] + mi := &file_state_v1_state_proto_msgTypes[66] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3790,7 +3710,7 @@ func (x *ListCapturesResponse) String() string { func (*ListCapturesResponse) ProtoMessage() {} func (x *ListCapturesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[68] + mi := &file_state_v1_state_proto_msgTypes[66] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3803,7 +3723,7 @@ func (x *ListCapturesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListCapturesResponse.ProtoReflect.Descriptor instead. func (*ListCapturesResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{68} + return file_state_v1_state_proto_rawDescGZIP(), []int{66} } func (x *ListCapturesResponse) GetCaptures() []*CapturedEvent { @@ -3822,7 +3742,7 @@ type StreamCapturesRequest struct { func (x *StreamCapturesRequest) Reset() { *x = StreamCapturesRequest{} - mi := &file_state_v1_state_proto_msgTypes[69] + mi := &file_state_v1_state_proto_msgTypes[67] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3834,7 +3754,7 @@ func (x *StreamCapturesRequest) String() string { func (*StreamCapturesRequest) ProtoMessage() {} func (x *StreamCapturesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[69] + mi := &file_state_v1_state_proto_msgTypes[67] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3847,7 +3767,7 @@ func (x *StreamCapturesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use StreamCapturesRequest.ProtoReflect.Descriptor instead. func (*StreamCapturesRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{69} + return file_state_v1_state_proto_rawDescGZIP(), []int{67} } func (x *StreamCapturesRequest) GetLimit() int64 { @@ -3867,7 +3787,7 @@ type StreamCapturesResponse struct { func (x *StreamCapturesResponse) Reset() { *x = StreamCapturesResponse{} - mi := &file_state_v1_state_proto_msgTypes[70] + mi := &file_state_v1_state_proto_msgTypes[68] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3879,7 +3799,7 @@ func (x *StreamCapturesResponse) String() string { func (*StreamCapturesResponse) ProtoMessage() {} func (x *StreamCapturesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[70] + mi := &file_state_v1_state_proto_msgTypes[68] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3892,7 +3812,7 @@ func (x *StreamCapturesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use StreamCapturesResponse.ProtoReflect.Descriptor instead. func (*StreamCapturesResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{70} + return file_state_v1_state_proto_rawDescGZIP(), []int{68} } func (x *StreamCapturesResponse) GetCapture() *CapturedEvent { @@ -3911,7 +3831,7 @@ type InsertMappingRequest struct { func (x *InsertMappingRequest) Reset() { *x = InsertMappingRequest{} - mi := &file_state_v1_state_proto_msgTypes[71] + mi := &file_state_v1_state_proto_msgTypes[69] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3923,7 +3843,7 @@ func (x *InsertMappingRequest) String() string { func (*InsertMappingRequest) ProtoMessage() {} func (x *InsertMappingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[71] + mi := &file_state_v1_state_proto_msgTypes[69] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3936,7 +3856,7 @@ func (x *InsertMappingRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use InsertMappingRequest.ProtoReflect.Descriptor instead. func (*InsertMappingRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{71} + return file_state_v1_state_proto_rawDescGZIP(), []int{69} } func (x *InsertMappingRequest) GetMapping() *Mapping { @@ -3955,7 +3875,7 @@ type InsertMappingResponse struct { func (x *InsertMappingResponse) Reset() { *x = InsertMappingResponse{} - mi := &file_state_v1_state_proto_msgTypes[72] + mi := &file_state_v1_state_proto_msgTypes[70] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3967,7 +3887,7 @@ func (x *InsertMappingResponse) String() string { func (*InsertMappingResponse) ProtoMessage() {} func (x *InsertMappingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[72] + mi := &file_state_v1_state_proto_msgTypes[70] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3980,7 +3900,7 @@ func (x *InsertMappingResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use InsertMappingResponse.ProtoReflect.Descriptor instead. func (*InsertMappingResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{72} + return file_state_v1_state_proto_rawDescGZIP(), []int{70} } func (x *InsertMappingResponse) GetId() int64 { @@ -3999,7 +3919,7 @@ type GetMappingRequest struct { func (x *GetMappingRequest) Reset() { *x = GetMappingRequest{} - mi := &file_state_v1_state_proto_msgTypes[73] + mi := &file_state_v1_state_proto_msgTypes[71] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4011,7 +3931,7 @@ func (x *GetMappingRequest) String() string { func (*GetMappingRequest) ProtoMessage() {} func (x *GetMappingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[73] + mi := &file_state_v1_state_proto_msgTypes[71] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4024,7 +3944,7 @@ func (x *GetMappingRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetMappingRequest.ProtoReflect.Descriptor instead. func (*GetMappingRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{73} + return file_state_v1_state_proto_rawDescGZIP(), []int{71} } func (x *GetMappingRequest) GetId() int64 { @@ -4044,7 +3964,7 @@ type GetMappingResponse struct { func (x *GetMappingResponse) Reset() { *x = GetMappingResponse{} - mi := &file_state_v1_state_proto_msgTypes[74] + mi := &file_state_v1_state_proto_msgTypes[72] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4056,7 +3976,7 @@ func (x *GetMappingResponse) String() string { func (*GetMappingResponse) ProtoMessage() {} func (x *GetMappingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[74] + mi := &file_state_v1_state_proto_msgTypes[72] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4069,7 +3989,7 @@ func (x *GetMappingResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetMappingResponse.ProtoReflect.Descriptor instead. func (*GetMappingResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{74} + return file_state_v1_state_proto_rawDescGZIP(), []int{72} } func (x *GetMappingResponse) GetMapping() *Mapping { @@ -4094,7 +4014,7 @@ type ListMappingsRequest struct { func (x *ListMappingsRequest) Reset() { *x = ListMappingsRequest{} - mi := &file_state_v1_state_proto_msgTypes[75] + mi := &file_state_v1_state_proto_msgTypes[73] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4106,7 +4026,7 @@ func (x *ListMappingsRequest) String() string { func (*ListMappingsRequest) ProtoMessage() {} func (x *ListMappingsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[75] + mi := &file_state_v1_state_proto_msgTypes[73] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4119,7 +4039,7 @@ func (x *ListMappingsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListMappingsRequest.ProtoReflect.Descriptor instead. func (*ListMappingsRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{75} + return file_state_v1_state_proto_rawDescGZIP(), []int{73} } type ListMappingsResponse struct { @@ -4131,7 +4051,7 @@ type ListMappingsResponse struct { func (x *ListMappingsResponse) Reset() { *x = ListMappingsResponse{} - mi := &file_state_v1_state_proto_msgTypes[76] + mi := &file_state_v1_state_proto_msgTypes[74] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4143,7 +4063,7 @@ func (x *ListMappingsResponse) String() string { func (*ListMappingsResponse) ProtoMessage() {} func (x *ListMappingsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[76] + mi := &file_state_v1_state_proto_msgTypes[74] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4156,7 +4076,7 @@ func (x *ListMappingsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListMappingsResponse.ProtoReflect.Descriptor instead. func (*ListMappingsResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{76} + return file_state_v1_state_proto_rawDescGZIP(), []int{74} } func (x *ListMappingsResponse) GetMappings() []*Mapping { @@ -4175,7 +4095,7 @@ type UpdateMappingRequest struct { func (x *UpdateMappingRequest) Reset() { *x = UpdateMappingRequest{} - mi := &file_state_v1_state_proto_msgTypes[77] + mi := &file_state_v1_state_proto_msgTypes[75] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4187,7 +4107,7 @@ func (x *UpdateMappingRequest) String() string { func (*UpdateMappingRequest) ProtoMessage() {} func (x *UpdateMappingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[77] + mi := &file_state_v1_state_proto_msgTypes[75] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4200,7 +4120,7 @@ func (x *UpdateMappingRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateMappingRequest.ProtoReflect.Descriptor instead. func (*UpdateMappingRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{77} + return file_state_v1_state_proto_rawDescGZIP(), []int{75} } func (x *UpdateMappingRequest) GetMapping() *Mapping { @@ -4218,7 +4138,7 @@ type UpdateMappingResponse struct { func (x *UpdateMappingResponse) Reset() { *x = UpdateMappingResponse{} - mi := &file_state_v1_state_proto_msgTypes[78] + mi := &file_state_v1_state_proto_msgTypes[76] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4230,7 +4150,7 @@ func (x *UpdateMappingResponse) String() string { func (*UpdateMappingResponse) ProtoMessage() {} func (x *UpdateMappingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[78] + mi := &file_state_v1_state_proto_msgTypes[76] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4243,7 +4163,7 @@ func (x *UpdateMappingResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateMappingResponse.ProtoReflect.Descriptor instead. func (*UpdateMappingResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{78} + return file_state_v1_state_proto_rawDescGZIP(), []int{76} } type DeleteMappingRequest struct { @@ -4255,7 +4175,7 @@ type DeleteMappingRequest struct { func (x *DeleteMappingRequest) Reset() { *x = DeleteMappingRequest{} - mi := &file_state_v1_state_proto_msgTypes[79] + mi := &file_state_v1_state_proto_msgTypes[77] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4267,7 +4187,7 @@ func (x *DeleteMappingRequest) String() string { func (*DeleteMappingRequest) ProtoMessage() {} func (x *DeleteMappingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[79] + mi := &file_state_v1_state_proto_msgTypes[77] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4280,7 +4200,7 @@ func (x *DeleteMappingRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteMappingRequest.ProtoReflect.Descriptor instead. func (*DeleteMappingRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{79} + return file_state_v1_state_proto_rawDescGZIP(), []int{77} } func (x *DeleteMappingRequest) GetId() int64 { @@ -4298,7 +4218,7 @@ type DeleteMappingResponse struct { func (x *DeleteMappingResponse) Reset() { *x = DeleteMappingResponse{} - mi := &file_state_v1_state_proto_msgTypes[80] + mi := &file_state_v1_state_proto_msgTypes[78] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4310,7 +4230,7 @@ func (x *DeleteMappingResponse) String() string { func (*DeleteMappingResponse) ProtoMessage() {} func (x *DeleteMappingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[80] + mi := &file_state_v1_state_proto_msgTypes[78] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4323,7 +4243,7 @@ func (x *DeleteMappingResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteMappingResponse.ProtoReflect.Descriptor instead. func (*DeleteMappingResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{80} + return file_state_v1_state_proto_rawDescGZIP(), []int{78} } type InsertBindingRequest struct { @@ -4335,7 +4255,7 @@ type InsertBindingRequest struct { func (x *InsertBindingRequest) Reset() { *x = InsertBindingRequest{} - mi := &file_state_v1_state_proto_msgTypes[81] + mi := &file_state_v1_state_proto_msgTypes[79] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4347,7 +4267,7 @@ func (x *InsertBindingRequest) String() string { func (*InsertBindingRequest) ProtoMessage() {} func (x *InsertBindingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[81] + mi := &file_state_v1_state_proto_msgTypes[79] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4360,7 +4280,7 @@ func (x *InsertBindingRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use InsertBindingRequest.ProtoReflect.Descriptor instead. func (*InsertBindingRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{81} + return file_state_v1_state_proto_rawDescGZIP(), []int{79} } func (x *InsertBindingRequest) GetBinding() *Binding { @@ -4379,7 +4299,7 @@ type InsertBindingResponse struct { func (x *InsertBindingResponse) Reset() { *x = InsertBindingResponse{} - mi := &file_state_v1_state_proto_msgTypes[82] + mi := &file_state_v1_state_proto_msgTypes[80] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4391,7 +4311,7 @@ func (x *InsertBindingResponse) String() string { func (*InsertBindingResponse) ProtoMessage() {} func (x *InsertBindingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[82] + mi := &file_state_v1_state_proto_msgTypes[80] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4404,7 +4324,7 @@ func (x *InsertBindingResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use InsertBindingResponse.ProtoReflect.Descriptor instead. func (*InsertBindingResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{82} + return file_state_v1_state_proto_rawDescGZIP(), []int{80} } func (x *InsertBindingResponse) GetId() int64 { @@ -4423,7 +4343,7 @@ type GetBindingRequest struct { func (x *GetBindingRequest) Reset() { *x = GetBindingRequest{} - mi := &file_state_v1_state_proto_msgTypes[83] + mi := &file_state_v1_state_proto_msgTypes[81] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4435,7 +4355,7 @@ func (x *GetBindingRequest) String() string { func (*GetBindingRequest) ProtoMessage() {} func (x *GetBindingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[83] + mi := &file_state_v1_state_proto_msgTypes[81] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4448,7 +4368,7 @@ func (x *GetBindingRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetBindingRequest.ProtoReflect.Descriptor instead. func (*GetBindingRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{83} + return file_state_v1_state_proto_rawDescGZIP(), []int{81} } func (x *GetBindingRequest) GetId() int64 { @@ -4468,7 +4388,7 @@ type GetBindingResponse struct { func (x *GetBindingResponse) Reset() { *x = GetBindingResponse{} - mi := &file_state_v1_state_proto_msgTypes[84] + mi := &file_state_v1_state_proto_msgTypes[82] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4480,7 +4400,7 @@ func (x *GetBindingResponse) String() string { func (*GetBindingResponse) ProtoMessage() {} func (x *GetBindingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[84] + mi := &file_state_v1_state_proto_msgTypes[82] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4493,7 +4413,7 @@ func (x *GetBindingResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetBindingResponse.ProtoReflect.Descriptor instead. func (*GetBindingResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{84} + return file_state_v1_state_proto_rawDescGZIP(), []int{82} } func (x *GetBindingResponse) GetBinding() *Binding { @@ -4518,7 +4438,7 @@ type ListBindingsRequest struct { func (x *ListBindingsRequest) Reset() { *x = ListBindingsRequest{} - mi := &file_state_v1_state_proto_msgTypes[85] + mi := &file_state_v1_state_proto_msgTypes[83] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4530,7 +4450,7 @@ func (x *ListBindingsRequest) String() string { func (*ListBindingsRequest) ProtoMessage() {} func (x *ListBindingsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[85] + mi := &file_state_v1_state_proto_msgTypes[83] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4543,7 +4463,7 @@ func (x *ListBindingsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListBindingsRequest.ProtoReflect.Descriptor instead. func (*ListBindingsRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{85} + return file_state_v1_state_proto_rawDescGZIP(), []int{83} } type ListBindingsResponse struct { @@ -4555,7 +4475,7 @@ type ListBindingsResponse struct { func (x *ListBindingsResponse) Reset() { *x = ListBindingsResponse{} - mi := &file_state_v1_state_proto_msgTypes[86] + mi := &file_state_v1_state_proto_msgTypes[84] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4567,7 +4487,7 @@ func (x *ListBindingsResponse) String() string { func (*ListBindingsResponse) ProtoMessage() {} func (x *ListBindingsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[86] + mi := &file_state_v1_state_proto_msgTypes[84] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4580,7 +4500,7 @@ func (x *ListBindingsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListBindingsResponse.ProtoReflect.Descriptor instead. func (*ListBindingsResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{86} + return file_state_v1_state_proto_rawDescGZIP(), []int{84} } func (x *ListBindingsResponse) GetBindings() []*Binding { @@ -4599,7 +4519,7 @@ type UpdateBindingRequest struct { func (x *UpdateBindingRequest) Reset() { *x = UpdateBindingRequest{} - mi := &file_state_v1_state_proto_msgTypes[87] + mi := &file_state_v1_state_proto_msgTypes[85] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4611,7 +4531,7 @@ func (x *UpdateBindingRequest) String() string { func (*UpdateBindingRequest) ProtoMessage() {} func (x *UpdateBindingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[87] + mi := &file_state_v1_state_proto_msgTypes[85] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4624,7 +4544,7 @@ func (x *UpdateBindingRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateBindingRequest.ProtoReflect.Descriptor instead. func (*UpdateBindingRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{87} + return file_state_v1_state_proto_rawDescGZIP(), []int{85} } func (x *UpdateBindingRequest) GetBinding() *Binding { @@ -4642,7 +4562,7 @@ type UpdateBindingResponse struct { func (x *UpdateBindingResponse) Reset() { *x = UpdateBindingResponse{} - mi := &file_state_v1_state_proto_msgTypes[88] + mi := &file_state_v1_state_proto_msgTypes[86] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4654,7 +4574,7 @@ func (x *UpdateBindingResponse) String() string { func (*UpdateBindingResponse) ProtoMessage() {} func (x *UpdateBindingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[88] + mi := &file_state_v1_state_proto_msgTypes[86] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4667,7 +4587,7 @@ func (x *UpdateBindingResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateBindingResponse.ProtoReflect.Descriptor instead. func (*UpdateBindingResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{88} + return file_state_v1_state_proto_rawDescGZIP(), []int{86} } type DeleteBindingRequest struct { @@ -4679,7 +4599,7 @@ type DeleteBindingRequest struct { func (x *DeleteBindingRequest) Reset() { *x = DeleteBindingRequest{} - mi := &file_state_v1_state_proto_msgTypes[89] + mi := &file_state_v1_state_proto_msgTypes[87] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4691,7 +4611,7 @@ func (x *DeleteBindingRequest) String() string { func (*DeleteBindingRequest) ProtoMessage() {} func (x *DeleteBindingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[89] + mi := &file_state_v1_state_proto_msgTypes[87] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4704,7 +4624,7 @@ func (x *DeleteBindingRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteBindingRequest.ProtoReflect.Descriptor instead. func (*DeleteBindingRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{89} + return file_state_v1_state_proto_rawDescGZIP(), []int{87} } func (x *DeleteBindingRequest) GetId() int64 { @@ -4722,7 +4642,7 @@ type DeleteBindingResponse struct { func (x *DeleteBindingResponse) Reset() { *x = DeleteBindingResponse{} - mi := &file_state_v1_state_proto_msgTypes[90] + mi := &file_state_v1_state_proto_msgTypes[88] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4734,7 +4654,7 @@ func (x *DeleteBindingResponse) String() string { func (*DeleteBindingResponse) ProtoMessage() {} func (x *DeleteBindingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[90] + mi := &file_state_v1_state_proto_msgTypes[88] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4747,7 +4667,7 @@ func (x *DeleteBindingResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteBindingResponse.ProtoReflect.Descriptor instead. func (*DeleteBindingResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{90} + return file_state_v1_state_proto_rawDescGZIP(), []int{88} } type ApproveBindingRequest struct { @@ -4759,7 +4679,7 @@ type ApproveBindingRequest struct { func (x *ApproveBindingRequest) Reset() { *x = ApproveBindingRequest{} - mi := &file_state_v1_state_proto_msgTypes[91] + mi := &file_state_v1_state_proto_msgTypes[89] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4771,7 +4691,7 @@ func (x *ApproveBindingRequest) String() string { func (*ApproveBindingRequest) ProtoMessage() {} func (x *ApproveBindingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[91] + mi := &file_state_v1_state_proto_msgTypes[89] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4784,7 +4704,7 @@ func (x *ApproveBindingRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ApproveBindingRequest.ProtoReflect.Descriptor instead. func (*ApproveBindingRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{91} + return file_state_v1_state_proto_rawDescGZIP(), []int{89} } func (x *ApproveBindingRequest) GetId() int64 { @@ -4802,7 +4722,7 @@ type ApproveBindingResponse struct { func (x *ApproveBindingResponse) Reset() { *x = ApproveBindingResponse{} - mi := &file_state_v1_state_proto_msgTypes[92] + mi := &file_state_v1_state_proto_msgTypes[90] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4814,7 +4734,7 @@ func (x *ApproveBindingResponse) String() string { func (*ApproveBindingResponse) ProtoMessage() {} func (x *ApproveBindingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[92] + mi := &file_state_v1_state_proto_msgTypes[90] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4827,7 +4747,7 @@ func (x *ApproveBindingResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ApproveBindingResponse.ProtoReflect.Descriptor instead. func (*ApproveBindingResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{92} + return file_state_v1_state_proto_rawDescGZIP(), []int{90} } type ArmedBindingsForSourceRequest struct { @@ -4839,7 +4759,7 @@ type ArmedBindingsForSourceRequest struct { func (x *ArmedBindingsForSourceRequest) Reset() { *x = ArmedBindingsForSourceRequest{} - mi := &file_state_v1_state_proto_msgTypes[93] + mi := &file_state_v1_state_proto_msgTypes[91] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4851,7 +4771,7 @@ func (x *ArmedBindingsForSourceRequest) String() string { func (*ArmedBindingsForSourceRequest) ProtoMessage() {} func (x *ArmedBindingsForSourceRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[93] + mi := &file_state_v1_state_proto_msgTypes[91] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4864,7 +4784,7 @@ func (x *ArmedBindingsForSourceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ArmedBindingsForSourceRequest.ProtoReflect.Descriptor instead. func (*ArmedBindingsForSourceRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{93} + return file_state_v1_state_proto_rawDescGZIP(), []int{91} } func (x *ArmedBindingsForSourceRequest) GetSource() string { @@ -4883,7 +4803,7 @@ type ArmedBindingsForSourceResponse struct { func (x *ArmedBindingsForSourceResponse) Reset() { *x = ArmedBindingsForSourceResponse{} - mi := &file_state_v1_state_proto_msgTypes[94] + mi := &file_state_v1_state_proto_msgTypes[92] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4895,7 +4815,7 @@ func (x *ArmedBindingsForSourceResponse) String() string { func (*ArmedBindingsForSourceResponse) ProtoMessage() {} func (x *ArmedBindingsForSourceResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[94] + mi := &file_state_v1_state_proto_msgTypes[92] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4908,7 +4828,7 @@ func (x *ArmedBindingsForSourceResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ArmedBindingsForSourceResponse.ProtoReflect.Descriptor instead. func (*ArmedBindingsForSourceResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{94} + return file_state_v1_state_proto_rawDescGZIP(), []int{92} } func (x *ArmedBindingsForSourceResponse) GetBindings() []*Binding { @@ -4930,7 +4850,7 @@ type RecordDispatchRequest struct { func (x *RecordDispatchRequest) Reset() { *x = RecordDispatchRequest{} - mi := &file_state_v1_state_proto_msgTypes[95] + mi := &file_state_v1_state_proto_msgTypes[93] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4942,7 +4862,7 @@ func (x *RecordDispatchRequest) String() string { func (*RecordDispatchRequest) ProtoMessage() {} func (x *RecordDispatchRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[95] + mi := &file_state_v1_state_proto_msgTypes[93] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4955,7 +4875,7 @@ func (x *RecordDispatchRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RecordDispatchRequest.ProtoReflect.Descriptor instead. func (*RecordDispatchRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{95} + return file_state_v1_state_proto_rawDescGZIP(), []int{93} } func (x *RecordDispatchRequest) GetBindingId() int64 { @@ -4994,7 +4914,7 @@ type RecordDispatchResponse struct { func (x *RecordDispatchResponse) Reset() { *x = RecordDispatchResponse{} - mi := &file_state_v1_state_proto_msgTypes[96] + mi := &file_state_v1_state_proto_msgTypes[94] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5006,7 +4926,7 @@ func (x *RecordDispatchResponse) String() string { func (*RecordDispatchResponse) ProtoMessage() {} func (x *RecordDispatchResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[96] + mi := &file_state_v1_state_proto_msgTypes[94] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5019,7 +4939,7 @@ func (x *RecordDispatchResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RecordDispatchResponse.ProtoReflect.Descriptor instead. func (*RecordDispatchResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{96} + return file_state_v1_state_proto_rawDescGZIP(), []int{94} } type ListUndispatchedCapturesRequest struct { @@ -5032,7 +4952,7 @@ type ListUndispatchedCapturesRequest struct { func (x *ListUndispatchedCapturesRequest) Reset() { *x = ListUndispatchedCapturesRequest{} - mi := &file_state_v1_state_proto_msgTypes[97] + mi := &file_state_v1_state_proto_msgTypes[95] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5044,7 +4964,7 @@ func (x *ListUndispatchedCapturesRequest) String() string { func (*ListUndispatchedCapturesRequest) ProtoMessage() {} func (x *ListUndispatchedCapturesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[97] + mi := &file_state_v1_state_proto_msgTypes[95] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5057,7 +4977,7 @@ func (x *ListUndispatchedCapturesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListUndispatchedCapturesRequest.ProtoReflect.Descriptor instead. func (*ListUndispatchedCapturesRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{97} + return file_state_v1_state_proto_rawDescGZIP(), []int{95} } func (x *ListUndispatchedCapturesRequest) GetSources() []string { @@ -5083,7 +5003,7 @@ type ListUndispatchedCapturesResponse struct { func (x *ListUndispatchedCapturesResponse) Reset() { *x = ListUndispatchedCapturesResponse{} - mi := &file_state_v1_state_proto_msgTypes[98] + mi := &file_state_v1_state_proto_msgTypes[96] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5095,7 +5015,7 @@ func (x *ListUndispatchedCapturesResponse) String() string { func (*ListUndispatchedCapturesResponse) ProtoMessage() {} func (x *ListUndispatchedCapturesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[98] + mi := &file_state_v1_state_proto_msgTypes[96] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5108,7 +5028,7 @@ func (x *ListUndispatchedCapturesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListUndispatchedCapturesResponse.ProtoReflect.Descriptor instead. func (*ListUndispatchedCapturesResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{98} + return file_state_v1_state_proto_rawDescGZIP(), []int{96} } func (x *ListUndispatchedCapturesResponse) GetCaptures() []*CapturedEvent { @@ -5128,7 +5048,7 @@ type StreamUndispatchedCapturesRequest struct { func (x *StreamUndispatchedCapturesRequest) Reset() { *x = StreamUndispatchedCapturesRequest{} - mi := &file_state_v1_state_proto_msgTypes[99] + mi := &file_state_v1_state_proto_msgTypes[97] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5140,7 +5060,7 @@ func (x *StreamUndispatchedCapturesRequest) String() string { func (*StreamUndispatchedCapturesRequest) ProtoMessage() {} func (x *StreamUndispatchedCapturesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[99] + mi := &file_state_v1_state_proto_msgTypes[97] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5153,7 +5073,7 @@ func (x *StreamUndispatchedCapturesRequest) ProtoReflect() protoreflect.Message // Deprecated: Use StreamUndispatchedCapturesRequest.ProtoReflect.Descriptor instead. func (*StreamUndispatchedCapturesRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{99} + return file_state_v1_state_proto_rawDescGZIP(), []int{97} } func (x *StreamUndispatchedCapturesRequest) GetSources() []string { @@ -5180,7 +5100,7 @@ type StreamUndispatchedCapturesResponse struct { func (x *StreamUndispatchedCapturesResponse) Reset() { *x = StreamUndispatchedCapturesResponse{} - mi := &file_state_v1_state_proto_msgTypes[100] + mi := &file_state_v1_state_proto_msgTypes[98] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5192,7 +5112,7 @@ func (x *StreamUndispatchedCapturesResponse) String() string { func (*StreamUndispatchedCapturesResponse) ProtoMessage() {} func (x *StreamUndispatchedCapturesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[100] + mi := &file_state_v1_state_proto_msgTypes[98] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5205,7 +5125,7 @@ func (x *StreamUndispatchedCapturesResponse) ProtoReflect() protoreflect.Message // Deprecated: Use StreamUndispatchedCapturesResponse.ProtoReflect.Descriptor instead. func (*StreamUndispatchedCapturesResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{100} + return file_state_v1_state_proto_rawDescGZIP(), []int{98} } func (x *StreamUndispatchedCapturesResponse) GetCapture() *CapturedEvent { @@ -5231,7 +5151,7 @@ type EnqueueBindingTaskRequest struct { func (x *EnqueueBindingTaskRequest) Reset() { *x = EnqueueBindingTaskRequest{} - mi := &file_state_v1_state_proto_msgTypes[101] + mi := &file_state_v1_state_proto_msgTypes[99] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5243,7 +5163,7 @@ func (x *EnqueueBindingTaskRequest) String() string { func (*EnqueueBindingTaskRequest) ProtoMessage() {} func (x *EnqueueBindingTaskRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[101] + mi := &file_state_v1_state_proto_msgTypes[99] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5256,7 +5176,7 @@ func (x *EnqueueBindingTaskRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use EnqueueBindingTaskRequest.ProtoReflect.Descriptor instead. func (*EnqueueBindingTaskRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{101} + return file_state_v1_state_proto_rawDescGZIP(), []int{99} } func (x *EnqueueBindingTaskRequest) GetOwner() string { @@ -5324,7 +5244,7 @@ type EnqueueBindingTaskResponse struct { func (x *EnqueueBindingTaskResponse) Reset() { *x = EnqueueBindingTaskResponse{} - mi := &file_state_v1_state_proto_msgTypes[102] + mi := &file_state_v1_state_proto_msgTypes[100] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5336,7 +5256,7 @@ func (x *EnqueueBindingTaskResponse) String() string { func (*EnqueueBindingTaskResponse) ProtoMessage() {} func (x *EnqueueBindingTaskResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[102] + mi := &file_state_v1_state_proto_msgTypes[100] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5349,7 +5269,7 @@ func (x *EnqueueBindingTaskResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use EnqueueBindingTaskResponse.ProtoReflect.Descriptor instead. func (*EnqueueBindingTaskResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{102} + return file_state_v1_state_proto_rawDescGZIP(), []int{100} } func (x *EnqueueBindingTaskResponse) GetTask() *Task { @@ -5572,10 +5492,7 @@ const file_state_v1_state_proto_rawDesc = "" + "\x06counts\x18\x01 \x03(\v2*.state.v1.StatusCountsResponse.CountsEntryR\x06counts\x1a9\n" + "\vCountsEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + - "\x05value\x18\x02 \x01(\x03R\x05value:\x028\x01\"5\n" + - "\x1aIncrementRetryCountRequest\x12\x17\n" + - "\atask_id\x18\x01 \x01(\x03R\x06taskId\"\x1d\n" + - "\x1bIncrementRetryCountResponse\";\n" + + "\x05value\x18\x02 \x01(\x03R\x05value:\x028\x01\";\n" + "\x12InsertEventRequest\x12%\n" + "\x05event\x18\x01 \x01(\v2\x0f.state.v1.EventR\x05event\"%\n" + "\x13InsertEventResponse\x12\x0e\n" + @@ -5697,7 +5614,7 @@ const file_state_v1_state_proto_rawDesc = "" + "binding_id\x18\a \x01(\x03R\tbindingId\x12'\n" + "\x0fbinding_version\x18\b \x01(\x03R\x0ebindingVersion\"@\n" + "\x1aEnqueueBindingTaskResponse\x12\"\n" + - "\x04task\x18\x01 \x01(\v2\x0e.state.v1.TaskR\x04task2\xd1\x1d\n" + + "\x04task\x18\x01 \x01(\v2\x0e.state.v1.TaskR\x04task2\xed\x1c\n" + "\x11StateStoreService\x12\\\n" + "\x11RegisterTaskGrant\x12\".state.v1.RegisterTaskGrantRequest\x1a#.state.v1.RegisterTaskGrantResponse\x12V\n" + "\x0fRevokeTaskGrant\x12 .state.v1.RevokeTaskGrantRequest\x1a!.state.v1.RevokeTaskGrantResponse\x12M\n" + @@ -5717,8 +5634,7 @@ const file_state_v1_state_proto_rawDesc = "" + "\aOpenPRs\x12\x18.state.v1.OpenPRsRequest\x1a\x19.state.v1.OpenPRsResponse\x12_\n" + "\x12ClearTerminalTasks\x12#.state.v1.ClearTerminalTasksRequest\x1a$.state.v1.ClearTerminalTasksResponse\x128\n" + "\x05Tasks\x12\x16.state.v1.TasksRequest\x1a\x17.state.v1.TasksResponse\x12M\n" + - "\fStatusCounts\x12\x1d.state.v1.StatusCountsRequest\x1a\x1e.state.v1.StatusCountsResponse\x12b\n" + - "\x13IncrementRetryCount\x12$.state.v1.IncrementRetryCountRequest\x1a%.state.v1.IncrementRetryCountResponse\x12J\n" + + "\fStatusCounts\x12\x1d.state.v1.StatusCountsRequest\x1a\x1e.state.v1.StatusCountsResponse\x12J\n" + "\vInsertEvent\x12\x1c.state.v1.InsertEventRequest\x1a\x1d.state.v1.InsertEventResponse\x12J\n" + "\vEventsSince\x12\x1c.state.v1.EventsSinceRequest\x1a\x1d.state.v1.EventsSinceResponse\x12G\n" + "\n" + @@ -5765,7 +5681,7 @@ func file_state_v1_state_proto_rawDescGZIP() []byte { return file_state_v1_state_proto_rawDescData } -var file_state_v1_state_proto_msgTypes = make([]protoimpl.MessageInfo, 104) +var file_state_v1_state_proto_msgTypes = make([]protoimpl.MessageInfo, 102) var file_state_v1_state_proto_goTypes = []any{ (*RegisterTaskGrantRequest)(nil), // 0: state.v1.RegisterTaskGrantRequest (*RegisterTaskGrantResponse)(nil), // 1: state.v1.RegisterTaskGrantResponse @@ -5813,77 +5729,75 @@ var file_state_v1_state_proto_goTypes = []any{ (*TasksResponse)(nil), // 43: state.v1.TasksResponse (*StatusCountsRequest)(nil), // 44: state.v1.StatusCountsRequest (*StatusCountsResponse)(nil), // 45: state.v1.StatusCountsResponse - (*IncrementRetryCountRequest)(nil), // 46: state.v1.IncrementRetryCountRequest - (*IncrementRetryCountResponse)(nil), // 47: state.v1.IncrementRetryCountResponse - (*InsertEventRequest)(nil), // 48: state.v1.InsertEventRequest - (*InsertEventResponse)(nil), // 49: state.v1.InsertEventResponse - (*EventsSinceRequest)(nil), // 50: state.v1.EventsSinceRequest - (*EventsSinceResponse)(nil), // 51: state.v1.EventsSinceResponse - (*TaskEventsRequest)(nil), // 52: state.v1.TaskEventsRequest - (*TaskEventsResponse)(nil), // 53: state.v1.TaskEventsResponse - (*WorkflowStatsRequest)(nil), // 54: state.v1.WorkflowStatsRequest - (*WorkflowStatsResponse)(nil), // 55: state.v1.WorkflowStatsResponse - (*StageStatsRequest)(nil), // 56: state.v1.StageStatsRequest - (*StageStatsResponse)(nil), // 57: state.v1.StageStatsResponse - (*TokensByDayRequest)(nil), // 58: state.v1.TokensByDayRequest - (*TokensByDayResponse)(nil), // 59: state.v1.TokensByDayResponse - (*ConfigSnapshot)(nil), // 60: state.v1.ConfigSnapshot - (*PutConfigSnapshotRequest)(nil), // 61: state.v1.PutConfigSnapshotRequest - (*PutConfigSnapshotResponse)(nil), // 62: state.v1.PutConfigSnapshotResponse - (*GetConfigSnapshotRequest)(nil), // 63: state.v1.GetConfigSnapshotRequest - (*GetConfigSnapshotResponse)(nil), // 64: state.v1.GetConfigSnapshotResponse - (*InsertCaptureRequest)(nil), // 65: state.v1.InsertCaptureRequest - (*InsertCaptureResponse)(nil), // 66: state.v1.InsertCaptureResponse - (*ListCapturesRequest)(nil), // 67: state.v1.ListCapturesRequest - (*ListCapturesResponse)(nil), // 68: state.v1.ListCapturesResponse - (*StreamCapturesRequest)(nil), // 69: state.v1.StreamCapturesRequest - (*StreamCapturesResponse)(nil), // 70: state.v1.StreamCapturesResponse - (*InsertMappingRequest)(nil), // 71: state.v1.InsertMappingRequest - (*InsertMappingResponse)(nil), // 72: state.v1.InsertMappingResponse - (*GetMappingRequest)(nil), // 73: state.v1.GetMappingRequest - (*GetMappingResponse)(nil), // 74: state.v1.GetMappingResponse - (*ListMappingsRequest)(nil), // 75: state.v1.ListMappingsRequest - (*ListMappingsResponse)(nil), // 76: state.v1.ListMappingsResponse - (*UpdateMappingRequest)(nil), // 77: state.v1.UpdateMappingRequest - (*UpdateMappingResponse)(nil), // 78: state.v1.UpdateMappingResponse - (*DeleteMappingRequest)(nil), // 79: state.v1.DeleteMappingRequest - (*DeleteMappingResponse)(nil), // 80: state.v1.DeleteMappingResponse - (*InsertBindingRequest)(nil), // 81: state.v1.InsertBindingRequest - (*InsertBindingResponse)(nil), // 82: state.v1.InsertBindingResponse - (*GetBindingRequest)(nil), // 83: state.v1.GetBindingRequest - (*GetBindingResponse)(nil), // 84: state.v1.GetBindingResponse - (*ListBindingsRequest)(nil), // 85: state.v1.ListBindingsRequest - (*ListBindingsResponse)(nil), // 86: state.v1.ListBindingsResponse - (*UpdateBindingRequest)(nil), // 87: state.v1.UpdateBindingRequest - (*UpdateBindingResponse)(nil), // 88: state.v1.UpdateBindingResponse - (*DeleteBindingRequest)(nil), // 89: state.v1.DeleteBindingRequest - (*DeleteBindingResponse)(nil), // 90: state.v1.DeleteBindingResponse - (*ApproveBindingRequest)(nil), // 91: state.v1.ApproveBindingRequest - (*ApproveBindingResponse)(nil), // 92: state.v1.ApproveBindingResponse - (*ArmedBindingsForSourceRequest)(nil), // 93: state.v1.ArmedBindingsForSourceRequest - (*ArmedBindingsForSourceResponse)(nil), // 94: state.v1.ArmedBindingsForSourceResponse - (*RecordDispatchRequest)(nil), // 95: state.v1.RecordDispatchRequest - (*RecordDispatchResponse)(nil), // 96: state.v1.RecordDispatchResponse - (*ListUndispatchedCapturesRequest)(nil), // 97: state.v1.ListUndispatchedCapturesRequest - (*ListUndispatchedCapturesResponse)(nil), // 98: state.v1.ListUndispatchedCapturesResponse - (*StreamUndispatchedCapturesRequest)(nil), // 99: state.v1.StreamUndispatchedCapturesRequest - (*StreamUndispatchedCapturesResponse)(nil), // 100: state.v1.StreamUndispatchedCapturesResponse - (*EnqueueBindingTaskRequest)(nil), // 101: state.v1.EnqueueBindingTaskRequest - (*EnqueueBindingTaskResponse)(nil), // 102: state.v1.EnqueueBindingTaskResponse - nil, // 103: state.v1.StatusCountsResponse.CountsEntry - (*timestamppb.Timestamp)(nil), // 104: google.protobuf.Timestamp + (*InsertEventRequest)(nil), // 46: state.v1.InsertEventRequest + (*InsertEventResponse)(nil), // 47: state.v1.InsertEventResponse + (*EventsSinceRequest)(nil), // 48: state.v1.EventsSinceRequest + (*EventsSinceResponse)(nil), // 49: state.v1.EventsSinceResponse + (*TaskEventsRequest)(nil), // 50: state.v1.TaskEventsRequest + (*TaskEventsResponse)(nil), // 51: state.v1.TaskEventsResponse + (*WorkflowStatsRequest)(nil), // 52: state.v1.WorkflowStatsRequest + (*WorkflowStatsResponse)(nil), // 53: state.v1.WorkflowStatsResponse + (*StageStatsRequest)(nil), // 54: state.v1.StageStatsRequest + (*StageStatsResponse)(nil), // 55: state.v1.StageStatsResponse + (*TokensByDayRequest)(nil), // 56: state.v1.TokensByDayRequest + (*TokensByDayResponse)(nil), // 57: state.v1.TokensByDayResponse + (*ConfigSnapshot)(nil), // 58: state.v1.ConfigSnapshot + (*PutConfigSnapshotRequest)(nil), // 59: state.v1.PutConfigSnapshotRequest + (*PutConfigSnapshotResponse)(nil), // 60: state.v1.PutConfigSnapshotResponse + (*GetConfigSnapshotRequest)(nil), // 61: state.v1.GetConfigSnapshotRequest + (*GetConfigSnapshotResponse)(nil), // 62: state.v1.GetConfigSnapshotResponse + (*InsertCaptureRequest)(nil), // 63: state.v1.InsertCaptureRequest + (*InsertCaptureResponse)(nil), // 64: state.v1.InsertCaptureResponse + (*ListCapturesRequest)(nil), // 65: state.v1.ListCapturesRequest + (*ListCapturesResponse)(nil), // 66: state.v1.ListCapturesResponse + (*StreamCapturesRequest)(nil), // 67: state.v1.StreamCapturesRequest + (*StreamCapturesResponse)(nil), // 68: state.v1.StreamCapturesResponse + (*InsertMappingRequest)(nil), // 69: state.v1.InsertMappingRequest + (*InsertMappingResponse)(nil), // 70: state.v1.InsertMappingResponse + (*GetMappingRequest)(nil), // 71: state.v1.GetMappingRequest + (*GetMappingResponse)(nil), // 72: state.v1.GetMappingResponse + (*ListMappingsRequest)(nil), // 73: state.v1.ListMappingsRequest + (*ListMappingsResponse)(nil), // 74: state.v1.ListMappingsResponse + (*UpdateMappingRequest)(nil), // 75: state.v1.UpdateMappingRequest + (*UpdateMappingResponse)(nil), // 76: state.v1.UpdateMappingResponse + (*DeleteMappingRequest)(nil), // 77: state.v1.DeleteMappingRequest + (*DeleteMappingResponse)(nil), // 78: state.v1.DeleteMappingResponse + (*InsertBindingRequest)(nil), // 79: state.v1.InsertBindingRequest + (*InsertBindingResponse)(nil), // 80: state.v1.InsertBindingResponse + (*GetBindingRequest)(nil), // 81: state.v1.GetBindingRequest + (*GetBindingResponse)(nil), // 82: state.v1.GetBindingResponse + (*ListBindingsRequest)(nil), // 83: state.v1.ListBindingsRequest + (*ListBindingsResponse)(nil), // 84: state.v1.ListBindingsResponse + (*UpdateBindingRequest)(nil), // 85: state.v1.UpdateBindingRequest + (*UpdateBindingResponse)(nil), // 86: state.v1.UpdateBindingResponse + (*DeleteBindingRequest)(nil), // 87: state.v1.DeleteBindingRequest + (*DeleteBindingResponse)(nil), // 88: state.v1.DeleteBindingResponse + (*ApproveBindingRequest)(nil), // 89: state.v1.ApproveBindingRequest + (*ApproveBindingResponse)(nil), // 90: state.v1.ApproveBindingResponse + (*ArmedBindingsForSourceRequest)(nil), // 91: state.v1.ArmedBindingsForSourceRequest + (*ArmedBindingsForSourceResponse)(nil), // 92: state.v1.ArmedBindingsForSourceResponse + (*RecordDispatchRequest)(nil), // 93: state.v1.RecordDispatchRequest + (*RecordDispatchResponse)(nil), // 94: state.v1.RecordDispatchResponse + (*ListUndispatchedCapturesRequest)(nil), // 95: state.v1.ListUndispatchedCapturesRequest + (*ListUndispatchedCapturesResponse)(nil), // 96: state.v1.ListUndispatchedCapturesResponse + (*StreamUndispatchedCapturesRequest)(nil), // 97: state.v1.StreamUndispatchedCapturesRequest + (*StreamUndispatchedCapturesResponse)(nil), // 98: state.v1.StreamUndispatchedCapturesResponse + (*EnqueueBindingTaskRequest)(nil), // 99: state.v1.EnqueueBindingTaskRequest + (*EnqueueBindingTaskResponse)(nil), // 100: state.v1.EnqueueBindingTaskResponse + nil, // 101: state.v1.StatusCountsResponse.CountsEntry + (*timestamppb.Timestamp)(nil), // 102: google.protobuf.Timestamp } var file_state_v1_state_proto_depIdxs = []int32{ - 104, // 0: state.v1.Task.created_at:type_name -> google.protobuf.Timestamp - 104, // 1: state.v1.Task.updated_at:type_name -> google.protobuf.Timestamp - 104, // 2: state.v1.Event.at:type_name -> google.protobuf.Timestamp - 104, // 3: state.v1.CapturedEvent.received_at:type_name -> google.protobuf.Timestamp + 102, // 0: state.v1.Task.created_at:type_name -> google.protobuf.Timestamp + 102, // 1: state.v1.Task.updated_at:type_name -> google.protobuf.Timestamp + 102, // 2: state.v1.Event.at:type_name -> google.protobuf.Timestamp + 102, // 3: state.v1.CapturedEvent.received_at:type_name -> google.protobuf.Timestamp 7, // 4: state.v1.Mapping.fields:type_name -> state.v1.MappingField - 104, // 5: state.v1.Mapping.created_at:type_name -> google.protobuf.Timestamp - 104, // 6: state.v1.Mapping.updated_at:type_name -> google.protobuf.Timestamp + 102, // 5: state.v1.Mapping.created_at:type_name -> google.protobuf.Timestamp + 102, // 6: state.v1.Mapping.updated_at:type_name -> google.protobuf.Timestamp 9, // 7: state.v1.Binding.matcher:type_name -> state.v1.BindingMatcher - 104, // 8: state.v1.Binding.created_at:type_name -> google.protobuf.Timestamp - 104, // 9: state.v1.Binding.updated_at:type_name -> google.protobuf.Timestamp + 102, // 8: state.v1.Binding.created_at:type_name -> google.protobuf.Timestamp + 102, // 9: state.v1.Binding.updated_at:type_name -> google.protobuf.Timestamp 4, // 10: state.v1.EnqueueChatTaskResponse.task:type_name -> state.v1.Task 4, // 11: state.v1.ClaimNextResponse.task:type_name -> state.v1.Task 4, // 12: state.v1.ClaimByIssueResponse.task:type_name -> state.v1.Task @@ -5893,16 +5807,16 @@ var file_state_v1_state_proto_depIdxs = []int32{ 4, // 16: state.v1.TaskByIDResponse.task:type_name -> state.v1.Task 4, // 17: state.v1.OpenPRsResponse.tasks:type_name -> state.v1.Task 4, // 18: state.v1.TasksResponse.tasks:type_name -> state.v1.Task - 103, // 19: state.v1.StatusCountsResponse.counts:type_name -> state.v1.StatusCountsResponse.CountsEntry + 101, // 19: state.v1.StatusCountsResponse.counts:type_name -> state.v1.StatusCountsResponse.CountsEntry 5, // 20: state.v1.InsertEventRequest.event:type_name -> state.v1.Event 5, // 21: state.v1.EventsSinceResponse.events:type_name -> state.v1.Event 5, // 22: state.v1.TaskEventsResponse.events:type_name -> state.v1.Event 11, // 23: state.v1.WorkflowStatsResponse.stats:type_name -> state.v1.WorkflowStat 12, // 24: state.v1.StageStatsResponse.stats:type_name -> state.v1.StageStat 13, // 25: state.v1.TokensByDayResponse.tokens:type_name -> state.v1.DayTokens - 104, // 26: state.v1.ConfigSnapshot.published_at:type_name -> google.protobuf.Timestamp - 60, // 27: state.v1.PutConfigSnapshotRequest.snapshot:type_name -> state.v1.ConfigSnapshot - 60, // 28: state.v1.GetConfigSnapshotResponse.snapshot:type_name -> state.v1.ConfigSnapshot + 102, // 26: state.v1.ConfigSnapshot.published_at:type_name -> google.protobuf.Timestamp + 58, // 27: state.v1.PutConfigSnapshotRequest.snapshot:type_name -> state.v1.ConfigSnapshot + 58, // 28: state.v1.GetConfigSnapshotResponse.snapshot:type_name -> state.v1.ConfigSnapshot 6, // 29: state.v1.InsertCaptureRequest.capture:type_name -> state.v1.CapturedEvent 6, // 30: state.v1.ListCapturesResponse.captures:type_name -> state.v1.CapturedEvent 6, // 31: state.v1.StreamCapturesResponse.capture:type_name -> state.v1.CapturedEvent @@ -5936,82 +5850,80 @@ var file_state_v1_state_proto_depIdxs = []int32{ 40, // 59: state.v1.StateStoreService.ClearTerminalTasks:input_type -> state.v1.ClearTerminalTasksRequest 42, // 60: state.v1.StateStoreService.Tasks:input_type -> state.v1.TasksRequest 44, // 61: state.v1.StateStoreService.StatusCounts:input_type -> state.v1.StatusCountsRequest - 46, // 62: state.v1.StateStoreService.IncrementRetryCount:input_type -> state.v1.IncrementRetryCountRequest - 48, // 63: state.v1.StateStoreService.InsertEvent:input_type -> state.v1.InsertEventRequest - 50, // 64: state.v1.StateStoreService.EventsSince:input_type -> state.v1.EventsSinceRequest - 52, // 65: state.v1.StateStoreService.TaskEvents:input_type -> state.v1.TaskEventsRequest - 54, // 66: state.v1.StateStoreService.WorkflowStats:input_type -> state.v1.WorkflowStatsRequest - 56, // 67: state.v1.StateStoreService.StageStats:input_type -> state.v1.StageStatsRequest - 58, // 68: state.v1.StateStoreService.TokensByDay:input_type -> state.v1.TokensByDayRequest - 61, // 69: state.v1.StateStoreService.PutConfigSnapshot:input_type -> state.v1.PutConfigSnapshotRequest - 63, // 70: state.v1.StateStoreService.GetConfigSnapshot:input_type -> state.v1.GetConfigSnapshotRequest - 65, // 71: state.v1.StateStoreService.InsertCapture:input_type -> state.v1.InsertCaptureRequest - 67, // 72: state.v1.StateStoreService.ListCaptures:input_type -> state.v1.ListCapturesRequest - 69, // 73: state.v1.StateStoreService.StreamCaptures:input_type -> state.v1.StreamCapturesRequest - 71, // 74: state.v1.StateStoreService.InsertMapping:input_type -> state.v1.InsertMappingRequest - 73, // 75: state.v1.StateStoreService.GetMapping:input_type -> state.v1.GetMappingRequest - 75, // 76: state.v1.StateStoreService.ListMappings:input_type -> state.v1.ListMappingsRequest - 77, // 77: state.v1.StateStoreService.UpdateMapping:input_type -> state.v1.UpdateMappingRequest - 79, // 78: state.v1.StateStoreService.DeleteMapping:input_type -> state.v1.DeleteMappingRequest - 81, // 79: state.v1.StateStoreService.InsertBinding:input_type -> state.v1.InsertBindingRequest - 83, // 80: state.v1.StateStoreService.GetBinding:input_type -> state.v1.GetBindingRequest - 85, // 81: state.v1.StateStoreService.ListBindings:input_type -> state.v1.ListBindingsRequest - 87, // 82: state.v1.StateStoreService.UpdateBinding:input_type -> state.v1.UpdateBindingRequest - 89, // 83: state.v1.StateStoreService.DeleteBinding:input_type -> state.v1.DeleteBindingRequest - 91, // 84: state.v1.StateStoreService.ApproveBinding:input_type -> state.v1.ApproveBindingRequest - 93, // 85: state.v1.StateStoreService.ArmedBindingsForSource:input_type -> state.v1.ArmedBindingsForSourceRequest - 95, // 86: state.v1.StateStoreService.RecordDispatch:input_type -> state.v1.RecordDispatchRequest - 97, // 87: state.v1.StateStoreService.ListUndispatchedCaptures:input_type -> state.v1.ListUndispatchedCapturesRequest - 99, // 88: state.v1.StateStoreService.StreamUndispatchedCaptures:input_type -> state.v1.StreamUndispatchedCapturesRequest - 101, // 89: state.v1.StateStoreService.EnqueueBindingTask:input_type -> state.v1.EnqueueBindingTaskRequest - 1, // 90: state.v1.StateStoreService.RegisterTaskGrant:output_type -> state.v1.RegisterTaskGrantResponse - 3, // 91: state.v1.StateStoreService.RevokeTaskGrant:output_type -> state.v1.RevokeTaskGrantResponse - 15, // 92: state.v1.StateStoreService.EnqueueIssue:output_type -> state.v1.EnqueueIssueResponse - 17, // 93: state.v1.StateStoreService.EnqueueChatTask:output_type -> state.v1.EnqueueChatTaskResponse - 19, // 94: state.v1.StateStoreService.ClaimNext:output_type -> state.v1.ClaimNextResponse - 21, // 95: state.v1.StateStoreService.ClaimByIssue:output_type -> state.v1.ClaimByIssueResponse - 23, // 96: state.v1.StateStoreService.Transition:output_type -> state.v1.TransitionResponse - 25, // 97: state.v1.StateStoreService.Update:output_type -> state.v1.UpdateResponse - 27, // 98: state.v1.StateStoreService.Requeue:output_type -> state.v1.RequeueResponse - 29, // 99: state.v1.StateStoreService.RecoverStale:output_type -> state.v1.RecoverStaleResponse - 31, // 100: state.v1.StateStoreService.ArchiveTask:output_type -> state.v1.ArchiveTaskResponse - 33, // 101: state.v1.StateStoreService.RetryTask:output_type -> state.v1.RetryTaskResponse - 35, // 102: state.v1.StateStoreService.TaskByIssue:output_type -> state.v1.TaskByIssueResponse - 37, // 103: state.v1.StateStoreService.TaskByID:output_type -> state.v1.TaskByIDResponse - 39, // 104: state.v1.StateStoreService.OpenPRs:output_type -> state.v1.OpenPRsResponse - 41, // 105: state.v1.StateStoreService.ClearTerminalTasks:output_type -> state.v1.ClearTerminalTasksResponse - 43, // 106: state.v1.StateStoreService.Tasks:output_type -> state.v1.TasksResponse - 45, // 107: state.v1.StateStoreService.StatusCounts:output_type -> state.v1.StatusCountsResponse - 47, // 108: state.v1.StateStoreService.IncrementRetryCount:output_type -> state.v1.IncrementRetryCountResponse - 49, // 109: state.v1.StateStoreService.InsertEvent:output_type -> state.v1.InsertEventResponse - 51, // 110: state.v1.StateStoreService.EventsSince:output_type -> state.v1.EventsSinceResponse - 53, // 111: state.v1.StateStoreService.TaskEvents:output_type -> state.v1.TaskEventsResponse - 55, // 112: state.v1.StateStoreService.WorkflowStats:output_type -> state.v1.WorkflowStatsResponse - 57, // 113: state.v1.StateStoreService.StageStats:output_type -> state.v1.StageStatsResponse - 59, // 114: state.v1.StateStoreService.TokensByDay:output_type -> state.v1.TokensByDayResponse - 62, // 115: state.v1.StateStoreService.PutConfigSnapshot:output_type -> state.v1.PutConfigSnapshotResponse - 64, // 116: state.v1.StateStoreService.GetConfigSnapshot:output_type -> state.v1.GetConfigSnapshotResponse - 66, // 117: state.v1.StateStoreService.InsertCapture:output_type -> state.v1.InsertCaptureResponse - 68, // 118: state.v1.StateStoreService.ListCaptures:output_type -> state.v1.ListCapturesResponse - 70, // 119: state.v1.StateStoreService.StreamCaptures:output_type -> state.v1.StreamCapturesResponse - 72, // 120: state.v1.StateStoreService.InsertMapping:output_type -> state.v1.InsertMappingResponse - 74, // 121: state.v1.StateStoreService.GetMapping:output_type -> state.v1.GetMappingResponse - 76, // 122: state.v1.StateStoreService.ListMappings:output_type -> state.v1.ListMappingsResponse - 78, // 123: state.v1.StateStoreService.UpdateMapping:output_type -> state.v1.UpdateMappingResponse - 80, // 124: state.v1.StateStoreService.DeleteMapping:output_type -> state.v1.DeleteMappingResponse - 82, // 125: state.v1.StateStoreService.InsertBinding:output_type -> state.v1.InsertBindingResponse - 84, // 126: state.v1.StateStoreService.GetBinding:output_type -> state.v1.GetBindingResponse - 86, // 127: state.v1.StateStoreService.ListBindings:output_type -> state.v1.ListBindingsResponse - 88, // 128: state.v1.StateStoreService.UpdateBinding:output_type -> state.v1.UpdateBindingResponse - 90, // 129: state.v1.StateStoreService.DeleteBinding:output_type -> state.v1.DeleteBindingResponse - 92, // 130: state.v1.StateStoreService.ApproveBinding:output_type -> state.v1.ApproveBindingResponse - 94, // 131: state.v1.StateStoreService.ArmedBindingsForSource:output_type -> state.v1.ArmedBindingsForSourceResponse - 96, // 132: state.v1.StateStoreService.RecordDispatch:output_type -> state.v1.RecordDispatchResponse - 98, // 133: state.v1.StateStoreService.ListUndispatchedCaptures:output_type -> state.v1.ListUndispatchedCapturesResponse - 100, // 134: state.v1.StateStoreService.StreamUndispatchedCaptures:output_type -> state.v1.StreamUndispatchedCapturesResponse - 102, // 135: state.v1.StateStoreService.EnqueueBindingTask:output_type -> state.v1.EnqueueBindingTaskResponse - 90, // [90:136] is the sub-list for method output_type - 44, // [44:90] is the sub-list for method input_type + 46, // 62: state.v1.StateStoreService.InsertEvent:input_type -> state.v1.InsertEventRequest + 48, // 63: state.v1.StateStoreService.EventsSince:input_type -> state.v1.EventsSinceRequest + 50, // 64: state.v1.StateStoreService.TaskEvents:input_type -> state.v1.TaskEventsRequest + 52, // 65: state.v1.StateStoreService.WorkflowStats:input_type -> state.v1.WorkflowStatsRequest + 54, // 66: state.v1.StateStoreService.StageStats:input_type -> state.v1.StageStatsRequest + 56, // 67: state.v1.StateStoreService.TokensByDay:input_type -> state.v1.TokensByDayRequest + 59, // 68: state.v1.StateStoreService.PutConfigSnapshot:input_type -> state.v1.PutConfigSnapshotRequest + 61, // 69: state.v1.StateStoreService.GetConfigSnapshot:input_type -> state.v1.GetConfigSnapshotRequest + 63, // 70: state.v1.StateStoreService.InsertCapture:input_type -> state.v1.InsertCaptureRequest + 65, // 71: state.v1.StateStoreService.ListCaptures:input_type -> state.v1.ListCapturesRequest + 67, // 72: state.v1.StateStoreService.StreamCaptures:input_type -> state.v1.StreamCapturesRequest + 69, // 73: state.v1.StateStoreService.InsertMapping:input_type -> state.v1.InsertMappingRequest + 71, // 74: state.v1.StateStoreService.GetMapping:input_type -> state.v1.GetMappingRequest + 73, // 75: state.v1.StateStoreService.ListMappings:input_type -> state.v1.ListMappingsRequest + 75, // 76: state.v1.StateStoreService.UpdateMapping:input_type -> state.v1.UpdateMappingRequest + 77, // 77: state.v1.StateStoreService.DeleteMapping:input_type -> state.v1.DeleteMappingRequest + 79, // 78: state.v1.StateStoreService.InsertBinding:input_type -> state.v1.InsertBindingRequest + 81, // 79: state.v1.StateStoreService.GetBinding:input_type -> state.v1.GetBindingRequest + 83, // 80: state.v1.StateStoreService.ListBindings:input_type -> state.v1.ListBindingsRequest + 85, // 81: state.v1.StateStoreService.UpdateBinding:input_type -> state.v1.UpdateBindingRequest + 87, // 82: state.v1.StateStoreService.DeleteBinding:input_type -> state.v1.DeleteBindingRequest + 89, // 83: state.v1.StateStoreService.ApproveBinding:input_type -> state.v1.ApproveBindingRequest + 91, // 84: state.v1.StateStoreService.ArmedBindingsForSource:input_type -> state.v1.ArmedBindingsForSourceRequest + 93, // 85: state.v1.StateStoreService.RecordDispatch:input_type -> state.v1.RecordDispatchRequest + 95, // 86: state.v1.StateStoreService.ListUndispatchedCaptures:input_type -> state.v1.ListUndispatchedCapturesRequest + 97, // 87: state.v1.StateStoreService.StreamUndispatchedCaptures:input_type -> state.v1.StreamUndispatchedCapturesRequest + 99, // 88: state.v1.StateStoreService.EnqueueBindingTask:input_type -> state.v1.EnqueueBindingTaskRequest + 1, // 89: state.v1.StateStoreService.RegisterTaskGrant:output_type -> state.v1.RegisterTaskGrantResponse + 3, // 90: state.v1.StateStoreService.RevokeTaskGrant:output_type -> state.v1.RevokeTaskGrantResponse + 15, // 91: state.v1.StateStoreService.EnqueueIssue:output_type -> state.v1.EnqueueIssueResponse + 17, // 92: state.v1.StateStoreService.EnqueueChatTask:output_type -> state.v1.EnqueueChatTaskResponse + 19, // 93: state.v1.StateStoreService.ClaimNext:output_type -> state.v1.ClaimNextResponse + 21, // 94: state.v1.StateStoreService.ClaimByIssue:output_type -> state.v1.ClaimByIssueResponse + 23, // 95: state.v1.StateStoreService.Transition:output_type -> state.v1.TransitionResponse + 25, // 96: state.v1.StateStoreService.Update:output_type -> state.v1.UpdateResponse + 27, // 97: state.v1.StateStoreService.Requeue:output_type -> state.v1.RequeueResponse + 29, // 98: state.v1.StateStoreService.RecoverStale:output_type -> state.v1.RecoverStaleResponse + 31, // 99: state.v1.StateStoreService.ArchiveTask:output_type -> state.v1.ArchiveTaskResponse + 33, // 100: state.v1.StateStoreService.RetryTask:output_type -> state.v1.RetryTaskResponse + 35, // 101: state.v1.StateStoreService.TaskByIssue:output_type -> state.v1.TaskByIssueResponse + 37, // 102: state.v1.StateStoreService.TaskByID:output_type -> state.v1.TaskByIDResponse + 39, // 103: state.v1.StateStoreService.OpenPRs:output_type -> state.v1.OpenPRsResponse + 41, // 104: state.v1.StateStoreService.ClearTerminalTasks:output_type -> state.v1.ClearTerminalTasksResponse + 43, // 105: state.v1.StateStoreService.Tasks:output_type -> state.v1.TasksResponse + 45, // 106: state.v1.StateStoreService.StatusCounts:output_type -> state.v1.StatusCountsResponse + 47, // 107: state.v1.StateStoreService.InsertEvent:output_type -> state.v1.InsertEventResponse + 49, // 108: state.v1.StateStoreService.EventsSince:output_type -> state.v1.EventsSinceResponse + 51, // 109: state.v1.StateStoreService.TaskEvents:output_type -> state.v1.TaskEventsResponse + 53, // 110: state.v1.StateStoreService.WorkflowStats:output_type -> state.v1.WorkflowStatsResponse + 55, // 111: state.v1.StateStoreService.StageStats:output_type -> state.v1.StageStatsResponse + 57, // 112: state.v1.StateStoreService.TokensByDay:output_type -> state.v1.TokensByDayResponse + 60, // 113: state.v1.StateStoreService.PutConfigSnapshot:output_type -> state.v1.PutConfigSnapshotResponse + 62, // 114: state.v1.StateStoreService.GetConfigSnapshot:output_type -> state.v1.GetConfigSnapshotResponse + 64, // 115: state.v1.StateStoreService.InsertCapture:output_type -> state.v1.InsertCaptureResponse + 66, // 116: state.v1.StateStoreService.ListCaptures:output_type -> state.v1.ListCapturesResponse + 68, // 117: state.v1.StateStoreService.StreamCaptures:output_type -> state.v1.StreamCapturesResponse + 70, // 118: state.v1.StateStoreService.InsertMapping:output_type -> state.v1.InsertMappingResponse + 72, // 119: state.v1.StateStoreService.GetMapping:output_type -> state.v1.GetMappingResponse + 74, // 120: state.v1.StateStoreService.ListMappings:output_type -> state.v1.ListMappingsResponse + 76, // 121: state.v1.StateStoreService.UpdateMapping:output_type -> state.v1.UpdateMappingResponse + 78, // 122: state.v1.StateStoreService.DeleteMapping:output_type -> state.v1.DeleteMappingResponse + 80, // 123: state.v1.StateStoreService.InsertBinding:output_type -> state.v1.InsertBindingResponse + 82, // 124: state.v1.StateStoreService.GetBinding:output_type -> state.v1.GetBindingResponse + 84, // 125: state.v1.StateStoreService.ListBindings:output_type -> state.v1.ListBindingsResponse + 86, // 126: state.v1.StateStoreService.UpdateBinding:output_type -> state.v1.UpdateBindingResponse + 88, // 127: state.v1.StateStoreService.DeleteBinding:output_type -> state.v1.DeleteBindingResponse + 90, // 128: state.v1.StateStoreService.ApproveBinding:output_type -> state.v1.ApproveBindingResponse + 92, // 129: state.v1.StateStoreService.ArmedBindingsForSource:output_type -> state.v1.ArmedBindingsForSourceResponse + 94, // 130: state.v1.StateStoreService.RecordDispatch:output_type -> state.v1.RecordDispatchResponse + 96, // 131: state.v1.StateStoreService.ListUndispatchedCaptures:output_type -> state.v1.ListUndispatchedCapturesResponse + 98, // 132: state.v1.StateStoreService.StreamUndispatchedCaptures:output_type -> state.v1.StreamUndispatchedCapturesResponse + 100, // 133: state.v1.StateStoreService.EnqueueBindingTask:output_type -> state.v1.EnqueueBindingTaskResponse + 89, // [89:134] is the sub-list for method output_type + 44, // [44:89] is the sub-list for method input_type 44, // [44:44] is the sub-list for extension type_name 44, // [44:44] is the sub-list for extension extendee 0, // [0:44] is the sub-list for field type_name @@ -6028,7 +5940,7 @@ func file_state_v1_state_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_state_v1_state_proto_rawDesc), len(file_state_v1_state_proto_rawDesc)), NumEnums: 0, - NumMessages: 104, + NumMessages: 102, NumExtensions: 0, NumServices: 1, }, diff --git a/internal/contracts/state/v1/state_grpc.pb.go b/internal/contracts/state/v1/state_grpc.pb.go index 83e1446b0..62d080609 100644 --- a/internal/contracts/state/v1/state_grpc.pb.go +++ b/internal/contracts/state/v1/state_grpc.pb.go @@ -37,7 +37,6 @@ const ( StateStoreService_ClearTerminalTasks_FullMethodName = "/state.v1.StateStoreService/ClearTerminalTasks" StateStoreService_Tasks_FullMethodName = "/state.v1.StateStoreService/Tasks" StateStoreService_StatusCounts_FullMethodName = "/state.v1.StateStoreService/StatusCounts" - StateStoreService_IncrementRetryCount_FullMethodName = "/state.v1.StateStoreService/IncrementRetryCount" StateStoreService_InsertEvent_FullMethodName = "/state.v1.StateStoreService/InsertEvent" StateStoreService_EventsSince_FullMethodName = "/state.v1.StateStoreService/EventsSince" StateStoreService_TaskEvents_FullMethodName = "/state.v1.StateStoreService/TaskEvents" @@ -101,7 +100,6 @@ type StateStoreServiceClient interface { ClearTerminalTasks(ctx context.Context, in *ClearTerminalTasksRequest, opts ...grpc.CallOption) (*ClearTerminalTasksResponse, error) Tasks(ctx context.Context, in *TasksRequest, opts ...grpc.CallOption) (*TasksResponse, error) StatusCounts(ctx context.Context, in *StatusCountsRequest, opts ...grpc.CallOption) (*StatusCountsResponse, error) - IncrementRetryCount(ctx context.Context, in *IncrementRetryCountRequest, opts ...grpc.CallOption) (*IncrementRetryCountResponse, error) // Events InsertEvent(ctx context.Context, in *InsertEventRequest, opts ...grpc.CallOption) (*InsertEventResponse, error) EventsSince(ctx context.Context, in *EventsSinceRequest, opts ...grpc.CallOption) (*EventsSinceResponse, error) @@ -341,16 +339,6 @@ func (c *stateStoreServiceClient) StatusCounts(ctx context.Context, in *StatusCo return out, nil } -func (c *stateStoreServiceClient) IncrementRetryCount(ctx context.Context, in *IncrementRetryCountRequest, opts ...grpc.CallOption) (*IncrementRetryCountResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(IncrementRetryCountResponse) - err := c.cc.Invoke(ctx, StateStoreService_IncrementRetryCount_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *stateStoreServiceClient) InsertEvent(ctx context.Context, in *InsertEventRequest, opts ...grpc.CallOption) (*InsertEventResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(InsertEventResponse) @@ -675,7 +663,6 @@ type StateStoreServiceServer interface { ClearTerminalTasks(context.Context, *ClearTerminalTasksRequest) (*ClearTerminalTasksResponse, error) Tasks(context.Context, *TasksRequest) (*TasksResponse, error) StatusCounts(context.Context, *StatusCountsRequest) (*StatusCountsResponse, error) - IncrementRetryCount(context.Context, *IncrementRetryCountRequest) (*IncrementRetryCountResponse, error) // Events InsertEvent(context.Context, *InsertEventRequest) (*InsertEventResponse, error) EventsSince(context.Context, *EventsSinceRequest) (*EventsSinceResponse, error) @@ -789,9 +776,6 @@ func (UnimplementedStateStoreServiceServer) Tasks(context.Context, *TasksRequest func (UnimplementedStateStoreServiceServer) StatusCounts(context.Context, *StatusCountsRequest) (*StatusCountsResponse, error) { return nil, status.Error(codes.Unimplemented, "method StatusCounts not implemented") } -func (UnimplementedStateStoreServiceServer) IncrementRetryCount(context.Context, *IncrementRetryCountRequest) (*IncrementRetryCountResponse, error) { - return nil, status.Error(codes.Unimplemented, "method IncrementRetryCount not implemented") -} func (UnimplementedStateStoreServiceServer) InsertEvent(context.Context, *InsertEventRequest) (*InsertEventResponse, error) { return nil, status.Error(codes.Unimplemented, "method InsertEvent not implemented") } @@ -1218,24 +1202,6 @@ func _StateStoreService_StatusCounts_Handler(srv interface{}, ctx context.Contex return interceptor(ctx, in, info, handler) } -func _StateStoreService_IncrementRetryCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IncrementRetryCountRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(StateStoreServiceServer).IncrementRetryCount(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: StateStoreService_IncrementRetryCount_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(StateStoreServiceServer).IncrementRetryCount(ctx, req.(*IncrementRetryCountRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _StateStoreService_InsertEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(InsertEventRequest) if err := dec(in); err != nil { @@ -1787,10 +1753,6 @@ var StateStoreService_ServiceDesc = grpc.ServiceDesc{ MethodName: "StatusCounts", Handler: _StateStoreService_StatusCounts_Handler, }, - { - MethodName: "IncrementRetryCount", - Handler: _StateStoreService_IncrementRetryCount_Handler, - }, { MethodName: "InsertEvent", Handler: _StateStoreService_InsertEvent_Handler, diff --git a/internal/domain/storecontract/storecontract.go b/internal/domain/storecontract/storecontract.go index 85f9dd3a2..6766ddd1a 100644 --- a/internal/domain/storecontract/storecontract.go +++ b/internal/domain/storecontract/storecontract.go @@ -72,7 +72,6 @@ type TaskQueries interface { ClearTerminalTasks(ctx context.Context) (int64, error) Tasks(ctx context.Context, limit int) ([]task.Task, error) StatusCounts(ctx context.Context) (map[string]int, error) - IncrementRetryCount(ctx context.Context, taskID int64) error } // TaskEvents groups observability and lifecycle methods. diff --git a/internal/infrastructure/staterpc/client.go b/internal/infrastructure/staterpc/client.go index a61d33c88..817cdee86 100644 --- a/internal/infrastructure/staterpc/client.go +++ b/internal/infrastructure/staterpc/client.go @@ -182,11 +182,6 @@ func (c *Client) StatusCounts(ctx context.Context) (map[string]int, error) { return out, nil } -func (c *Client) IncrementRetryCount(ctx context.Context, taskID int64) error { - _, err := c.client.IncrementRetryCount(ctx, &pb.IncrementRetryCountRequest{TaskId: taskID}) - return unmapError(err) -} - // Events func (c *Client) InsertEvent(ctx context.Context, e events.Event) (int64, error) { diff --git a/internal/infrastructure/staterpc/conformance_test.go b/internal/infrastructure/staterpc/conformance_test.go index 4c397b776..9902a5438 100644 --- a/internal/infrastructure/staterpc/conformance_test.go +++ b/internal/infrastructure/staterpc/conformance_test.go @@ -111,9 +111,6 @@ func TestStateStoreConformance(t *testing.T) { if _, err := c.OpenPRs(ctx); err != nil { t.Fatalf("OpenPRs: %v", err) } - if err := c.IncrementRetryCount(ctx, task.ID); err != nil { - t.Fatalf("IncrementRetryCount: %v", err) - } // TaskEvents / EventsSince / stats. if evs, err := c.TaskEvents(ctx, task.ID); err != nil || len(evs) != 1 || evs[0].Data["duration_ms"] != 12.0 { diff --git a/internal/infrastructure/staterpc/server.go b/internal/infrastructure/staterpc/server.go index 6fda9cff4..ab53cba4e 100644 --- a/internal/infrastructure/staterpc/server.go +++ b/internal/infrastructure/staterpc/server.go @@ -218,13 +218,6 @@ func (s *server) StatusCounts(ctx context.Context, _ *pb.StatusCountsRequest) (* return &pb.StatusCountsResponse{Counts: out}, nil } -func (s *server) IncrementRetryCount(ctx context.Context, r *pb.IncrementRetryCountRequest) (*pb.IncrementRetryCountResponse, error) { - if err := s.deps.Tasks.IncrementRetryCount(ctx, r.TaskId); err != nil { - return nil, s.logErr("IncrementRetryCount", err) - } - return &pb.IncrementRetryCountResponse{}, nil -} - // Events func (s *server) InsertEvent(ctx context.Context, r *pb.InsertEventRequest) (*pb.InsertEventResponse, error) { diff --git a/internal/store/queries_test.go b/internal/store/queries_test.go index 13bfa97cc..6eea376c2 100644 --- a/internal/store/queries_test.go +++ b/internal/store/queries_test.go @@ -87,11 +87,13 @@ func TestRequeueFromWaitingHuman(t *testing.T) { t.Fatalf("Requeue must clear park_reason, got %q", retried.ParkReason) } - // Verify retry_count is NOT reset by Requeue (it persists). - if err := s.IncrementRetryCount(ctx, task2.ID); err != nil { + // Verify retry_count is NOT reset by Requeue (it persists). Bumped + // directly rather than through RetryTask, which also transitions + // status -- this fixture only needs the counter moved. + if _, err := s.db.ExecContext(ctx, `UPDATE tasks SET retry_count = retry_count + 1 WHERE id = ?`, task2.ID); err != nil { t.Fatal(err) } - if err := s.IncrementRetryCount(ctx, task2.ID); err != nil { + if _, err := s.db.ExecContext(ctx, `UPDATE tasks SET retry_count = retry_count + 1 WHERE id = ?`, task2.ID); err != nil { t.Fatal(err) } // Park again and requeue. diff --git a/internal/store/store.go b/internal/store/store.go index ab3a8068f..3688dd98e 100644 --- a/internal/store/store.go +++ b/internal/store/store.go @@ -213,15 +213,6 @@ func OpenTest(t interface { return s } -// IncrementRetryCount atomically bumps retry_count by 1. Called when an -// operator retries a parked task; the caller enforces max_retries against -// the resulting count. -func (s *Store) IncrementRetryCount(ctx context.Context, taskID int64) error { - _, err := s.db.ExecContext(ctx, - `UPDATE tasks SET retry_count = retry_count + 1, updated_at = datetime('now') WHERE id = ?`, taskID) - return err -} - // EnqueueIssue inserts a new queued task for the issue; returns false if // the issue is already tracked (the idempotency key is owner/repo/number). // The task's Source defaults to "forge" (the SQLite column default). diff --git a/internal/store/store_test.go b/internal/store/store_test.go index 2f9ae928d..697710e44 100644 --- a/internal/store/store_test.go +++ b/internal/store/store_test.go @@ -682,39 +682,6 @@ func TestRequeueRejectsStaleFrom(t *testing.T) { } } -func TestIncrementRetryCount(t *testing.T) { - s := openTest(t) - ctx := context.Background() - - if _, err := s.EnqueueIssue(ctx, "acme", "todo", 1, "t", "", "", ""); err != nil { - t.Fatal(err) - } - task, err := s.ClaimNext(ctx) - if err != nil || task == nil { - t.Fatalf("claim = (%v, %v)", task, err) - } - - if task.RetryCount != 0 { - t.Fatalf("expected retry_count=0, got %d", task.RetryCount) - } - - // Increment twice and verify. - if err := s.IncrementRetryCount(ctx, task.ID); err != nil { - t.Fatal(err) - } - if err := s.IncrementRetryCount(ctx, task.ID); err != nil { - t.Fatal(err) - } - - got, err := s.TaskByIssue(ctx, "acme", "todo", 1) - if err != nil || got == nil { - t.Fatalf("TaskByIssue = (%+v, %v)", got, err) - } - if got.RetryCount != 2 { - t.Fatalf("expected retry_count=2, got %d", got.RetryCount) - } -} - func TestRetryTaskAtomicallyRequeuesAndIncrements(t *testing.T) { s := openTest(t) ctx := t.Context() diff --git a/internal/webui/api_tasks_actions_test.go b/internal/webui/api_tasks_actions_test.go index 93fa3e531..7f777e9ba 100644 --- a/internal/webui/api_tasks_actions_test.go +++ b/internal/webui/api_tasks_actions_test.go @@ -225,8 +225,14 @@ func TestRetryEnforcesMaxRetries(t *testing.T) { srv, task, _, _, _ := actionServer(t, workflow.StatusParked, "it broke") operatorActions(t, srv).cfg = config.NewHolder(config.Config{MaxRetries: tc.maxRetries}) ctx := t.Context() + // Drive retry_count up through the real atomic retry path + // (RetryTask) rather than a raw counter bump, re-parking + // between retries so each call sees the fromStatus it needs. for range tc.priorCount { - if err := srv.Store.IncrementRetryCount(ctx, task.ID); err != nil { + if err := srv.Store.RetryTask(ctx, task.ID, workflow.StatusParked, ""); err != nil { + t.Fatal(err) + } + if err := srv.Store.Transition(ctx, task.ID, workflow.StatusQueued, workflow.StatusParked, "re-parked for test fixture"); err != nil { t.Fatal(err) } } diff --git a/proto/state/v1/state.proto b/proto/state/v1/state.proto index d81e9ee3a..15c6551b4 100644 --- a/proto/state/v1/state.proto +++ b/proto/state/v1/state.proto @@ -36,7 +36,6 @@ service StateStoreService { rpc ClearTerminalTasks(ClearTerminalTasksRequest) returns (ClearTerminalTasksResponse); rpc Tasks(TasksRequest) returns (TasksResponse); rpc StatusCounts(StatusCountsRequest) returns (StatusCountsResponse); - rpc IncrementRetryCount(IncrementRetryCountRequest) returns (IncrementRetryCountResponse); // Events rpc InsertEvent(InsertEventRequest) returns (InsertEventResponse); @@ -333,9 +332,6 @@ message TasksResponse { repeated Task tasks = 1; } message StatusCountsRequest {} message StatusCountsResponse { map counts = 1; } -message IncrementRetryCountRequest { int64 task_id = 1; } -message IncrementRetryCountResponse {} - message InsertEventRequest { Event event = 1; } message InsertEventResponse { int64 id = 1; }