Files
archie/internal/contracts/state/v1/review.pb.go
T
sam a971947c39 refactor(state)!: split StateStoreService into per-domain services
One gRPC service per domain in state.v1 (tasks, executions, accounts, identities, packages, captures, bindings, access, orgs, alerts and so on), each with its own server type in staterpc. RPC and message names and numbers are unchanged.
2026-10-25 19:54:27 +11:00

512 lines
17 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc (unknown)
// source: state/v1/review.proto
package statev1
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type RespondReviewGateRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
TaskId int64 `protobuf:"varint,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
FromStatus string `protobuf:"bytes,2,opt,name=from_status,json=fromStatus,proto3" json:"from_status,omitempty"`
// gate is the whole review_gate document the caller computed: the offer
// with the answer filled in. The store persists it unread.
Gate string `protobuf:"bytes,3,opt,name=gate,proto3" json:"gate,omitempty"`
// rereview increments rereview_rounds in the same write; an approve must
// pass false and bumps nothing.
Rereview bool `protobuf:"varint,4,opt,name=rereview,proto3" json:"rereview,omitempty"`
// cap is the domain's re-review bound (prreview.MaxRereviewRounds). It
// crosses so the guard is enforced where the row is locked rather than by
// the caller's stale read.
Cap int64 `protobuf:"varint,5,opt,name=cap,proto3" json:"cap,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RespondReviewGateRequest) Reset() {
*x = RespondReviewGateRequest{}
mi := &file_state_v1_review_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RespondReviewGateRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RespondReviewGateRequest) ProtoMessage() {}
func (x *RespondReviewGateRequest) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_review_proto_msgTypes[0]
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 RespondReviewGateRequest.ProtoReflect.Descriptor instead.
func (*RespondReviewGateRequest) Descriptor() ([]byte, []int) {
return file_state_v1_review_proto_rawDescGZIP(), []int{0}
}
func (x *RespondReviewGateRequest) GetTaskId() int64 {
if x != nil {
return x.TaskId
}
return 0
}
func (x *RespondReviewGateRequest) GetFromStatus() string {
if x != nil {
return x.FromStatus
}
return ""
}
func (x *RespondReviewGateRequest) GetGate() string {
if x != nil {
return x.Gate
}
return ""
}
func (x *RespondReviewGateRequest) GetRereview() bool {
if x != nil {
return x.Rereview
}
return false
}
func (x *RespondReviewGateRequest) GetCap() int64 {
if x != nil {
return x.Cap
}
return 0
}
type RespondReviewGateResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RespondReviewGateResponse) Reset() {
*x = RespondReviewGateResponse{}
mi := &file_state_v1_review_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RespondReviewGateResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RespondReviewGateResponse) ProtoMessage() {}
func (x *RespondReviewGateResponse) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_review_proto_msgTypes[1]
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 RespondReviewGateResponse.ProtoReflect.Descriptor instead.
func (*RespondReviewGateResponse) Descriptor() ([]byte, []int) {
return file_state_v1_review_proto_rawDescGZIP(), []int{1}
}
type BeginRemediationRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
TaskId int64 `protobuf:"varint,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
Payload string `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BeginRemediationRequest) Reset() {
*x = BeginRemediationRequest{}
mi := &file_state_v1_review_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BeginRemediationRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BeginRemediationRequest) ProtoMessage() {}
func (x *BeginRemediationRequest) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_review_proto_msgTypes[2]
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 BeginRemediationRequest.ProtoReflect.Descriptor instead.
func (*BeginRemediationRequest) Descriptor() ([]byte, []int) {
return file_state_v1_review_proto_rawDescGZIP(), []int{2}
}
func (x *BeginRemediationRequest) GetTaskId() int64 {
if x != nil {
return x.TaskId
}
return 0
}
func (x *BeginRemediationRequest) GetPayload() string {
if x != nil {
return x.Payload
}
return ""
}
type BeginRemediationResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BeginRemediationResponse) Reset() {
*x = BeginRemediationResponse{}
mi := &file_state_v1_review_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BeginRemediationResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BeginRemediationResponse) ProtoMessage() {}
func (x *BeginRemediationResponse) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_review_proto_msgTypes[3]
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 BeginRemediationResponse.ProtoReflect.Descriptor instead.
func (*BeginRemediationResponse) Descriptor() ([]byte, []int) {
return file_state_v1_review_proto_rawDescGZIP(), []int{3}
}
// UpdateReviewPayloadRequest merges payload's comments into the unclaimed
// review unit with the same review id, active or pending.
type UpdateReviewPayloadRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
TaskId int64 `protobuf:"varint,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
Payload string `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UpdateReviewPayloadRequest) Reset() {
*x = UpdateReviewPayloadRequest{}
mi := &file_state_v1_review_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UpdateReviewPayloadRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateReviewPayloadRequest) ProtoMessage() {}
func (x *UpdateReviewPayloadRequest) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_review_proto_msgTypes[4]
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 UpdateReviewPayloadRequest.ProtoReflect.Descriptor instead.
func (*UpdateReviewPayloadRequest) Descriptor() ([]byte, []int) {
return file_state_v1_review_proto_rawDescGZIP(), []int{4}
}
func (x *UpdateReviewPayloadRequest) GetTaskId() int64 {
if x != nil {
return x.TaskId
}
return 0
}
func (x *UpdateReviewPayloadRequest) GetPayload() string {
if x != nil {
return x.Payload
}
return ""
}
type UpdateReviewPayloadResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UpdateReviewPayloadResponse) Reset() {
*x = UpdateReviewPayloadResponse{}
mi := &file_state_v1_review_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UpdateReviewPayloadResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateReviewPayloadResponse) ProtoMessage() {}
func (x *UpdateReviewPayloadResponse) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_review_proto_msgTypes[5]
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 UpdateReviewPayloadResponse.ProtoReflect.Descriptor instead.
func (*UpdateReviewPayloadResponse) Descriptor() ([]byte, []int) {
return file_state_v1_review_proto_rawDescGZIP(), []int{5}
}
type SetReviewCursorsRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
TaskId int64 `protobuf:"varint,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
ReviewCursor int64 `protobuf:"varint,2,opt,name=review_cursor,json=reviewCursor,proto3" json:"review_cursor,omitempty"`
CommentCursor int64 `protobuf:"varint,3,opt,name=comment_cursor,json=commentCursor,proto3" json:"comment_cursor,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SetReviewCursorsRequest) Reset() {
*x = SetReviewCursorsRequest{}
mi := &file_state_v1_review_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SetReviewCursorsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SetReviewCursorsRequest) ProtoMessage() {}
func (x *SetReviewCursorsRequest) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_review_proto_msgTypes[6]
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 SetReviewCursorsRequest.ProtoReflect.Descriptor instead.
func (*SetReviewCursorsRequest) Descriptor() ([]byte, []int) {
return file_state_v1_review_proto_rawDescGZIP(), []int{6}
}
func (x *SetReviewCursorsRequest) GetTaskId() int64 {
if x != nil {
return x.TaskId
}
return 0
}
func (x *SetReviewCursorsRequest) GetReviewCursor() int64 {
if x != nil {
return x.ReviewCursor
}
return 0
}
func (x *SetReviewCursorsRequest) GetCommentCursor() int64 {
if x != nil {
return x.CommentCursor
}
return 0
}
type SetReviewCursorsResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SetReviewCursorsResponse) Reset() {
*x = SetReviewCursorsResponse{}
mi := &file_state_v1_review_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SetReviewCursorsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SetReviewCursorsResponse) ProtoMessage() {}
func (x *SetReviewCursorsResponse) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_review_proto_msgTypes[7]
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 SetReviewCursorsResponse.ProtoReflect.Descriptor instead.
func (*SetReviewCursorsResponse) Descriptor() ([]byte, []int) {
return file_state_v1_review_proto_rawDescGZIP(), []int{7}
}
var File_state_v1_review_proto protoreflect.FileDescriptor
const file_state_v1_review_proto_rawDesc = "" +
"\n" +
"\x15state/v1/review.proto\x12\bstate.v1\"\x96\x01\n" +
"\x18RespondReviewGateRequest\x12\x17\n" +
"\atask_id\x18\x01 \x01(\x03R\x06taskId\x12\x1f\n" +
"\vfrom_status\x18\x02 \x01(\tR\n" +
"fromStatus\x12\x12\n" +
"\x04gate\x18\x03 \x01(\tR\x04gate\x12\x1a\n" +
"\brereview\x18\x04 \x01(\bR\brereview\x12\x10\n" +
"\x03cap\x18\x05 \x01(\x03R\x03cap\"\x1b\n" +
"\x19RespondReviewGateResponse\"L\n" +
"\x17BeginRemediationRequest\x12\x17\n" +
"\atask_id\x18\x01 \x01(\x03R\x06taskId\x12\x18\n" +
"\apayload\x18\x02 \x01(\tR\apayload\"\x1a\n" +
"\x18BeginRemediationResponse\"O\n" +
"\x1aUpdateReviewPayloadRequest\x12\x17\n" +
"\atask_id\x18\x01 \x01(\x03R\x06taskId\x12\x18\n" +
"\apayload\x18\x02 \x01(\tR\apayload\"\x1d\n" +
"\x1bUpdateReviewPayloadResponse\"~\n" +
"\x17SetReviewCursorsRequest\x12\x17\n" +
"\atask_id\x18\x01 \x01(\x03R\x06taskId\x12#\n" +
"\rreview_cursor\x18\x02 \x01(\x03R\freviewCursor\x12%\n" +
"\x0ecomment_cursor\x18\x03 \x01(\x03R\rcommentCursor\"\x1a\n" +
"\x18SetReviewCursorsResponse2\x87\x03\n" +
"\rReviewService\x12\\\n" +
"\x11RespondReviewGate\x12\".state.v1.RespondReviewGateRequest\x1a#.state.v1.RespondReviewGateResponse\x12Y\n" +
"\x10BeginRemediation\x12!.state.v1.BeginRemediationRequest\x1a\".state.v1.BeginRemediationResponse\x12b\n" +
"\x13UpdateReviewPayload\x12$.state.v1.UpdateReviewPayloadRequest\x1a%.state.v1.UpdateReviewPayloadResponse\x12Y\n" +
"\x10SetReviewCursors\x12!.state.v1.SetReviewCursorsRequest\x1a\".state.v1.SetReviewCursorsResponseB\xa5\x01\n" +
"\fcom.state.v1B\vReviewProtoP\x01ZGgithub.com/samcharles93/archie-core/internal/contracts/state/v1;statev1\xa2\x02\x03SXX\xaa\x02\bState.V1\xca\x02\bState\\V1\xe2\x02\x14State\\V1\\GPBMetadata\xea\x02\tState::V1b\x06proto3"
var (
file_state_v1_review_proto_rawDescOnce sync.Once
file_state_v1_review_proto_rawDescData []byte
)
func file_state_v1_review_proto_rawDescGZIP() []byte {
file_state_v1_review_proto_rawDescOnce.Do(func() {
file_state_v1_review_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_state_v1_review_proto_rawDesc), len(file_state_v1_review_proto_rawDesc)))
})
return file_state_v1_review_proto_rawDescData
}
var file_state_v1_review_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
var file_state_v1_review_proto_goTypes = []any{
(*RespondReviewGateRequest)(nil), // 0: state.v1.RespondReviewGateRequest
(*RespondReviewGateResponse)(nil), // 1: state.v1.RespondReviewGateResponse
(*BeginRemediationRequest)(nil), // 2: state.v1.BeginRemediationRequest
(*BeginRemediationResponse)(nil), // 3: state.v1.BeginRemediationResponse
(*UpdateReviewPayloadRequest)(nil), // 4: state.v1.UpdateReviewPayloadRequest
(*UpdateReviewPayloadResponse)(nil), // 5: state.v1.UpdateReviewPayloadResponse
(*SetReviewCursorsRequest)(nil), // 6: state.v1.SetReviewCursorsRequest
(*SetReviewCursorsResponse)(nil), // 7: state.v1.SetReviewCursorsResponse
}
var file_state_v1_review_proto_depIdxs = []int32{
0, // 0: state.v1.ReviewService.RespondReviewGate:input_type -> state.v1.RespondReviewGateRequest
2, // 1: state.v1.ReviewService.BeginRemediation:input_type -> state.v1.BeginRemediationRequest
4, // 2: state.v1.ReviewService.UpdateReviewPayload:input_type -> state.v1.UpdateReviewPayloadRequest
6, // 3: state.v1.ReviewService.SetReviewCursors:input_type -> state.v1.SetReviewCursorsRequest
1, // 4: state.v1.ReviewService.RespondReviewGate:output_type -> state.v1.RespondReviewGateResponse
3, // 5: state.v1.ReviewService.BeginRemediation:output_type -> state.v1.BeginRemediationResponse
5, // 6: state.v1.ReviewService.UpdateReviewPayload:output_type -> state.v1.UpdateReviewPayloadResponse
7, // 7: state.v1.ReviewService.SetReviewCursors:output_type -> state.v1.SetReviewCursorsResponse
4, // [4:8] is the sub-list for method output_type
0, // [0:4] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_state_v1_review_proto_init() }
func file_state_v1_review_proto_init() {
if File_state_v1_review_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_state_v1_review_proto_rawDesc), len(file_state_v1_review_proto_rawDesc)),
NumEnums: 0,
NumMessages: 8,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_state_v1_review_proto_goTypes,
DependencyIndexes: file_state_v1_review_proto_depIdxs,
MessageInfos: file_state_v1_review_proto_msgTypes,
}.Build()
File_state_v1_review_proto = out.File
file_state_v1_review_proto_goTypes = nil
file_state_v1_review_proto_depIdxs = nil
}