Files
archie/internal/contracts/state/v1/mapping.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

866 lines
27 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc (unknown)
// source: state/v1/mapping.proto
package statev1
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
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)
)
// MappingField mirrors internal/domain/mapping.Field.
type MappingField struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
Required bool `protobuf:"varint,4,opt,name=required,proto3" json:"required,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *MappingField) Reset() {
*x = MappingField{}
mi := &file_state_v1_mapping_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *MappingField) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MappingField) ProtoMessage() {}
func (x *MappingField) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_mapping_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 MappingField.ProtoReflect.Descriptor instead.
func (*MappingField) Descriptor() ([]byte, []int) {
return file_state_v1_mapping_proto_rawDescGZIP(), []int{0}
}
func (x *MappingField) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *MappingField) GetPath() string {
if x != nil {
return x.Path
}
return ""
}
func (x *MappingField) GetType() string {
if x != nil {
return x.Type
}
return ""
}
func (x *MappingField) GetRequired() bool {
if x != nil {
return x.Required
}
return false
}
// Mapping mirrors internal/domain/mapping.Mapping.
type Mapping struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
SourceHint string `protobuf:"bytes,3,opt,name=source_hint,json=sourceHint,proto3" json:"source_hint,omitempty"`
Fields []*MappingField `protobuf:"bytes,4,rep,name=fields,proto3" json:"fields,omitempty"`
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
EventTypeId string `protobuf:"bytes,7,opt,name=event_type_id,json=eventTypeId,proto3" json:"event_type_id,omitempty"`
// match_count and last_matched_at are read-only: the store counts them.
MatchCount int64 `protobuf:"varint,8,opt,name=match_count,json=matchCount,proto3" json:"match_count,omitempty"`
LastMatchedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=last_matched_at,json=lastMatchedAt,proto3" json:"last_matched_at,omitempty"`
// workspace_id is its event type's workspace; read-only here.
WorkspaceId string `protobuf:"bytes,10,opt,name=workspace_id,json=workspaceId,proto3" json:"workspace_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Mapping) Reset() {
*x = Mapping{}
mi := &file_state_v1_mapping_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Mapping) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Mapping) ProtoMessage() {}
func (x *Mapping) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_mapping_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 Mapping.ProtoReflect.Descriptor instead.
func (*Mapping) Descriptor() ([]byte, []int) {
return file_state_v1_mapping_proto_rawDescGZIP(), []int{1}
}
func (x *Mapping) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Mapping) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Mapping) GetSourceHint() string {
if x != nil {
return x.SourceHint
}
return ""
}
func (x *Mapping) GetFields() []*MappingField {
if x != nil {
return x.Fields
}
return nil
}
func (x *Mapping) GetCreatedAt() *timestamppb.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (x *Mapping) GetUpdatedAt() *timestamppb.Timestamp {
if x != nil {
return x.UpdatedAt
}
return nil
}
func (x *Mapping) GetEventTypeId() string {
if x != nil {
return x.EventTypeId
}
return ""
}
func (x *Mapping) GetMatchCount() int64 {
if x != nil {
return x.MatchCount
}
return 0
}
func (x *Mapping) GetLastMatchedAt() *timestamppb.Timestamp {
if x != nil {
return x.LastMatchedAt
}
return nil
}
func (x *Mapping) GetWorkspaceId() string {
if x != nil {
return x.WorkspaceId
}
return ""
}
type InsertMappingRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Mapping *Mapping `protobuf:"bytes,1,opt,name=mapping,proto3" json:"mapping,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *InsertMappingRequest) Reset() {
*x = InsertMappingRequest{}
mi := &file_state_v1_mapping_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *InsertMappingRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InsertMappingRequest) ProtoMessage() {}
func (x *InsertMappingRequest) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_mapping_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 InsertMappingRequest.ProtoReflect.Descriptor instead.
func (*InsertMappingRequest) Descriptor() ([]byte, []int) {
return file_state_v1_mapping_proto_rawDescGZIP(), []int{2}
}
func (x *InsertMappingRequest) GetMapping() *Mapping {
if x != nil {
return x.Mapping
}
return nil
}
type InsertMappingResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *InsertMappingResponse) Reset() {
*x = InsertMappingResponse{}
mi := &file_state_v1_mapping_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *InsertMappingResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InsertMappingResponse) ProtoMessage() {}
func (x *InsertMappingResponse) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_mapping_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 InsertMappingResponse.ProtoReflect.Descriptor instead.
func (*InsertMappingResponse) Descriptor() ([]byte, []int) {
return file_state_v1_mapping_proto_rawDescGZIP(), []int{3}
}
func (x *InsertMappingResponse) GetId() string {
if x != nil {
return x.Id
}
return ""
}
type GetMappingRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetMappingRequest) Reset() {
*x = GetMappingRequest{}
mi := &file_state_v1_mapping_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetMappingRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetMappingRequest) ProtoMessage() {}
func (x *GetMappingRequest) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_mapping_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 GetMappingRequest.ProtoReflect.Descriptor instead.
func (*GetMappingRequest) Descriptor() ([]byte, []int) {
return file_state_v1_mapping_proto_rawDescGZIP(), []int{4}
}
func (x *GetMappingRequest) GetId() string {
if x != nil {
return x.Id
}
return ""
}
type GetMappingResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Mapping *Mapping `protobuf:"bytes,1,opt,name=mapping,proto3" json:"mapping,omitempty"`
Found bool `protobuf:"varint,2,opt,name=found,proto3" json:"found,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetMappingResponse) Reset() {
*x = GetMappingResponse{}
mi := &file_state_v1_mapping_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetMappingResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetMappingResponse) ProtoMessage() {}
func (x *GetMappingResponse) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_mapping_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 GetMappingResponse.ProtoReflect.Descriptor instead.
func (*GetMappingResponse) Descriptor() ([]byte, []int) {
return file_state_v1_mapping_proto_rawDescGZIP(), []int{5}
}
func (x *GetMappingResponse) GetMapping() *Mapping {
if x != nil {
return x.Mapping
}
return nil
}
func (x *GetMappingResponse) GetFound() bool {
if x != nil {
return x.Found
}
return false
}
type ListMappingsRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListMappingsRequest) Reset() {
*x = ListMappingsRequest{}
mi := &file_state_v1_mapping_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListMappingsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListMappingsRequest) ProtoMessage() {}
func (x *ListMappingsRequest) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_mapping_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 ListMappingsRequest.ProtoReflect.Descriptor instead.
func (*ListMappingsRequest) Descriptor() ([]byte, []int) {
return file_state_v1_mapping_proto_rawDescGZIP(), []int{6}
}
type ListMappingsResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Mappings []*Mapping `protobuf:"bytes,1,rep,name=mappings,proto3" json:"mappings,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListMappingsResponse) Reset() {
*x = ListMappingsResponse{}
mi := &file_state_v1_mapping_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListMappingsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListMappingsResponse) ProtoMessage() {}
func (x *ListMappingsResponse) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_mapping_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 ListMappingsResponse.ProtoReflect.Descriptor instead.
func (*ListMappingsResponse) Descriptor() ([]byte, []int) {
return file_state_v1_mapping_proto_rawDescGZIP(), []int{7}
}
func (x *ListMappingsResponse) GetMappings() []*Mapping {
if x != nil {
return x.Mappings
}
return nil
}
type UpdateMappingRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Mapping *Mapping `protobuf:"bytes,1,opt,name=mapping,proto3" json:"mapping,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UpdateMappingRequest) Reset() {
*x = UpdateMappingRequest{}
mi := &file_state_v1_mapping_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UpdateMappingRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateMappingRequest) ProtoMessage() {}
func (x *UpdateMappingRequest) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_mapping_proto_msgTypes[8]
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 UpdateMappingRequest.ProtoReflect.Descriptor instead.
func (*UpdateMappingRequest) Descriptor() ([]byte, []int) {
return file_state_v1_mapping_proto_rawDescGZIP(), []int{8}
}
func (x *UpdateMappingRequest) GetMapping() *Mapping {
if x != nil {
return x.Mapping
}
return nil
}
type UpdateMappingResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UpdateMappingResponse) Reset() {
*x = UpdateMappingResponse{}
mi := &file_state_v1_mapping_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UpdateMappingResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateMappingResponse) ProtoMessage() {}
func (x *UpdateMappingResponse) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_mapping_proto_msgTypes[9]
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 UpdateMappingResponse.ProtoReflect.Descriptor instead.
func (*UpdateMappingResponse) Descriptor() ([]byte, []int) {
return file_state_v1_mapping_proto_rawDescGZIP(), []int{9}
}
type DeleteMappingRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DeleteMappingRequest) Reset() {
*x = DeleteMappingRequest{}
mi := &file_state_v1_mapping_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DeleteMappingRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteMappingRequest) ProtoMessage() {}
func (x *DeleteMappingRequest) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_mapping_proto_msgTypes[10]
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 DeleteMappingRequest.ProtoReflect.Descriptor instead.
func (*DeleteMappingRequest) Descriptor() ([]byte, []int) {
return file_state_v1_mapping_proto_rawDescGZIP(), []int{10}
}
func (x *DeleteMappingRequest) GetId() string {
if x != nil {
return x.Id
}
return ""
}
type DeleteMappingResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DeleteMappingResponse) Reset() {
*x = DeleteMappingResponse{}
mi := &file_state_v1_mapping_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DeleteMappingResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteMappingResponse) ProtoMessage() {}
func (x *DeleteMappingResponse) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_mapping_proto_msgTypes[11]
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 DeleteMappingResponse.ProtoReflect.Descriptor instead.
func (*DeleteMappingResponse) Descriptor() ([]byte, []int) {
return file_state_v1_mapping_proto_rawDescGZIP(), []int{11}
}
type RecordMappingMatchRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
MappingId string `protobuf:"bytes,1,opt,name=mapping_id,json=mappingId,proto3" json:"mapping_id,omitempty"`
CaptureId string `protobuf:"bytes,2,opt,name=capture_id,json=captureId,proto3" json:"capture_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RecordMappingMatchRequest) Reset() {
*x = RecordMappingMatchRequest{}
mi := &file_state_v1_mapping_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RecordMappingMatchRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RecordMappingMatchRequest) ProtoMessage() {}
func (x *RecordMappingMatchRequest) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_mapping_proto_msgTypes[12]
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 RecordMappingMatchRequest.ProtoReflect.Descriptor instead.
func (*RecordMappingMatchRequest) Descriptor() ([]byte, []int) {
return file_state_v1_mapping_proto_rawDescGZIP(), []int{12}
}
func (x *RecordMappingMatchRequest) GetMappingId() string {
if x != nil {
return x.MappingId
}
return ""
}
func (x *RecordMappingMatchRequest) GetCaptureId() string {
if x != nil {
return x.CaptureId
}
return ""
}
type RecordMappingMatchResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RecordMappingMatchResponse) Reset() {
*x = RecordMappingMatchResponse{}
mi := &file_state_v1_mapping_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RecordMappingMatchResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RecordMappingMatchResponse) ProtoMessage() {}
func (x *RecordMappingMatchResponse) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_mapping_proto_msgTypes[13]
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 RecordMappingMatchResponse.ProtoReflect.Descriptor instead.
func (*RecordMappingMatchResponse) Descriptor() ([]byte, []int) {
return file_state_v1_mapping_proto_rawDescGZIP(), []int{13}
}
var File_state_v1_mapping_proto protoreflect.FileDescriptor
const file_state_v1_mapping_proto_rawDesc = "" +
"\n" +
"\x16state/v1/mapping.proto\x12\bstate.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"f\n" +
"\fMappingField\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" +
"\x04path\x18\x02 \x01(\tR\x04path\x12\x12\n" +
"\x04type\x18\x03 \x01(\tR\x04type\x12\x1a\n" +
"\brequired\x18\x04 \x01(\bR\brequired\"\xa0\x03\n" +
"\aMapping\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name\x12\x1f\n" +
"\vsource_hint\x18\x03 \x01(\tR\n" +
"sourceHint\x12.\n" +
"\x06fields\x18\x04 \x03(\v2\x16.state.v1.MappingFieldR\x06fields\x129\n" +
"\n" +
"created_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
"\n" +
"updated_at\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\x12\"\n" +
"\revent_type_id\x18\a \x01(\tR\veventTypeId\x12\x1f\n" +
"\vmatch_count\x18\b \x01(\x03R\n" +
"matchCount\x12B\n" +
"\x0flast_matched_at\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\rlastMatchedAt\x12!\n" +
"\fworkspace_id\x18\n" +
" \x01(\tR\vworkspaceId\"C\n" +
"\x14InsertMappingRequest\x12+\n" +
"\amapping\x18\x01 \x01(\v2\x11.state.v1.MappingR\amapping\"'\n" +
"\x15InsertMappingResponse\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\"#\n" +
"\x11GetMappingRequest\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\"W\n" +
"\x12GetMappingResponse\x12+\n" +
"\amapping\x18\x01 \x01(\v2\x11.state.v1.MappingR\amapping\x12\x14\n" +
"\x05found\x18\x02 \x01(\bR\x05found\"\x15\n" +
"\x13ListMappingsRequest\"E\n" +
"\x14ListMappingsResponse\x12-\n" +
"\bmappings\x18\x01 \x03(\v2\x11.state.v1.MappingR\bmappings\"C\n" +
"\x14UpdateMappingRequest\x12+\n" +
"\amapping\x18\x01 \x01(\v2\x11.state.v1.MappingR\amapping\"\x17\n" +
"\x15UpdateMappingResponse\"&\n" +
"\x14DeleteMappingRequest\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\"\x17\n" +
"\x15DeleteMappingResponse\"Y\n" +
"\x19RecordMappingMatchRequest\x12\x1d\n" +
"\n" +
"mapping_id\x18\x01 \x01(\tR\tmappingId\x12\x1d\n" +
"\n" +
"capture_id\x18\x02 \x01(\tR\tcaptureId\"\x1c\n" +
"\x1aRecordMappingMatchResponse2\xff\x03\n" +
"\x0eMappingService\x12P\n" +
"\rInsertMapping\x12\x1e.state.v1.InsertMappingRequest\x1a\x1f.state.v1.InsertMappingResponse\x12G\n" +
"\n" +
"GetMapping\x12\x1b.state.v1.GetMappingRequest\x1a\x1c.state.v1.GetMappingResponse\x12M\n" +
"\fListMappings\x12\x1d.state.v1.ListMappingsRequest\x1a\x1e.state.v1.ListMappingsResponse\x12P\n" +
"\rUpdateMapping\x12\x1e.state.v1.UpdateMappingRequest\x1a\x1f.state.v1.UpdateMappingResponse\x12P\n" +
"\rDeleteMapping\x12\x1e.state.v1.DeleteMappingRequest\x1a\x1f.state.v1.DeleteMappingResponse\x12_\n" +
"\x12RecordMappingMatch\x12#.state.v1.RecordMappingMatchRequest\x1a$.state.v1.RecordMappingMatchResponseB\xa6\x01\n" +
"\fcom.state.v1B\fMappingProtoP\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_mapping_proto_rawDescOnce sync.Once
file_state_v1_mapping_proto_rawDescData []byte
)
func file_state_v1_mapping_proto_rawDescGZIP() []byte {
file_state_v1_mapping_proto_rawDescOnce.Do(func() {
file_state_v1_mapping_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_state_v1_mapping_proto_rawDesc), len(file_state_v1_mapping_proto_rawDesc)))
})
return file_state_v1_mapping_proto_rawDescData
}
var file_state_v1_mapping_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
var file_state_v1_mapping_proto_goTypes = []any{
(*MappingField)(nil), // 0: state.v1.MappingField
(*Mapping)(nil), // 1: state.v1.Mapping
(*InsertMappingRequest)(nil), // 2: state.v1.InsertMappingRequest
(*InsertMappingResponse)(nil), // 3: state.v1.InsertMappingResponse
(*GetMappingRequest)(nil), // 4: state.v1.GetMappingRequest
(*GetMappingResponse)(nil), // 5: state.v1.GetMappingResponse
(*ListMappingsRequest)(nil), // 6: state.v1.ListMappingsRequest
(*ListMappingsResponse)(nil), // 7: state.v1.ListMappingsResponse
(*UpdateMappingRequest)(nil), // 8: state.v1.UpdateMappingRequest
(*UpdateMappingResponse)(nil), // 9: state.v1.UpdateMappingResponse
(*DeleteMappingRequest)(nil), // 10: state.v1.DeleteMappingRequest
(*DeleteMappingResponse)(nil), // 11: state.v1.DeleteMappingResponse
(*RecordMappingMatchRequest)(nil), // 12: state.v1.RecordMappingMatchRequest
(*RecordMappingMatchResponse)(nil), // 13: state.v1.RecordMappingMatchResponse
(*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp
}
var file_state_v1_mapping_proto_depIdxs = []int32{
0, // 0: state.v1.Mapping.fields:type_name -> state.v1.MappingField
14, // 1: state.v1.Mapping.created_at:type_name -> google.protobuf.Timestamp
14, // 2: state.v1.Mapping.updated_at:type_name -> google.protobuf.Timestamp
14, // 3: state.v1.Mapping.last_matched_at:type_name -> google.protobuf.Timestamp
1, // 4: state.v1.InsertMappingRequest.mapping:type_name -> state.v1.Mapping
1, // 5: state.v1.GetMappingResponse.mapping:type_name -> state.v1.Mapping
1, // 6: state.v1.ListMappingsResponse.mappings:type_name -> state.v1.Mapping
1, // 7: state.v1.UpdateMappingRequest.mapping:type_name -> state.v1.Mapping
2, // 8: state.v1.MappingService.InsertMapping:input_type -> state.v1.InsertMappingRequest
4, // 9: state.v1.MappingService.GetMapping:input_type -> state.v1.GetMappingRequest
6, // 10: state.v1.MappingService.ListMappings:input_type -> state.v1.ListMappingsRequest
8, // 11: state.v1.MappingService.UpdateMapping:input_type -> state.v1.UpdateMappingRequest
10, // 12: state.v1.MappingService.DeleteMapping:input_type -> state.v1.DeleteMappingRequest
12, // 13: state.v1.MappingService.RecordMappingMatch:input_type -> state.v1.RecordMappingMatchRequest
3, // 14: state.v1.MappingService.InsertMapping:output_type -> state.v1.InsertMappingResponse
5, // 15: state.v1.MappingService.GetMapping:output_type -> state.v1.GetMappingResponse
7, // 16: state.v1.MappingService.ListMappings:output_type -> state.v1.ListMappingsResponse
9, // 17: state.v1.MappingService.UpdateMapping:output_type -> state.v1.UpdateMappingResponse
11, // 18: state.v1.MappingService.DeleteMapping:output_type -> state.v1.DeleteMappingResponse
13, // 19: state.v1.MappingService.RecordMappingMatch:output_type -> state.v1.RecordMappingMatchResponse
14, // [14:20] is the sub-list for method output_type
8, // [8:14] is the sub-list for method input_type
8, // [8:8] is the sub-list for extension type_name
8, // [8:8] is the sub-list for extension extendee
0, // [0:8] is the sub-list for field type_name
}
func init() { file_state_v1_mapping_proto_init() }
func file_state_v1_mapping_proto_init() {
if File_state_v1_mapping_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_mapping_proto_rawDesc), len(file_state_v1_mapping_proto_rawDesc)),
NumEnums: 0,
NumMessages: 14,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_state_v1_mapping_proto_goTypes,
DependencyIndexes: file_state_v1_mapping_proto_depIdxs,
MessageInfos: file_state_v1_mapping_proto_msgTypes,
}.Build()
File_state_v1_mapping_proto = out.File
file_state_v1_mapping_proto_goTypes = nil
file_state_v1_mapping_proto_depIdxs = nil
}